/* Terravo public site: one stylesheet for every page (2026-12-02, third pass: restrained, typographic, institutional).
   White pages, near-black ink, one very dark green used sparingly, 1px hairlines. No gradients, no shadows, no motion.
   Static only: the site's CSP is script-src 'none', img-src 'self'; no scripts, no data: images, no outside origins.

   BRAND TOKENS (--tv-*) come first; the app's pages use the same names (copy in
   terravo-ops/qa-1124/site-1202/brand-tokens.md). */

@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/fonts/Spectral-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* ---- color ---- */
  --tv-white: #FFFFFF;          /* page */
  --tv-stone: #F7F7F5;          /* the occasional quiet section, footer */
  --tv-ink: #111111;            /* headlines */
  --tv-text: #1A1A1A;           /* body text */
  --tv-text-2: #333333;         /* definitions, long copy */
  --tv-muted: #555555;          /* secondary text, intros, captions */
  --tv-rule: #E5E5E2;           /* hairlines */
  --tv-rule-strong: #CBCBC6;    /* table heads, input borders */
  --tv-green: #0F2E23;          /* the one accent: links, primary button, labels, cites */
  --tv-green-hover: #1C4636;    /* button hover */
  --tv-green-wash: #EEF3EF;     /* rare highlight behind a cited line */
  --tv-alert: #8A2E1C;          /* gaps, removed quotes (text only) */
  /* ---- type ---- */
  --tv-font-serif: "Spectral", Georgia, "Times New Roman", serif;     /* 600 only, upright, headlines */
  --tv-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;  /* 400, 700 */
  --tv-size-display: clamp(44px, 5.4vw, 74px);   /* h1 */
  --tv-size-h2: clamp(30px, 2.9vw, 40px);
  --tv-size-h3: 21px;
  --tv-size-lede: clamp(19px, 1.5vw, 21px);
  --tv-size-body: 17px;
  --tv-size-small: 14px;
  --tv-size-label: 12px;        /* uppercase, .1em tracking, bold */
  /* ---- shape ---- */
  --tv-radius: 3px;             /* buttons, the few boxed elements */
  --tv-hairline: 1px solid var(--tv-rule);
  /* ---- layout ---- */
  --tv-wrap: 1200px;
  --tv-gutter: clamp(20px, 4vw, 48px);
  --tv-section-space: clamp(72px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--tv-white); color: var(--tv-text); font: 400 var(--tv-size-body)/1.65 var(--tv-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
a { color: var(--tv-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(15, 46, 35, .35); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--tv-green); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tv-green); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--tv-wrap) + 2 * var(--tv-gutter)); margin: 0 auto; padding: 0 var(--tv-gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--tv-font-serif); font-weight: 600; color: var(--tv-ink); margin: 0; }
h1 { font-size: var(--tv-size-display); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--tv-size-h2); line-height: 1.12; letter-spacing: -.012em; }
h3 { font-size: var(--tv-size-h3); line-height: 1.3; letter-spacing: -.005em; }
.label { margin: 0 0 20px; font: 700 var(--tv-size-label)/1.3 var(--tv-font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tv-green); }
.lede { font-size: var(--tv-size-lede); line-height: 1.55; color: var(--tv-muted); max-width: 40ch; }
.small { font-size: var(--tv-size-small); line-height: 1.6; color: var(--tv-muted); }
.more { font-weight: 700; }

/* ---------- button: one per section, dark green ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--tv-radius); border: 1px solid var(--tv-green); background: var(--tv-green); color: #fff; font: 700 15px/1.2 var(--tv-font-sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--tv-green-hover); border-color: var(--tv-green-hover); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.act .small { margin: 0; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: var(--tv-hairline); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { font: 600 26px/1 var(--tv-font-serif); letter-spacing: -.015em; color: var(--tv-ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a:not(.btn) { color: var(--tv-ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tv-green); text-underline-offset: 6px; }
.nav .btn .short { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 7vw, 104px) 0 var(--tv-section-space); }
.hero h1 { font-size: clamp(44px, 4.6vw, 64px); line-height: 1.05; max-width: 13ch; margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hero .lede { margin: 0; }

/* ---------- the product, shown as a flat page of the summary ---------- */
.doc { margin: 0; border: var(--tv-hairline); background: #fff; font-size: 14.5px; line-height: 1.55; color: var(--tv-text); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 24px; border-bottom: var(--tv-hairline); font-size: 12.5px; color: var(--tv-muted); }
.doc-head .label { margin: 0; font-size: 11px; }
.doc-body { padding: 24px 24px 8px; }
.doc-case { font: 600 22px/1.25 var(--tv-font-serif); color: var(--tv-ink); }
.doc-meta { font-size: 12.5px; color: var(--tv-muted); }
.doc .doc-k { margin: 22px 0 8px; font: 700 11px/1.3 var(--tv-font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tv-muted); }
.doc .doc-meta { margin: 2px 0 0; }
.doc-q { font-weight: 700; margin: 0; }
.doc p { margin: 0; }
.cite { font: 700 11px/1 var(--tv-font-sans); letter-spacing: .03em; color: var(--tv-green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc table { width: 100%; border-collapse: collapse; }
.doc td { padding: 9px 0; border-top: var(--tv-hairline); vertical-align: baseline; }
.doc tr:last-child td { border-bottom: var(--tv-hairline); }
.doc td.d { width: 104px; padding-right: 14px; color: var(--tv-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc td.c { width: 84px; text-align: right; }
.doc td.alert { color: var(--tv-alert); font-weight: 700; }
.doc .hl { background: var(--tv-green-wash); }
.doc-val { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: 0; border-top: 1px solid var(--tv-ink); }
.doc-val dt, .doc-val dd { margin: 0; padding: 11px 0; border-bottom: var(--tv-hairline); display: flex; align-items: baseline; }
.doc-val dd { justify-content: flex-end; }
.doc-val dt { color: var(--tv-text-2); }
.doc-val dd { padding-left: 24px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-val dd.lead { font-size: 19px; color: var(--tv-ink); }
.doc .doc-note { margin-top: 10px; font-size: 12.5px; color: var(--tv-muted); }
.doc-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; margin-top: 18px; border-top: var(--tv-hairline); font-size: 12px; color: var(--tv-muted); }
.caption { margin: 12px 0 0; font-size: 13px; color: var(--tv-muted); }

/* ---------- sections ---------- */
.sec { padding: 0 0 var(--tv-section-space); }
.sec.stone { background: var(--tv-stone); padding-top: var(--tv-section-space); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: var(--tv-hairline); }
.stone .sec-grid { border-top: 0; padding-top: 0; }
.sec-num { display: block; margin: 0 0 14px; font: 700 13px/1 var(--tv-font-sans); letter-spacing: .08em; color: var(--tv-green); font-variant-numeric: tabular-nums; }
.sec-side { position: sticky; top: 104px; align-self: start; }
.sec-side h2 { max-width: 14ch; }
.intro { font-size: var(--tv-size-lede); line-height: 1.55; color: var(--tv-muted); margin: 0 0 36px; max-width: 46ch; }

/* definition lists: term left, one or two sentences right */
.terms { margin: 0; border-top: 1px solid var(--tv-ink); }
.terms > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 20px 0 22px; border-bottom: var(--tv-hairline); }
.terms dt { font-weight: 700; color: var(--tv-ink); }
.terms dd { margin: 0; color: var(--tv-text-2); }
.terms dd p { margin: 0 0 .6em; }
.terms dd p:last-child { margin: 0; }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tv-ink); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 22px 0 24px; border-bottom: var(--tv-hairline); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 13px/1.9 var(--tv-font-sans); letter-spacing: .08em; color: var(--tv-green); }
.steps b { color: var(--tv-ink); }
.steps span { color: var(--tv-text-2); }
.steps.plain li { grid-template-columns: 56px minmax(0, 1fr); }

/* a small fact table */
.facts { width: 100%; border-collapse: collapse; margin-top: 40px; font-variant-numeric: tabular-nums; }
.facts th, .facts td { text-align: left; padding: 14px 0; border-bottom: var(--tv-hairline); vertical-align: baseline; }
.facts th { font-weight: 400; color: var(--tv-muted); width: 40%; padding-right: 24px; }
.facts td { color: var(--tv-ink); font-weight: 700; }
.facts thead th { font: 700 var(--tv-size-label)/1.3 var(--tv-font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tv-muted); border-bottom: 1px solid var(--tv-ink); padding-top: 0; }
.facts td.cmp { font-weight: 400; color: var(--tv-text-2); }
.facts .big { font: 600 clamp(28px, 2.6vw, 36px)/1.1 var(--tv-font-serif); color: var(--tv-ink); white-space: nowrap; }

.sub-k { margin: 48px 0 12px; font: 700 var(--tv-size-label)/1.3 var(--tv-font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tv-muted); }
.areas { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; border-top: 1px solid var(--tv-ink); }
.areas li { padding: 12px 0; border-bottom: var(--tv-hairline); break-inside: avoid; color: var(--tv-ink); }

/* a quiet note with a single dark-green rule */
.note { margin: 36px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--tv-green); max-width: 60ch; }
.note b { display: block; color: var(--tv-ink); margin-bottom: 4px; }
.note p { margin: 0; color: var(--tv-text-2); }

/* questions */
.faq { border-top: 1px solid var(--tv-ink); }
.faq details { border-bottom: var(--tv-hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; font-weight: 700; color: var(--tv-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--tv-green); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--tv-green); text-underline-offset: 4px; }
.faq details p { margin: -4px 0 20px; color: var(--tv-text-2); max-width: 64ch; }

/* closing band */
.closing { background: var(--tv-stone); padding: var(--tv-section-space) 0; border-top: var(--tv-hairline); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; }
.closing h2 { font-size: clamp(34px, 3.6vw, 52px); max-width: 18ch; }
.closing p { margin: 16px 0 0; color: var(--tv-muted); max-width: 52ch; }
.closing .act { margin: 0; justify-content: flex-end; }

/* the large email address on the support page */
.contact { margin-top: 0; }
.contact .addr { display: inline-block; font: 600 clamp(26px, 2.6vw, 34px)/1.2 var(--tv-font-serif); color: var(--tv-green); margin: 0 0 10px; overflow-wrap: anywhere; }
.prose { max-width: 66ch; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; color: var(--tv-text-2); }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--tv-green); }

/* ---------- footer ---------- */
.site-foot { background: var(--tv-stone); border-top: var(--tv-hairline); color: var(--tv-muted); font-size: 14px; padding: 64px 0 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 40px; border-bottom: var(--tv-hairline); }
.foot-about .brand { display: inline-block; font-size: 24px; margin-bottom: 16px; }
.foot-about p { max-width: 50ch; margin: 0 0 10px; }
.foot-col h2 { font: 700 var(--tv-size-label)/1.3 var(--tv-font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tv-ink); margin: 6px 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--tv-text); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { padding: 28px 0 12px; border-bottom: var(--tv-hairline); columns: 2; column-gap: 48px; }
.foot-legal p { font-size: 12.5px; line-height: 1.6; margin: 0; padding-bottom: 12px; break-inside: avoid; }
.foot-base { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav .opt { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .sec-grid, .closing .wrap { grid-template-columns: minmax(0, 1fr); }
  .sec-side { position: static; }
  .sec-side h2 { max-width: 22ch; }
  .closing .act { justify-content: flex-start; }
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .site-head .wrap { height: 60px; gap: 16px; }
  .brand { font-size: 23px; }
  .nav { gap: 16px; }
  .nav a:not(.btn) { font-size: 14.5px; }
  .nav .btn .long { display: none; }
  .nav .btn .short { display: inline; }
  .nav .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 10.4vw, 46px); line-height: 1.06; margin-bottom: 20px; }
  .act .btn { flex: 1 1 100%; }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0 18px; }
  .steps li, .steps.plain li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0 20px; }
  .steps li > span { grid-column: 2; }
  .areas { columns: 1; }
  .doc { font-size: 13.5px; }
  .doc-head, .doc-foot { padding: 12px 16px; }
  .doc-body { padding: 18px 16px 4px; }
  .doc td.d { width: 84px; padding-right: 10px; }
  .doc td.c { width: 72px; }
  .doc-val dd.lead { font-size: 17px; }
  .facts th { width: 46%; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-legal { columns: 1; }
  .foot-base { flex-direction: column; }
}
@media (max-width: 400px) {
  /* the three-column results table on the check page fits a 320px phone (2026-12-03 QA: 27px too wide) */
  .facts th { padding-right: 12px; }
  .facts .big { font-size: 24px; }
}
