/* ───────────────────────────────────────
   FILE: css/sections.css
   PURPOSE: Homepage section styles — philosophy/system, counters, module showcase,
            wave ledger, request-build form + route cards, footer, section glass.
   PART OF: Sentinel website stylesheet (split from css/styles.css)
   LAST UPDATED: 2026-06-05
   ─────────────────────────────────────── */


/* big-section heading: letter-fade-in on first reveal */
.phil-heading, .showcase-heading, .ledger-heading, .form-title {
  animation: headingFadeIn 1.1s var(--ease-out) both;
}
@keyframes headingFadeIn {
  from { opacity: 0; transform: translateY(14px); letter-spacing: -0.04em; }
  to   { opacity: 1; transform: none; }
}

/* showcase phone screen — glitch transition between modules */
.phone-screen { isolation: isolate; }
.phone-screen.glitching::before,
.phone-screen.glitching::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 30;
}
.phone-screen.glitching::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(212,148,12,0.18) 0 1px,
    transparent 1px 3px
  );
  animation: phoneScanPass .48s linear 1;
  mix-blend-mode: screen;
}
.phone-screen.glitching::after {
  background:
    linear-gradient(180deg, rgba(212,148,12,0.25), transparent 40%);
  animation: phoneFlash .48s ease-out 1;
}
@keyframes phoneScanPass {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@keyframes phoneFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* radar pulse for module dots */
@keyframes ringPulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* the form-section pulse dot in ledger foot */
.pulse-dot {
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(212,148,12,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(212,148,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,148,12,0); }
}

/* steps tab transitions */
.step { transition: background .25s, color .25s; }
.philosophy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 100px;
  align-items: start;
}
.phil-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 32px 0 36px;
}
.phil-heading em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.phil-body p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 22px;
}
.phil-body strong { color: var(--text); font-weight: 500; }

.phil-stats {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--card);
}
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.stat-row:last-child { border-bottom: none; }
.stat-row:hover { background: var(--card-alt); }
.stat-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.counters {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.counter {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.counter:last-child { border-right: none; }
.counter-val {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.counter-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-top: 18px;
  text-transform: uppercase;
}
.showcase {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.showcase-intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px var(--gutter) 40px;
  text-align: center;
}
.showcase-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 22px 0 18px;
  letter-spacing: -0.01em;
}
.showcase-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
}

/* THE STAGE — tall scroll area; inside is sticky */
.showcase-stage {
  height: 640vh; /* 6 modules × ~106vh */
  position: relative;
}
.showcase-sticky {
  position: sticky;
  top: 96px; /* below nav + ticker */
  height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  align-items: center;
}

.showcase-caption {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}
.caption-progress {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex; gap: 8px;
}
.caption-progress-now { color: var(--accent); font-size: 14px; }
.caption-progress-sep { color: var(--border); }

.caption-track {
  position: relative;
  min-height: 320px;
}
/* caption swap — inline-style driven */
.caption-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  will-change: opacity, transform;
}
.caption-card.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.caption-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-bottom: 18px;
}
.caption-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 22px;
}
.caption-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 24px;
}
.caption-bullets {
  list-style: none;
  border-top: 1px solid var(--border);
}
.caption-bullets li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text);
  display: flex; align-items: center; gap: 14px;
}
.caption-bullets li::before {
  content: ''; width: 8px; height: 1px; background: var(--accent);
}

/* showcase phone */
.showcase-phone-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.showcase-phone {
  width: clamp(280px, 30vw, 360px);
  aspect-ratio: 9 / 19.5;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 12px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow:
    0 60px 80px -40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: transform .8s var(--ease-out);
}
.phone-notch {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #050505;
  border-radius: 14px;
  z-index: 2;
}
.phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 24px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.phone-statusbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.phone-screen {
  flex: 1;
  border-radius: 28px;
  background: var(--bg);
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-2);
}
.phone-home {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 4px;
  background: var(--muted);
  border-radius: 4px;
}

/* the actual module screens — each is now a full-bleed app screenshot
   with overlay strips top + bottom that announce the module.
   Transitions are driven by JS (via Web Animations API for real browsers,
   inline-style hard-swap fallback otherwise). */
.mod-screen {
  position: absolute; inset: 0;
  opacity: 0;
  overflow: hidden;
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.mod-screen.is-active {
  opacity: 1;
  pointer-events: auto;
}
.mod-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.mod-overlay-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text);
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  z-index: 4;
  text-transform: uppercase;
  animation: overlaySlideTop .8s cubic-bezier(.16,1,.3,1) both;
}
.mod-overlay-code { color: var(--accent); }
.mod-overlay-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim);
}
.mod-overlay-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes overlaySlideTop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.mod-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 14px 14px 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  z-index: 4;
  text-transform: uppercase;
  animation: overlaySlideBot .8s cubic-bezier(.16,1,.3,1) both;
}
.mod-overlay-bottom .mod-overlay-sep { color: var(--accent); opacity: 0.6; }
@keyframes overlaySlideBot {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.mod-screen.is-active .mod-overlay-top   { animation: overlaySlideTop .8s .25s cubic-bezier(.16,1,.3,1) both; }
.mod-screen.is-active .mod-overlay-bottom { animation: overlaySlideBot .8s .35s cubic-bezier(.16,1,.3,1) both; }

/* amber-radial flash that pulses when a module becomes active */
.mod-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,148,12,0.45) 0%, rgba(212,148,12,0) 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}
.mod-screen.is-active .mod-flash { animation: modFlash .65s ease-out 1; }
@keyframes modFlash {
  0%   { opacity: 0; transform: scale(.6); }
  35%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* global scanline overlay sitting above all module screens */
.mod-scanlines {
  position: absolute; inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0) 0 2px,
      rgba(212,148,12,0.045) 2px 3px);
  mix-blend-mode: screen;
}
.mod-scanlines::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(212,148,12,0.08) 50%,
    transparent 100%);
  animation: phoneSweep 4.5s linear infinite;
}
@keyframes phoneSweep {
  0%   { top: -60%; }
  100% { top: 100%; }
}
.mod-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; color: var(--muted);
}
.mod-head .accent { color: var(--accent); }
.mod-bignum {
  font-family: var(--font-mono);
  font-size: 64px; line-height: 0.92; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.mod-bignum .unit { font-size: 14px; color: var(--muted); letter-spacing: 0.18em; margin-left: 6px; }
.mod-sublabel { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 0.22em; }
.mod-grid2 {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-2);
  background: rgba(26,26,23,0.5);
}
.mod-grid2 > div {
  padding: 10px 12px;
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.mod-grid2 > div:nth-child(2n) { border-right: none; }
.mod-grid2 > div:nth-last-child(-n+2) { border-bottom: none; }
.mod-grid2 .k { font-family: var(--font-mono); font-size: 8px; color: var(--muted); letter-spacing: 0.18em; display: block; }
.mod-grid2 .v { font-family: var(--font-mono); font-size: 18px; color: var(--text); }
.mod-grid2 .v.amber { color: var(--accent); }

.mod-map {
  height: 120px;
  background: repeating-linear-gradient(45deg, #15151200 0 8px, #1a1a1700 8px 16px), var(--bg2);
  border: 1px solid var(--border-2);
  position: relative;
}
.mod-map svg { width: 100%; height: 100%; }

.mod-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-2);
  color: var(--text);
}
.mod-row:last-child { border-bottom: none; }
.mod-row .meta { color: var(--muted); font-size: 9px; letter-spacing: 0.16em; }
.mod-row .pill { font-size: 9px; padding: 2px 6px; border: 1px solid currentColor; letter-spacing: 0.14em; }
.mod-row .ok { color: var(--green); }
.mod-row .warn { color: var(--accent); }

.mod-alert {
  border: 2px solid var(--red);
  padding: 16px;
  text-align: center;
}
.mod-alert .ti {
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  letter-spacing: 0.24em; margin-bottom: 12px;
}
.mod-alert .count {
  font-family: var(--font-mono); font-size: 56px; color: var(--red); line-height: 0.9;
}
.mod-alert .desc { font-size: 12px; color: var(--text-dim); margin-top: 10px; line-height: 1.4; }

/* radar viz */
.mod-radar {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.mod-radar svg { width: 100%; max-width: 220px; }

/* showcase rail */
.showcase-rail {
  position: absolute;
  top: 12%; bottom: 12%;
  right: -4px;
  width: 2px;
}
.rail-track {
  position: absolute; inset: 0;
  background: var(--border);
}
.rail-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0;
  background: var(--accent);
  transition: height .15s linear;
}
.rail-dots {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.rail-dots span {
  width: 8px; height: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 50%;
  margin-left: -3px;
}
.rail-dots span.on { background: var(--accent); border-color: var(--accent); }
.ledger-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter);
}
.ledger-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 24px 0 48px;
}
.ledger-heading em { color: var(--accent); font-style: italic; font-weight: 400; }

.ledger-table {
  border: 1px solid var(--border);
  background: var(--card);
}
.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 80px 1fr 160px 160px;
  align-items: center;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--border-2);
}
.ledger-head {
  color: var(--muted);
  background: var(--bg2);
  letter-spacing: 0.24em;
  font-size: 10px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .no { color: var(--accent); font-size: 14px; }
.ledger-row .bike { color: var(--text); font-family: var(--font-body); font-size: 16px; letter-spacing: 0.02em; }
.ledger-row .city { color: var(--text-dim); }
.ledger-row .when { color: var(--muted); }
.ledger-row:hover { background: var(--card-alt); }

.ledger-foot {
  margin-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.ledger-pulse { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.form-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter) 140px;
  border-top: 1px solid var(--border);
}
.form-header { margin-bottom: 64px; max-width: 720px; }
.form-title {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 18px 0 18px;
  line-height: 1.05;
}
.form-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 580px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
}

/* stepper */
.steps {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.step {
  flex: 1;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.step:last-child { border-right: none; }
.step .step-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.2em;
}
.step .step-name {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.2em;
}
.step.active { background: var(--accent-bg); }
.step.active .step-num,
.step.active .step-name { color: var(--accent); }
.step.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.step.done .step-num,
.step.done .step-name { color: var(--green); }

/* panels */
.form-panel { display: none; }
.form-panel.active {
  display: block;
  animation: panelIn .5s var(--ease-out);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.field-label span { color: var(--accent); margin-left: 6px; }

.field input, .field textarea, .field select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: var(--card-alt);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); font-size: 12px; }
.field textarea { resize: none; height: 120px; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23585650'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field select option { background: var(--card); }

/* option groups */
.option-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}
.accent-group { grid-template-columns: 1fr 1fr 1fr; }
.option {
  background: var(--card);
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.option:hover { background: var(--card-alt); }
.option.selected { background: var(--accent-bg); }
.option.selected::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.option-code {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.28em; color: var(--accent);
  margin-bottom: 6px;
}
.option-name {
  font-family: var(--font-body); font-weight: 500;
  font-size: 16px; color: var(--text); margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.option-desc { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.accent-swatch {
  display: block; width: 22px; height: 22px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.swatch-amber { background: var(--accent); }
.swatch-warm-white { background: #e8e4d8; }
.swatch-deep-red { background: var(--red); }
.field-invalid { border-color: var(--red) !important; }
.form-error-region { display: none; }
.form-error-region.is-visible { display: block; }
.is-hidden { display: none !important; }
.apply-gate {
  max-width: 720px;
  margin: 0 auto 48px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 34px;
}
.apply-gate h3 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 14px;
}
.apply-gate p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 24px;
}
.apply-gate-link {
  text-decoration: none;
  width: fit-content;
}

.route-shell {
  padding-top: 130px;
}

.route-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.route-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 32px;
}

.route-card h3 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.route-card p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.route-link {
  width: fit-content;
  text-decoration: none;
}

/* rider question */
.rider-question {
  border: 1px solid var(--border);
  padding: 32px;
  background: var(--card);
  margin-bottom: 28px;
}
.rq-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; color: var(--accent);
  margin-bottom: 18px;
}
.rq-text {
  font-family: var(--font-italic);
  font-size: 19px; color: var(--text);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 16px;
}
.rq-text em { color: var(--accent); font-style: normal; }
.rq-foot {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.18em; line-height: 1.6;
}

/* form nav */
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.btn-next, .btn-prev, .btn-submit {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em;
  padding: 14px 28px; cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .25s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn-next, .btn-submit { background: var(--accent); color: var(--bg); }
.btn-next:hover, .btn-submit:hover { background: var(--accent-2); }
.btn-prev {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-prev:hover { color: var(--text); border-color: var(--text-dim); }
.btn-next span, .btn-submit span { transition: transform .25s; }
.btn-next:hover span { transform: translateX(4px); }
.step-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* live preview column */
.preview-col {
  position: relative;
  height: 100%;
}
.preview-sticky {
  position: sticky;
  top: 110px;
}
.preview-phone {
  width: 100%;
  max-width: 320px;
  margin: 18px 0 22px;
  aspect-ratio: 9 / 19;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 14px 14px 22px;
  position: relative;
  transition: border-color .3s;
}
.preview-phone[data-accent="amber"]     { border-color: rgba(212,148,12,0.4); }
.preview-phone[data-accent="warm-white"] { border-color: rgba(232,228,216,0.35); }
.preview-phone[data-accent="deep-red"]   { border-color: rgba(184,64,64,0.4); }

.pp-notch {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 18px;
  background: #050505;
  border-radius: 10px;
  z-index: 2;
}
.pp-screen {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 18px 22px;
  height: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.pp-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--muted);
}
.pp-brand { color: var(--accent); letter-spacing: 0.28em; }
.pp-bike {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 0.16em;
  margin-top: 4px;
}
.pp-bigval {
  font-family: var(--font-mono);
  font-size: 56px; line-height: 1;
  color: var(--accent);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.pp-bigkey {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--muted); letter-spacing: 0.24em;
  margin-bottom: 12px;
}
.pp-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-2);
  margin-top: auto;
}
.pp-grid > div {
  padding: 10px 12px;
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  display: flex; flex-direction: column; gap: 4px;
}
.pp-grid > div:nth-child(2n) { border-right: none; }
.pp-grid > div:nth-last-child(-n+2) { border-bottom: none; }
.pp-grid .k { font-family: var(--font-mono); font-size: 8px; color: var(--muted); letter-spacing: 0.2em; }
.pp-grid .v { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.pp-voice {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); letter-spacing: 0.2em;
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: center;
}

/* preview specs table */
.preview-spec {
  border: 1px solid var(--border);
}
.pspec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
}
.pspec-row:last-child { border-bottom: none; }
.pspec-k { color: var(--muted); }
.pspec-v { color: var(--accent); }

/* preview UI-profile variants */
.preview-phone[data-ui="touring-layout"] .pp-bigval { font-size: 36px; }
.preview-phone[data-ui="touring-layout"] .pp-bigkey::after { content: " · TOURING"; }
.preview-phone[data-ui="telemetry-dense"] .pp-grid { grid-template-columns: repeat(2, 1fr); }
.preview-phone[data-ui="telemetry-dense"] .pp-bigval { font-size: 40px; }
.preview-phone[data-ui="night-ride"] .pp-screen { background: #050505; }
.preview-phone[data-ui="night-ride"] .pp-bigval { color: #c47800; }

/* accent variants live */
.preview-phone[data-accent="warm-white"] .pp-bigval,
.preview-phone[data-accent="warm-white"] .pp-brand,
.preview-phone[data-accent="warm-white"] .pspec-v,
.preview-phone[data-accent="warm-white"] .pp-voice { color: #e8e4d8; }
.preview-phone[data-accent="deep-red"] .pp-bigval,
.preview-phone[data-accent="deep-red"] .pp-brand,
.preview-phone[data-accent="deep-red"] .pspec-v,
.preview-phone[data-accent="deep-red"] .pp-voice { color: #b84040; }

/* ═════════════════════════════════════════════════════════
   CONFIRMATION
   ═════════════════════════════════════════════════════════ */
.confirmation {
  display: none;
  padding: 60px 0;
  text-align: center;
  animation: panelIn .8s var(--ease-out);
}
.confirmation.is-visible { display: block; }
.conf-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--green);
  margin-bottom: 30px;
}
.conf-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  line-height: 1.3;
}
.conf-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.conf-body strong { color: var(--text); }
.build-ref {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 18px 40px;
  margin-bottom: 40px;
}
.conf-details {
  border: 1px solid var(--border);
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.conf-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 11px;
}
.conf-row:last-child { border-bottom: none; }
.conf-row-key { color: var(--muted); letter-spacing: 0.18em; }
.conf-row-val { color: var(--text); letter-spacing: 0.1em; }
footer {
  padding: 56px var(--gutter);
  border-top: 1px solid var(--border);
}
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-row + .footer-row { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border-2); }
.footer-brand {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.34em; color: var(--accent);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em; color: var(--muted);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; color: var(--muted);
  flex-wrap: wrap; gap: 14px;
  justify-content: flex-start;
}

/* ─── SECTION GLASS SURFACES (Part 3) ───────────────────── */
section, .auth-shell, .page-hero {
  position: relative;
  background: rgba(10, 10, 8, 0.65);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
@supports not ((backdrop-filter: blur(1px)) or
               (-webkit-backdrop-filter: blur(1px))) {
  section, .auth-shell, .page-hero {
    background: rgba(10, 10, 8, 0.92);
  }
}
