/* RosterDojo — Royal Ice, carried over from the shipped app so the site and
   the product are visibly the same thing. Instrument, not broadcast. */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Martian+Mono:wght@400;600&display=swap");

:root {
  /* Royal Ice — the app's committed identity */
  --ground: oklch(0.279 0.121 271.5);   /* #17246B */
  --ground-deep: oklch(0.208 0.098 271.5);
  --surface: oklch(0.351 0.141 271.5);  /* #22338F */
  --surface-hi: oklch(0.408 0.150 271.5);
  --ice: oklch(0.874 0.055 247);        /* #BFDBFE */
  --ink: oklch(0.974 0.010 271.5);      /* #F5F7FF */
  --ink-dim: oklch(0.845 0.032 265);    /* 7.4:1 on ground — body-safe */
  --line: oklch(0.451 0.110 271.5 / 0.55);
  --live: oklch(0.86 0.175 152);        /* signal only, never a field */

  --shell: min(1180px, 92vw);
  --step--1: clamp(0.86rem, 0.82rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 100;
  --z-nav: 200;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground-deep);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-underline-offset: 3px; }

h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  font-weight: 800;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; margin: 0; }

.shell { width: var(--shell); margin-inline: auto; }
.lede { max-width: 62ch; color: var(--ink-dim); font-size: var(--step-1); font-weight: 400; }
.prose { max-width: 68ch; color: var(--ink-dim); }
.prose p + p { margin-top: 1em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0;
  background: color-mix(in oklch, var(--ground-deep) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.wordmark {
  font-weight: 800; letter-spacing: -0.035em; font-size: 1.22rem;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--ice); }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: var(--step--1); letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary { background: var(--ice); color: oklch(0.22 0.10 271.5); }
.btn-primary:hover { transform: translateY(-2px); background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ice); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vh, 7rem) 0 clamp(3rem, 7vh, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 130%;
  background: radial-gradient(60% 55% at 22% 12%, oklch(0.42 0.16 271.5 / 0.75), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-fine { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ink-dim); }

/* ---------- the board (signature element) ---------- */
.board {
  background: linear-gradient(180deg, var(--surface), var(--ground));
  border: 1px solid var(--line); border-radius: 26px;
  padding: 1.15rem; box-shadow: 0 40px 90px -50px oklch(0 0 0 / 0.9);
}
.board-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.62rem; letter-spacing: 0.04em; color: var(--ink-dim);
  padding: 0 0.35rem 0.85rem;
}
.live { display: inline-flex; align-items: center; gap: 0.42rem; color: var(--live); }
.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.86 0.175 152 / 0.55); }
  70% { box-shadow: 0 0 0 9px oklch(0.86 0.175 152 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.86 0.175 152 / 0); }
}
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.slot {
  background: oklch(0.24 0.10 271.5 / 0.72); border: 1px solid var(--line);
  border-radius: 13px; padding: 0.62rem 0.7rem; min-height: 62px;
}
.slot .pos {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.56rem; letter-spacing: 0.06em; color: var(--ink-dim);
}
.slot .who { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; margin-top: 0.15rem; }
.slot.take { border-color: var(--live); background: oklch(0.30 0.09 160 / 0.28); }
.slot.take .pos { color: var(--live); }
.slot.gone { opacity: 0.34; }
.slot.gone .who { text-decoration: line-through; text-decoration-thickness: 1px; }
.board-foot {
  margin-top: 0.85rem; padding-top: 0.8rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-dim);
}
.board-foot b { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 9vh, 7rem) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vh, 3.2rem); }
.section-head p { margin-top: 0.9rem; color: var(--ink-dim); font-size: var(--step-1); font-weight: 400; }

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--ground); padding: clamp(1.5rem, 3vw, 2.2rem); }
.step .n {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.66rem; color: var(--ice); letter-spacing: 0.06em;
}
.step h3 { margin: 0.7rem 0 0.55rem; }
.step p { color: var(--ink-dim); font-size: var(--step--1); line-height: 1.6; }

.split { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.chapters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 0.9rem; font-size: var(--step--1); color: var(--ink-dim);
  background: oklch(0.26 0.10 271.5 / 0.5);
}

/* what it is not */
.not { background: var(--ground); border-block: 1px solid var(--line); }
.not-list { display: grid; gap: 0.85rem; margin-top: 1.6rem; padding: 0; list-style: none; }
@media (min-width: 720px) { .not-list { grid-template-columns: 1fr 1fr; } }
.not-list li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-dim); }
.not-list b { color: var(--ink); font-weight: 600; }
.no {
  flex: 0 0 auto; font-family: "Martian Mono", monospace; font-size: 0.62rem;
  color: var(--ice); letter-spacing: 0.05em;
}

/* pricing */
.price-card {
  background: linear-gradient(165deg, var(--surface-hi), var(--ground));
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3rem); max-width: 640px; margin-inline: auto;
}
.amount { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.4rem 0 0.2rem; }
.amount .fig { font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.amount .per { color: var(--ink-dim); font-weight: 500; }
.price-note { color: var(--ink-dim); margin-top: 0.5rem; }
.includes { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.includes li { display: flex; gap: 0.65rem; align-items: baseline; }
.includes .tick { color: var(--live); flex: 0 0 auto; font-weight: 700; }

/* close + footer */
.close { text-align: center; }
.close .lede { margin-inline: auto; }
footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3.4rem; color: var(--ink-dim); font-size: var(--step--1); }
.foot-row { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.foot-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- scroll motion ----------
   Content is visible by default; the reveal only enhances it. A headless
   render or a paused tab still ships a complete page. */
.rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise.d1 { transition-delay: 0.07s; }
  .js .rise.d2 { transition-delay: 0.14s; }
  .js .rise.d3 { transition-delay: 0.21s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live::before { animation: none; }
}

/* legal pages */
.legal { padding-top: clamp(2.5rem, 6vh, 4rem); }
.legal h2 { font-size: var(--step-1); margin-top: 2.4rem; }
.legal h2:first-of-type { margin-top: 1.6rem; }
.legal .prose { margin-top: 0.85rem; }
.legal ul { color: var(--ink-dim); padding-left: 1.15rem; margin-top: 0.85rem; }
.legal li { margin-bottom: 0.45rem; }
.callout {
  border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.4rem;
  background: var(--ground); margin-top: 1.4rem;
}
.callout b { color: var(--ink); }
.updated { font-family: "Martian Mono", monospace; font-size: 0.66rem; color: var(--ink-dim); letter-spacing: 0.04em; }
