/* ==========================================================================
   Nation Pathways — marketing site stylesheet

   BRAND PALETTE — Spruce + Amber (Nation Pathways brand guide, 2026-10)
     Spruce #2E5E4E  primary · Ink #1B2A2F text · Amber #D9922E accent (art only,
     never text) · Sage #7FA396 · Slate #44535A · Birch #F6F4EF · Stone #E6E3DC
   Every brand decision routes through the custom properties below.
   To rebrand: change the :root block (and the dark-scheme block) only.
   ========================================================================== */

/* Inter, self-hosted (SIL OFL 1.1 — assets/fonts/LICENSE-Inter.txt). Latin
   subsets only, so the strict CSP (font-src 'self') still holds and nothing is
   fetched from a third party. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff") format("woff"); }

:root {
  /* -- Brand: Spruce -- */
  --accent:        #2e5e4e;  /* spruce — primary accent */
  --accent-ink:    #ffffff;  /* text on accent fills */
  --accent-soft:   #e3ece8;  /* tinted backgrounds */
  --accent-deep:   #224639;  /* hover / active accent */
  --amber:         #d9922e;  /* the path in the logo — graphics only, never text */
  --mark-back:     #7fa396;  /* Sage — the second house in the logo */

  /* -- Neutrals -- */
  --bg:            #f6f4ef;  /* Birch */
  --surface:       #ffffff;
  --surface-2:     #eeebe3;
  --ink:           #1b2a2f;  /* Ink */
  --ink-soft:      #44535a;  /* Slate */
  --line:          #e6e3dc;  /* Stone */
  --scrim:         rgba(27, 42, 47, 0.55);  /* dims the page behind a modal */

  /* -- Illustration palette -- four steps from the brand, used by the feature
        scene bands. Kept as tokens so the art follows a rebrand and inverts
        cleanly in the dark scheme rather than staying stuck on light values. */
  --art-bg:        #e3ece8;
  --art-mid:       #a9c4ba;
  --art-strong:    #2e5e4e;
  --art-pop:       #d9922e;
  --art-ink:       #ffffff;

  /* -- Type & rhythm -- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 6px rgba(27, 42, 47, 0.06), 0 16px 40px rgba(27, 42, 47, 0.07);
  --maxw: 74rem;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:      #8fc2ae;
    --accent-ink:  #10201a;
    --accent-soft: #1f3329;
    --accent-deep: #a9d3c2;
    --amber:       #e0a24a;
    --mark-back:   #5f8778;

    --bg:          #121a1d;
    --surface:     #182226;
    --surface-2:   #1f2b30;
    --ink:         #edf1ef;
    --ink-soft:    #a8b6b3;
    --line:        #2a383d;

    --art-bg:      #1f3329;
    --art-mid:     #3e5e52;
    --art-strong:  #7fa396;
    --art-pop:     #e0a24a;
    --art-ink:     #182226;
    --scrim:       rgba(0, 0, 0, 0.68);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keep anchored sections clear of sticky header */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { padding-block: clamp(3.4rem, 8vw, 6rem); }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46rem;
  text-wrap: pretty;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }
/* A centred section header shouldn't centre the card grid beneath it. Body
   copy inside cards stays left-aligned. */
.center .grid { text-align: left; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;              /* large touch target */
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand .brand-mark { color: var(--accent); }
/* Nation Pathways mark: second house (sage), main house + door (spruce), path (amber). */
.brand-mark .bm-back  { stroke: var(--mark-back); }
.brand-mark .bm-house { stroke: var(--accent); }
.brand-mark .bm-door  { fill: var(--accent); }
.brand-mark .bm-path  { stroke: var(--amber); }
.brand .brand-accent  { color: var(--accent); }

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
  /* Eight items is a tight fit in the 74rem wrap. Without this the flex row
     shrinks the links until their labels break mid-word, which reads as broken
     rather than as a full nav. */
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.site-nav .nav-cta a {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  padding-inline: 1rem;
}
.site-nav .nav-cta a:hover { background: var(--accent-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 56em) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--pad) 1.25rem;
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-nav a {
    width: 100%;
    min-height: 3rem;
    font-size: 1.05rem;
    padding-inline: 0.85rem;
    white-space: normal;
  }
  .site-nav .nav-cta { margin-top: 0.5rem; }
  .site-nav .nav-cta a { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

@media (max-width: 56em) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1.6rem 1.2rem;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-art { border-radius: var(--radius-lg); }

/* Product screenshots. Real app UI on its own light theme -- never inverted
   or filtered in the dark scheme; the frame around it lifts instead. */
.shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Browser-style chrome: a thin bar with three dots. */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.75rem;
  padding-inline: 0.8rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.browser-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.35;
}

.shot figcaption {
  padding: 0.65rem 0.9rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Screenshots inside a feature card: full card width, stacked; side by side
   in the wide cards once there is room for two. */
.feature-shots {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (min-width: 48em) {
  .feature-shots-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On phones the card padding would shrink the screenshot to a thumbnail:
   bleed it to the card's inner edges instead (matches .feature-group padding). */
@media (max-width: 40em) {
  .feature-group .feature-shots { margin-inline: -1.6rem; }
  .feature-group .shot {
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-color-scheme: dark) {
  .shot { background: var(--surface-2); }
  .shot .browser-bar { background: var(--surface); }
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.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)); }

@media (max-width: 62em) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.card h3 { margin-top: 0.9rem; }
/* That 0.9rem exists to clear the .icon-chip above the heading. Cards that
   lead with the heading instead have nothing to clear. */
.card > h3:first-child { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--ink-soft); }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-chip svg { width: 1.5rem; height: 1.5rem; }

/* Feature groups */

/* The six standard feature cards run at very different lengths (four bullets
   against six), so a two-column grid left large gaps: row-aligned tracks make
   every row as tall as its tallest card, and the shorter one either stretched
   or stranded whitespace beside it. Multi-column packs them by height instead,
   which is what a card list of uneven length actually wants. Reading order
   becomes column-wise, which is fine here — the cards are independent. */
.feature-cols {
  columns: 2;
  column-gap: 1.1rem;
  margin-top: 2.2rem;
}
.feature-cols > .feature-group {
  break-inside: avoid;
  margin-bottom: 1.1rem;
}
.feature-stack {
  display: grid;
  gap: 1.1rem;
}
@media (max-width: 40em) {
  .feature-cols { columns: 1; }
}

.feature-wide { grid-column: 1 / -1; }

/* Scene band across the top of each feature card. Inline SVG on a token
   background: no external request, no raster asset, sharp at any zoom, and
   it re-colours itself in the dark scheme. Cropped with slice so one
   composition works from a narrow phone card to a full-width wide card. */
.feat-art {
  display: block;
  width: 100%;
  height: clamp(76px, 11vw, 100px);
  border-radius: 12px;
  background: var(--art-bg);
  margin-bottom: 1.3rem;
}
.feature-wide .feat-art { height: clamp(84px, 9vw, 116px); }

@media (prefers-reduced-data: reduce) {
  .feat-art { display: none; }
}

.new-pill {
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.feature-wide-intro {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 60rem;
}

@media (min-width: 62em) {
  .feature-wide .feature-wide-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.feature-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.feature-group header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.feature-group h3 { margin: 0; }
.feature-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.feature-group li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}
.feature-group li strong { color: var(--ink); font-weight: 650; }
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Sovereignty band
   -------------------------------------------------------------------------- */

.band {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.footnote {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 46rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   How it works — steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.2rem;
  list-style: none;
  padding: 0;
}
@media (max-width: 62em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .steps { grid-template-columns: 1fr; } }

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin-bottom: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Trust list
   -------------------------------------------------------------------------- */

.trust-list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 48em) { .trust-list { grid-template-columns: 1fr; } }

.trust-list li {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem;
}
.trust-list .icon-chip { flex: none; }
.trust-list h3 { font-size: 1.05rem; margin: 0.15rem 0 0.3rem; }
.trust-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.2rem;
  align-items: stretch;
}
@media (max-width: 62em) { .price-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  text-align: center;
}
.price-card h3 { margin: 0 0 0.2rem; }
.price-card .btn { margin-top: auto; align-self: center; }

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.price-flag {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}

.price-size {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.price-amount span {
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.price-bands {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.price-bands th,
.price-bands td {
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.price-bands th:first-child { text-align: left; }
.price-bands thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-bands tbody th { font-weight: 600; color: var(--ink); }
.price-bands td { color: var(--ink-soft); }
.price-bands tbody tr:last-child > * { border-bottom: 0; }

.price-count {
  margin: 1.2rem auto 0;
  max-width: 46rem;
  text-align: center;
  color: var(--ink-soft);
}

.price-setup {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.price-setup strong { color: var(--ink); }

.price-includes {
  margin-top: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.price-includes h3 { margin-bottom: 1rem; }
.price-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.price-includes li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.price-addon {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.price-addon strong { color: var(--ink); }

/* Funding note under the price cards. Tinted rather than white so it reads as
   an answer to the price above it, not as another product claim. */
.funding {
  margin-top: 1.6rem;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.funding h3 { margin-bottom: 0.8rem; }
.funding p {
  color: var(--ink-soft);
  max-width: 54rem;
  margin-bottom: 0.7rem;
}
.funding p:last-child { margin-bottom: 0; }
.funding-note {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 0.92rem;
}

.price-note {
  margin-top: 1.8rem;
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   Topic pages (/housing-waitlist-software/ and siblings): one long-form
   article per search topic, sharing the homepage header and footer.
   -------------------------------------------------------------------------- */

.topic { padding-top: clamp(2rem, 5vw, 3.5rem); }
.topic h1 { max-width: 22ch; }
.topic .lede { max-width: 46rem; }

.crumbs {
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin-inline: 0.35rem; }

.topic-shot { max-width: 52rem; margin-block: 2.2rem; }

.prose { max-width: 46rem; margin-top: 2.5rem; }
.prose h2 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li strong { color: var(--ink); }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; display: grid; gap: 0.4rem; }
.prose .footnote { margin-top: 2.4rem; }

.topic-next {
  max-width: 46rem;
  margin-top: 3rem;
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.topic-next h2 { margin: 0 0 0.6rem; font-size: 1.4rem; }
.topic-next p { color: var(--ink-soft); }
.topic-next h3 { margin: 1.6rem 0 0.6rem; font-size: 1rem; }
.topic-next ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }

.feature-more { margin: 1.1rem 0 0; font-weight: 650; }

/* --------------------------------------------------------------------------
   FAQ -- native <details>, so it opens without JavaScript and every answer
   is in the HTML for search engines and screen readers alike.
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 50rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.05rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  margin: 0 0 1.2rem;
  max-width: 46rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Needs assessment
   -------------------------------------------------------------------------- */

.assess-form { margin-top: 2rem; }

.assess-form fieldset {
  border: 0;
  margin: 0 0 1.6rem;
  padding: 0;
}

.assess-form legend {
  font-weight: 700;
  margin-bottom: 0.7rem;
  padding: 0;
}

.legend-hint {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent-deep);
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chip span:hover { border-color: var(--accent); color: var(--ink); }

.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.assess-result {
  margin-top: 2rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.assess-result h3 { margin-top: 0; }

.assess-result .ar-cost {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.8rem 0;
}
.assess-result .ar-cost em {
  font-style: normal;
  color: var(--accent-deep);
}

.assess-result ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.assess-result li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.assess-result li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.assess-result .ar-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Contact / demo form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 2rem;
  align-items: start;
}
@media (max-width: 56em) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form-status {
  margin: 0.9rem 0 0;
  font-weight: 600;
}
.form-status[data-state="ok"] { color: var(--accent-deep); }
.form-status[data-state="error"] { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .form-status[data-state="error"] { color: #ff8f88; }
}

/* Thank-you card that replaces the form after a successful submission */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success:focus { outline: none; }
.form-success .fs-check {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-inline: auto;
}
.form-success .fs-note {
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Optional needs questions folded into the demo form. Collapsed by default so
   the modal stays short; the questions inside are cloned from #assessment and
   inherit the .chips / .chip styling already defined above. */
.demo-extra {
  border-top: 1px solid var(--line);
  margin: 0.2rem 0 1rem;
  padding-top: 0.9rem;
}
.demo-extra summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
  list-style: none;
}
.demo-extra summary::-webkit-details-marker { display: none; }
.demo-extra summary::before {
  content: "+";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
  align-self: center;
}
.demo-extra[open] summary::before { content: "\2013"; }
.demo-extra summary .hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.demo-extra summary:hover { color: var(--accent-deep); }

#demo-extra-slot { margin-top: 1.1rem; }
#demo-extra-slot fieldset {
  border: 0;
  margin: 0 0 1.2rem;
  padding: 0;
}
#demo-extra-slot legend {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  padding: 0;
}
#demo-extra-slot .chip span {
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

/* Shown instead of the block when the visitor already ran the needs check. */
.demo-extra-used {
  margin: 0.2rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Demo modal

   The demo form is moved into #demo-modal by main.js, so the "Request a demo"
   links open it in place rather than scrolling ten screens down the page.
   .demo-cta takes the form's spot in the section once that swap has happened.
   -------------------------------------------------------------------------- */

.demo-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.demo-cta p { color: var(--ink-soft); }

html.modal-open { overflow: hidden; }

.modal {
  width: min(38rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90dvh, 52rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
/* The dialog takes focus on open so its title is announced; it is a container,
   not a control, so it should not also draw a focus ring. */
.modal:focus { outline: none; }

.modal::backdrop {
  background: rgba(27, 42, 47, 0.55);
  background: var(--scrim);
}

.modal-inner { padding: clamp(1.3rem, 4vw, 1.9rem); }

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.modal-head .kicker { margin-bottom: 0.35rem; }

.modal-title {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin-bottom: 0;
}

.modal-close {
  margin-left: auto;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.modal-lede {
  color: var(--ink-soft);
  margin: 0.9rem 0 1.2rem;
}

/* Tighter than the inline form: worth a little compression to keep the submit
   button above the fold on a laptop, so nobody has to scroll to send. */
.modal .field { margin-bottom: 0.85rem; }
.modal .field textarea { min-height: 5rem; }

/* The form arrives already styled as a standalone card — flatten it so it
   doesn't read as a card inside a card. */
.modal .contact-form {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.modal .form-success { padding: 0.5rem 0; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
}
@keyframes scrim-in {
  from { opacity: 0; }
}
.modal[open] { animation: modal-in 0.18s ease-out; }
.modal[open]::backdrop { animation: scrim-in 0.18s ease-out; }

/* --------------------------------------------------------------------------
   About + placeholders
   -------------------------------------------------------------------------- */

.placeholder-slot {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: transparent;
}
.placeholder-slot strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   About story
   -------------------------------------------------------------------------- */

.about-story {
  max-width: 46rem;
  font-size: 1.1rem;
}
.about-story p:last-of-type {
  font-weight: 650;
  color: var(--accent-deep);
}
.about-sig {
  font-style: italic;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 2.8rem 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 62em) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 48em) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
/* Tagline sitting under the footer brand mark. */
.site-footer .brand + p { margin-top: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; }

.land-ack {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.fineprint {
  margin-top: 1.4rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (JS adds .reveal; no-JS and reduced-motion see content
   immediately because the hidden state is only applied under .js)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Standalone message page (404, and anything else that is just a sentence and
   a way back). These were style attributes on 404.html, which style-src 'self'
   silently drops — same bug the rest of the page's inline styles had.
   -------------------------------------------------------------------------- */

.page-message { padding-block: clamp(4rem, 12vw, 8rem); }
.page-message .btn { margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   Collapsible detail (homepage). Native <details>, so it opens without
   JavaScript and stays readable with scripts off. The short summary line is
   always visible; the long lists, screenshots and stories sit behind it.
   -------------------------------------------------------------------------- */
.feature-teaser { margin: 0.35rem 0 0.4rem; color: var(--ink-soft); font-size: 1.02rem; }
details.more { margin-top: 0.6rem; }
details.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--accent-deep, var(--accent));
  padding: 0.35rem 0;
  border-radius: 6px;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
details.more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.more > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
details.more > summary:focus-visible,
.trust-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
details.more[open] > summary { margin-bottom: 0.4rem; }
.funding-more > summary { font-size: 1.15rem; color: var(--ink); }
.price-includes-lead { margin: 0 0 0.2rem; color: var(--ink-soft); }

.trust-more > summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}
.trust-more > summary::-webkit-details-marker { display: none; }
.trust-more > summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.trust-more[open] > summary::after { content: "\2212"; }
.trust-more > summary h3 { display: inline; }
.trust-list li > details { flex: 1; min-width: 0; }

.assess-cta { text-align: center; }
.assess-cta .lede { margin-inline: auto; }

@media print { details.more > *, .trust-more > * { display: revert; } }
