/* rinkrocks.com — built on the app's own tokens (design-system.md). Dark only, like the app:
   the brand is a neon glow on a dark rink, and every screenshot on this site is dark. A light
   page framing dark screenshots reads as two products. Recorded in website/README.md. */

:root {
  color-scheme: dark;
  /* neutral ramp (design-system.md §3) */
  --bg: #0F1117;
  --bg-deep: #0A0C11;
  --surface: #1A1D27;
  --card: #242731;
  --elevated: #2E323F;
  --border: #2A2D3A;
  --border-strong: #3B3F4E;
  --border-input: #666B7E; /* 3.18:1 on surface: a field must be findable (WCAG 1.4.11) */
  --text: #F1F3F5;
  --text-2: #A3A8BA;   /* lifted from #8B8FA3 so body copy clears 7:1 on --bg */
  --text-3: #8B8FA3;   /* the app's text-secondary; 5.25:1 on surface */
  /* semantic */
  --ice: #3B82F6;
  --ice-deep: #2563EB;
  --azure: #5C9DE8;
  --goal: #EF4444;
  --play: #22C55E;
  --warn: #F59E0B;

  /* type: one scale */
  --font-display: 'Saira Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-micro: 0.75rem;   /* 12 */
  --fs-sm: 0.875rem;     /* 14 */
  --fs-body: 1.0625rem;  /* 17 */
  --fs-lead: 1.25rem;    /* 20 */
  --fs-h3: 1.375rem;     /* 22 */
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);

  /* spacing: one scale (4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 999px;
  --shadow-float: 0 24px 64px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(92, 157, 232, .35), 0 0 32px rgba(92, 157, 232, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t-base: 200ms; --t-slow: 320ms;
  --max: 1160px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--azure); text-underline-offset: 3px; }
a:hover { color: #8DBBF0; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); text-transform: uppercase; }
h2 { font-size: var(--fs-h2); text-transform: uppercase; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 var(--s4); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font: 600 var(--fs-micro)/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--azure); margin-bottom: var(--s3); display: block; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.55; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ice-deep); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 23, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s2); color: var(--text); text-decoration: none; font: 700 1.375rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; min-height: 44px; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--text); }
.nav { display: none; margin-left: auto; gap: var(--s1); }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: var(--radius-sm); min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.site-header .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .site-header .btn { margin-left: var(--s2); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--radius); border: 1px solid transparent; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ice-deep); color: #fff; box-shadow: 0 0 0 0 rgba(92,157,232,0); }
.btn-primary:hover { background: #1D4ED8; color: #fff; box-shadow: var(--glow); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--card); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: .9375rem; }
.btn[disabled] { background: var(--surface); color: var(--text-3); cursor: progress; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: var(--s8) 0 var(--s8); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background:
  radial-gradient(600px 420px at 78% 38%, rgba(92,157,232,.22), transparent 70%),
  radial-gradient(520px 360px at 8% 0%, rgba(37,99,235,.16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero { padding: var(--s9) 0; } .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.nw { white-space: nowrap; }
.hero-logo { margin: 0 auto; width: min(420px, 70vw); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(92,157,232,.35)); }
.hero h1 .glow { color: var(--azure); text-shadow: 0 0 28px rgba(92,157,232,.55); }
.status-pill { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 12px; border-radius: var(--radius-full); background: rgba(245,158,11,.12); color: #FCD34D; border: 1px solid rgba(245,158,11,.35); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s5); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.hero-points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s2); color: var(--text-2); font-size: var(--fs-sm); }
.hero-points li { display: flex; gap: var(--s2); align-items: baseline; }
.hero-points li::before { content: "✓"; color: var(--play); font-weight: 800; }

/* phone frame */
.phone { position: relative; margin: 0 auto; width: min(320px, 68vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2E323F, #12141B); box-shadow: var(--shadow-float), 0 0 80px rgba(92,157,232,.25); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: var(--bg); }

/* ---------- inline waitlist (hero) ---------- */
.quick-join { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); max-width: 520px; }
.quick-join input { flex: 1 1 220px; }
.quick-join .btn { flex: 0 0 auto; }
.quick-join .form-msg { min-height: 0; margin: 0; }
.quick-join .form-msg:empty { display: none; }
.fineprint { font-size: var(--fs-micro); color: var(--text-3); margin-top: var(--s2); }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--text); }
input[type=email], input[type=text], select {
  width: 100%; min-height: 48px; padding: 0 var(--s4); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-input); color: var(--text);
  font: 400 1rem/1.4 var(--font-body); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder { color: var(--text-3); }
input:focus, select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(59,130,246,.35); }
input[aria-invalid=true] { border-color: var(--goal); }
.field { margin-bottom: var(--s4); }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; flex: 0 0 24px; accent-color: var(--ice-deep); }
.form-msg { margin-top: var(--s3); font-size: var(--fs-sm); min-height: 1.5em; }
.form-msg.error { color: #FCA5A5; }
.form-success { display: none; text-align: center; padding: var(--s6) var(--s4); }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--s4); background: rgba(34,197,94,.15); color: var(--play); font-size: 28px; font-weight: 800; border: 1px solid rgba(34,197,94,.45); }
form.sent .form-body { display: none; }
form.sent .form-success { display: block; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- sections ---------- */
section { padding: var(--s8) 0; }
@media (min-width: 960px) { section { padding: var(--s9) 0; } }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.grid-3 { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); }
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-2); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: var(--s4); background: rgba(59,130,246,.12); color: var(--azure); border: 1px solid rgba(59,130,246,.3); }
.icon svg { width: 22px; height: 22px; }
.icon.goal { background: rgba(239,68,68,.12); color: #F87171; border-color: rgba(239,68,68,.35); }
.icon.play { background: rgba(34,197,94,.12); color: #4ADE80; border-color: rgba(34,197,94,.35); }

/* game-night timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 960px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); counter-increment: step; }
.timeline li::before { content: counter(step, decimal-leading-zero); font: 700 2.25rem/1 var(--font-display); color: var(--azure); display: block; margin-bottom: var(--s3); text-shadow: 0 0 18px rgba(92,157,232,.45); }
.timeline .when { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 600; }
.timeline p { color: var(--text-2); margin: var(--s2) 0 0; font-size: .9688rem; }

/* audio sample */
.sample { display: flex; align-items: center; gap: var(--s4); background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: var(--s4); margin-top: var(--s6); max-width: 640px; }
.sample button { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--goal); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform var(--t-fast) var(--ease); box-shadow: 0 0 24px rgba(239,68,68,.35); }
.sample button:active { transform: scale(.96); }
.sample button svg { width: 26px; height: 26px; }
.sample .cap { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.sample strong { display: block; color: var(--text); font-size: 1rem; }

/* audience */
.who { display: grid; gap: var(--s4); }
@media (min-width: 860px) { .who { grid-template-columns: repeat(3, 1fr); } }
.who .card { padding: var(--s6) var(--s5); }
.who .tag { font: 700 1.75rem/1 var(--font-display); text-transform: uppercase; display: block; margin-bottom: var(--s3); }

/* FAQ — collapsed on load, always (HARD RULE) */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; min-height: 56px; font: 600 1.125rem/1.35 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 12px; height: 12px; border-right: 2px solid var(--azure); border-bottom: 2px solid var(--azure); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 var(--s5); color: var(--text-2); max-width: 70ch; }
.faq .answer p:last-child { margin: 0; }

/* waitlist block */
.join { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 960px) { .join { grid-template-columns: .9fr 1.1fr; } }
.join-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); padding: var(--s6) var(--s5); box-shadow: var(--shadow-float); position: relative; }
@media (min-width: 640px) { .join-card { padding: var(--s7) var(--s6); } }
.join-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(92,157,232,.7), transparent 40%, transparent 60%, rgba(37,99,235,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---------- guides ---------- */
.guide-list { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.guide-card:hover { border-color: var(--ice); color: var(--text); transform: translateY(-2px); }
.guide-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-deep); border-bottom: 1px solid var(--border); overflow: hidden; }
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.guide-card .body { padding: var(--s5); }
.guide-card .num { font: 700 var(--fs-micro)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--azure); }
.guide-card h3 { margin: var(--s2) 0; }
.guide-card p { color: var(--text-2); margin: 0; font-size: .9688rem; }
.guide-card .meta { margin-top: var(--s3); font-size: var(--fs-micro); color: var(--text-3); }

.crumbs { font-size: var(--fs-sm); color: var(--text-3); margin-bottom: var(--s5); }
.crumbs a { color: var(--text-2); }
.guide-hero { padding: var(--s7) 0 var(--s6); border-bottom: 1px solid var(--border); }
.answer-box { background: var(--surface); border-left: 3px solid var(--azure); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4) var(--s5); margin: var(--s5) 0 0; color: var(--text); }
.answer-box p { margin: 0; }
.video-frame { margin: var(--s6) 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); background: #000; box-shadow: var(--shadow-float); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }
.video-pending { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: var(--text-2); padding: var(--s5); background: radial-gradient(400px 220px at 50% 40%, rgba(92,157,232,.14), transparent 70%), var(--bg-deep); }
.steps { list-style: none; padding: 0; margin: var(--s6) 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; gap: var(--s5); padding: var(--s6) 0; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .steps > li { grid-template-columns: 1fr 280px; align-items: start; } }
.steps h3 { display: flex; gap: var(--s3); align-items: baseline; }
.steps h3::before { content: counter(s); flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ice-deep); color: #fff; font: 700 1.125rem/1 var(--font-body); }
.steps p, .steps li li { color: var(--text-2); }
.steps .shot { border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg); max-width: 280px; margin: 0 auto; }
.ui { font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; white-space: nowrap; font-size: .9375em; }
.tip { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.3); border-radius: var(--radius); padding: var(--s3) var(--s4); color: var(--text-2); font-size: .9688rem; margin-top: var(--s3); }
.tip strong { color: #86EFAC; }
.warn-note { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); border-radius: var(--radius); padding: var(--s3) var(--s4); color: var(--text-2); font-size: .9688rem; margin-top: var(--s3); }
.warn-note strong { color: #FCD34D; }
.updated { font-size: var(--fs-micro); color: var(--text-3); margin-top: var(--s4); }
.next-guide { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); padding: var(--s6) 0; border-top: 1px solid var(--border); }

/* ---------- legal ---------- */
.legal { padding: var(--s7) 0 var(--s8); }
.legal h2 { font-size: 1.75rem; margin-top: var(--s7); }
.legal h3 { font-size: 1.25rem; margin-top: var(--s5); }
.legal p, .legal li { color: var(--text-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--s7) 0 var(--s6); background: var(--bg-deep); font-size: var(--fs-sm); color: var(--text-2); }
.site-footer .wrap { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font: 600 var(--fs-micro)/1.4 var(--font-body); letter-spacing: .14em; color: var(--text-3); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: var(--s5); color: var(--text-3); font-size: var(--fs-micro); }
