/* ==========================================================================
   FastPytch marketing site — design system
   A product of Solo Vault AI, Inc.
   Blend: night-ops fintech (dark ink + electric cyan/magenta) with rugged
   oil/industrial accents (brushed steel, amber, condensed display type).
   Source of truth for tokens: docs/PRODUCT_CONTENT_BRIEF.md (sec 6).
   ========================================================================== */

/* Surfaces are solid tokens (no muddy gray washes / decorative gradients).
   Brand accents (cyan, magenta, amber) are solid fills and ink — not gradient
   text. Hero photo scrim and engineering grid remain as non-surface treatments. */

/* ----- Tokens ----------------------------------------------------------- */
/* Dual-theme system (PHASE_178): :root is the LIGHT default; a
   `html[data-theme="dark"]` override restores the night-ops dark look.
   Brand accents (cyan/magenta/amber/steel/status) and the fixed ink palette
   are identical in both themes; only the semantic surface / text / line /
   shadow / chrome tokens flip. */
:root {
  color-scheme: light;

  /* Ink palette — fixed dark brand ink. Used by the intentionally-dark
     regions (hero photo band, compliance steel panel, dashboard mock) in BOTH
     themes, and as the dark theme's surfaces. */
  --ink-950: #0a0e14;
  --ink-900: #0f1620;
  --ink-800: #161f2d;
  --ink-700: #1f2b3d;
  --ink-600: #2b3a52;

  /* Brand accents (identical in both themes) */
  --cyan: #00bdff;
  --magenta: #d600ff;

  /* Rugged industrial accents */
  --amber: #ffb000;
  --amber-deep: #c8780a;
  --steel-1: #3a444f;
  --steel-2: #5b6672;
  --steel-3: #8a96a3;

  /* Status (use sparingly on web) */
  --success: #28d17c;
  --warning: #ffd700;
  --error: #ff4d4d;

  /* --- Theme-aware semantic tokens (LIGHT defaults) --- */
  /* Surfaces — pure white page in light theme (user preference / readability).
     Subtle inset/panel bands stay cool-slate so sections still separate. */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-inset: #f3f6fb;
  --card: var(--surface);
  --card-raised: var(--surface-raised);

  /* Text */
  --text: #1a2432;
  --text-muted: #4d5a72;
  /* Dim/fine print clears WCAG AA (>=4.5:1) on --bg and white cards. */
  --text-dim: #525d74;
  --text-strong: #0a0e14; /* strong emphasis / hover text (was #fff) */
  --heading: #0f1723;

  /* Readable brand foregrounds (brand color used as TEXT / icons on the theme
     background). Deepened in light so cyan/magenta/amber clear WCAG AA on the
     base --bg; equal to the vivid brand accents in dark. */
  --fg-cyan: #0a6b8a;
  --fg-magenta: #a10bbf;
  --fg-amber: #9a5b00;
  --link-hover: #095a76;

  /* Lines / overlays / shadows */
  --hairline: rgba(15, 23, 42, 0.1);
  --hairline-strong: rgba(15, 23, 42, 0.17);
  --overlay: rgba(15, 23, 42, 0.04); /* subtle fills (was white 3–6%) */
  --shadow: rgba(15, 23, 42, 0.12);
  --shadow-strong: rgba(15, 23, 42, 0.2);

  /* Chrome (solid — opaque for readable contrast, no blur washes) */
  --nav-bg: #ffffff;
  --drawer-bg: #ffffff;
  --panel-wash: #f3f6fb;
  --scrim: rgba(15, 23, 42, 0.55);
  --steel-surface: #eef2f7;
  --rivet: #5b6672;

  /* Engineering grid (line pattern only; no ambient color wash) */
  --grid-line: rgba(43, 58, 82, 0.05);

  /* Type */
  --font-display: "Oswald", "Archivo Narrow", "Arial Narrow", "Inter",
    system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas,
    monospace;

  /* Spacing / shape */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 132px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;
}

/* --- Dark theme (restores the original night-ops look verbatim) --- */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: var(--ink-950);
  --surface: var(--ink-800);
  --surface-raised: var(--ink-700);
  --surface-inset: var(--ink-900);

  --text: #e2e8f0;
  --text-muted: #94a3b8;
  /* Lightened from #64748b so fine print clears WCAG AA (>=4.5:1) on the
     tinted ink panels it sits on (ink-800/900/950). */
  --text-dim: #7c8a9e;
  --text-strong: #ffffff;
  --heading: #f3f7fb;

  --fg-cyan: var(--cyan);
  --fg-magenta: var(--magenta);
  --fg-amber: var(--amber);
  --link-hover: #6fd7ff;

  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --overlay: rgba(255, 255, 255, 0.03);
  --shadow: rgba(0, 0, 0, 0.55);
  --shadow-strong: rgba(0, 0, 0, 0.9);

  --nav-bg: #0a0e14;
  --drawer-bg: #0a0e14;
  --panel-wash: #0f1620;
  --scrim: rgba(5, 8, 12, 0.78);
  --steel-surface: #1a2028;
  --rivet: #8a96a3;

  --grid-line: rgba(138, 150, 163, 0.05);
}

/* --- Intentionally-dark regions (steel compliance panel and the dashboard
   "product screenshot" inset). These sit on dark console chrome, so they carry
   the dark foreground tokens in BOTH themes to stay legible; the dashboard mock
   is a deliberate dark operator-console inset. The hero follows the active
   theme (light by default) so it matches the rest of the page. --- */
.compliance__panel,
.dash {
  --surface: var(--ink-800);
  --surface-raised: var(--ink-700);
  --surface-inset: var(--ink-900);
  --card: var(--ink-800);

  --text: #e2e8f0;
  --text-muted: #b6c1d1;
  --text-dim: #93a1b5;
  --text-strong: #ffffff;
  --heading: #f3f7fb;

  --fg-cyan: var(--cyan);
  --fg-magenta: var(--magenta);
  --fg-amber: var(--amber);

  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --overlay: rgba(255, 255, 255, 0.03);
  --steel-surface: #1a2028;
}

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

/* The `hidden` attribute must always win over component `display` rules.
   Auth nav controls toggle via `.hidden`; without this, class-level
   `display: flex/inline-flex` overrides the UA `[hidden]` rule and both the
   signed-out button and signed-in chip render at once. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Solid page backdrop (engineering grid lives on body::after) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 0%,
    #000 30%,
    transparent 85%
  );
}

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

a {
  color: var(--fg-cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--link-hover);
}

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(40px, 6vw, 80px);
}

/* Subtle alternating band for long-scroll rhythm (S3) */
.section--band {
  background: var(--surface-inset);
  border-block: 1px solid var(--hairline);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----- Type ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-cyan);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--fg-cyan);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  text-transform: uppercase;
}
h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 62ch;
}
.lede--tight {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  margin-top: -0.35rem;
  margin-bottom: 1.75rem;
  max-width: 54ch;
}
.lede--center {
  margin-inline: auto;
  text-align: center;
}

.muted {
  color: var(--text-muted);
}
.fine {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.text-cyan {
  color: var(--fg-cyan);
}
.text-magenta {
  color: var(--fg-magenta);
}
.text-amber {
  color: var(--fg-amber);
}

/* Brand accent word — solid cyan (readable; no gradient text) */
.gradient-text {
  color: var(--fg-cyan);
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95em 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--cyan);
  color: #04121b;
  box-shadow: 0 10px 30px -12px rgba(0, 189, 255, 0.45);
}
.btn--primary:hover {
  color: #04121b;
  background-color: #33c9ff;
  box-shadow: 0 16px 40px -12px rgba(0, 189, 255, 0.55);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  color: var(--text-strong);
  border-color: var(--cyan);
  background-color: rgba(0, 189, 255, 0.07);
}

/* ----- Cards / surfaces ------------------------------------------------- */
.card {
  background-color: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  position: relative;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}

/* steel plate accent (rugged panels) — solid plate, no gray wash */
.plate {
  background-color: var(--steel-surface);
  border: 1px solid var(--steel-1);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* rivets in corners */
.plate--riveted {
  position: relative;
}
.plate--riveted::before,
.plate--riveted::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rivet);
  top: 12px;
}
.plate--riveted::before {
  left: 12px;
}
.plate--riveted::after {
  right: 12px;
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* tag / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--overlay);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.4em 0.85em;
}
.chip--amber {
  color: var(--fg-amber);
  border-color: rgba(255, 176, 0, 0.35);
  background-color: rgba(255, 176, 0, 0.07);
}

/* ----- Navbar ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Solid chrome always — right-side actions sit over the hero photo; a
     transparent bar made theme toggle / CTAs fight the neon art. */
  background-color: var(--nav-bg);
  transition: border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  border-bottom-color: var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading);
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand b {
  font-weight: 700;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--text-strong);
}
.nav__links a.is-active {
  color: var(--text-strong);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg-cyan);
}
.nav__actions {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 940px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 11px;
}
.nav__toggle span {
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
@media (min-width: 940px) {
  .nav__toggle {
    display: none;
  }
}

/* theme toggle (nav + drawer) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  color: var(--text-muted);
  background-color: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover {
  color: var(--text-strong);
  border-color: var(--cyan);
  background-color: rgba(0, 189, 255, 0.07);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}
.theme-toggle__icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Show the moon in light mode (tap to go dark); show the sun in dark mode. */
.theme-toggle__moon {
  display: block;
}
.theme-toggle__sun {
  display: none;
}
html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}
.theme-toggle--drawer {
  width: 100%;
  height: auto;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.theme-toggle--drawer .theme-toggle__marks {
  display: inline-flex;
}

/* mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 72px 0 auto 0;
  background-color: var(--drawer-bg);
  border-bottom: 1px solid var(--hairline);
  padding: 18px var(--gutter) 28px;
  display: grid;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  z-index: 99;
}
.nav__drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__drawer a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline);
}
.nav__drawer .btn {
  margin-top: 14px;
}

/* ----- Footer ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 6vw, 76px) 36px;
  background-color: var(--panel-wash);
}
.footer__grid {
  display: grid;
  gap: 38px;
}
@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer__col h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer__col a:hover {
  color: var(--text-strong);
}
.footer__company address,
.footer__address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-top: 18px;
}
.footer__blurb {
  margin-top: 14px;
  max-width: 42ch;
}
.footer__org {
  color: var(--text);
}
.footer__copy {
  margin: 0;
}
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

/* ----- Scroll reveal ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

/* ----- Stat counter chrome --------------------------------------------- */
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--heading);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ----- Utilities -------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.no-scroll {
  overflow: hidden;
}

/* ----- Icons ------------------------------------------------------------ */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  color: var(--fg-cyan);
  background: rgba(0, 189, 255, 0.08);
  border: 1px solid rgba(0, 189, 255, 0.22);
  margin-bottom: 18px;
}
.icon-badge--magenta {
  color: var(--fg-magenta);
  background: rgba(214, 0, 255, 0.08);
  border-color: rgba(214, 0, 255, 0.24);
}
.icon-badge--amber {
  color: var(--fg-amber);
  background: rgba(255, 176, 0, 0.08);
  border-color: rgba(255, 176, 0, 0.26);
}

/* ----- Hero ------------------------------------------------------------- */
.hero {
  /* Contain the photo + solid copy panel so they cannot paint into the
     root negative-z layer (body::before/::after) and leave an empty white
     slab beside text that sits on the neon photo. */
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 88vh, 880px);
  padding-top: 130px;
  padding-bottom: 64px;
  overflow: hidden;
  --hero-copy-max: 700px;
  --hero-panel-pad: 48px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg) url("../img/hero.jpg") center right / cover no-repeat;
}
/* Solid readable panel behind the text column only — hard edge into the
   photo, no translucent gray fade (that mid-field wash reads muddy).
   Width tracks the centered .container + .hero__inner column so copy never
   sits on the neon art. */
.hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(
    100%,
    max(
      50%,
      calc(
        (100% - min(100%, var(--maxw))) / 2 + var(--gutter) + var(--hero-copy-max) +
          var(--hero-panel-pad)
      )
    )
  );
  background: var(--bg);
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero__inner {
  max-width: var(--hero-copy-max);
}
.hero h1 {
  margin-bottom: 0.34em;
}
.hero .lede {
  margin-bottom: 1.1rem;
}
.hero .lede--tight {
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__aside {
  margin: 18px 0 0;
}
.decklink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.decklink:hover {
  color: var(--fg-cyan);
  border-bottom-color: currentColor;
}
.decklink svg {
  flex: none;
}
.hero__note {
  margin-top: 22px;
}
@media (max-width: 720px) {
  .hero__bg {
    background-position: 70% bottom;
  }
  .hero__bg::after {
    /* Mobile: solid band over the TOP/text half — photo peeks below.
       (A bottom-aligned band left the headline on the neon art.) */
    width: 100%;
    height: 78%;
    top: 0;
    bottom: auto;
    background: var(--bg);
  }
}

/* Dark theme: same solid-panel geometry on night-ops ink. */
html[data-theme="dark"] .hero__bg {
  background-color: #0a0e14;
}
html[data-theme="dark"] .hero__bg::after {
  background: #0a0e14;
}

/* ----- Stat strip ------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--panel-wash);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 940px) {
  .stats__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.stat {
  text-align: center;
  padding: clamp(22px, 3vw, 34px) 14px;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.stat .stat__value {
  color: var(--fg-cyan);
}

/* ----- Section heads with eyebrow grid --------------------------------- */
.section__head h2 {
  margin-bottom: 0.4em;
}

/* ----- Generic card content -------------------------------------------- */
.card h3 {
  margin-bottom: 0.4em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ----- Problem list ----------------------------------------------------- */
.problem__grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.problem__item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(255, 77, 77, 0.04);
  border: 1px solid rgba(255, 77, 77, 0.16);
  border-radius: var(--radius);
}
.problem__item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fg-amber);
  flex: none;
  line-height: 1.3;
}
.problem__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ----- How it works (pipeline) ----------------------------------------- */
.how__diagram {
  margin-top: 8px;
  background: var(--panel-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.4vw, 40px) clamp(14px, 3vw, 36px);
  overflow-x: auto;
}
.how__diagram:focus-visible {
  outline: 2px solid var(--fg-cyan);
  outline-offset: 3px;
}
.how__diagram img {
  width: 100%;
  min-width: 620px;
  margin-inline: auto;
}
.how__hint {
  display: none;
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: right;
}
@media (max-width: 660px) {
  .how__hint {
    display: block;
  }
}

/* ----- Feature categories ---------------------------------------------- */
.feat__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.feat__head h3 {
  margin: 0;
}
.feat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feat li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  line-height: 1.45;
}
.feat li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--fg-cyan);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat li b {
  color: var(--heading);
  font-weight: 600;
}
.feat li span {
  color: var(--text-muted);
}

/* ----- Architecture ----------------------------------------------------- */
.arch {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
@media (min-width: 960px) {
  .arch {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.arch__diagram {
  padding: clamp(16px, 2.4vw, 28px);
}
.arch__diagram img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.arch__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.arch__list li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.arch__list li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--fg-cyan);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ----- Lifecycle stages ------------------------------------------------- */
.stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 6px;
  margin-bottom: 26px;
}
.stage {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.6em 1em;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--overlay);
  color: var(--text);
  white-space: nowrap;
}
.stage--start {
  border-color: rgba(0, 189, 255, 0.5);
  color: var(--fg-cyan);
}
.stage--win {
  border-color: rgba(214, 0, 255, 0.55);
  background: rgba(214, 0, 255, 0.1);
  color: var(--fg-magenta);
}
.stages__sep {
  color: var(--steel-3);
  font-weight: 700;
}
.stages--terminal .stage {
  border-color: rgba(255, 176, 0, 0.4);
  color: var(--fg-amber);
  background: rgba(255, 176, 0, 0.06);
}
.lifecycle__note {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
@media (min-width: 760px) {
  .lifecycle__note {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Compliance panel ------------------------------------------------- */
.compliance__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--steel-1);
  border-radius: var(--radius-lg);
  background: #11161d url("../img/steel-texture.jpg") center / cover no-repeat;
  padding: clamp(28px, 5vw, 60px);
}
.compliance__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.88);
}
.compliance__panel > * {
  position: relative;
}
.compliance__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .compliance__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.compliance__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.compliance__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--cyan);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.regbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ----- CTA band --------------------------------------------------------- */
.cta {
  text-align: center;
}
.cta__panel {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 60px);
}
.cta__panel h2 {
  margin-bottom: 0.4em;
}
.cta__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.cta__assurance {
  margin: 18px auto 0;
  max-width: 48ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----- Dashboard preview ------------------------------------------------ */
.dash {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px var(--shadow-strong),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}
.dash__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--ink-950);
  border-bottom: 1px solid var(--hairline);
}
.dash__dots {
  display: flex;
  gap: 7px;
}
.dash__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2b3a52;
}
.dash__dots i:nth-child(1) {
  background: #ff5f56;
}
.dash__dots i:nth-child(2) {
  background: #ffbd2e;
}
.dash__dots i:nth-child(3) {
  background: #27c93f;
}
.dash__url {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 4px 12px;
}
.dash__body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .dash__body {
    grid-template-columns: 184px 1fr;
  }
}
.dash__side {
  display: none;
  padding: 18px 14px;
  border-right: 1px solid var(--hairline);
  background: var(--ink-900);
}
@media (min-width: 760px) {
  .dash__side {
    display: block;
  }
}
.dash__side .brand {
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.dash__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.dash__nav li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 9px 11px;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.dash__nav li.active {
  color: var(--text-strong);
  background: rgba(0, 189, 255, 0.1);
  border: 1px solid rgba(0, 189, 255, 0.22);
}
.dash__nav i {
  color: var(--cyan);
  font-style: normal;
}
.dash__main {
  padding: clamp(16px, 2.4vw, 26px);
}
.dash__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) {
  .dash__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dashcard {
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.dashcard .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dashcard .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--text-strong);
  margin-top: 4px;
}
.dashcard .v.cyan {
  color: var(--cyan);
}
.dashcard .v.magenta {
  color: var(--magenta);
}
.dash__lower {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 720px) {
  .dash__lower {
    grid-template-columns: 1.3fr 1fr;
  }
}
.dash__panel {
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.dash__panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 110px;
}
.chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--cyan);
  min-height: 6px;
}
.chart span:nth-child(even) {
  background: var(--magenta);
}
.dash__rows {
  display: grid;
  gap: 9px;
}
.dash__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.dash__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pill-status {
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.pill-status.ok {
  color: var(--success);
}
.pill-status.warn {
  color: var(--warning);
}
.pill-status.run {
  color: var(--cyan);
}
.dashboard__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.dashboard__note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg-amber);
}
.dashboard__note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.15);
}

/* ----- Modal ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__panel {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 30px 80px -40px var(--shadow-strong);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s var(--ease);
  position: relative;
}
.modal.is-open .modal__panel {
  transform: none;
}
.modal__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--amber);
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.28);
}
.modal__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal__panel h3 {
  margin-bottom: 0.5em;
}
.modal__panel p {
  color: var(--text-muted);
  margin: 0 auto 1.4em;
  max-width: 42ch;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover {
  color: var(--text-strong);
  border-color: var(--hairline-strong);
}

/* ----- Auth: nav controls (PHASE_176, polished PHASE_178) ------------- */
/* Signed-out "Sign in" is a ghost button sized to sit level with the theme
   toggle and the primary CTA. */
.auth-signin {
  padding: 0.66em 1.15em;
  font-size: 0.86rem;
}
/* Signed-in state reads as ONE cohesive control: a status dot + email on the
   left, a divided "Sign out" affordance on the right. Legible in both themes. */
.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 5px 4px 13px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--overlay);
  max-width: 340px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.auth-chip:hover {
  border-color: var(--cyan);
}
.auth-chip:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 189, 255, 0.18);
}
.auth-chip__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
/* Signed-in status dot (leads the email). */
.auth-chip__email::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(40, 209, 124, 0.18);
}
.auth-chip__out {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-inset);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.auth-chip__out:hover {
  color: var(--text-strong);
  border-color: var(--magenta);
  background: rgba(214, 0, 255, 0.12);
}
.auth-chip__out:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}
/* Drawer variants stretch full width to match the mobile menu buttons. */
.nav__drawer .auth-signin {
  margin-top: 14px;
}
.auth-chip--drawer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  max-width: none;
  border-radius: var(--radius-sm);
  padding: 8px 8px 8px 14px;
}
.auth-chip--drawer .auth-chip__email {
  max-width: none;
}

/* ----- Auth: modal (reuses .modal / .modal__panel primitives) --------- */
.modal__panel--auth {
  width: min(440px, 100%);
  text-align: left;
}
.modal__icon--auth {
  color: var(--fg-cyan);
  background: rgba(0, 189, 255, 0.1);
  border: 1px solid rgba(0, 189, 255, 0.28);
}
.modal__panel--auth h3 {
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 0 0 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
}
.auth-tab {
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.auth-tab:hover {
  color: var(--text);
}
.auth-tab.is-active {
  color: #04121b;
  background-color: var(--cyan);
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 14px;
}
.auth-field {
  display: grid;
  gap: 6px;
}
.auth-field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--surface-inset);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-input::placeholder {
  color: var(--text-dim);
}
.auth-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 189, 255, 0.18);
}

.auth-status {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  line-height: 1.4;
}
.auth-status.is-error {
  color: var(--error);
}
.auth-status.is-ok {
  color: var(--success);
}
.auth-status.is-info {
  color: var(--text-muted);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-strong);
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: #fff;
  color: #1f1f1f;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px var(--shadow-strong);
}
.auth-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.auth-google__mark {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ----- Flow infographic (organization -> FastPytch -> audience) --------- */
.flowgraph {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}
@media (min-width: 860px) {
  .flowgraph {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
}
.flownode {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}
/* Organization vs audience are distinguished by a full brand-tinted border
   (kept on the rounded card) rather than a top side-stripe accent. */
.flownode--org {
  border-color: rgba(0, 189, 255, 0.4);
}
.flownode--audience {
  border-color: rgba(214, 0, 255, 0.4);
}
.flownode__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.flownode--org .flownode__tag {
  color: var(--fg-cyan);
}
.flownode--audience .flownode__tag {
  color: var(--fg-magenta);
}
.flownode h3 {
  margin: 0 0 0.5em;
  font-size: 1.18rem;
}
.flownode p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.flownode__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.flowhub {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
@media (min-width: 860px) {
  .flowhub {
    flex-direction: column;
    padding: 0 6px;
  }
}
.flowhub__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--cyan);
  color: var(--heading);
}
.flowhub__arrow {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--steel-3);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 859px) {
  .flowhub__arrow {
    transform: rotate(90deg);
  }
}

/* ----- Scale comparison infographic ------------------------------------- */
.scalegraph {
  display: grid;
  gap: 16px;
  margin: 8px 0 44px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 38px);
}
.scalebar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.scalebar__head span:first-child {
  font-weight: 600;
  color: var(--text);
}
.scalebar__num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.scalebar__track {
  height: 16px;
  border-radius: 999px;
  background: var(--overlay);
  overflow: hidden;
}
.scalebar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cyan);
  width: 0;
  /* impeccable-disable-next-line layout-transition -- deliberate one-time reveal of 5 thin data bars; bounded, not layout thrash, and reduced-motion sets width instantly */
  transition: width 1.1s var(--ease);
}
.scalebar__fill--human {
  background: var(--steel-2);
}
.scalebar__fill--max {
  background: var(--magenta);
}

/* ==========================================================================
   PHASE S1 structure + S3 polish components
   Wireframe: docs/project/PHASE_004_s1_wireframes_visual_system.md
   Polish: docs/project/PHASE_006_s3_polish.md
   Reuses tokens above; no new brand colors.
   ========================================================================== */

/* ----- Body offset for sticky CTA --------------------------------------- */
body.has-sticky-cta {
  padding-bottom: 5.5rem;
}
@media (min-width: 720px) {
  body.has-sticky-cta {
    padding-bottom: 4.25rem;
  }
}

/* ----- Compact button (sticky bar) -------------------------------------- */
.btn--sm {
  padding: 0.7em 1.1em;
  font-size: 0.78rem;
}

/* ----- Pipeline loop (#loop) -------------------------------------------- */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pipeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
}
.pipeline__step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 2.2vw, 22px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  position: relative;
  min-height: 100%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pipeline__step:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}
.section--band .pipeline__step {
  background: var(--card);
}
.pipeline__step::after {
  content: "";
  display: none;
}
@media (min-width: 700px) {
  .pipeline__step:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: -8px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--steel-3);
    border-right: 2px solid var(--steel-3);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
}
.pipeline__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fg-cyan);
}
.pipeline__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading);
  letter-spacing: 0.02em;
}
.pipeline__hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
/* ----- Dual lane (#paths) ----------------------------------------------- */
.dual-lane {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
}
@media (min-width: 860px) {
  .dual-lane {
    grid-template-columns: 1fr 1fr;
  }
}
.lane {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-width: 1px;
  border-style: solid;
}
.lane--guided {
  border-color: rgba(0, 189, 255, 0.35);
}
.lane--builder {
  border-color: rgba(214, 0, 255, 0.35);
}
.lane__tag {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
}
.lane--guided .lane__tag {
  color: var(--fg-cyan);
  border-color: rgba(0, 189, 255, 0.4);
  background: rgba(0, 189, 255, 0.08);
}
.lane--builder .lane__tag {
  color: var(--fg-magenta);
  border-color: rgba(214, 0, 255, 0.4);
  background: rgba(214, 0, 255, 0.08);
}
.lane h3 {
  margin-bottom: 0.4em;
}
.lane__promise {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.lane__steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
}
.lane__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}
.lane__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding-top: 0.15em;
}
.lane--guided .lane__n {
  color: var(--fg-cyan);
}
.lane--builder .lane__n {
  color: var(--fg-magenta);
}
.lane__cta {
  align-self: flex-start;
  margin-top: auto;
}

/* Bridge line (once on page) */
.bridge {
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: clamp(18px, 2.5vw, 26px) clamp(20px, 3vw, 32px);
  border-left: 3px solid var(--fg-cyan);
  background: var(--surface-inset);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 72ch;
}
.bridge strong {
  color: var(--heading);
  font-weight: 600;
}

/* ----- Trust strip (#trust) --------------------------------------------- */
.trust {
  padding: clamp(28px, 5vw, 52px);
}
.section__head--on-plate {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.trust__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}
@media (min-width: 700px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.trust__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}
.trust__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ----- Use-case cards --------------------------------------------------- */
.grid--usecases {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--usecases {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid--usecases {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid--usecases .usecase:nth-child(1),
  .grid--usecases .usecase:nth-child(2),
  .grid--usecases .usecase:nth-child(3) {
    grid-column: span 2;
  }
  .grid--usecases .usecase:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .grid--usecases .usecase:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
.section--band .usecase,
.section--band .tool-card,
.section--band .card {
  background: var(--card);
}
.usecase {
  height: 100%;
}
.usecase__id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fg-amber);
  margin: 0 0 8px;
}
.usecase h3 {
  margin-bottom: 0.4em;
}
.usecase p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ----- Markets chips ---------------------------------------------------- */
.markets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
@media (min-width: 700px) {
  .markets {
    gap: 12px;
  }
}
.market-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65em 1.05em;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--text);
}
.market-chip--you {
  border-color: var(--cyan);
  color: var(--fg-cyan);
  background: rgba(0, 189, 255, 0.08);
}

/* ----- Tools grid cards ------------------------------------------------- */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 9.5rem;
}
.tool-card h3 {
  margin: 0;
}
.tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}
.tool-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex: none;
}
.tool-card__icon--cyan {
  color: var(--fg-cyan);
  background: rgba(0, 189, 255, 0.12);
  border: 1px solid rgba(0, 189, 255, 0.28);
}
.tool-card__icon--magenta {
  color: var(--fg-magenta);
  background: rgba(214, 0, 255, 0.1);
  border: 1px solid rgba(214, 0, 255, 0.28);
}
.tool-card__icon--amber {
  color: var(--fg-amber);
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.3);
}

/* ----- Module cards + badge --------------------------------------------- */
.module-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 8.5rem;
}
.module-card h3 {
  margin: 0;
}
.module-card p {
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}
.badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-dim);
}
.badge--soon {
  color: var(--fg-amber);
  border-color: rgba(255, 176, 0, 0.45);
  background: rgba(255, 176, 0, 0.1);
}

/* ----- Sticky CTA bar --------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--nav-bg);
  border-top: 1px solid var(--hairline-strong);
  box-shadow: 0 -8px 28px -18px var(--shadow-strong);
  padding-block: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cta.is-dismissed,
.sticky-cta.is-soft-hidden,
.sticky-cta.is-hero-hidden {
  display: none;
}
.sticky-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.sticky-cta__label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
}
.sticky-cta__hint {
  font-weight: 500;
}
.sticky-cta__sep {
  color: var(--text-dim);
  font-weight: 400;
}
.sticky-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sticky-cta__dismiss {
  appearance: none;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sticky-cta__dismiss:hover {
  color: var(--text);
  border-color: var(--hairline-strong);
}
.sticky-cta__dismiss:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

/* CTA panel helpers (replace inline styles) */
.cta__eyebrow {
  justify-content: center;
}
.cta__panel .lede--center {
  margin-bottom: 0.25rem;
}

/* Equal-height dual lanes on desktop */
@media (min-width: 860px) {
  .dual-lane {
    align-items: stretch;
  }
  .lane {
    min-height: 100%;
  }
}

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