@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local('Roboto');
}

:root {
  /* Task 231 — this site had no `color-scheme` and no `prefers-color-scheme`
     handling at all: a prospect with OS dark mode read a blazing-white
     marketing page, clicked "Log In", and the console (theme-aware since
     bundle AB) flipped to near-black. The two surfaces read as unrelated
     products, and the brightness swing was itself an eye-strain event.
     `light-dark()` + `color-scheme: light dark` is the same mechanism
     web-console/frontend-patient use — this is a static Astro site with no
     JS-driven theme TOGGLE, so it follows the OS preference only, same as
     those two apps' own `system` default.

     Every LIGHT value below is byte-identical to what shipped before this
     task — zero light-mode visual change. Dark values were chosen and then
     verified against real WCAG contrast math (not eyeballed): every text/
     surface pairing below clears 4.5:1, every border/control pairing clears
     3:1 (see git history for the verification script; this file has no
     permanent contrast-test harness the way web-console does — building
     that is its own scoped piece of work, not bundled into this task). */
  color-scheme: light dark;

  /* Brand palette — matches continuia.ai's design tokens (src/index.css) exactly.
     RPM is a continuia.ai offshoot; same violet family, distinct logo mark.
     Only 50/600/700/900 have a real consumer today (900 as --brand's TEXT
     role, 600/700 as solid button fills, 50 as --panel's subtle wash) — the
     rest are kept for parity with continuia.ai's own ramp, not because
     anything here reads them. 500/600/700 are NOT theme-aware: both are
     consumed only as solid FILL colours with white text on top
     (--brand-active, --btn.primary's hover), which need to stay a
     recognisable, sufficiently-saturated violet regardless of the
     surrounding page theme — inverting them the way 900 inverts below would
     turn a mid-violet button fill pale in dark mode and break the white
     text sitting on it. */
  --primary-50: light-dark(#eef2ff, #1e1b3a);
  --primary-100: light-dark(#e0e7ff, #262254);
  --primary-200: light-dark(#c7d2fe, #2e2a63);
  --primary-300: light-dark(#a5b4fc, #3730a3);
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-900: light-dark(#312e81, #c7d2fe);

  --ink: light-dark(#171717, #f2f0f5);
  --ink-soft: light-dark(#525252, #b3aec2);
  /* Decorative hairlines only — card edges, section rules, the footer divider.
     WCAG 1.4.11's 3:1 minimum governs UI-component boundaries, not ornamental
     rules, so this stays light (relative to its own surface) and the site
     keeps its visual weight in both themes. */
  --line: light-dark(#e5e5e5, #362f47);
  /* Boundaries of actual CONTROLS. `--line` at #e5e5e5 on white measures
     1.26:1, and it was the only visible edge on the lead-capture form's inputs
     — on the public page that is the entire commercial funnel, and the surface
     most likely to attract an ADA demand letter, those fields effectively had
     no edge for a low-vision visitor. This is the identical defect found and
     fixed in both React apps on 2026-07-27 and never carried across, because
     the audit explicitly scoped this site out for having no axe tooling.
     #8f8f94 is 3.06:1 on white; #7d7690 is 4.12:1 on the dark surface below. */
  --line-control: light-dark(#8f8f94, #7d7690);
  --panel: var(--primary-50);
  /* --surface: the page/card/header background. Was a hardcoded #ffffff at
     13 separate call sites (task 231's own note) — now one token, so dark
     mode is one declaration, not 13 hunts. --surface-tint is the hero
     gradient's second stop, one step warmer/lighter than --surface in light
     mode and one step lighter than --surface in dark mode — the same
     "subtle elevation, not a hard edge" role in both themes. */
  --surface: light-dark(#ffffff, #1a1622);
  --surface-tint: light-dark(#faf9ff, #211b2d);
  /* --brand is the TEXT/border role (wordmark, eyebrow, trust-chip, link
     colours — 8 call sites) and inverts with the theme like any other text
     colour. --brand-fill is the BUTTON/BADGE role (skip-link, the primary
     CTA, the numbered-step circles — 3 call sites) and deliberately does
     NOT invert, for the same reason 600/700 above don't: it is a solid fill
     with white text on top, and needs to stay a dark, saturated violet in
     both themes for that text to stay legible. */
  --brand: var(--primary-900);
  --brand-fill: #312e81;
  --brand-active: var(--primary-600);
  --brand-ink: #ffffff;
  /* Same TEXT-vs-FILL split as --brand/--brand-fill: --accent is quoted as
     running text (.form-status.ok) and a border (.card.solution), both of
     which need to invert; --accent-fill is the one solid badge fill
     (.diff-list .mark, white text on top) and stays fixed. */
  --accent: light-dark(#0f766e, #5eead4);
  --accent-fill: #0f766e;
  /* Surface/border partners for --accent and --danger, same shape as the
     --warn-* trio below. Used by .form-status, which is a full confirmation
     panel rather than a line of coloured text — the lead form's success
     message is the last thing a converting visitor sees, so it needs a
     surface of its own, not just a tinted 14px sentence. */
  --accent-surface: light-dark(#f0fdfa, #10312e);
  --accent-border: light-dark(#5eead4, #0f766e);
  --danger: light-dark(#b91c1c, #f87171);
  --danger-surface: light-dark(#fef2f2, #3a1a1a);
  --danger-border: light-dark(#f87171, #b91c1c);
  /* The roadmap-banner/track-status amber trio — a real surface/border/text
     status triplet in everything but name, same pattern the two React apps
     use for their status ramps, just not named that way here since this
     page has exactly one severity, not five. */
  --warn-surface: light-dark(#fef3c7, #3a2f14);
  --warn-border: light-dark(#f59e0b, #b8860b);
  --warn-text: light-dark(#92400e, #fbbf24);
  --radius: 8px;
  --radius-pill: 9999px;
  /* 2026-07-29 — was 1080px, which is what made every page read as a narrow
     fixed-width column pinned in the middle of a modern display: on a
     1900px monitor the content box was 1032px with ~410px of dead gutter on
     each side. The header sat in the SAME box, so brand + six nav items +
     Log In + the CTA had ~1030px to share and the items wrapped mid-label
     ("How It / Works", "Who We / Serve", "Log / In") — the congestion was a
     symptom of this one number, not of the nav markup.

     Deliberately ONE width, not a per-section vocabulary: the header, the
     hero, every section and the footer all share it, so the brand mark, the
     h1 and every card's left edge line up down the page. A wider "hero/
     header only" measure would have bought ~80px and broken that alignment
     — the same conclusion web-console's PageLayout reached for the console.
     Reading measure is protected where it actually matters, by the `ch`
     caps on .lede/.section-lede/.wrap.narrow, not by squeezing the shell. */
  --max: 1360px;
  /* Scales the side gutter with the viewport instead of a flat 24px, so a
     wide screen gets breathing room at the edges rather than the content
     running to a hard stop. Floor stays 24px — the value phones had. */
  --gutter: clamp(24px, 3.5vw, 48px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
}

/* Task 91/93 — keyboard-only users otherwise have to tab through the full
   header nav (7+ links plus a dropdown) before reaching page content on
   every single page load. Visually hidden until focused, per the standard
   skip-link pattern. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand-fill);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

.brand span {
  color: var(--brand);
}

.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---- Site header / persistent nav (task 41) ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  /* 2026-07-29 — was `gap: 24px` ON TOP OF each item's own 14px horizontal
     padding, i.e. 52px between two labels. That plus the 1080px shell is
     what pushed the row over its budget. The padding IS the spacing now;
     the gap only keeps adjacent hover pills from touching. */
  gap: 2px;
  margin-left: auto;
  margin-right: 20px;
  /* A nav item must never wrap mid-label. If the row ever does run out of
     room the right answer is the hamburger (see the breakpoint below), not
     a two-line "How It / Works". */
  flex-wrap: nowrap;
}

/* The dropdown trigger is a nav item like any other, so it shares the link
   treatment exactly (2026-07-29). It used to be `padding: 0` beside
   siblings padded `8px 14px`, which is why "Solutions" sat visibly out of
   line with the rest of the row and had no hover target of its own. The
   trigger's own layout rule further down (`display: flex` for the caret) is
   lower-specificity than the `:hover`/`.active` states below, so it can no
   longer flatten them the way its old `padding: 0`/`color` did. */
.site-nav > a,
.nav-dropdown-trigger {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--ink);
  background: var(--primary-50);
}

.site-nav > a.active,
.nav-dropdown-trigger.active {
  color: var(--brand-ink);
  background: var(--brand-active);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions-mobile {
  display: none;
}

.login-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  /* Was bare text with zero padding — its real tap target was the ~14px
     text height, sitting 12px from the CTA button below it in the mobile
     menu. A real touch target here, not just visual padding. */
  padding: 10px 12px;
  min-height: 44px;
  box-sizing: border-box;
}

.login-link:hover {
  color: var(--ink);
}

.cta-btn {
  padding: 8px 16px;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Solutions dropdown */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger .caret {
  font-size: 10px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  min-width: 240px;
  padding: 8px;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-dropdown-menu a:hover {
  background: var(--panel);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 2026-07-29 — the nav collapses to the hamburger at 1200px, not 860px.
   Between those two widths the desktop row physically did not fit (brand +
   six items + Log In + CTA needs ~1070px of the shell's inner width), so it
   squeezed and wrapped mid-label instead of collapsing. This is the ONLY
   breakpoint that moved: the card grids and the hero still stack at 860px,
   where they actually run out of room, so a 1000px tablet gets a hamburger
   AND a two-column layout — which is right for both. */
@media (max-width: 1200px) {
  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-actions {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 24px 32px;
    margin: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav > a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none !important;
    color: var(--ink-soft) !important;
  }

  .site-nav > a.active {
    color: var(--brand) !important;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    /* The desktop pill treatment above must not follow the trigger into the
       drawer, where every item is a full-width row with a hairline under it
       — same reset `.site-nav > a` already does two rules up. */
    border-radius: 0;
    background: none !important;
    color: var(--ink-soft) !important;
  }

  .nav-dropdown-trigger.active {
    color: var(--brand) !important;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Was 12px — with .login-link and .cta-btn both now real 44px touch
       targets, 12px left almost no visual gap between two adjacent
       full-width tap zones. Widened so a thumb can't bridge both at once. */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
  }

  .nav-actions-mobile .login-link {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--line-control);
    border-radius: var(--radius);
  }

  .nav-actions-mobile .cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* Vertical rhythm scales with the viewport (2026-07-29). A flat 64px that
   reads as generous in a 1032px column reads as cramped once the same
   content is 1264px wide — horizontal and vertical space have to grow
   together or the page just gets denser as the screen gets bigger, which is
   exactly what "congested" describes. */
section {
  padding: clamp(56px, 6vw, 88px) 0;
}

section.panel {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Task 748 design-quality follow-up: a flat two-stop vertical gradient read
   as "unfinished placeholder" next to a real product screenshot sitting in
   the same hero. Layers a soft radial mesh (two off-center blooms in the
   brand hue) over the original two-stop base rather than replacing it, so
   dark mode's own light-dark() surface tokens still drive the base tone. */
.hero {
  padding: clamp(64px, 7.5vw, 112px) 0 clamp(56px, 6vw, 88px);
  background:
    radial-gradient(680px circle at 8% -10%, var(--primary-100) 0%, transparent 60%),
    radial-gradient(720px circle at 108% 15%, var(--primary-50) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.hero .eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* The 18ch cap was tuned for a ~480px copy column and became the reason the
   headline still broke into three short lines with a band of empty space to
   its right once the column grew: it was clamping well below the space
   available. 20ch keeps a strong two-to-three-line headline at the new
   width without letting it run to a full-width banner line. */
.hero h1 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 20ch;
}

/* Task 748 voice/design follow-up (Shree, via Y5): a bold two-tone
   headline split is doing the anchoring work an image would otherwise do
   -- one color-accented word or clause within an otherwise plain heading,
   not a whole gradient-text headline (which reads as a template effect,
   not a deliberate edit). */
.hero h1 .accent {
  color: var(--brand);
}

/* A rhetorical word-association cluster, not a generic feature-pill row --
   short declarative fragments building toward one idea (what independent
   practice actually needs), read in sequence rather than scanned as
   equal-weight tags. */
.word-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 4px 0 24px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.word-cluster span:nth-child(odd) {
  color: var(--brand);
}

/* A real pull-quote treatment for the single most important line in a
   section -- left-border accent, larger/lighter type, set apart from
   running body copy rather than just another paragraph. */
.pull-quote {
  margin: 0 0 32px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  max-width: 42ch;
}

.hero p.lede {
  font-size: clamp(17px, 1.2vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  width: 100%;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(68, 51, 122, 0.18);
}

/* Task 748 design-quality follow-up (ignitelabs.co.in reference): floating
   constructed mock-UI cards over the hero screenshot, reading as "product
   in motion" rather than a flat static image. Positioned relative to
   .hero-visual-floating; hidden below the breakpoint where the hero image
   itself shrinks below their own footprint (they'd overlap the image
   content rather than accent its corner). */
.hero-visual-floating {
  position: relative;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.14);
  max-width: 220px;
}

.floating-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.floating-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.floating-card .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-live {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.floating-card-status {
  top: -18px;
  right: -18px;
}

.floating-card-vitals {
  bottom: -16px;
  left: -16px;
}

@media (max-width: 860px) {
  .floating-card {
    display: none;
  }
}

/* Task 748 design-quality follow-up: a real product screenshot dropped
   into the body of a section (not the hero) -- same framed-image treatment
   as .hero-visual, centered with a sane max-width so a 1395px capture
   doesn't run the full content width on a wide viewport. */
.product-shot {
  max-width: 760px;
  margin: clamp(28px, 3vw, 40px) auto 0;
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(68, 51, 122, 0.18);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
    order: -1;
  }
}

.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-50);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.trust-chip a {
  color: var(--brand);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn.primary {
  background: var(--brand-fill);
  color: var(--brand-ink);
}

.btn.primary:hover {
  background: var(--primary-700);
}

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-control);
}

.btn.secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

h2.section-title {
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

p.section-lede {
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-size: 17px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 28px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 28px);
}

/* Task 748 design-quality follow-up: flat, un-elevated cards read as text
   blocks rather than designed surfaces next to a page that also carries a
   real product screenshot. A resting shadow plus a hover lift is a small,
   cheap signal of depth -- kept subtle (2-4px of travel) so it reads as
   polish, not a bouncy animation. transform+box-shadow only, no layout
   properties, so this never triggers reflow. */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2vw, 28px);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04), 0 8px 20px -12px rgba(68, 51, 122, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(23, 23, 23, 0.06), 0 16px 32px -14px rgba(68, 51, 122, 0.22);
  border-color: var(--primary-200);
}

/* Scroll-reveal: a section fades/slides in the first time it enters the
   viewport. Vanilla IntersectionObserver (see BaseLayout.astro's script),
   no framework. prefers-reduced-motion is respected by simply never
   toggling the observer on -- .reveal elements keep their base (visible)
   state below, so motion-sensitive visitors see the content immediately,
   not a stuck-hidden section. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

/* 14px was the smallest running text on the site and sat in the widest
   containers — the combination that reads as dense rather than compact. */
.card p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.card p a:hover {
  text-decoration: underline;
}

.card.problem {
  border-left: 3px solid var(--danger);
}

.card.solution {
  border-left: 3px solid var(--accent);
}

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 8px;
}

ol.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-fill);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

ol.steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

ol.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.diff-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.diff-list .mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-list strong {
  display: block;
  margin-bottom: 2px;
}

.diff-list span.body {
  color: var(--ink-soft);
  font-size: 14px;
}

form.lead {
  display: grid;
  gap: 16px;
  max-width: 480px;
}

form.lead label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

form.lead input,
form.lead select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}

form.lead button {
  justify-self: start;
}

/* Empty by default — no box, no reserved gap, so the form looks unchanged
   until there is actually something to say. The panel styling lives on the
   .ok/.err modifiers instead of the base class for exactly that reason. */
.form-status {
  font-size: 14px;
  margin-top: 4px;
}

.form-status.ok,
.form-status.err {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid;
  border-left-width: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  /* Draws the eye to a message that appears after the click that submitted
     the form — without it the panel simply exists, with no moment of change
     to notice. Suppressed under reduced-motion below. */
  animation: form-status-in 260ms ease-out;
}

.form-status.ok {
  color: var(--accent);
  background: var(--accent-surface);
  border-color: var(--accent-border);
}

.form-status.err {
  color: var(--danger);
  background: var(--danger-surface);
  border-color: var(--danger-border);
}

@keyframes form-status-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-status.ok,
  .form-status.err {
    animation: none;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-about p {
  margin: 12px 0 0;
  max-width: 44ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
}

/* A three-up grid went straight from three columns to one at 860px, so the
   whole 861–1080px band rendered three ~300px cards of dense body copy.
   Two columns is the honest intermediate step. Declared BEFORE the 1fr
   block below so that, at widths where both match, the narrower rule wins.
   `ol.steps` is left alone on purpose — its three items are a numbered
   sequence, and 2+1 reads as a broken sequence rather than a grid. */
@media (max-width: 1080px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  ol.steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- Roadmap page — deliberately distinct from real product pages ---- */
/* task 44: this page must never read as ambiguously available. Both the
   banner and the secondary CTA style below are load-bearing, not cosmetic. */

.roadmap-banner {
  background: var(--warn-surface);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-weight: 600;
  color: var(--warn-text);
}

.roadmap-banner .badge-icon {
  font-size: 18px;
}

.btn.secondary.roadmap-cta {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px dashed var(--line);
}

.btn.secondary.roadmap-cta:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.track-card .track-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn-text);
  background: var(--warn-surface);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ---- Condition cards (Who We Serve) ---- */

.condition-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.condition-card h3 {
  margin: 0 0 8px;
}

.condition-card .payer-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---- Resources / blog ---- */

.resource-list {
  display: grid;
  gap: 20px;
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.resource-card:hover {
  border-color: var(--brand);
}

.resource-card .resource-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.resource-card h3 {
  margin: 0 0 8px;
}

.resource-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

article.post {
  padding: 64px 0 96px;
}

article.post .wrap.narrow {
  max-width: 72ch;
}

article.post h1 {
  font-size: 36px;
  margin: 0 0 8px;
}

article.post .post-meta {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 32px;
}

article.post h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

article.post p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 16px;
}

article.post ul {
  color: var(--ink-soft);
  font-size: 16px;
  padding-left: 20px;
}

article.post ul li {
  margin-bottom: 8px;
}

.wrap.narrow {
  max-width: 72ch;
}

.legal-page {
  padding: 64px 0 96px;
}

.legal-page h1 {
  font-size: 32px;
  margin: 0 0 16px;
}

/* This site was the only one of the three surfaces with substantial motion —
   the mobile nav slides the full viewport via translateX, and the hamburger
   bars rotate 45deg — and the only one that ignored
   `prefers-reduced-motion`. Both React apps have honoured it since
   2026-07-27; a vestibular-sensitive visitor was getting the largest single
   motion event in the product on the one surface that disregarded their
   stated OS preference. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* WCAG 2.2 SC 2.4.11 (focus not obscured): .site-header is sticky and ~65px
   tall, so tabbing back up a long page — or using the skip link — scrolled the
   focused element to y=0, directly underneath it. */
html {
  scroll-padding-top: 80px;
}
