/* ==========================================================================
   VANTRIX — sections.css
   Section-specific layout. Each section composes differently on purpose —
   a numbered row list, a timeline rail, a wireframe window, a comparison
   table. None of them are the same card grid wearing a new label.

   01. Hero
   02. Stats
   03. Features (numbered rows)
   04. Preview (blueprint)
   05. Premium (Free vs Premium comparison)
   06. Roadmap (timeline)
   07. FAQ layout
   08. Final CTA
   09. Responsive
   ========================================================================== */

/* ==========================================================================
   01. Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* 116px was the announcement bar + header combined; the bar's gone, so
     this is just the sticky header's own height (~67px) plus a little
     slack. */
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  padding-block: clamp(48px, 6vw, 90px) clamp(96px, 11vw, 150px);
  overflow: hidden;
}

/* Raking light beam behind the copy — a wide, soft cone anchored off the
   top-left, clipped by the section. Adds depth without another blob. */
.hero__beam {
  position: absolute;
  top: -40%;
  left: -10%;
  z-index: 0;
  width: 70%;
  height: 150%;
  pointer-events: none;
  background: linear-gradient(
    168deg,
    rgba(168, 85, 247, 0.16) 0%,
    rgba(124, 58, 237, 0.07) 34%,
    transparent 68%
  );
  filter: blur(46px);
  transform: rotate(-8deg);
}

/* 12-column grid, deliberately uneven: copy takes 7, the device stage
   takes 5 and bleeds left into the copy column's trailing whitespace
   (see .hero__stage's negative margin below) rather than sitting in a
   clean, balanced box next to it. */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(20px, 3vw, 40px);
}

.hero__copy {
  grid-column: 1 / span 7;
}

.hero__title {
  font-size: clamp(2.85rem, 1.4rem + 5.4vw, 5.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  /* Overrides the global h1–h4 text-wrap: balance (base.css) — balance's
     line-redistribution doesn't reliably account for the .hero__word
     inline-block chunks below, and was overflowing/clipping "layer" at
     narrow widths instead of wrapping it. Confirmed via screenshot, not
     guessed. The authored word-chunking already does its own version of
     "sensible line breaks," so losing balance here costs nothing. */
  text-wrap: wrap;
}

/* Author-controlled line breaks so the headline never wraps into an
   awkward orphan at any width. Collapses to natural flow on small screens. */
.hero__title-line {
  display: block;
}

/* The headline's own reveal — see js/main.js initHeadlineReveal(). Each
   chunk is its own inline-block so translate/opacity can animate it
   independently while still wrapping naturally within its line. Uses
   --ease-emphatic (expo.out): this and the mobile-menu stagger are the
   only two places that curve appears, on purpose.

   Scoped behind .js, same as .reveal in base.css: that class is only
   added if main.js actually runs, so if JS is blocked or fails, these
   spans are never hidden in the first place — the headline just renders
   as plain static text instead of going permanently invisible with no
   script left to reveal it. */
.js .hero__word {
  display: inline-block;
  opacity: 0;
  translate: 0 0.3em;
  transition:
    opacity var(--duration-reveal-headline) var(--ease-emphatic),
    translate var(--duration-reveal-headline) var(--ease-emphatic);
  transition-delay: var(--word-delay, 0ms);
}

.js .hero__word.is-visible {
  opacity: 1;
  translate: none;
}

.hero__lede {
  max-width: 50ch;
  margin-bottom: 36px;
  font-size: clamp(1.05rem, 0.98rem + 0.34vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

/* Inline trust row directly under the capture field — the reassurance
   belongs where the hesitation happens. */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.hero__trust li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 5px;
  border-left: 1.5px solid var(--accent-3);
  border-bottom: 1.5px solid var(--accent-3);
  transform: rotate(-45deg);
}

/* Status facts. Reads like a spec strip, not a fake metrics bar. */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 4vw, 44px);
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.hero__fact dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__fact dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 4vw, 46px);
  z-index: 2;
  translate: -50% 0;
  display: grid;
  place-items: start center;
  width: 26px;
  height: 42px;
  padding-top: 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  opacity: 0.7;
  transition: opacity var(--t) var(--ease), border-color var(--t) var(--ease);
}

.scroll-cue:hover {
  opacity: 1;
  border-color: var(--accent-3);
}

.scroll-cue__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: cue 2s var(--ease-io) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% { opacity: 1; }
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* Floating glass chips around the device */
.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: rgba(16, 12, 26, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md), var(--hairline);
  white-space: nowrap;
}

.float-chip .material-symbols-rounded {
  font-size: 1.15rem;
  color: var(--accent-3);
}

/* Wrapper carries the mono sub-label styling; <strong> opts back out so
   the title stays in the UI face. */
.float-chip span:last-child {
  display: grid;
  line-height: 1.25;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.float-chip strong {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--ink);
}

/* top: 11% used to sit right over the phone's own status bar, obscuring
   "VAN" of "VANTRIX" — confirmed by an actual screenshot, not guessed.
   2% clears the phone's top edge entirely, sitting in the headroom above
   it instead of overlapping its content. */
.float-chip--a {
  top: 2%;
  left: -2%;
  animation: float-slow 7s var(--ease-io) infinite;
}

.float-chip--b {
  bottom: 15%;
  right: -2%;
  animation: float-slow 8.5s var(--ease-io) infinite reverse;
}

/* Stage holding the device mockup. The negative margin is the bleed:
   the stage overlaps into the copy column's own gutter rather than
   sitting in a symmetric box beside it. Kept modest — the float chips
   below add their own outward offset on top of this, and .hero has
   overflow: hidden (to contain .hero__beam), so the two offsets
   compound. Too aggressive here and the chips clip against the section
   edge instead of just floating past the phone's bezel. */
.hero__stage {
  position: relative;
  grid-column: 8 / span 5;
  margin-left: clamp(-24px, -2vw, -12px);
  display: grid;
  place-items: center;
  min-height: clamp(520px, 60vw, 660px);
  will-change: transform;
}

.stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.stage-orb--1 {
  width: 300px;
  height: 300px;
  top: 4%;
  right: 2%;
  background: rgba(124, 58, 237, 0.42);
  animation: float-slow 9s var(--ease-io) infinite;
}

.stage-orb--2 {
  width: 240px;
  height: 240px;
  bottom: 6%;
  left: 0;
  background: rgba(192, 132, 252, 0.26);
  animation: float-slow 11s var(--ease-io) infinite reverse;
}

.stage-ring {
  position: absolute;
  width: min(112%, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.stage-ring::before,
.stage-ring::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stage-ring::after {
  inset: 27%;
}

@keyframes float-slow {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -20px, 0); }
}

/* ==========================================================================
   02. Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--r-xl);
}

.stats__copy .h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  margin-bottom: 14px;
}

/* One featured stat (the launch year — the one worth leading with) plus
   three smaller supporting ones, rather than four equal tiles. The
   featured card also uses a different internal layout (horizontal,
   number-then-label) instead of just being a scaled-up copy of the small
   ones — varying the block's construction, not only its size. */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

/* A hairline divider, not a second glass card nested inside the stats
   panel's own one — the panel already is the card; each stat is a row
   of data inside it, not a box inside a box. */
.stat-card {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-soft);
  transition: border-color var(--t) var(--ease);
}

.stat-card:hover {
  border-color: var(--accent-3);
}

.stat-card dd {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.stat-card--featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding-top: var(--space-6);
}

.stat-card--featured dd {
  margin: 0;
  max-width: 32ch;
  font-size: var(--text-md);
  color: var(--ink-2);
}

.stat-card--featured .counter {
  flex: none;
  font-size: var(--text-3xl);
}

.counter {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ==========================================================================
   03. Features
   ========================================================================== */

/* Six-column bed. Spans are varied deliberately so the grid reads as
   composed rather than as a row of equal tiles. */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

/* Flat and structural, not the glass/blur treatment — that stays reserved
   for the stats panel and the closing CTA, the two places it's actually
   a signature moment rather than the default box for every panel. */
.feature-lead {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Single gap owns the vertical rhythm here — no per-child margins to keep
   in sync. */
.feature-lead__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.feature-lead__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.feature-lead__text {
  max-width: 48ch;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.62;
}

.feature-lead__visual {
  position: relative;
  align-self: stretch;
  min-height: 170px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-a16), transparent 62%), rgba(8, 6, 14, 0.5);
  overflow: hidden;
}

.feature-lead__visual svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 78%;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
}

.feature-card--sm { grid-column: span 2; }
.feature-card--md { grid-column: span 3; }

/* Gradient icon tile — the recurring accent object across feature cards. */
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  color: var(--accent-4);
  border: 1px solid var(--line-violet);
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.34), rgba(168, 85, 247, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.feature-icon .material-symbols-rounded {
  font-size: 1.45rem;
}

.feature-card:hover .feature-icon,
.feature-lead:hover .feature-icon {
  transform: rotate(-7deg) scale(1.08);
  box-shadow: 0 14px 34px -14px var(--accent-a45), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.26rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.feature-card__text {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Pins the status chip to the card's baseline so chips line up across a
   row regardless of body-copy length. */
.feature-card .chip {
  margin-top: auto;
}

/* ==========================================================================
   04. Preview (blueprint)
   A wireframe of what's planned — deliberately not a fake screenshot.
   ========================================================================== */

.blueprint {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--hairline);
}

.blueprint__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.blueprint__dots {
  display: inline-flex;
  gap: 7px;
}

.blueprint__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.blueprint__dots i:first-child {
  background: var(--accent-a60);
}

.blueprint__label {
  flex: 1;
  color: var(--ink-3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}

.blueprint__body {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "nav chart chart"
    "nav list chat";
  gap: 1px;
  min-height: clamp(340px, 42vw, 460px);
  background: var(--line-soft);
}

.blueprint__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 2;
  width: min(620px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.26), transparent 62%);
  filter: blur(44px);
  animation: breathe 8s var(--ease-io) infinite;
}

.blueprint__region {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 6, 14, 0.86);
  transition: background-color var(--t) var(--ease);
}

.blueprint__region span {
  padding: 8px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xs);
  background: rgba(16, 12, 26, 0.8);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.blueprint__region:hover span {
  color: var(--accent-3);
  border-color: var(--line-violet);
}

.blueprint__region--nav { grid-area: nav; }
.blueprint__region--chart { grid-area: chart; }
.blueprint__region--list { grid-area: list; }
.blueprint__region--chat { grid-area: chat; }

.blueprint__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.blueprint__foot p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ==========================================================================
   05. Premium
   ========================================================================== */

/* Planned Free vs Premium split. Real <table> markup — the data is
   genuinely tabular, and a screen reader should announce the row/column
   pairing rather than a soup of divs. */
.compare {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow-lg), var(--hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Narrow viewports scroll the table sideways rather than crushing it. */
  overflow-x: auto;
}

.compare__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.compare__table th,
.compare__table td {
  padding: 17px clamp(16px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.compare__table thead th {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

.compare__head-label,
.compare__tier,
.compare__tier-note {
  display: block;
}

.compare__head-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.compare__tier {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.compare__tier-note {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Row labels stay readable — they carry the actual feature names. */
.compare__table tbody th {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}

.compare__table tbody td {
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* Premium column: tinted rail running the full height of the table. */
.compare__col--premium {
  position: relative;
  background: var(--accent-a08);
}

.compare__table thead .compare__col--premium {
  border-bottom-color: var(--line-violet);
  background: var(--accent-a16);
}

.compare__table thead .compare__col--premium .compare__tier {
  color: var(--accent-4);
}

.compare__table thead .compare__col--premium .compare__tier-note {
  color: var(--accent-3);
}

.compare__yes {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-a28);
  color: var(--accent-4);
  font-size: 0.78rem;
  line-height: 1;
}

.compare__no {
  color: var(--ink-3);
}

.compare__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px clamp(16px, 2.2vw, 26px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.compare__foot .field-note {
  margin-top: 0;
}

/* ==========================================================================
   06. Roadmap (timeline)
   ========================================================================== */

/* Horizontal stepper on desktop: a continuous rail across the top with a
   node per phase, cards hanging below. Collapses to a vertical rail on
   narrow screens (see the responsive block).
   The rail is drawn per-step so it stays glued to each node regardless of
   column width — one absolutely-positioned line across the whole grid
   would drift as the columns resize. */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

/* The active phase's column carries more width than the planned ones —
   emphasis expressed structurally, not just by color. Written per
   position with :has() rather than hardcoded to "phase 1 is always
   active," so this keeps working correctly whichever phase the markup
   actually marks .is-active. Browsers without :has() fall back to the
   even 4-up grid above — a fine default, not a broken one.

   Scoped to the desktop 4-up tier only (min-width matches the "below
   1080px" breakpoint further down this file that switches to a 2-up
   grid): :has() adds specificity a later plain `.roadmap` media-query
   rule can't beat on source order alone, so keeping this out of that
   viewport range entirely avoids fighting it instead of trying to out-
   specify it. */
@media (min-width: 1081px) {
  @supports selector(:has(*)) {
    .roadmap:has(.roadmap__step:nth-child(1).is-active) {
      grid-template-columns: 1.6fr 1fr 1fr 1fr;
    }

    .roadmap:has(.roadmap__step:nth-child(2).is-active) {
      grid-template-columns: 1fr 1.6fr 1fr 1fr;
    }

    .roadmap:has(.roadmap__step:nth-child(3).is-active) {
      grid-template-columns: 1fr 1fr 1.6fr 1fr;
    }

    .roadmap:has(.roadmap__step:nth-child(4).is-active) {
      grid-template-columns: 1fr 1fr 1fr 1.6fr;
    }
  }
}

.roadmap__step {
  display: grid;
  grid-template-rows: 26px 1fr;
  gap: 18px;
}

.roadmap__rail {
  position: relative;
  display: flex;
  align-items: center;
}

/* Track segment. Starts at the node and runs to the next column. */
.roadmap__rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * clamp(14px, 1.6vw, 20px));
  height: 1px;
  background: var(--line);
}

.roadmap__step:last-child .roadmap__rail::before {
  right: 0;
  /* Fades out rather than stopping dead at the final node. */
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Completed/active portion of the track. */
.roadmap__step.is-active .roadmap__rail::before {
  background: linear-gradient(90deg, var(--accent-3), var(--line));
}

.roadmap__node {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--bg);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.roadmap__step.is-active .roadmap__node {
  border-color: var(--accent-3);
  background: var(--accent-3);
  box-shadow: 0 0 0 5px var(--accent-a16), 0 0 18px var(--accent-3);
}

.roadmap__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  height: 100%;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), background var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.roadmap__card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
}

.roadmap__step.is-active .roadmap__card {
  border-color: var(--line-violet);
  background: var(--glass-violet);
  box-shadow: 0 -1px 22px -6px var(--accent-a45), var(--shadow-md), var(--hairline);
}

.roadmap__phase {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.roadmap__step.is-active .roadmap__phase {
  color: var(--accent-3);
}

.roadmap__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.roadmap__text {
  color: var(--ink-2);
  font-size: 0.91rem;
  line-height: 1.55;
}

.roadmap__card .chip {
  margin-top: auto;
}

/* ==========================================================================
   07. FAQ layout
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

.faq-groups {
  display: grid;
  gap: clamp(30px, 4vw, 44px);
}

.faq-group {
  display: block;
}

/* Category label sits above each cluster so a long FAQ stays scannable
   instead of reading as one undifferentiated wall of triggers. */
.faq-group__label {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.accordion {
  display: grid;
  gap: 12px;
}

/* ==========================================================================
   08. Final CTA
   ========================================================================== */

/* Left-weighted, not centered — every other "closing panel" pattern
   defaults to centering everything, which is exactly why it was worth
   breaking here. A second column carries real content (what happens
   after signup) rather than leaving that space empty. */
.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  column-gap: clamp(32px, 4vw, 56px);
  text-align: left;
  overflow: hidden;
  padding: clamp(46px, 6vw, 90px) clamp(24px, 4vw, 64px);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg), var(--hairline);
}

.final-cta__glow {
  position: absolute;
  left: 22%;
  bottom: -55%;
  translate: -50% 0;
  width: min(760px, 120%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.44), transparent 62%);
  filter: blur(50px);
}

.final-cta__main,
.final-cta__next {
  position: relative;
  z-index: 2;
}

.final-cta__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.final-cta__title {
  max-width: 16ch;
  margin: 22px 0 18px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}

.final-cta .muted {
  max-width: 46ch;
  margin-bottom: 34px;
}

/* No margin-inline: auto — .field--lg only appears in the final CTA,
   which is left-aligned now, not centered. */
.field--lg {
  max-width: 540px;
}

.final-cta__next {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line-soft);
}

.final-cta__next-label {
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.final-cta__steps {
  display: grid;
  gap: var(--space-5);
}

.final-cta__steps li {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}

.final-cta__step-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-3);
}

.final-cta__steps p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ==========================================================================
   09. Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* The asymmetric bleed only works alongside the 7/5 column split — once
     the grid stacks to one column, both reset to plain block flow. */
  .hero__copy {
    grid-column: 1;
    max-width: 660px;
  }

  .hero__lede {
    max-width: none;
  }

  /* Authored line breaks stop helping once the column narrows. */
  .hero__title-line {
    display: inline;
  }

  .hero__stage {
    grid-column: 1;
    margin-left: 0;
    min-height: 600px;
  }

  .stats,
  .faq-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .faq-layout .section-head {
    position: static;
  }

  /* The vertical divider between the two final-cta columns doesn't mean
     anything once they're stacked — swap it for a horizontal one. */
  .final-cta__next {
    padding-left: 0;
    padding-top: clamp(28px, 4vw, 40px);
    margin-top: clamp(28px, 4vw, 40px);
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .blueprint__body {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "nav nav"
      "chart chart"
      "list chat";
  }

  .feature-lead {
    grid-template-columns: 1fr;
  }

  .feature-lead__visual {
    min-height: 150px;
  }

  .feature-card--sm { grid-column: span 3; }
  .feature-card--md { grid-column: span 3; }

  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: clamp(26px, 4vw, 38px);
  }

  /* Two-up: the rail should terminate at the end of each row, not run
     into the gap where the next row starts. */
  .roadmap__step:nth-child(2n) .roadmap__rail::before {
    right: 0;
    background: linear-gradient(90deg, var(--line), transparent);
  }
}

@media (max-width: 900px) {
  .nav,
  .site-header__signup,
  .site-header__actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card--featured {
    grid-column: 1 / -1;
  }

  /* Chips would sit outside the narrower stage and clip. */
  .float-chip--a {
    left: 0;
  }

  .float-chip--b {
    right: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 72px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .hero__stage {
    min-height: 470px;
  }

  .stage-ring,
  .hero__beam,
  .scroll-cue {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  /* Number-beside-label stops working at phone widths — stack instead. */
  .stat-card--featured {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* Chips shrink and tuck inside the stage rather than hanging off it. */
  .float-chip {
    padding: 9px 13px;
  }

  .float-chip strong {
    font-size: 0.76rem;
  }

  .float-chip--a {
    top: 2%;
  }

  .float-chip--b {
    bottom: 4%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-lead,
  .feature-card--sm,
  .feature-card--md {
    grid-column: span 1;
  }

  /* Vertical rail: the node moves to a left gutter and the line runs down
     beside the card instead of across the top. */
  .roadmap {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .roadmap__step {
    grid-template-rows: none;
    grid-template-columns: 26px 1fr;
    gap: 18px;
    padding-bottom: 22px;
  }

  .roadmap__step:last-child {
    padding-bottom: 0;
  }

  .roadmap__rail {
    justify-content: center;
    padding-top: 24px;
    align-items: flex-start;
  }

  .roadmap__rail::before {
    left: 50%;
    right: auto;
    top: 30px;
    bottom: -22px;
    width: 1px;
    height: auto;
    translate: -50% 0;
  }

  .roadmap__step.is-active .roadmap__rail::before {
    background: linear-gradient(180deg, var(--accent-3), var(--line));
  }

  .roadmap__step:last-child .roadmap__rail::before,
  .roadmap__step:nth-child(2n) .roadmap__rail::before {
    right: auto;
    background: var(--line);
  }

  .roadmap__step:last-child .roadmap__rail::before {
    display: none;
  }

  .blueprint__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "chart"
      "list"
      "chat";
    min-height: auto;
  }

  .blueprint__region {
    min-height: 118px;
  }

  .compare__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .field {
    flex-direction: column;
    padding: 12px;
    border-radius: var(--r-lg);
  }

  .field input {
    padding: 10px 12px;
  }

  .field .btn {
    width: 100%;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
