/* ============================================================
   League Computer – Marketing Site
   Design system implementing Blueprint §2 (Design Direction).
   Accent token swapped to violet to match the existing app brand
   (§2.9). Change --accent-600 / --accent-100 in one place to reskin.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color – Blueprint §2.2 */
  --ink-900: #14181B;
  --ink-800: #22282d;
  --ink-700: #333c43;
  --ink-600: #5B6670;
  --ink-400: #939ea7;
  --ink-300: #C9D1D8;
  --ink-200: #e3e8ec;
  --ink-100: #eef1f3;
  --paper:   #FBFBF9;
  --surface: #FFFFFF;

  /* Accent – violet, matched to app (swap here to re-skin) */
  --accent-600: #7C3AED;
  --accent-700: #6B27D9;   /* hover: darken ~8% */
  --accent-500: #8b52f0;
  --accent-100: #F2ECFF;   /* wash / highlight blocks */
  --accent-050: #F8F5FF;

  /* Functional only – §2.2 */
  --turf-600: #1B7F5A;
  --turf-100: #E4F3EC;
  --flag-500: #C8102E;

  /* Spacing scale – 8px steps §2.4 */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* Radius family – §2.4 */
  --r-btn: 8px;
  --r-card: 12px;
  --r-shot: 16px;

  /* Shadows – at most two, very soft – §2.4 */
  --shadow-1: 0 1px 2px rgba(0,0,0,.04);
  --shadow-2: 0 8px 24px rgba(0,0,0,.06);

  /* Type – §2.3. System stack stands in for self-hosted Inter Tight /
     Inter in this static build; swap to @font-face in production. */
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo",
    "Cascadia Mono", monospace;

  --maxw: 1200px;
  --measure: 68ch;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 16px; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Type scale – §2.3 ---------- */
.display, h1.display {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-600);
  max-width: 52ch;
  line-height: 1.5;
}
p { max-width: var(--measure); }

/* Mono eyebrow – the identity move, §2.3 */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-600);
  margin: 0 0 var(--s-2);
  display: inline-block;
}
.eyebrow--muted { color: var(--ink-600); }

.mono { font-family: var(--font-mono); }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--accent-600);
}

/* ---------- Layout – §2.4 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s-7) 0; }
@media (max-width: 640px) { .section { padding: var(--s-6) 0; } }
.section--surface { background: var(--surface); }
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--ink-900);
  color: var(--paper);
}
.section--dark .lede,
.section--dark .eyebrow--muted { color: #aeb7bf; }
.section--dark .eyebrow { color: var(--accent-500); }

.section-header { max-width: 720px; margin-bottom: var(--s-5); }
.section-header .lede { margin-top: var(--s-2); }

.grid { display: grid; gap: var(--s-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Buttons – §6 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .12s ease, transform .12s ease, box-shadow .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-accent:hover { background: var(--accent-700); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink-300);
  color: var(--ink-900);
}
.btn-ghost:hover { border-color: var(--ink-600); }
.section--dark .btn-ghost { color: var(--paper); border-color: #3a434a; }
.section--dark .btn-ghost:hover { border-color: #5c6870; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
  color: var(--accent-600);
  transition: gap .12s ease;
}
.textlink:hover { gap: 10px; }
.textlink .arrow { transition: transform .12s ease; }

/* Focus states – §7.3 real focus, not outline:none */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Top announcement bar: mobile apps coming soon ---------- */
.topbar {
  background: var(--accent-050);
  border-bottom: 1px solid var(--accent-100);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; padding: 8px 24px;
  font-size: 13px; color: var(--ink-700); text-align: center;
}
.topbar-inner .glyphs { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-600); }
.topbar-inner .glyphs svg { width: 14px; height: 14px; display: block; }
.topbar-inner strong { color: var(--accent-700); font-weight: 600; }
.topbar-inner .chip {
  font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .06em; background: var(--accent-600); color: #fff;
  padding: 2px 7px; border-radius: 5px;
}
@media (max-width: 560px) { .topbar-inner .full { display: none; } }

/* ---------- Header / nav – §3.1 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.site-header.is-stuck {
  background: rgba(251,251,249,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--ink-200);
}
.nav {
  display: flex; align-items: center; gap: var(--s-3);
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); font-weight: 600; }
.brand svg { width: 26px; height: 26px; }
.brand span { letter-spacing: -0.01em; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink-700);
  font-size: 15px; font-weight: 500; background: none; border: none;
  transition: background-color .12s ease, color .12s ease;
}
.nav-links a:hover, .nav-drop > button:hover { background: var(--ink-100); color: var(--ink-900); }
.nav-links a[aria-current="page"] { color: var(--accent-600); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: var(--s-2); }
.nav-login { text-decoration: none; color: var(--ink-600); font-size: 15px; font-weight: 500; padding: 8px 6px; }
.nav-login:hover { color: var(--ink-900); }

/* Dropdown – Who it's for */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: var(--surface);
  border: 1px solid var(--ink-200); border-radius: var(--r-card);
  box-shadow: var(--shadow-2); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.nav-drop-menu a strong { display: block; font-weight: 600; color: var(--ink-900); font-size: 15px; }
.nav-drop-menu a small { color: var(--ink-600); font-size: 13px; }
.nav-drop-menu a:hover { background: var(--ink-100); }

/* Mobile nav */
.nav-toggle { display: none; padding: 8px; border-radius: 8px; border: 1px solid var(--ink-200); background: var(--surface); }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-login.desk, .nav-cta .btn.desk { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 68px 0 0; z-index: 49;
    background: var(--paper); padding: 24px;
    transform: translateX(100%); transition: transform .2s ease;
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { display: block; padding: 14px 8px; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink-200); }
  .mobile-menu .sub a { font-size: 16px; font-weight: 500; color: var(--ink-600); padding-left: 20px; }
  .mobile-menu .pinned { position: sticky; bottom: 0; padding-top: 20px; }
  .mobile-menu .pinned .btn { width: 100%; justify-content: center; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero – §4.1 ---------- */
.hero { padding: clamp(48px, 8vw, 88px) 0 var(--s-6); }
.hero .eyebrow { margin-bottom: var(--s-3); }
.hero .display { margin-bottom: var(--s-3); }
.hero .lede { margin-bottom: var(--s-4); max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.hero-trust { margin-top: var(--s-3); color: var(--ink-600); font-size: 14.5px; }
.hero-visual { margin-top: var(--s-6); }

/* ---------- Screenshot frame – §2.5 / component ---------- */
.shot {
  border: 1px solid var(--ink-300);
  border-radius: var(--r-shot);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}
.shot-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; border-bottom: 1px solid var(--ink-200);
  background: var(--paper);
}
.shot-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-300); }
.shot-chrome .addr {
  margin-left: 10px; font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-600); background: var(--surface);
  padding: 4px 12px; border-radius: 6px; border: 1px solid var(--ink-200);
}
.shot-body { display: block; background: #0f1117; }
.shot-body svg, .shot-body img { width: 100%; display: block; }
/* Mono callout – one per image, §2.5 */
.shot-callout {
  position: absolute;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em;
  background: var(--ink-900); color: #fff;
  padding: 6px 10px; border-radius: 6px; box-shadow: var(--shadow-2);
  white-space: nowrap;
}

/* Phone frame – plain rounded rect, §2.5 */
.phone {
  width: 260px; border-radius: 28px; padding: 10px;
  background: var(--ink-900);
  box-shadow: var(--shadow-2);
}
.phone .screen { border-radius: 20px; overflow: hidden; background: #0f1117; }

/* ---------- Problem section – §4.2 ---------- */
.tool-scatter { position: relative; margin-top: var(--s-4); }
.tool-card {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow-1);
  font-weight: 500; font-size: 15px;
}
.tool-card .ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--ink-100); }
.turn-line { margin-top: var(--s-4); color: var(--ink-600); font-style: italic; max-width: 60ch; }

/* ---------- Comparison table – §2.8 / §4.3 ---------- */
.compare {
  border: 1px solid var(--ink-200); border-radius: var(--r-card);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1);
}
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink-200); }
.compare-row:first-child { border-top: none; }
.compare-cell { padding: 18px 22px; }
.compare-cell + .compare-cell { border-left: 1px solid var(--ink-200); }
.compare-head { background: var(--paper); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); font-weight: 500; }
.compare-head.now { color: var(--flag-500); }
.compare-head.lc { color: var(--turf-600); }
.compare-cell.today { color: var(--ink-600); }
.compare-cell .rowlabel { display: block; font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin-bottom: 4px; }
.compare-cell.lc-cell { font-weight: 500; }
.compare-cell.lc-cell .check { color: var(--turf-600); margin-right: 6px; }
@media (max-width: 640px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell + .compare-cell { border-left: none; border-top: 1px solid var(--ink-200); }
}

/* ---------- Feature cards – §2.8 / §4.4 ---------- */
.fcard {
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--r-card); padding: var(--s-3);
  box-shadow: var(--shadow-1);
  transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.fcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--ink-300); }
.fcard .flabel { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-600); }
.fcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.fcard p { color: var(--ink-600); font-size: 16px; margin: 0; }
.fcard .textlink { margin-top: auto; font-size: 15px; }
.fcard .ficon { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-100); display: grid; place-items: center; color: var(--accent-600); margin-bottom: 4px; }

/* ---------- Deep dive rows – §4.5 (dark) ---------- */
.dd-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.dd-row + .dd-row { margin-top: var(--s-7); }
.dd-row.rev .dd-text { order: 2; }
.dd-text .eyebrow { color: var(--accent-500); }
.dd-text h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.dd-text p { color: #aeb7bf; margin-bottom: var(--s-1); }
.dd-microstat { margin-top: var(--s-3); display: inline-flex; align-items: baseline; gap: 8px; }
.dd-microstat b { font-family: var(--font-mono); font-size: 30px; font-weight: 500; color: #fff; }
.dd-microstat span { font-size: 14px; color: #8b959d; }
@media (max-width: 800px) {
  .dd-row, .dd-row.rev { grid-template-columns: 1fr; gap: var(--s-4); }
  .dd-row.rev .dd-text { order: 0; }
}

/* ---------- Role routing cards – §4.6 ---------- */
.role-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--r-card); padding: var(--s-4);
  box-shadow: var(--shadow-1); text-decoration: none; color: inherit;
  transition: box-shadow .12s ease, transform .12s ease;
}
.role-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.role-card .rlabel { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-600); }
.role-card h3 { font-size: 22px; font-weight: 600; }
.role-card p { color: var(--ink-600); font-size: 16px; }

/* ---------- Stat strip – §2.8 / §4.7 ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-strip.four { grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: var(--s-3) var(--s-4); border-left: 1px solid var(--ink-200); }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-item .stat-label { display: block; margin-top: 8px; color: var(--ink-600); font-size: 14px; }
@media (max-width: 700px) {
  .stat-strip, .stat-strip.four { grid-template-columns: 1fr 1fr; }
  .stat-item { border-left: none; padding-left: 0; }
}

/* ---------- Quote block – §2.8 ---------- */
.quote {
  max-width: 820px;
}
.quote blockquote {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.3; font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 var(--s-3); text-wrap: balance;
}
.quote .attrib { display: flex; align-items: center; gap: 12px; color: var(--ink-600); }
.quote .attrib .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; font-weight: 600; }
.quote .attrib strong { color: var(--ink-900); font-weight: 600; display: block; }
.quote .attrib small { font-size: 14px; }

/* ---------- Steps – §4.8 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.step .num { font-family: var(--font-mono); font-size: 48px; font-weight: 500; color: var(--accent-600); line-height: 1; letter-spacing: -0.02em; }
.step h3 { font-size: 19px; font-weight: 600; margin: var(--s-2) 0 6px; }
.step p { color: var(--ink-600); font-size: 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---------- Pricing – §4.9 / §5.3 ---------- */
.pricing-note {
  background: var(--accent-050); border: 1px solid var(--accent-100);
  border-radius: var(--r-card); padding: var(--s-4);
}
.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: var(--s-3); }
.included li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-700); }
.included .check { color: var(--turf-600); flex: none; margin-top: 3px; }
@media (max-width: 640px) { .included { grid-template-columns: 1fr; } }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: start; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier {
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--r-card); padding: var(--s-4); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 14px;
}
.tier.featured { border-color: var(--accent-600); box-shadow: 0 0 0 1px var(--accent-600), var(--shadow-2); position: relative; }
.tier.featured .badge {
  position: absolute; top: -12px; left: var(--s-4);
  background: var(--accent-600); color: #fff; font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px;
}
.tier .tname { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); }
.tier .price { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.tier .price small { font-size: 15px; font-weight: 500; color: var(--ink-600); }
.tier .tdesc { color: var(--ink-600); font-size: 15px; }
.tier ul.feat { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tier ul.feat li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-700); }
.tier ul.feat .check { color: var(--turf-600); flex: none; }
.tier .btn { justify-content: center; margin-top: auto; }

/* Feature inclusion table */
.inctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.inctable th, .inctable td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--ink-200); }
.inctable thead th { border-top: none; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-600); }
.inctable td.c { text-align: center; }
.inctable .check { color: var(--turf-600); }
.inctable .dash { color: var(--ink-300); }
.inctable-wrap { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: var(--r-card); background: var(--surface); }

/* ---------- FAQ accordion – §2.8 / §4.10 ---------- */
.faq { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--ink-200); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform .2s ease; color: var(--accent-600); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 22px; color: var(--ink-600); max-width: 68ch; }
.faq-item .faq-body p + p { margin-top: 10px; }

/* ---------- CTA band – §2.8 / §4.11 ---------- */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 22ch; margin: 0 auto var(--s-2); }
.cta-band .lede { margin: 0 auto var(--s-4); }
.cta-band .row { display: flex; gap: var(--s-3); justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Demo page – §5.6 ---------- */
.demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-6); align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.form-field { margin-bottom: var(--s-3); }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--ink-300); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus { border-color: var(--accent-600); }
.form-card { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--r-card); padding: var(--s-5); box-shadow: var(--shadow-1); }
.form-side .next-list { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }
.form-side .next-list li { display: flex; gap: 14px; }
.form-side .next-list .n { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; }
.form-success { display: none; }
.form-success.show { display: block; }
.form-success .ok { width: 52px; height: 52px; border-radius: 50%; background: var(--turf-100); color: var(--turf-600); display: grid; place-items: center; margin-bottom: var(--s-3); }
form.submitted .form-body { display: none; }

/* ---------- Footer – §3.1 ---------- */
.site-footer { background: var(--ink-900); color: #9aa4ac; padding: var(--s-6) 0 var(--s-4); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-4); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #7d878f; font-size: 14.5px; margin-top: 12px; max-width: 30ch; }
.footer-safety { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: #8b949c; max-width: 36ch; }
.footer-safety svg { width: 16px; height: 16px; flex: none; color: var(--turf-600); margin-top: 1px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #7d878f; margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; text-decoration: none; color: #b6bfc6; font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid #262d33; font-size: 13.5px; color: #7d878f; flex-wrap: wrap; }
.footer-bottom a { color: #b6bfc6; text-decoration: none; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero { padding: var(--s-6) 0 var(--s-5); }
.page-hero .display { font-size: clamp(34px, 5vw, 52px); max-width: 18ch; }

/* Sticky sub-nav – product page §5.1 */
.product-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-6); align-items: start; }
.subnav { position: sticky; top: 92px; }
.subnav a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-600); font-size: 15px; font-weight: 500; border-left: 2px solid transparent; }
.subnav a:hover { color: var(--ink-900); background: var(--ink-100); }
.subnav a.active { color: var(--accent-600); border-left-color: var(--accent-600); }
.prod-block { scroll-margin-top: 92px; padding-bottom: var(--s-6); border-bottom: 1px solid var(--ink-200); margin-bottom: var(--s-6); }
.prod-block:last-child { border-bottom: none; }
.replace-list { margin-top: var(--s-3); display: flex; flex-direction: column; gap: 8px; }
.replace-list li { display: flex; gap: 10px; color: var(--ink-600); font-size: 15px; }
.replace-list .x { color: var(--ink-300); flex: none; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } .subnav { display: none; } }

/* ---------- Scroll reveal – §2.7 ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .4s ease-out, transform .4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* utilities */
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.center { text-align: center; } .muted { color: var(--ink-600); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ============================================================
   Motion & color layer – adds "pop" while staying on-brand.
   Direction: gridded/technical (Linear/Vercel), warm violet
   accent. Everything here disables under prefers-reduced-motion.
   ============================================================ */
:root {
  --grad: linear-gradient(100deg, #7C3AED 0%, #9333EA 42%, #DB2777 100%);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* background-clip:text paints only inside the line box; give descenders
     (g, p, y) room so they aren't clipped, then reclaim it with margin. */
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.rotator .word { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* Keep inline check/indicator icons on the same line as their text
   (the global reset makes <svg> display:block, which forced wraps). */
.check svg, .replace-list .x svg { display: inline-block; vertical-align: middle; }
.compare-cell.lc-cell .check { flex: none; }

/* App-download badges – grayed "coming soon" (real links wire up at launch). */
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.app-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 15px; border-radius: 11px;
  border: 1px solid var(--ink-300); background: var(--surface);
  color: var(--ink-600); text-decoration: none; cursor: not-allowed;
  opacity: .68; transition: opacity .12s ease;
}
.app-badge:hover { opacity: .82; }
.app-badge > svg { width: 22px; height: 22px; display: block; flex: none; }
.app-badge .lab { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
.app-badge .lab small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.app-badge .lab b { font-size: 15px; font-weight: 600; color: var(--ink-700); }
.app-badge .soon { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--accent-100); color: var(--accent-700); padding: 3px 7px; border-radius: 5px; }
.app-caption { font-size: 14px; color: var(--ink-600); margin-bottom: 12px; }
.section--dark .app-badge, .footer-apps .app-badge { background: rgba(255,255,255,.05); border-color: #3a434a; color: #aeb7bf; }
.section--dark .app-badge .lab b, .footer-apps .app-badge .lab b { color: #e8eaf0; }
.footer-apps .app-caption { color: #7d878f; }

/* ---- Hero decorative background: aurora over a fading grid ---- */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background: url('/assets/img/field.svg') repeat-y 0 -360px;
  background-size: 100% 2200px;
  transform: rotate(-14deg) scale(1.42);
  transform-origin: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 76% at 56% 36%, #000 42%, transparent 85%);
          mask-image: radial-gradient(ellipse 70% 76% at 56% 36%, #000 42%, transparent 85%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform; }
.hero-glow.g1 { width: 540px; height: 540px; top: -170px; left: -130px; opacity: .40;
  background: radial-gradient(circle at 50% 50%, #a78bfa 0%, transparent 68%);
  animation: heroDrift1 20s ease-in-out infinite; }
.hero-glow.g2 { width: 460px; height: 460px; top: -60px; right: -120px; opacity: .34;
  background: radial-gradient(circle at 50% 50%, #f5a3d1 0%, transparent 68%);
  animation: heroDrift2 26s ease-in-out infinite; }
.hero-glow.g3 { width: 380px; height: 380px; bottom: -170px; left: 32%; opacity: .28;
  background: radial-gradient(circle at 50% 50%, #c4b5fd 0%, transparent 70%);
  animation: heroDrift1 30s ease-in-out infinite reverse; }
@keyframes heroDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(42px,30px) scale(1.12); } }
@keyframes heroDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-52px,42px) scale(1.09); } }

/* ---- Rotating gradient word in the H1 ---- */
.rotator { display: inline-block; }
.rotator .word {
  display: inline-block; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform, opacity, filter;
}
.rotator .word.swap { animation: wordSwap .5s cubic-bezier(.2,.7,.2,1); }
@keyframes wordSwap {
  0%   { opacity: 0; transform: translateY(0.28em); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.rotator .word { text-align: left; }

/* ---- Gradient numerals ---- */
.stat-num, .step .num {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Card pop: gradient ring on hover ---- */
.fcard, .role-card { position: relative; }
.fcard::before, .role-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .18s ease;
}
.fcard:hover::before, .role-card:hover::before { opacity: .7; }

/* ---- Staggered reveal for card grids ---- */
.grid-3 .reveal:nth-child(2), .grid-2 .reveal:nth-child(2) { transition-delay: .06s; }
.grid-3 .reveal:nth-child(3) { transition-delay: .12s; }
.grid-3 .reveal:nth-child(5) { transition-delay: .06s; }
.grid-3 .reveal:nth-child(6) { transition-delay: .12s; }

/* ---- Ambient glow behind dark sections ---- */
.section--dark { position: relative; overflow: hidden; }
.section--dark > .wrap { position: relative; z-index: 1; }
.section--dark::before {
  content: ""; position: absolute; z-index: 0; width: 720px; height: 720px;
  top: -220px; right: -160px; border-radius: 50%; filter: blur(92px);
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,.50) 0%, transparent 66%);
  animation: darkGlow 24s ease-in-out infinite;
}
.cta-band.reveal { position: relative; z-index: 1; }
@keyframes darkGlow {
  0%,100% { transform: translate(0,0) scale(1); opacity: .7; }
  50% { transform: translate(-80px,60px) scale(1.16); opacity: 1; }
}

/* ---- Problem section: pulse the League Computer card ---- */
.tool-card.lc-pulse { animation: lcPulse 3.2s ease-in-out infinite; }
@keyframes lcPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0), var(--shadow-1); }
  50% { box-shadow: 0 0 0 6px rgba(124,58,237,.10), 0 10px 26px rgba(124,58,237,.18); }
}

/* ---- Warmth spread across the rest of the site ---- */

/* Secondary page heroes: a lighter version of the home hero treatment –
   a violet top-wash, a fading grid, and one soft pink glow. */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #F4EFFF 0%, var(--paper) 56%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('/assets/img/field.svg') repeat-y 0 -360px;
  background-size: 100% 2200px;
  transform: rotate(-14deg) scale(1.5);
  transform-origin: center;
  -webkit-mask-image: radial-gradient(ellipse 82% 92% at 38% 22%, #000 32%, transparent 80%);
          mask-image: radial-gradient(ellipse 82% 92% at 38% 22%, #000 32%, transparent 80%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: 0; top: -150px; right: -110px;
  width: 440px; height: 440px; border-radius: 50%; filter: blur(84px);
  background: radial-gradient(circle at 50% 50%, rgba(236,72,153,.20), transparent 68%);
  animation: heroDrift2 28s ease-in-out infinite;
}

/* Warm-glow utility for select light sections (subtle). */
.section--warm { position: relative; overflow: hidden; }
.section--warm > .wrap { position: relative; z-index: 1; }
.section--warm::before {
  content: ""; position: absolute; z-index: 0; top: -130px; left: 50%;
  width: 920px; height: 360px; transform: translateX(-50%);
  border-radius: 50%; filter: blur(94px);
  background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,.09), transparent 70%);
}

/* Feature-card icon: warm gradient chip. */
.fcard .ficon { background: linear-gradient(135deg, #EFE7FF 0%, #FFE4F1 100%); }

/* Comparison: tint the League Computer column so the "good side" reads warm. */
.compare-cell.lc-cell { background: linear-gradient(90deg, rgba(124,58,237,.055), rgba(236,72,153,.03)); }

/* Pricing: warm the recommended tier. */
.tier.featured { background: linear-gradient(180deg, #F6F1FF 0%, var(--surface) 42%); }
.tier.featured .badge { background: var(--grad); }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .section--dark::before, .tool-card.lc-pulse,
  .page-hero::after, .hero-grid, .page-hero::before { animation: none !important; }
  .rotator .word.swap { animation: none !important; }
}
