/* ===================================================================
   TWO6 — The Way Of 6 · Powered by D6
   Product site design system. Palette and lean from the TWO6 identity
   (d6branding/TWO6/README.md); type pairing shared with d6.team.
   =================================================================== */

:root {
  /* Surfaces */
  --ink: #0b0f1a;
  --ink-2: #0f1526;
  --card: #121a2e;
  --card-2: #172238;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Brand */
  --royal: #173a91;
  --navy: #1c285c;
  --bright: #264dc3;
  --accent: #4f7cff;        /* text-level blue: 5.1:1 on ink */
  --accent-dim: rgba(79, 124, 255, 0.14);
  --gold: #f0a500;          /* 9.2:1 on ink */
  --gold-dim: rgba(240, 165, 0, 0.14);

  /* Text */
  --text: #ffffff;
  --muted: #a3afc6;         /* 8.6:1 on ink */
  --dim: #7f8ba3;           /* 5.6:1 on ink */

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Impact', 'Arial Narrow', sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 1rem;
  --nav-h: 76px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --nav-h: 84px; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--bright); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: rgba(79, 124, 255, 0.25) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(79, 124, 255, 0.25); border-radius: 99px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 2000;
  background: var(--gold); color: #0b0f1a; font-weight: 700;
  padding: 0.5rem 0.9rem; border-radius: 6px; transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

.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;
}

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt { background: var(--ink-2); }
.section--rule { border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding: 6.5rem 0; } .section--tight { padding: 4rem 0; } }

/* ── Type ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;              /* echoes the 0.231 lean of the mark */
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
}
h1.display { font-size: clamp(2.9rem, 8vw, 5.6rem); }
h2.display { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h3.display { font-size: clamp(1.5rem, 3vw, 2rem); }
.display .gold { color: var(--gold); }
.display .blue { color: var(--accent); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; line-height: 1.65; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head .lead { margin-top: 1rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }
p + p { margin-top: 1rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.875rem; }

main p a:not(.btn), .checks a, .tabs-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--bright); color: #fff; box-shadow: 0 8px 28px rgba(38, 77, 195, 0.35); }
.btn--primary:hover { background: #2f5be0; box-shadow: 0 10px 34px rgba(38, 77, 195, 0.5); transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #0b0f1a; box-shadow: 0 8px 28px rgba(240, 165, 0, 0.25); }
.btn--gold:hover { background: #ffb41a; transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 15, 26, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(11, 15, 26, 0.92); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { width: 112px; height: auto; }
@media (min-width: 768px) { .nav__logo img { width: 120px; } }
.nav__links { display: none; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav__links a { font-size: 0.92rem; font-weight: 600; color: var(--muted); padding: 0.4rem 0; position: relative; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav__cta { display: none; margin-left: 0.5rem; }
.nav__burger {
  margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav__burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

.nav__sheet {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 990;
  background: rgba(11, 15, 26, 0.97);
  padding: 1.25rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.nav__sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.nav__sheet a { padding: 0.95rem 0.5rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; }
.nav__sheet a[aria-current="page"] { color: var(--gold); }
.nav__sheet .btn { margin-top: 1.25rem; border-bottom: 0; font-size: 1rem; }
@media (min-width: 1024px) { .nav__sheet { display: none; } }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(38, 77, 195, 0.45), transparent 60%),
    radial-gradient(600px 400px at -10% 90%, rgba(23, 58, 145, 0.35), transparent 60%),
    var(--ink);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero__lockup { width: min(420px, 86vw); margin-bottom: 1.75rem; filter: drop-shadow(0 20px 50px rgba(38, 77, 195, 0.35)); }
.hero h1 { margin-bottom: 1.25rem; max-width: 12ch; }
.hero .lead { margin-bottom: 2rem; }
.hero__note { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; color: var(--dim); font-size: 0.85rem; }
.hero__note img { height: 18px; width: auto; opacity: 0.85; }
.hero__pulse { position: absolute; left: 50%; bottom: -1px; width: 140%; max-width: none; transform: translateX(-50%); opacity: 0.35; pointer-events: none; }
.hero__pulse path { stroke: var(--gold); stroke-width: 10; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) {
  .hero { padding: calc(var(--nav-h) + 4.5rem) 0 5.5rem; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .hero__lockup { width: min(520px, 100%); }
}

/* ── Device illustration (Form Check HUD) ── */
.device-wrap { display: flex; justify-content: center; }
.device {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #2a3350, #0d1221);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.device::after { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 99px; background: #05070d; }
.device__screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #05070d; display: flex; flex-direction: column; }
.hud__top { display: flex; align-items: center; justify-content: space-between; padding: 54px 16px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hud__chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.55rem; border-radius: 99px; background: rgba(79, 124, 255, 0.18); color: #9db5ff; font-size: 0.68rem; letter-spacing: 0.04em; }
.hud__chip--gold { background: var(--gold-dim); color: var(--gold); }
.hud__stage { position: relative; flex: 1; background: radial-gradient(120% 80% at 50% 110%, #1b2a55 0%, #0a1020 55%, #05070d 100%); overflow: hidden; }
.hud__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud__stage .bone { stroke: #9db5ff; stroke-width: 3; stroke-linecap: round; fill: none; }
.hud__stage .joint { fill: #fff; }
.hud__stage .joint--hot { fill: var(--gold); }
.hud__stage .strain { stroke: var(--gold); stroke-width: 6; stroke-linecap: round; opacity: 0.85; }
.hud__reps { position: absolute; left: 16px; top: 14px; }
.hud__reps b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3.2rem; line-height: 0.9; }
.hud__reps span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hud__angle { position: absolute; right: 16px; top: 18px; text-align: right; }
.hud__angle b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--gold); }
.hud__angle span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hud__cue {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  padding: 0.6rem 0.75rem; border-radius: 10px;
  background: rgba(240, 165, 0, 0.14); border: 1px solid rgba(240, 165, 0, 0.4);
  color: #ffd27a; font-size: 0.78rem; font-weight: 600; line-height: 1.35;
}
.hud__cue::before { content: 'CUE'; display: block; font-size: 0.58rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.15rem; }
.hud__bottom { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 12px 14px 18px; align-items: center; }
.hud__muscles { font-size: 0.68rem; color: var(--muted); line-height: 1.3; }
.hud__muscles b { color: #fff; display: block; font-size: 0.72rem; }
.hud__stop { width: 54px; height: 54px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2); display: grid; place-items: center; }
.hud__stop i { width: 18px; height: 18px; border-radius: 3px; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hud__stage .joint--hot { animation: hotPulse 1.6s ease-in-out infinite; }
  @keyframes hotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  .hero__pulse path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawPulse 3.2s var(--ease) 0.4s forwards; }
  @keyframes drawPulse { to { stroke-dashoffset: 0; } }
}

/* ── Fact strip ── */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--ink-2); padding: 1.5rem 1.25rem; }
.fact b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.6rem; line-height: 1; color: #fff; }
.fact b em { font-style: inherit; color: var(--gold); }
.fact span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } .fact { padding: 1.75rem 1.5rem; } .fact b { font-size: 3rem; } }

/* ── Cards / grids ── */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 1.25rem; } }

.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, 0.35); background: var(--card-2); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--accent-dim); color: var(--accent);
}
.card__icon--gold { background: var(--gold-dim); color: var(--gold); }
.card__icon svg { width: 22px; height: 22px; }
.card__num { position: absolute; top: 1.1rem; right: 1.25rem; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.5rem; color: rgba(255, 255, 255, 0.38); }
.card--role .role__tag { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 6px; margin-bottom: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.chip { font-size: 0.74rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: #b4bfd4; }
.chip--gold { background: var(--gold-dim); border-color: rgba(240, 165, 0, 0.3); color: var(--gold); }
.chip--blue { background: var(--accent-dim); border-color: rgba(79, 124, 255, 0.3); color: #9db5ff; }

.role--athlete .role__tag { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.role--parent .role__tag { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.role--coach .role__tag { background: rgba(79, 124, 255, 0.16); color: #8fabff; }
.role--mentor .role__tag { background: rgba(234, 179, 8, 0.16); color: #fbbf24; }
.role--sponsor .role__tag { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.role--admin .role__tag { background: rgba(251, 146, 60, 0.18); color: #fb923c; }

/* ── Feature split ── */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media { position: relative; }
.split__panel {
  background: linear-gradient(160deg, var(--card-2), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.split ul.checks { margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; color: var(--muted); line-height: 1.5; }
.checks li b { color: #fff; font-weight: 600; }
.checks li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split--flip .split__media { order: 2; }
}

/* Rep ledger illustration */
.ledger { display: grid; gap: 0.5rem; }
.ledger__row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 0.75rem; padding: 0.65rem 0.8rem; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 0.85rem; }
.ledger__row b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.25rem; color: var(--dim); }
.ledger__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ledger__bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.ledger__row--shallow .ledger__bar i { background: var(--gold); }
.ledger__flag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9db5ff; }
.ledger__row--shallow .ledger__flag { color: var(--gold); }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.ledger__head b { font-weight: 700; }
.ledger__head span { font-size: 0.75rem; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; color: #4ade80; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }

/* Coach mode illustration */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.track { border-radius: 10px; padding: 0.8rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.track__name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.4rem; }
.track__name i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.track--gold .track__name i { background: var(--gold); }
.track__reps { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.track__meta { font-size: 0.72rem; color: var(--dim); margin-top: 0.25rem; }
.track--idle { opacity: 0.55; }

/* ── The Way of 6 ── */
.way { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ink) 0%, #0d1430 50%, var(--ink) 100%); }
.way__six {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: clamp(240px, 42vw, 560px); opacity: 0.08; pointer-events: none;
}
.sixd { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sixd__item { background: rgba(11, 15, 26, 0.85); padding: 1.5rem 1.25rem; }
.sixd__item .d { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.sixd__item .d i { font-style: inherit; color: var(--gold); }
.sixd__item .sub { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0.35rem 0 0.75rem; font-weight: 800; }
.sixd__item p { color: var(--muted); font-size: 0.92rem; }
@media (min-width: 640px) { .sixd { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sixd { grid-template-columns: repeat(3, 1fr); } .sixd__item { padding: 2rem 1.75rem; } }

/* ── Steps ── */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.4rem; top: 1.35rem;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem; color: var(--gold); line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 1024px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }

/* ── Powered by D6 band ── */
.powered { background: var(--royal); color: #fff; position: relative; overflow: hidden; }
.powered::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%); pointer-events: none; }
.powered__inner { position: relative; display: grid; gap: 2rem; align-items: center; }
.powered__mark { width: 150px; height: auto; }
.powered .lead { color: rgba(255, 255, 255, 0.8); }
.powered .eyebrow { color: #ffd27a; }
.powered .btn--ghost { border-color: rgba(255, 255, 255, 0.35); }
.powered .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
@media (min-width: 1024px) { .powered__inner { grid-template-columns: 220px 1fr auto; gap: 3rem; } }

/* ── CTA band ── */
.cta {
  position: relative; overflow: hidden; border-radius: 20px; padding: 2.5rem 1.5rem; text-align: center;
  background: linear-gradient(135deg, #16224a 0%, #0f1a3d 45%, #0b0f1a 100%);
  border: 1px solid rgba(79, 124, 255, 0.3);
}
.cta::before { content: ''; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(closest-side, rgba(38, 77, 195, 0.45), transparent); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 0.75rem; }
.cta .lead { margin: 0 auto 1.75rem; }
.cta .btn-row { justify-content: center; }
@media (min-width: 768px) { .cta { padding: 4rem 2rem; } }

/* ── Tables (roles page) ── */
.tabs-list { display: grid; gap: 0.5rem; }
.tabs-list li { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.8rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.tabs-list li b { font-weight: 700; }
.tabs-list li span { color: var(--muted); font-size: 0.9rem; }
@media (min-width: 768px) { .tabs-list li { grid-template-columns: 160px 1fr; gap: 1rem; align-items: baseline; } }

/* ── Forms ── */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field label b { color: var(--gold); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(79, 124, 255, 0.06); box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a3afc6 50%), linear-gradient(135deg, #a3afc6 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { background: #121a2e; color: #fff; }
.field .hint { font-size: 0.78rem; color: var(--dim); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #f87171; }
.field .err { font-size: 0.8rem; color: #f87171; display: none; }
.field.invalid .err { display: block; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.92rem; display: none; }
.form__status.ok { display: block; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); color: #86efac; }
.form__status.err { display: block; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fca5a5; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Prose (privacy page) ── */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.4rem; margin: 0.75rem 0; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--gold-dim); border-radius: 0 10px 10px 0; color: #ffd27a; }
.prose .callout strong { color: #fff; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.toc a { font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.75rem; border-radius: 99px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); }
.toc a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  background: radial-gradient(800px 400px at 70% -20%, rgba(38, 77, 195, 0.4), transparent 60%), var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 1rem; max-width: 14ch; }
@media (min-width: 1024px) { .page-hero { padding: calc(var(--nav-h) + 5rem) 0 4.5rem; } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); background: #080b14; padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand img { width: 170px; height: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; font-weight: 800; }
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col a { color: var(--muted); font-size: 0.95rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; color: var(--dim); font-size: 0.85rem; }
.footer__powered { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.85rem; }
.footer__powered img { height: 22px; width: auto; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ── 404 ── */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem; }
.notfound .display { font-size: clamp(5rem, 20vw, 10rem); color: var(--accent); }
