/* ==========================================================================
   Leteni — shared stylesheet
   Single source of truth for tokens, layout and components across all pages.
   No build step: plain CSS, custom properties, progressive enhancement.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------
   Source of truth: landing/design/tokens.css (redesign, Nov 2026).
   Section 1.1 is that file verbatim. Section 1.2 maps the pre-redesign
   variable names onto it so the ten inner pages restyle without a rewrite;
   remove an alias as each page is rebuilt against the new names.
   ------------------------------------------------------------------------ */

/* --- 1.1 Redesign tokens --- */
:root {
  /* Dark surfaces (header, hero, shared-layer band, CTA, footer) */
  --forest-900: #0B1513;            /* dark ground */
  --forest-800: #111F1C;            /* raised dark: panels, inputs on dark */
  --line-dark:   rgba(255,255,255,0.08);  /* dividers on dark */
  --line-dark-2: rgba(255,255,255,0.14);  /* chip / input borders on dark */
  --line-dark-3: rgba(255,255,255,0.22);  /* secondary button border on dark */

  --text-on-dark-strong: #F4F7F5;   /* headings on dark */
  --text-on-dark:        #EEF3F0;   /* body on dark */
  --text-on-dark-link:   #C9D6D1;   /* nav links, chips on dark */
  --text-on-dark-soft:   #A8B8B2;   /* ledes, secondary copy on dark */
  --text-on-dark-faint:  #7F928B;   /* labels, fine print on dark (>=4.5:1) */

  /* Accent: DARK SURFACES ONLY. #00C278 fails contrast as text on light;
     on light use --green-700 for text, links and icons. */
  --accent:            #00C278;
  --accent-tint-dark:  rgba(0,194,120,0.14);  /* status pill bg on dark */
  --accent-line-dark:  rgba(0,194,120,0.40);  /* highlighted band border on dark */

  /* Green on light */
  --green-700: #0A6B45;             /* text, links, icons, step markers on light */
  --green-800: #064D31;             /* link hover on light */
  --green-100: #E3F5EC;             /* "Available" / "Possible match" pill bg */
  --green-50:  #EEF5F0;             /* tint panel, "Coming soon" pill bg, early-access band */

  /* Light surfaces */
  --paper:   #FAFAF7;               /* page background */
  --paper-2: #F1F3EE;               /* alt section bg, neutral chips, table header */
  --surface: #FFFFFF;               /* cards */
  --neutral-pill: #E4E7E2;          /* "In development" pill bg */

  --line:          #E3E5E0;         /* card borders */
  --line-soft:     #ECEEE9;         /* row dividers inside cards */
  --line-strong:   #D9DDD5;         /* section rules, rail line, stat dividers */
  --line-dashed:   #DADDD6;         /* dashed divider above evidence strip */
  --line-dashed-2: #C9CEC6;         /* dashed border of "Not required here" card */

  --ink:        #0B1513;            /* primary text on light */
  --text-soft:  #4A5A55;            /* body copy on light */
  --text-faint: #5E6D68;            /* labels, meta (>=4.5:1 on --paper) */
  --text-disabled: #8C9893;         /* decorative only, never essential text */

  /* Type */
  --font-display: 'DM Serif Display', Georgia, serif;   /* 400 only */
  --font-sans:    'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-hero:      clamp(44px, 5.4vw, 72px);  /* lh 1.03, ls -0.02em, max 12ch */
  --fs-result-h1: clamp(36px, 4vw, 54px);    /* lh 1.06, ls -0.015em, max 20ch */
  --fs-cta-h2:    clamp(40px, 4.4vw, 64px);  /* lh 1.04 */
  --fs-h2:        clamp(36px, 3.6vw, 52px);  /* lh 1.08, ls -0.015em */
  --fs-h2-small:  clamp(32px, 3vw, 42px);    /* result page section heading */
  --fs-h3-serif:  clamp(28px, 2.4vw, 34px);  /* lh 1.12 */
  --fs-product:   30px;
  --fs-stat:      72px;                      /* lh 1 */
  --fs-step:      20px;                      /* rail step titles, sans 600 */
  --fs-lede-lg:   19px;                      /* hero lede */
  --fs-lede:      17px;
  --fs-body:      16px;                      /* lh 1.6 */
  --fs-small:     15px;
  --fs-meta:      14px;
  --fs-label:     13px;
  --fs-mono-label: 12px;                     /* uppercase, ls 0.06em */

  /* Layout & spacing */
  --container:   1200px;
  --gutter:      clamp(20px, 4vw, 40px);     /* container padding-inline */
  --section-y:   clamp(80px, 9vw, 128px);    /* light section padding-block */
  --nav-h:       80px;
  --card-pad-lg: clamp(28px, 3.4vw, 48px);
  --space-1: 8px;  --space-2: 12px; --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 56px; --space-7: 64px; --space-8: 72px;

  /* Shape */
  --r-chip:  6px;
  --r-8:     8px;     /* input chips on dark (--r-sm is taken, at 4px) */
  --r-ctl:   10px;    /* buttons, inputs */
  --r-card:  14px;    /* requirement cards */
  --r-panel: 16px;    /* panels, aside cards */
  --r-hero:  18px;    /* example result card */
  --r-xl:    20px;    /* audience cards, shared-layer band */
  --r-pill:  999px;

  --shadow-float: 0 30px 80px rgba(0,0,0,0.45);  /* ONLY the example result card */

  /* Controls */
  --tap-min:    44px;  /* every interactive element */
  --btn-h:      48px;  /* standard button */
  --btn-h-lg:   52px;  /* CTA band / early-access submit */
  --focus-ring: 2px solid var(--accent);  /* outline-offset: 2px */
}

/* --- 1.2 Legacy aliases -------------------------------------------------
   The nine marked (spec) come from landing/design/tokens.css section 9. The
   rest are extensions: names the old stylesheet uses that section 9 does not
   cover, mapped to the closest token by role so no page ends up half-new.
   Four old names have no counterpart in the new palette and keep their own
   values below: --teal-600, --amber-700, --amber-100, --measure. The three
   --shadow-* values also stay: the new design is flat, and only the hero's
   example result card carries a shadow (--shadow-float).
   ------------------------------------------------------------------------ */
:root {
  /* Dark ground */
  --ink-900: var(--forest-900);     /* spec */
  --ink-800: var(--forest-900);     /* spec */
  --ink-700: var(--forest-800);     /* spec */
  --ink-600: var(--forest-800);     /* extension: raised dark surface */
  --ink-500: #2A464F;               /* unused in CSS; left as-is */

  /* Green */
  --green-600:  var(--green-700);   /* spec */
  --green-500:  var(--green-700);   /* spec */
  --green-300:  var(--accent);      /* spec — only ever used on dark */
  --green-900:  #0B3B26;            /* no counterpart: --green-800 is a link-hover
                                       text colour, not a dark surface. Aliasing it
                                       dropped --green-300 labels on this background
                                       to 4.25:1. */
  --green-tint: var(--green-50);    /* extension */
  --sage-100:   var(--green-50);    /* spec */
  --sage-600:   #4F7E70;            /* unused in CSS; left as-is */
  --sage-400:   #7FA79A;            /* unused in CSS; left as-is */

  /* Surfaces and rules */
  --paper-3:     var(--line-strong);  /* extension: only ever used as a border */
  --rule:        var(--line-strong);  /* extension */
  --rule-dark:   var(--line-dark);    /* extension */
  --rule-dark-2: var(--line-dark-2);  /* extension */

  /* Text */
  --text:              var(--ink);                  /* spec */
  --text-invert:       var(--text-on-dark);         /* extension */
  --text-invert-soft:  var(--text-on-dark-soft);    /* extension */
  --text-invert-faint: var(--text-on-dark-faint);   /* extension */

  /* Type */
  --sans: var(--font-sans);         /* spec */
  --mono: var(--font-mono);         /* spec */

  /* Shape */
  --r:     var(--r-ctl);            /* extension: 7px -> 10px */
  --r-lg:  var(--r-card);           /* extension: 12px -> 14px */
  --r-sm:  4px;                     /* unchanged: --r-8 is the new 8px chip radius */

  /* No counterpart in the new palette */
  --teal-600:  #2C6A6B;
  --amber-700: #8A5B12;
  --amber-100: #F6EEDD;
  --measure:   66ch;

  --shadow-sm: 0 1px 2px rgba(10,20,25,0.05);
  --shadow:    0 2px 10px rgba(10,20,25,0.06), 0 1px 2px rgba(10,20,25,0.04);
  --shadow-lg: 0 18px 44px rgba(10,20,25,0.10), 0 2px 8px rgba(10,20,25,0.05);
}

/* --- 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-700); }

::selection { background: var(--green-100); color: var(--green-900); }

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--green-300); }

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 300;
  transform: translateY(-120%);
  background: var(--ink-800); color: var(--text-invert);
  padding: 0.7rem 1.1rem; font-size: 0.85rem; font-weight: 500;
  text-decoration: none; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { transform: translateY(0); color: var(--text-invert); }
/* It slides down over the dark header, where the page's default green ring is
   almost invisible. The accent is the dark-surface ring (tokens section 2). */
.skip-link:focus-visible { outline-color: var(--accent); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 820px; }

/* --- 3. Typography ----------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.9rem;
}
.on-dark .eyebrow { color: var(--green-300); }

.eyebrow--pill {
  display: inline-block;
  border: 1px solid #CBE0D3;
  background: var(--green-tint);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.4rem;
}
.on-dark .eyebrow--pill {
  border-color: var(--rule-dark-2);
  background: rgba(88,165,133,0.10);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--text);
  text-wrap: balance;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-invert); }

h1, .h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.65rem, 3.1vw, 2.35rem); }
h3, .h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.3; }
h4, .h4 { font-size: 1rem; letter-spacing: -0.012em; line-height: 1.4; }

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  font-weight: 400;
  line-height: 1.62;
  color: var(--text-soft);
  max-width: var(--measure);
}
.on-dark .lede { color: var(--text-invert-soft); }

.prose > * + * { margin-top: 1rem; }
.prose p { max-width: var(--measure); color: var(--text-soft); }
.prose strong { color: var(--text); font-weight: 600; }
.on-dark .prose p { color: var(--text-invert-soft); }
.on-dark .prose strong { color: var(--text-invert); }

.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: -0.01em; }
.small { font-size: 0.875rem; }

/* --- 4. Header / navigation -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251,250,247,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: 1120px; margin: 0 auto; height: var(--nav-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand-logo {
  height: 30px; width: auto; display: block;
}
@media (max-width: 420px) { .brand-logo { height: 26px; } }

.nav-spacer { flex: 1 1 auto; }

.nav-list {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none;
}
.nav-link {
  display: inline-block;
  font-size: 0.855rem; font-weight: 450;
  color: var(--text-soft); text-decoration: none;
  padding: 0.45rem 0.7rem; border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav-link:hover { color: var(--text); background: var(--paper-2); }
.nav-link[aria-current="page"] { color: var(--green-700); font-weight: 550; }

/* dropdown */
.nav-group { position: relative; }
.nav-toggle-btn {
  font: inherit; font-size: 0.855rem; font-weight: 450;
  color: var(--text-soft); background: none; border: 0; cursor: pointer;
  padding: 0.45rem 0.7rem; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color .15s, background-color .15s;
}
.nav-toggle-btn:hover { color: var(--text); background: var(--paper-2); }
.nav-toggle-btn svg { width: 10px; height: 10px; transition: transform .18s; }
.nav-toggle-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 278px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 0.4rem; list-style: none;
  display: none;
}
.nav-menu[data-open="true"] { display: block; }
.nav-menu a {
  display: block; text-decoration: none;
  padding: 0.55rem 0.65rem; border-radius: var(--r-sm);
  color: var(--text);
}
.nav-menu a:hover { background: var(--paper-2); }
.nav-menu .nm-title { font-size: 0.875rem; font-weight: 550; }
.nav-menu .nm-desc { display: block; font-size: 0.775rem; color: var(--text-faint); line-height: 1.45; margin-top: 1px; }

.nav-mobile-btn {
  display: none;
  width: 38px; height: 34px; flex-shrink: 0;
  background: none; border: 1px solid var(--rule); border-radius: var(--r-sm);
  cursor: pointer; padding: 0; color: var(--text);
}
.nav-mobile-btn span {
  display: block; width: 16px; height: 1.5px; margin: 3px auto;
  background: currentColor; border-radius: 2px;
}

.nav-drawer {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
}
.nav-drawer[data-open="true"] { display: block; }
.nav-drawer ul { list-style: none; }
/* :not(.btn) so the drawer's own CTA keeps its button colours */
.nav-drawer a:not(.btn) {
  display: block; text-decoration: none; color: var(--text);
  font-size: 0.95rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.nav-drawer .nd-group-label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 1rem 0 0.35rem;
}
.nav-drawer .btn { width: 100%; margin-top: 1.1rem; }

@media (max-width: 920px) {
  .nav-list, .nav > .btn { display: none; }
  .nav-mobile-btn { display: block; }
}

/* --- 5. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 550;
  letter-spacing: -0.005em;
  padding: 0.68rem 1.25rem;
  border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }

.btn--secondary {
  background: #fff; color: var(--text); border-color: var(--rule);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--text-faint); color: var(--text); }

.btn--onDark { background: var(--green-500); color: #fff; }
.btn--onDark:hover { background: var(--green-300); color: var(--ink-900); }

.btn--outlineDark {
  background: transparent; color: var(--text-invert);
  border-color: var(--rule-dark-2);
}
.btn--outlineDark:hover { border-color: var(--green-300); color: var(--text-invert); }

.btn--sm { font-size: 0.82rem; padding: 0.5rem 0.9rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.89rem; font-weight: 500; text-decoration: none;
  color: var(--green-600);
}
.textlink:hover { gap: 0.6rem; }
.textlink::after { content: '\2192'; font-family: var(--mono); }
.on-dark .textlink { color: var(--green-300); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* --- 6. Sections ------------------------------------------------------- */
.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--sage { background: var(--sage-100); }
.section--dark { background: var(--ink-800); }
.section--dark-900 { background: var(--ink-900); }
.section-divider { border-top: 1px solid var(--rule); }

.on-dark { color: var(--text-invert); }
/* :not(.btn) so buttons on dark sections keep their own label colour */
.on-dark a:not(.btn) { color: var(--green-300); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin-top: 0.9rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* --- 7. Hero ----------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 15% 0%, #000 10%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 15% 0%, #000 10%, transparent 85%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { max-width: 21ch; }
.hero .lede { margin-top: 1.25rem; max-width: 60ch; }
.hero .btn-row { margin-top: 2rem; }

/* Light hero variant — same layout/grid-watermark treatment as the default
   dark .hero, but on a paper background with dark-on-light text (no .on-dark). */
.hero--light {
  background: var(--paper-2);
}
.hero--light::before {
  background-image:
    linear-gradient(rgba(10,20,25,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,25,0.05) 1px, transparent 1px);
}

.hero-split {
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr);
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }

.hero--page { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.hero--page h1 { max-width: 26ch; }

/* --- 8. Grids ---------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--sidebar { grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: clamp(1.5rem,4vw,3rem); }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --- 9. Cards ---------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--tint { background: var(--paper-2); border-color: var(--paper-3); }
.on-dark .card {
  background: var(--ink-700); border-color: var(--rule-dark); box-shadow: none;
}
.on-dark .card--tint { background: var(--ink-600); border-color: var(--rule-dark); }

a.card { text-decoration: none; color: inherit; transition: border-color .16s, transform .16s, box-shadow .16s; }
a.card:hover { border-color: var(--green-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.on-dark a.card:hover { border-color: var(--green-500); }

.card-kicker {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 0.7rem;
}
.on-dark .card-kicker { color: var(--text-invert-faint); }

.card h3 { margin-bottom: 0.55rem; }
.card > p { color: var(--text-soft); font-size: 0.93rem; }
.on-dark .card > p { color: var(--text-invert-soft); }
.card > * + * { margin-top: 0.75rem; }
.card-foot { margin-top: auto; padding-top: 1.1rem; }

.card-question {
  font-size: 1rem; font-weight: 550; color: var(--green-700);
  letter-spacing: -0.015em; line-height: 1.4;
}
.on-dark .card-question { color: var(--green-300); }

/* definition rows used inside cards: inputs / outputs */
.kv { display: grid; gap: 0.6rem; }
.kv-row { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 0.75rem; align-items: baseline; }
.kv-key {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint);
  padding-top: 0.22rem;
}
.kv-val { font-size: 0.89rem; color: var(--text-soft); }
.on-dark .kv-key { color: var(--text-invert-faint); }
.on-dark .kv-val { color: var(--text-invert-soft); }
@media (max-width: 480px) {
  .kv-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* feature list with small square markers */
.ticks { list-style: none; display: grid; gap: 0.5rem; }
.ticks li {
  position: relative; padding-left: 1.3rem;
  font-size: 0.9rem; color: var(--text-soft); line-height: 1.55;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.58em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--green-300);
}
.on-dark .ticks li { color: var(--text-invert-soft); }

/* --- 10. Numbered steps / flow ----------------------------------------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 1.1rem; }
.steps > li {
  counter-increment: s;
  display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 0.9rem;
  align-items: start;
}
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  color: var(--green-600);
  border: 1px solid #CBE0D3; background: var(--green-tint);
  border-radius: var(--r-sm);
  height: 26px; display: grid; place-items: center;
}
.on-dark .steps > li::before {
  color: var(--green-300); border-color: var(--rule-dark-2); background: rgba(88,165,133,0.10);
}
.steps h4 { margin-bottom: 0.2rem; }
.steps p { font-size: 0.9rem; color: var(--text-soft); }
.on-dark .steps p { color: var(--text-invert-soft); }

/* horizontal pipeline that wraps on small screens */
.flow {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.55rem;
  list-style: none;
}
.flow > li {
  flex: 1 1 155px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.85rem 0.95rem;
  font-size: 0.84rem; line-height: 1.45; color: var(--text-soft);
}
.flow > li .flow-n {
  display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem;
}
.flow > li strong { display: block; color: var(--text); font-weight: 550; font-size: 0.89rem; }
.flow > li.is-accent { background: var(--green-900); border-color: var(--green-900); color: var(--green-300); }
.flow > li.is-accent strong { color: #fff; }
.flow > li.is-accent .flow-n { color: var(--green-300); }
.on-dark .flow > li { background: var(--ink-700); border-color: var(--rule-dark); color: var(--text-invert-soft); }
.on-dark .flow > li strong { color: var(--text-invert); }
.on-dark .flow > li .flow-n { color: var(--text-invert-faint); }

/* --- 11. Diagram: shared data foundation ------------------------------- */
.stackdiag { display: grid; gap: 0.8rem; }
.stackdiag-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 0.6rem;
}
.stackdiag-cell {
  border: 1px solid var(--rule); background: #fff; border-radius: var(--r);
  padding: 0.8rem 0.9rem;
}
.sd-label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 0.25rem;
}
.sd-text { font-size: 0.86rem; font-weight: 500; color: var(--text); line-height: 1.4; }
.stackdiag-arrow {
  text-align: center; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.stackdiag-band {
  border-radius: var(--r); padding: 1rem 1.1rem; text-align: center;
  background: var(--green-900); color: #fff;
}
.stackdiag-band .sd-label { color: var(--green-300); }
.stackdiag-band .sd-text { color: #fff; font-size: 0.95rem; font-weight: 550; }
.on-dark .stackdiag-cell { background: var(--ink-700); border-color: var(--rule-dark); }
.on-dark .stackdiag-cell .sd-text { color: var(--text-invert); }
.on-dark .stackdiag-cell .sd-label, .on-dark .stackdiag-arrow { color: var(--text-invert-faint); }
.on-dark .stackdiag-band { background: var(--green-700); }

/* --- 12. Mock data tables / panels ------------------------------------- */
.panel {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.on-dark .panel { background: var(--ink-700); border-color: var(--rule-dark); box-shadow: none; }

.panel-bar {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  background: var(--paper-2); border-bottom: 1px solid var(--rule);
}
.on-dark .panel-bar { background: var(--ink-600); border-color: var(--rule-dark); }
.pb-title {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-faint);
}
.on-dark .pb-title { color: var(--text-invert-soft); }
.pb-right { margin-left: auto; }
.panel-body { padding: 0.95rem 1.1rem 1.1rem; }

/* Grid and flex children default to min-width:auto, which lets a wide table
   push past its scroll container. Opt every panel-like box out of that. */
.panel, .card, .formcard, .stackdiag-cell, .flow > li { min-width: 0; }

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.data {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: -0.01em;
  min-width: 440px;
}
table.data caption {
  caption-side: top; text-align: left;
  font-family: var(--sans); font-size: 0.78rem; color: var(--text-faint);
  padding-bottom: 0.6rem;
}
table.data th, table.data td {
  padding: 0.48rem 0.6rem; text-align: left;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
table.data thead th {
  font-weight: 600; color: var(--text-faint); font-size: 0.66rem;
  letter-spacing: 0.07em; text-transform: uppercase;
}
table.data td { color: var(--text-soft); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tfoot td { font-weight: 600; color: var(--text); border-top: 1px solid var(--rule); border-bottom: 0; }
.on-dark table.data caption { color: var(--text-invert-faint); }
.on-dark table.data th, .on-dark table.data td { border-color: var(--rule-dark); }
.on-dark table.data thead th { color: var(--text-invert-faint); }
.on-dark table.data td { color: var(--text-invert-soft); }
.on-dark table.data tfoot td { color: var(--text-invert); border-color: var(--rule-dark-2); }

/* status tags inside tables and cards */
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.14rem 0.45rem; border-radius: 3px;
  border: 1px solid var(--rule); color: var(--text-faint); background: var(--paper-2);
  white-space: nowrap;
}
.tag--ok    { color: var(--green-700); background: var(--green-100); border-color: #CBE0D3; }
.tag--check { color: var(--amber-700); background: var(--amber-100); border-color: #E7D6B4; }
.tag--none  { color: var(--text-faint); }
.tag--live  { color: var(--green-700); background: var(--green-100); border-color: #CBE0D3; }
.tag--dev   { color: var(--teal-600); background: var(--sage-100); border-color: #CFDEDA; }
.on-dark .tag { background: var(--ink-600); border-color: var(--rule-dark-2); color: var(--text-invert-soft); }
.on-dark .tag--ok, .on-dark .tag--live { color: var(--green-300); background: rgba(88,165,133,0.12); }
.on-dark .tag--check { color: #DCBE7C; background: rgba(220,190,124,0.12); }

/* --- 12b. Product screenshots ------------------------------------------ */
.shot {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--rule); background: var(--paper-2);
}
.on-dark .shot { border-color: var(--rule-dark); box-shadow: none; background: var(--ink-700); }
.on-dark .shot figcaption {
  background: var(--ink-600); border-color: var(--rule-dark); color: var(--text-invert-soft);
}
/* Tall captures: show the top of the frame rather than squashing it. */
.shot--crop img { max-height: 430px; object-fit: cover; object-position: top center; }
@media (max-width: 700px) { .shot--crop img { max-height: 320px; } }

/* Wide captures (dense tables) shrink to an unreadable strip on a phone.
   Keep a legible minimum width and let the figure scroll instead. */
.shot-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 820px) {
  .shot-scroll img { min-width: 760px; }
}

/* --- 13. Notes, callouts, sources -------------------------------------- */
.note {
  border-left: 2px solid var(--green-300);
  background: var(--paper-2);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.89rem; color: var(--text-soft);
}
.note strong { color: var(--text); }
.note > * + * { margin-top: 0.6rem; }
.on-dark .note { background: var(--ink-700); color: var(--text-invert-soft); border-left-color: var(--green-500); }
.on-dark .note strong { color: var(--text-invert); }

.note--caution { border-left-color: var(--amber-700); background: var(--amber-100); }

.fineprint {
  font-size: 0.78rem; line-height: 1.55; color: var(--text-faint);
  max-width: 76ch;
}
.on-dark .fineprint { color: var(--text-invert-faint); }

.sourcelist { list-style: none; display: grid; gap: 0.75rem; }
.sourcelist li { font-size: 0.88rem; color: var(--text-soft); }
.src-date {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 0.15rem;
}

/* --- 14. FAQ (details/summary) ----------------------------------------- */
.faq { display: grid; gap: 0.6rem; }
.faq details {
  border: 1px solid var(--rule); border-radius: var(--r); background: #fff;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem; font-weight: 550; color: var(--text);
  display: flex; align-items: center; gap: 0.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto;
  font-family: var(--mono); font-size: 1.05rem; color: var(--text-faint); line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details[open] summary { padding-bottom: 0.35rem; }
.faq-body { padding: 0 1.1rem 1.1rem; }
.faq-body p { font-size: 0.9rem; color: var(--text-soft); max-width: var(--measure); }
.faq-body > * + * { margin-top: 0.7rem; }

/* --- 15. Fact strip (label-led, no invented statistics) ---------------- */
.factstrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px,1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
}
.factstrip > div { background: #fff; padding: 1.1rem 1.15rem; }
.f-val {
  font-family: var(--mono); font-size: 1.3rem; font-weight: 600;
  color: var(--green-700); letter-spacing: -0.02em; display: block;
}
.f-lab { font-size: 0.82rem; color: var(--text-soft); margin-top: 0.3rem; display: block; line-height: 1.45; }
.on-dark .factstrip { background: var(--rule-dark); border-color: var(--rule-dark); }
.on-dark .factstrip > div { background: var(--ink-700); }
.on-dark .f-val { color: var(--green-300); }
.on-dark .f-lab { color: var(--text-invert-soft); }

/* --- 16. Contact ------------------------------------------------------- */
.formcard {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(1rem, 2.5vw, 1.5rem); box-shadow: var(--shadow);
}
.tally-embed { width: 100%; min-height: 620px; border: 0; display: block; }

/* --- 16b. Consent banner ----------------------------------------------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--ink-800);
  border-top: 1px solid var(--rule-dark-2);
  box-shadow: 0 -10px 34px rgba(10,20,25,0.28);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) calc(1rem + env(safe-area-inset-bottom, 0px));
}
.consent[hidden] { display: none; }
.consent-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.consent-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text-invert);
  margin-bottom: 0.2rem; letter-spacing: -0.015em;
}
.consent-text {
  font-size: 0.85rem; line-height: 1.55; color: var(--text-invert-soft); max-width: 72ch;
}
.consent-text a { color: var(--green-300); }
.consent-actions { margin-left: auto; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent :focus-visible { outline-color: var(--green-300); }

@media (max-width: 680px) {
  .consent-actions { margin-left: 0; width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; }
}

/* link-styled button, for controls that act rather than navigate */
.linkbtn {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.footer-bottom .linkbtn { font-size: 0.78rem; color: var(--text-invert-faint); text-decoration: none; }
.footer-bottom .linkbtn:hover { color: var(--text-invert-soft); text-decoration: underline; }

/* --- 17. Footer -------------------------------------------------------- */
.site-footer {
  background: var(--ink-900); color: var(--text-invert-soft);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
}
.footer-top {
  display: grid; grid-template-columns: minmax(0,1.3fr) repeat(3, minmax(0,1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 2rem; border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--text-invert); }
.site-footer .brand-logo { height: 34px; }
.footer-blurb { font-size: 0.85rem; line-height: 1.6; color: var(--text-invert-faint); max-width: 36ch; margin-top: 0.85rem; }
.footer-col h2 {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-invert-faint); margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-invert-soft); text-decoration: none; }
.footer-col a:hover { color: var(--text-invert); text-decoration: underline; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center;
  font-size: 0.78rem; color: var(--text-invert-faint);
}
.fb-right { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-invert-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-invert-soft); text-decoration: underline; }

/* --- 18. Utilities ----------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.stack-sm > * + * { margin-top: 0.6rem; }
.stack    > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* reveal-on-scroll (progressive: visible by default when JS is absent) */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   REDESIGN (Nov 2026) — homepage components
   Built from landing/design/reference/homepage.html, driven by the tokens in
   section 1.1. Prefix: .rd-

   These classes are additive. The pre-redesign components above are still in
   use by the ten inner pages; delete an old rule only when the last page
   using it has been rebuilt.
   ========================================================================== */

/* --- Layout primitives --- */
.rd-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rd-section { padding-block: var(--section-y); }
.rd-band-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.rd-eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--green-700);
}
.rd-eyebrow--on-dark { color: var(--accent); }

.rd-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.rd-h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3-serif);
  line-height: 1.12;
  color: var(--ink);
}

/* --- Buttons and links --- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding-inline: 22px;
  border: 0;
  border-radius: var(--r-ctl);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.rd-btn--lg {
  min-height: var(--btn-h-lg);
  padding-inline: 24px;
  font-size: var(--fs-body);
}
.rd-btn--accent  { background: var(--accent); color: var(--forest-900); font-weight: 600; }
.rd-btn--dark    { background: var(--forest-900); color: var(--text-on-dark-strong); }
.rd-btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.rd-btn--ghost-dark {
  background: transparent;
  color: var(--text-on-dark-strong);
  border: 1px solid var(--line-dark-3);
}
.rd-btn--accent:hover  { background: #00AE6B; color: var(--forest-900); }
/* Locked while a check is running, so a second click cannot queue a second
   request behind the first. Pointer events stay on so the cursor says why. */
.rd-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.rd-btn[disabled]:hover { background: var(--accent); }
.rd-btn--dark:hover    { background: var(--forest-800); color: var(--text-on-dark-strong); }
.rd-btn--outline:hover { background: var(--forest-900); color: var(--text-on-dark-strong); }
.rd-btn--ghost-dark:hover { border-color: var(--accent); color: var(--text-on-dark-strong); }

.rd-textlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--tap-min);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--green-700);
  text-decoration: none;
}
.rd-textlink:hover { color: var(--green-800); text-decoration: underline; }

.rd-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fs-label);
  color: var(--text-on-dark-faint);
  cursor: pointer;
}
.rd-linkbtn:hover { color: var(--text-on-dark-link); }

/* --- Dark surfaces: focus ring and link colour --- */
.rd-header :focus-visible,
.rd-footer :focus-visible,
.rd-layer :focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* ==========================================================================
   1. HEADER + HERO (dark)
   ========================================================================== */

.rd-header {
  background: var(--forest-900);
  color: var(--text-on-dark);
}

.rd-topbar {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
}
.rd-brand { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.rd-brand img { display: block; height: 30px; width: auto; }

.rd-navwrap { margin-left: auto; }
.rd-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rd-nav__item { position: relative; }

.rd-nav__btn,
.rd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--tap-min);
  padding-inline: 14px;
  background: transparent;
  border: 0;
  border-radius: var(--r-8);
  font: inherit;
  font-size: var(--fs-small);
  color: var(--text-on-dark-link);
  text-decoration: none;
  cursor: pointer;
}
.rd-nav__btn:hover,
.rd-nav__link:hover { color: var(--text-on-dark-strong); }
.rd-nav__btn svg { transition: transform 0.15s ease; }
.rd-nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown panels stay white, per design/README.md section 4. */
.rd-nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 300px;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}
.rd-nav__menu[data-open="false"] { display: none; }
.rd-nav__menu a {
  display: block;
  padding: 10px var(--space-2);
  border-radius: var(--r-ctl);
  color: var(--ink);
  text-decoration: none;
}
.rd-nav__menu a:hover { background: var(--paper-2); }
.rd-nav__menu .rd-nm-title { display: block; font-size: var(--fs-small); font-weight: 600; }
.rd-nav__menu .rd-nm-desc  { display: block; margin-top: 2px; font-size: var(--fs-label); color: var(--text-soft); }

.rd-burger {
  display: none;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-8);
  cursor: pointer;
}
.rd-burger span[aria-hidden] {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-on-dark-link);
}

/* Drawer (below 920px) */
.rd-drawer {
  display: none;
  padding: var(--space-4) var(--gutter) var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}
.rd-drawer[data-open="true"] { display: block; }
.rd-drawer__label {
  margin: var(--space-4) 0 var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}
.rd-drawer__label:first-child { margin-top: 0; }
.rd-drawer ul { list-style: none; margin: 0; padding: 0; }
.rd-drawer ul a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  font-size: var(--fs-body);
  color: var(--text-on-dark-link);
  text-decoration: none;
}
.rd-drawer ul a:hover { color: var(--text-on-dark-strong); }
.rd-drawer .rd-btn { margin-top: var(--space-4); }

@media (max-width: 919px) {
  .rd-navwrap,
  .rd-topbar > .rd-btn { display: none; }
  .rd-burger { display: flex; }
}
@media (min-width: 920px) {
  .rd-drawer { display: none !important; }
}

/* --- Hero --- */
.rd-hero {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
}
.rd-hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.rd-hero__main { flex: 1 1 520px; min-width: 0; }
.rd-hero__aside { flex: 1 1 420px; min-width: 0; }

.rd-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: var(--fs-meta);
  color: var(--text-on-dark-soft);
  letter-spacing: 0.01em;
}
.rd-status__dot {
  width: var(--space-1);
  height: var(--space-1);
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.rd-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--text-on-dark-strong);
  max-width: 12ch;
}
.rd-hero__lede {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-lede-lg);
  line-height: 1.6;
  color: var(--text-on-dark-soft);
  max-width: 50ch;
}

/* --- Check form --- */
.rd-form {
  margin: var(--space-5) 0 0;
  background: var(--forest-800);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-panel);
  padding: 20px;
}
.rd-form__label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-on-dark-soft);
  margin-bottom: 10px;
}
.rd-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--forest-900);
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-ctl);
  padding: 14px var(--space-3);
  font: inherit;
  font-size: var(--fs-body);
  line-height: 1.5;
  resize: vertical;
}
.rd-form__input::placeholder { color: var(--text-on-dark-faint); }
.rd-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.rd-form__note { font-size: var(--fs-meta); color: var(--text-on-dark-faint); }

.rd-examples {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}
.rd-examples__label {
  font-size: var(--fs-label);
  color: var(--text-on-dark-faint);
  margin-right: 4px;
}
.rd-chip {
  min-height: var(--tap-min);
  padding-inline: var(--space-3);
  background: transparent;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-meta);
  color: var(--text-on-dark-link);
  cursor: pointer;
}
.rd-chip:hover { border-color: var(--accent-line-dark); color: var(--text-on-dark-strong); }

/* --- Example result card (static illustration) --- */
.rd-exr__head {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
  color: var(--text-on-dark-faint);
}
.rd-exr__rule { flex: 1; height: 1px; background: rgba(255,255,255,0.10); }

.rd-exr {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-hero);
  padding: 28px;
  box-shadow: var(--shadow-float);
}
.rd-exr__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.rd-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px var(--space-2);
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 500;
}
.rd-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-700);
  display: inline-block;
}
.rd-code {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  color: var(--text-faint);
}
.rd-exr__title {
  margin: 18px 0 4px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
  color: var(--ink);
}
.rd-exr__sub { margin: 0; font-size: var(--fs-meta); color: var(--text-faint); }
.rd-exr__note { margin: 18px 0 0; font-size: var(--fs-label); color: var(--text-faint); }

.rd-rail { list-style: none; margin: 22px 0 0; padding: 0; }
.rd-rail__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.rd-rail__row--highlight {
  padding: 13px 14px;
  margin: 4px -14px 0;
  background: var(--green-50);
  border-top: 0;
  border-radius: var(--r-ctl);
}
.rd-rail__label { flex: 1; font-size: var(--fs-small); font-weight: 500; }
.rd-rail__row--highlight .rd-rail__label { font-weight: 600; }
.rd-rail__meta { font-size: var(--fs-label); color: var(--text-faint); }
.rd-rail__meta--done { color: var(--green-700); }
.rd-rail__meta--soon { color: var(--green-700); font-weight: 500; }

.rd-mark {
  width: var(--space-4);
  height: var(--space-4);
  box-sizing: border-box;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rd-mark--done    { background: var(--green-700); color: #FFFFFF; }
.rd-mark--pending { border: 1.5px solid #A9B3AF; }
.rd-mark--doc     { border-radius: var(--r-chip); background: var(--forest-900); color: var(--accent); }

/* --- How it works --- */
.rd-how {
  margin-top: clamp(56px, 6vw, 88px);
  padding: 36px 0 44px;
  border-top: 1px solid var(--line-dark);
}
.rd-how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.rd-how__item { flex: 1 1 260px; min-width: 0; }
.rd-how__n {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.rd-how__title {
  display: block;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-on-dark-strong);
}
.rd-how__text {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--text-on-dark-soft);
}
.rd-disclaimer {
  margin: 32px 0 0;
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--text-on-dark-faint);
  max-width: 88ch;
}

/* ==========================================================================
   2. TWO AUDIENCES
   ========================================================================== */

.rd-aud {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.rd-aud__card {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--card-pad-lg);
}
.rd-aud__kicker { margin: 0; font-size: var(--fs-meta); color: var(--text-faint); }
.rd-aud__card .rd-h3 { margin-top: var(--space-2); }
.rd-aud__lede {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-body);
  color: var(--text-soft);
  max-width: 48ch;
}
.rd-aud__foot { margin-top: auto; padding-top: 32px; }

.rd-numlist { list-style: none; margin: 32px 0 0; padding: 0; }
.rd-numlist__item {
  display: grid;
  grid-template-columns: var(--tap-min) minmax(0, 1fr);
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}
.rd-numlist__item:last-child { border-bottom: 1px solid var(--line-soft); }
.rd-numlist__n {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--green-700);
  padding-top: 2px;
}
.rd-numlist__title { display: block; font-size: var(--fs-body); font-weight: 600; }
.rd-numlist__text {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--text-soft);
}

/* ==========================================================================
   3. PRODUCTS + SHARED LAYER
   ========================================================================== */

.rd-prodhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-7);
}
.rd-prodhead__main { flex: 1 1 480px; min-width: 0; }
.rd-prodhead__lede {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
  font-size: var(--fs-lede);
  color: var(--text-soft);
  max-width: 46ch;
}

.rd-prods {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: 48px var(--space-5);
}
.rd-prod {
  flex: 1 1 300px;
  min-width: 0;
  border-top: 2px solid var(--forest-900);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
}
.rd-prod__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.rd-prod__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-product);
  line-height: 1.1;
}
.rd-statuspill {
  padding: 3px 10px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 500;
}
.rd-statuspill--dev { background: var(--neutral-pill); color: var(--text-soft); }
.rd-prod__tag {
  margin: 14px 0 0;
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.4;
}
.rd-prod__text { margin: var(--space-2) 0 0; font-size: var(--fs-small); color: var(--text-soft); }
.rd-out {
  margin-top: 22px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-strong);
}
.rd-monolabel {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rd-out__text { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--ink); }
.rd-prod .rd-textlink { margin-top: 22px; }

/* --- Shared-layer band --- */
.rd-layer {
  margin-top: var(--space-8);
  background: var(--forest-900);
  color: var(--text-on-dark);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.6vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
}
.rd-layer__copy { flex: 1 1 340px; min-width: 0; }
.rd-layer__copy .rd-h3 { color: var(--text-on-dark-strong); max-width: 18ch; }
.rd-layer__lede {
  margin: 18px 0 0;
  font-size: var(--fs-small);
  color: var(--text-on-dark-soft);
  max-width: 44ch;
}
.rd-layer__flow {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.rd-layer__flow .rd-monolabel { color: var(--text-on-dark-faint); }
.rd-inputs { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.rd-inchip {
  padding: 9px var(--space-2);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-8);
  font-size: var(--fs-meta);
  color: var(--text-on-dark-link);
}
.rd-arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-on-dark-faint);
}
.rd-band {
  padding: var(--space-3) 18px;
  background: var(--forest-800);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-ctl);
}
.rd-band--accent {
  background: rgba(0,194,120,0.12);
  border-color: var(--accent-line-dark);
}
.rd-band--accent .rd-monolabel { color: var(--accent); }
.rd-band__text {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-on-dark-strong);
}
.rd-layer__note {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-meta);
  color: var(--text-on-dark-soft);
}
.rd-layer__note strong { color: var(--text-on-dark-strong); font-weight: 600; }

/* ==========================================================================
   4. WHY LETENI
   ========================================================================== */

.rd-why {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: 48px var(--space-8);
}
.rd-why__stats { flex: 1 1 440px; min-width: 0; }
.rd-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.rd-stat { padding: 28px 0; border-top: 1px solid var(--line-strong); }
.rd-stat:nth-child(n+3) { border-bottom: 1px solid var(--line-strong); }
.rd-stat__n {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--ink);
}
.rd-stat__d {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-small);
  color: var(--text-soft);
  max-width: 24ch;
}
.rd-source { margin: 18px 0 0; font-size: var(--fs-label); color: var(--text-faint); }

.rd-principles { flex: 1 1 440px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.rd-principle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
}
.rd-principle:last-child { border-bottom: 1px solid var(--line-strong); }
.rd-principle__icon { color: var(--green-700); padding-top: 3px; }
.rd-principle__title { display: block; font-size: 18px; font-weight: 600; }
.rd-principle__text {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--text-soft);
}

/* ==========================================================================
   5. CLOSING CTA + FOOTER (dark)
   ========================================================================== */

.rd-footer { background: var(--forest-900); color: var(--text-on-dark-soft); }
.rd-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(80px, 9vw, 120px) var(--gutter) 0;
}

.rd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: clamp(64px, 7vw, 96px);
  border-bottom: 1px solid var(--line-dark);
}
.rd-cta__copy { flex: 1 1 520px; min-width: 0; }
.rd-cta__h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-cta-h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-on-dark-strong);
  max-width: 14ch;
}
.rd-cta__lede {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--text-on-dark-soft);
  max-width: 50ch;
}
.rd-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.rd-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  padding: var(--space-7) 0 48px;
}
.rd-footer__brandcol { flex: 2 1 280px; min-width: 0; }
.rd-footer__brandcol img { display: block; height: 30px; width: auto; }
.rd-footer__blurb {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-meta);
  color: var(--text-on-dark-faint);
  max-width: 34ch;
}
.rd-fcol { flex: 1 1 160px; min-width: 0; }
.rd-fcol h2 {
  margin: 0 0 14px;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-on-dark-faint);
}
.rd-fcol ul { list-style: none; margin: 0; padding: 0; display: grid; }
/* 44px targets, per design/README.md section 3. The reference draws these
   links at their 19px line box; the accessibility floor wins. */
.rd-fcol a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  font-size: var(--fs-small);
  color: var(--text-on-dark-link);
  text-decoration: none;
}
.rd-fcol a:hover { color: var(--text-on-dark-strong); text-decoration: underline; }

.rd-fbottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) 32px;
  padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-label);
  color: var(--text-on-dark-faint);
}
.rd-fbottom__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.rd-fbottom a,
.rd-fbottom .rd-linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--text-on-dark-faint);
  text-decoration: none;
}
.rd-fbottom a:hover { color: var(--text-on-dark-link); text-decoration: underline; }
