/* TraqBio — design system carried over from the original landing page.
   Palette, type and spacing are unchanged; this file adds the shared nav,
   the sample-report and pricing pages, form states, and mobile breakpoints. */

/* ── FONTS — self-hosted, SIL OFL 1.1 (see assets/fonts/LICENSE.txt) ──
   Same latin/latin-ext subsets Google Fonts served; unicode-range keeps a
   visitor from downloading a subset the page never uses. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/plex-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/plex-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:    #1C2B22;
  --paper:  #EDEAE2;
  --paper2: #E2DECF;
  --rust:   #A6512C;
  --slate:  #3E4C59;
  --moss:   #6B7A5E;
  --white:  #FFFFFF;
  --line:   #C9C3B0;
  --mute:   #9BA69A;   /* light text on ink; meets 4.5:1 */
  --focus:  #A6512C;
  --rust-text: #8A4220;   /* rust for small text on paper: ≥5:1 */
  --rust-light: #D98860;  /* rust for small text on ink: ≥6:1 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* Skip link — visible only on focus */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper);
  padding: 8px 14px; border-radius: 2px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── NAV ── */
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 32px; max-width: 1140px; margin: 0 auto;
}
.nav-mark { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 500; text-decoration: none; }
.nav-mark em { font-style: italic; color: var(--rust); }
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; list-style: none; }
.nav-links a { font-size: 14.5px; text-decoration: none; color: var(--slate); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px;
  border: 1px solid var(--ink); padding: 8px 16px; border-radius: 2px;
  color: var(--ink); text-decoration: none; transition: background .15s, color .15s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center; padding: 48px 32px 96px; max-width: 1140px; margin: 0 auto;
}
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -0.5px; margin-bottom: 22px; }
.hero-sub { font-size: 17px; color: var(--slate); max-width: 46ch; margin-bottom: 32px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink); color: var(--paper); font-family: inherit;
  font-weight: 500; font-size: 15px; padding: 14px 26px; border-radius: 2px; border: 0;
  text-decoration: none; display: inline-block; transition: background .15s; cursor: pointer;
}
.btn-primary:hover { background: var(--rust); }
.btn-ghost { font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* specimen card */
.specimen { background: var(--white); border: 1px solid var(--line); padding: 28px 26px; position: relative; }
.specimen::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--paper2); pointer-events: none; }
.spec-eyebrow { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 1px; color: var(--slate); text-transform: uppercase; margin-bottom: 6px; }
.spec-title { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 20px; margin-bottom: 4px; }
.spec-sub { font-size: 13px; color: var(--slate); margin-bottom: 18px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--paper2); font-size: 13.5px; }
.spec-row:first-of-type { border-top: none; }
.spec-label { color: var(--slate); }
.spec-val { font-weight: 500; text-align: right; }
.spec-stamp {
  margin-top: 18px; display: inline-block; font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.5px; color: var(--rust); border: 1px solid var(--rust);
  padding: 4px 10px; transform: rotate(-2deg);
}
.spec-foot { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--slate); margin-top: 16px; line-height: 1.5; }

/* ── SECTION SHELL ── */
section { padding: 76px 32px; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-kicker { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--rust-text); margin-bottom: 10px; }
.gap-section .section-kicker, .report-head .section-kicker, .form-section .section-kicker { color: var(--rust-light); }
.section-h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; max-width: 22ch; }
.section-lead { font-size: 16px; color: var(--slate); max-width: 58ch; margin-bottom: 48px; }
.bg-paper2 { background: var(--paper2); }

/* ── THE GAP ── */
.gap-section { background: var(--ink); color: var(--paper); }
.gap-section .section-h2 { color: var(--paper); }
.gap-section .section-lead { color: #B8C2B4; }
.gap-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.12); }
.gap-col { background: var(--ink); padding: 32px; }
.gap-col-title { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.5px; margin-bottom: 18px; }
.gap-col.climate .gap-col-title { color: #9FB98A; }
.gap-col.bio .gap-col-title { color: #D98860; }
.gap-item { display: flex; gap: 10px; font-size: 14.5px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.08); color: #D8DDD3; }
.gap-item:first-of-type { border-top: none; }
.gap-check { color: #9FB98A; flex-shrink: 0; }
.gap-cross { color: #D98860; flex-shrink: 0; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 22px; background: var(--white); }
.step-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--rust); margin-bottom: 14px; }
.step-title { font-family: 'Fraunces', Georgia, serif; font-size: 18px; margin-bottom: 8px; }
.step-body { font-size: 13.5px; color: var(--slate); line-height: 1.55; }

/* ── CREDIBILITY ── */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cred-card { border: 1px solid var(--line); background: var(--white); padding: 26px; }
.cred-label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: var(--slate); letter-spacing: 0.5px; margin-bottom: 10px; }
.cred-body { font-size: 14.5px; line-height: 1.6; }
.cred-body strong { color: var(--ink); }

/* ── SAMPLE CTA ── */
.sample-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.sample-text h2 { margin-bottom: 10px; max-width: 20ch; }
.sample-text p { color: var(--slate); max-width: 46ch; }

/* ── PRICING ── */
.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card { border: 1px solid var(--line); padding: 30px 28px; background: var(--white); }
.price-card.us { border: 1.5px solid var(--ink); }
.price-who { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.5px; color: var(--slate); margin-bottom: 8px; }
.price-num { font-family: 'Fraunces', Georgia, serif; font-size: 34px; margin-bottom: 6px; }
.price-detail { font-size: 13.5px; color: var(--slate); margin-bottom: 20px; }
.price-list { list-style: none; }
.price-list li { font-size: 14px; padding: 7px 0; border-top: 1px solid var(--paper2); color: var(--slate); }
.price-list li:first-child { border-top: none; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.tier { border: 1px solid var(--line); background: var(--white); padding: 30px 28px; display: flex; flex-direction: column; }
.tier.featured { border: 1.5px solid var(--ink); }
.tier h3 { font-size: 22px; margin-bottom: 6px; }
.tier .price-list { margin: 16px 0 24px; flex: 1; }
.tier .price-list li { color: var(--ink); }
.tier .price-list li::before { content: '— '; color: var(--rust); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.faq h3 { font-size: 18px; margin-bottom: 8px; }
.faq p { font-size: 14.5px; color: var(--slate); }

/* ── FORM ── */
.form-section { background: var(--ink); color: var(--paper); }
.form-section .section-inner { max-width: 620px; text-align: center; }
.form-section h2 { color: var(--paper); max-width: none; margin: 0 auto 14px; }
.form-section p { color: #B8C2B4; max-width: 50ch; margin: 0 auto 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.5px; color: var(--mute); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); color: var(--paper); font-family: inherit;
  font-size: 15px; border-radius: 2px;
}
.form-input::placeholder { color: var(--mute); }
.form-input:focus-visible { outline-color: #D98860; border-color: #D98860; }
.form-btn {
  background: var(--rust); color: var(--paper); border: none; padding: 14px 22px; width: 100%;
  font-family: inherit; font-weight: 500; font-size: 15px; border-radius: 2px; cursor: pointer;
  transition: background .15s;
}
.form-btn:hover { background: #B85E36; }
.form-btn[disabled] { opacity: .6; cursor: progress; }
.form-note { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--mute); margin-top: 18px; }
.form-after { font-size: 13.5px; color: #B8C2B4; margin-top: 14px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.form-status { margin-top: 18px; font-size: 14.5px; padding: 12px 16px; border-radius: 2px; text-align: left; }
.form-status[data-state="ok"] { background: rgba(159,185,138,0.15); border: 1px solid #9FB98A; color: #D8E5CF; }
.form-status[data-state="error"] { background: rgba(217,136,96,0.15); border: 1px solid #D98860; color: #F1D3C2; }
.form-status:empty { display: none; }
/* honeypot: off-screen, not display:none, so naive bots still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── REPORT (sample page) ── */
.report-head { background: var(--ink); color: var(--paper); padding: 48px 32px 40px; }
.report-head .section-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.report-head h1 { color: var(--paper); font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 12px; }
.report-meta { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; color: #B8C2B4; line-height: 1.8; }
.tier-badge { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 1px; padding: 12px 20px; border: 1.5px solid #D98860; color: #D98860; white-space: nowrap; }
.sample-banner { background: var(--rust); color: var(--paper); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; padding: 12px 32px; text-align: center; }
.sample-banner a { color: var(--paper); }
.report section { padding: 56px 32px; }
.report h2 { font-size: 24px; margin-bottom: 8px; }
.report .lead { color: var(--slate); font-size: 15px; max-width: 70ch; margin-bottom: 26px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--paper2); vertical-align: top; }
th { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .5px; color: var(--slate); background: var(--paper); font-weight: 500; }
tr:last-child td { border-bottom: none; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sci { font-style: italic; }
.pill { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.pill.cr { color: #8E2F12; } .pill.en { color: var(--rust); } .pill.vu { color: #7A6420; }
.pill.recent { color: var(--moss); } .pill.historical { color: #7A6420; } .pill.stale { color: #8E2F12; }
.pill.na { color: var(--slate); }
.callout { border-left: 3px solid var(--rust); background: var(--white); padding: 18px 22px; margin: 18px 0; font-size: 14.5px; }
.callout.note { border-left-color: var(--slate); }
.caveats li { font-size: 14px; color: var(--slate); margin: 10px 0 10px 18px; }
.disclosure { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; }
.disclosure dt { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--rust-text); padding-top: 4px; }
.disclosure dd { font-size: 14.5px; margin-bottom: 14px; }
.disclosure dd blockquote { border-left: 2px solid var(--line); padding-left: 14px; color: var(--ink); font-style: italic; margin-top: 6px; }
.attrib { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--slate); line-height: 1.8; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; font-size: 14.5px; }
.kv dt { color: var(--slate); }

/* ── FOOTER ── */
footer { padding: 32px; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px; }
.footer-mark { font-family: 'Fraunces', Georgia, serif; font-size: 15px; }
.footer-note { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: var(--slate); line-height: 1.8; max-width: 70ch; }
.footer-links { display: flex; gap: 18px; list-style: none; font-size: 13px; }
.footer-links a { color: var(--slate); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 64px; }
  .gap-compare, .cred-grid, .price-compare, .tiers, .faq { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sample-inner { flex-direction: column; align-items: flex-start; }
  .report-head .section-inner { grid-template-columns: 1fr; align-items: start; }
  .disclosure { grid-template-columns: 1fr; }
  .disclosure dt { padding-top: 0; }
}
@media (max-width: 540px) {
  section, .hero, .report-head { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 18px 20px; }
  .nav-links { gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer { padding: 28px 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
}
