/* ── RackRead — palette lifted straight from the app ─────────────── */

:root {
  --black: #0a0c0f;
  --felt: #0d0f12;
  --surface: #15181d;
  --elevated: #1c2026;
  --line: #262b33;
  --chalk: #f2f2ee;
  --muted: #8b929c;
  --accent: #f5c518;
  --green: #2ea36b;
  --red: #e04a3a;
  --purple: #7c5cbf;
  --orange: #e8772e;
  --blue: #2f6fd0;
  --maroon: #8b2635;

  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --r: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--felt);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.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;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--black); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Type ────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.015em; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.gold { color: var(--accent); }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.lede { font-size: 1.12rem; color: #c9ced6; margin: 0 0 8px; }
.lede.center { margin-left: auto; margin-right: auto; }
.note { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }

/* ── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem;
  color: var(--chalk); text-decoration: none; margin-right: auto;
}
/* The apex triangle reads smaller than a solid disc at the same box, so
   the mark gets a touch more room than a circular logo would need. */
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--chalk); }

@media (max-width: 800px) { .nav-links { display: none; } }

/* ── Buttons + form ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--black);
  font-family: var(--body); font-weight: 500; font-size: 1rem;
  border: 0; border-radius: 10px; padding: 14px 24px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

/* Secondary action. Used for "play in your browser" so it sits beside the
   waitlist button without competing with it for the eye. */
.btn-ghost {
  background: transparent; color: var(--chalk);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: var(--surface); filter: none; }

.nav-cta { display: flex; gap: 10px; align-items: center; }
/* Below 520px the two buttons crowd the mark out; the hero carries the
   same link, so drop the secondary one rather than wrap the header. */
@media (max-width: 520px) { .nav-cta .btn-ghost { display: none; } }

/* ── Play in the browser ─────────────────────────────────────────── */

.play-line { font-size: 0.98rem; color: #c9ced6; margin: 14px 0 0; }
.play-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245, 197, 24, 0.4); }
.play-line a:hover { border-bottom-color: var(--accent); }

.play-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center;
}
@media (max-width: 860px) { .play-grid { grid-template-columns: 1fr; gap: 28px; } }

.play-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.play-list li { display: flex; gap: 10px; align-items: flex-start; color: #c9ced6; }
.play-list .tick { color: var(--green); flex: none; font-weight: 700; }
.play-list .cross { color: var(--muted); flex: none; font-weight: 700; }
.play-list li.off { color: var(--muted); }

.play-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.signup { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 260px; min-width: 0;
  background: var(--surface); color: var(--chalk);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-family: var(--body); font-size: 1rem;
}
.signup input::placeholder { color: #6d747e; }
.signup input:focus { border-color: var(--accent); outline: none; }
.signup input[aria-invalid="true"] { border-color: var(--red); }
.cta .signup { justify-content: center; }

.note.ok { color: var(--green); }
.note.err { color: var(--red); }

/* Honeypot: invisible to people, irresistible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup input:disabled,
.signup .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ── Sections ────────────────────────────────────────────────────── */

.section { padding: 92px 0; }
.band { background: var(--black); border-block: 1px solid var(--line); }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero { padding: 84px 0 92px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 78% 18%, rgba(46,163,107,0.10), transparent 65%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.2rem; }

.art-card {
  width: 100%; height: auto; display: block;
  border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .section { padding: 68px 0; }
}

/* ── Steps ───────────────────────────────────────────────────────── */

.steps {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 24px;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--black);
  font-family: var(--mono); font-weight: 500; margin-bottom: 16px;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ── Honesty band ────────────────────────────────────────────────── */

.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.refusal-card {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--r); padding: 28px;
}
.refusal-title { font-family: var(--head); font-weight: 700; font-size: 1.25rem; margin-bottom: 10px; }
.refusal-body { color: var(--muted); margin: 0 0 20px; }
.refusal-tips {
  background: var(--elevated); border-radius: 10px; padding: 18px 20px;
}
.tips-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.refusal-tips ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.94rem; }
.refusal-tips li { margin-bottom: 6px; }

/* ── Feature cards ───────────────────────────────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 44px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r); padding: 26px 24px;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.accent-yellow { border-top-color: var(--accent); }
.accent-blue   { border-top-color: var(--blue); }
.accent-green  { border-top-color: var(--green); }
.accent-red    { border-top-color: var(--red); }
.accent-purple { border-top-color: var(--purple); }
.accent-orange { border-top-color: var(--orange); }
.accent-maroon { border-top-color: var(--maroon); }
.accent-black  { border-top-color: #3a3f47; }

/* ── Physics ─────────────────────────────────────────────────────── */

.physics { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* ── Chips ───────────────────────────────────────────────────────── */

.chips {
  list-style: none; padding: 0; margin: 36px auto 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.chips li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px;
  font-family: var(--mono); font-size: 0.9rem; color: var(--chalk);
}

/* ── Pricing ─────────────────────────────────────────────────────── */

.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px; justify-content: center; margin-top: 44px;
}
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 28px; position: relative;
}
.plan.featured { border-color: var(--accent); }
.badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: var(--black);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.price { font-family: var(--head); font-weight: 700; font-size: 2.6rem; margin: 6px 0 0; }
.price span { font-size: 1rem; font-family: var(--body); font-weight: 400; color: var(--muted); }
.price-alt { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }
.plan .ticks { margin-top: 22px; }

/* ── FAQ ─────────────────────────────────────────────────────────── */

details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
details:first-of-type { border-top: 1px solid var(--line); margin-top: 36px; }
summary {
  cursor: pointer; font-family: var(--head); font-weight: 500;
  font-size: 1.05rem; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* ── CTA + footer ────────────────────────────────────────────────── */

.cta { background: var(--black); border-top: 1px solid var(--line); }
.cta .lede { margin-bottom: 4px; }
.cta-mark { width: 62px; height: 62px; display: block; margin: 0 auto 22px; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.85rem; color: var(--muted);
}
.footer p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 20px; height: 20px; flex: none; }
.footer nav { display: flex; gap: 22px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--chalk); }

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .honest, .physics { grid-template-columns: 1fr; gap: 36px; }
  .physics-art { order: 1; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
}

/* ── Ball identity ───────────────────────────────────────────────── */
/* Every feature wears a ball from the rack — solids for the core modes,
   stripes for the companions. The same assignment the app uses, so a mode
   is recognisable before you read its name. */

.card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ball {
  width: 28px;
  height: 28px;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* The card's top border already carries the feature colour; the ball makes
   it explicit rather than decorative. */
.card { border-top-width: 3px; }
