/* RinkQuest website: shared styles (design pack v1). Same visual language as the game:
   light ice-blue, Fredoka headings and buttons, jelly buttons, Mia / Zoe / Leo art.
   One font file (self-hosted), no JS needed, transform/opacity-only motion, respects reduced motion. */
@font-face { font-family: 'Fredoka'; src: url('/img/web/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --ink: #12265e; --ink-2: #3a4f78; --muted: #5a6f8f;
  --blue: #1E4FD8; --blue-d: #12348f; --sky: #3ba4ff;
  --ice: #eaf4ff; --ice-2: #d8eafc; --line: #d3e3f5; --card: #ffffff;
  --gold: #FFC93C; --gold-d: #d99a00; --green: #22b85c; --green-d: #0f7a3a; --red: #D62828;
  --f-head: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-card: 24px; --shadow: 0 10px 28px rgba(18, 48, 90, .12); --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--f-body); color: var(--ink); background: var(--ice); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, .head { font-family: var(--f-head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(36px, 6vw, 64px); } h2 { font-size: clamp(28px, 4vw, 42px); } h3 { font-size: 21px; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; padding: 10px 16px; border-radius: 12px; z-index: 99; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font: 700 24px var(--f-head); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { color: var(--blue); font-weight: 700; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a.link { font: 600 16px var(--f-head); color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a.link:hover { background: var(--ice); }
@media (max-width: 720px) { .top nav a.link { display: none; } }

/* ---------- jelly buttons (same recipe as the game) ---------- */
.btn { --c1: #4fd683; --c2: #179a4b; --c3: #12803d; --lip: var(--green-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 999px; border: 4px solid #fff; background: linear-gradient(var(--c1), var(--c2) 60%, var(--c3));
  color: #fff; font: 700 21px var(--f-head); text-decoration: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--lip), 0 10px 20px rgba(18, 48, 90, .18);
  transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 1px 0 var(--lip), 0 4px 10px rgba(18, 48, 90, .18); }
.btn.big { min-height: 66px; font-size: 25px; padding: 0 36px; }
.btn.sm { min-height: 46px; font-size: 17px; padding: 0 18px; border-width: 3px; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 var(--lip), 0 6px 12px rgba(18,48,90,.15); }
.btn.blue { --c1: #5d95ff; --c2: #1E4FD8; --c3: #163fae; --lip: #0d2a7a; }
.btn.gold { --c1: #ffe07a; --c2: #ffc93c; --c3: #f0ac10; --lip: #b77400; color: #4a2c00; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost { --c1: #fff; --c2: #fff; --c3: #f2f7fd; --lip: #c5d7ee; color: var(--blue); text-shadow: none; }
.btn.full { width: 100%; }
@media (max-width: 480px) { .btn.big.full { font-size: 21px; padding: 0 16px; white-space: nowrap; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(#cfe7ff, #eaf4ff 70%); }
.hero::before { content: ""; position: absolute; inset: 0; background: url('/img/web/bg-rink-960.webp') center 30%/cover no-repeat; opacity: .55; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 56px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: #fff; padding: 7px 14px; border-radius: 999px; box-shadow: 0 2px 0 var(--line); }
.hero h1 { margin: 16px 0 14px; } .hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 14px; }
.micro { font-size: 15px; color: var(--muted); } .micro a { font-weight: 700; }
.hero-art { position: relative; justify-self: center; width: min(560px, 100%); }
.hero-art .ice { position: absolute; left: 6%; right: 6%; bottom: 2%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fff, #cfe5fb 70%); box-shadow: 0 0 0 6px rgba(255,255,255,.6); }
.hero-art img { position: relative; width: 100%; }
.hero-art .bubble { position: absolute; left: 4%; top: 2%; background: #fff; border-radius: 18px; padding: 8px 16px; font: 700 18px var(--f-head); box-shadow: var(--shadow); }
.hero-art .bubble::after { content: ""; position: absolute; left: 40px; bottom: -9px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 22px 0 34px; gap: 6px; text-align: center; }
  .hero-art { order: -1; width: min(420px, 100%); }
  .hero .lead { font-size: 17px; margin-inline: auto; } .cta-row { justify-content: center; margin: 20px 0 10px; }
  .cta-row .btn.big { width: 100%; }
}

/* ---------- sections and cards ---------- */
section.s { padding: 64px 0; } section.s.alt { background: #fff; }
.s-head { max-width: 760px; margin-bottom: 28px; } .s-head .eyebrow { margin-bottom: 14px; } .s-head p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 16px; } .g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } section.s { padding: 44px 0; } }
.card { background: var(--card); border-radius: var(--r-card); padding: 22px; box-shadow: 0 0 0 2px var(--line), var(--shadow); }
.card h3 { margin: 12px 0 6px; } .card p { color: var(--ink-2); font-size: 16px; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--ice); box-shadow: inset 0 -3px 0 var(--ice-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { min-width: 44px; height: 36px; padding: 0 10px; border-radius: 12px; display: inline-grid; place-items: center; font: 700 15px var(--f-head); background: var(--ice); color: var(--blue); box-shadow: inset 0 -3px 0 var(--ice-2); }
.chip.on { background: var(--gold); color: #4a2c00; box-shadow: inset 0 -3px 0 var(--gold-d); }

/* split row: text + phone screenshot */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.rev .phone { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } .split.rev .phone { order: 0; } }
.phone { justify-self: center; width: min(300px, 78vw); border-radius: 38px; padding: 10px; background: #fff; box-shadow: 0 0 0 2px var(--line), 0 24px 50px rgba(18, 48, 90, .22); }
.phone img { border-radius: 30px; aspect-ratio: 360 / 779; }
.phones { display: flex; justify-content: center; gap: 18px; }
.phones .phone { width: min(240px, 44vw); } .phones .phone:nth-child(2) { transform: translateY(26px); }

/* age levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
@media (max-width: 640px) { .levels { grid-template-columns: repeat(2, 1fr); } }
.level { border-radius: 20px; padding: 14px 14px 12px; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.level b { font: 700 26px var(--f-head); color: var(--blue); display: block; }
.level small { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.35; }

/* checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 40px; font-size: 17px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='white' stroke-width='3.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* ---------- pricing: Free vs Family Pass ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-radius: 28px; background: #fff; box-shadow: 0 0 0 2px var(--line), var(--shadow); max-width: 820px; margin: 0 auto; }
.plan { padding: 26px 24px; }
.plan.pass { margin: -4px -4px -4px 0; border-radius: 28px; background: #fff8de; box-shadow: 0 0 0 4px var(--gold), 0 14px 30px rgba(217, 154, 0, .18); }
.plan h3 { font-size: 26px; color: var(--blue); } .plan .price { margin: 10px 0 4px; font: 700 46px/1 var(--f-head); color: var(--ink); } .plan .price small { font-size: 20px; color: var(--ink-2); }
.plan .per { font-size: 15px; color: var(--muted); min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.35; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #dfe8f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%2393a7c4' stroke-width='3.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.plan.pass li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='white' stroke-width='3.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan li b { font-weight: 700; }
.ribbon { display: inline-block; font: 700 13px var(--f-head); letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: #4a2c00; padding: 4px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 4px; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } .plan.pass { margin: 0 -4px -4px; } }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }

/* compare table (family page) */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.cmp th, .cmp td { padding: 13px 10px; text-align: center; border-bottom: 2px solid var(--ice); }
.cmp th { font: 700 15px var(--f-head); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.cmp th.pass, .cmp td.pass { background: #fff8de; color: var(--ink); font-weight: 700; }
.cmp thead th.pass { border-radius: 14px 14px 0 0; color: #8a5a00; } .cmp tr:last-child td.pass { border-radius: 0 0 14px 14px; }
.cmp td:first-child { text-align: left; color: var(--ink-2); }
.yes { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='white' stroke-width='3.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; vertical-align: middle; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label.lab, .form .lab { font: 700 14px var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.form .hint { font: 500 14px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid #b9cde6; background: #fff; font: 500 18px var(--f-body); color: var(--ink); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 79, 216, .18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--blue); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { width: 44px; height: 44px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.1); cursor: pointer; position: relative; }
.swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatches label:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.fine { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- page header for sub-pages ---------- */
.phead { background: linear-gradient(#cfe7ff, var(--ice)); padding: 34px 0 10px; }
.phead .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.phead p { margin-top: 10px; font-size: 19px; color: var(--ink-2); }
.phead .art { width: 260px; }
@media (max-width: 680px) { .phead .wrap { grid-template-columns: 1fr; text-align: center; } .phead .art { width: 220px; margin: 0 auto -6px; order: -1; } }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; padding: 20px 0 60px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 10px 0 70px; }
.legal .short { background: #fff; border-radius: 22px; padding: 20px 22px; box-shadow: 0 0 0 2px var(--line); font-size: 18px; margin: 16px 0 26px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; } .legal p, .legal li { font-size: 17px; line-height: 1.65; color: #24375e; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; } .legal .upd { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- coach band & final CTA ---------- */
.coach-band { background: linear-gradient(135deg, #1E4FD8, #163fae); color: #fff; border-radius: 32px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.coach-band h2 { color: #fff; } .coach-band p { color: #dbe7ff; margin-top: 10px; font-size: 17.5px; }
.coach-band .grid { margin-top: 22px; } .coach-band .card { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.coach-band .card h3 { color: #fff; font-size: 19px; } .coach-band .card p { color: #dbe7ff; font-size: 15.5px; }
.coach-band .ico { background: rgba(255,255,255,.16); box-shadow: none; }
@media (max-width: 860px) { .coach-band { grid-template-columns: 1fr; padding: 26px 20px; } }
.final { text-align: center; padding: 64px 0 70px; }
.final img { width: min(460px, 90%); margin: 0 auto 8px; }

/* ---------- footer ---------- */
footer.foot { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer.foot nav { display: flex; gap: 4px; flex-wrap: wrap; } footer.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); font-weight: 600; }

/* ---------- sticky mobile CTA (home only) ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: none; }
@media (max-width: 720px) { .sticky-cta { display: block; transform: translateY(140%); transition: transform .25s ease; } .sticky-cta.show { transform: none; } body.has-sticky { padding-bottom: 92px; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

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

/* ---------- 9. App views: styles the LIVE /family and /team markup as-is (ids, classes and JS unchanged) ----------
   Used for the states the prototype does not redraw: v-wait, v-parent, v-lost (family) and v-lost, v-wait, v-coach (team).
   Integration: wrap the live <main> as <main id="main" class="app wrap">. Do not restyle beyond this block. */
main.app { max-width: 680px; padding: 28px 0 70px; display: flex; flex-direction: column; gap: 18px; }
main.app section { display: flex; flex-direction: column; gap: 18px; }
main.app section.card { gap: 10px; }
main.app h1 { font-size: clamp(32px, 6vw, 44px); }
main.app h2 { font-size: 22px; margin: 0 0 10px; }
main.app .sub { color: var(--muted); margin: 0; font-size: 16px; }
main.app .card { padding: 22px; }
main.app .btn.dark { --c1: #5d95ff; --c2: #1E4FD8; --c3: #163fae; --lip: #0d2a7a; }
main.app .btn { min-height: 52px; font-size: 19px; }
main.app .btn.ghost { min-height: 48px; font-size: 17px; }
main.app .wide { width: 100%; margin-top: 18px; }
main.app label.f { display: block; margin: 16px 0 8px; font: 700 14px var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
main.app input[type=text], main.app input[type=email], main.app select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid #b9cde6; background: #fff; font: 500 18px var(--f-body); color: var(--ink); }
main.app input:focus, main.app select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 79, 216, .18); }
main.app .check { margin-top: 16px; }
main.app .msg { color: #c8102e; font-size: 15px; margin-top: 10px; min-height: 1em; }
main.app .ok { color: var(--green-d); }
main.app .code { font: 700 46px var(--f-head); letter-spacing: .14em; text-align: center; color: var(--ink); background: linear-gradient(#fff6d6, #ffe58f); border: 3px solid var(--gold); border-radius: 20px; padding: 14px; box-shadow: 0 5px 0 #e0a800; }
main.app .copyrow { display: flex; gap: 8px; margin-top: 10px; }
main.app .copyrow input { flex: 1; min-width: 0; font-size: 14px; }
main.app .copyrow .btn { min-height: 54px; padding: 0 18px; }
main.app .pill { align-self: flex-start; display: inline-block; padding: 4px 14px; border-radius: 99px; font: 700 14px var(--f-head); background: #dcf7e6; color: #11703a; }
main.app .pill.bad { background: #ffe1e1; color: #a30f22; }
main.app .steps { margin: 14px 0 0; padding-left: 24px; color: var(--ink-2); font-size: 17px; } main.app .steps li { margin: 6px 0; }
main.app .perks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; } main.app .perks li { display: flex; gap: 10px; }
main.app .sw { display: flex; flex-wrap: wrap; gap: 8px; }
main.app .sw button { width: 44px; height: 44px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.1); cursor: pointer; }
main.app .sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
main.app .logo-row { display: flex; gap: 14px; align-items: center; }
main.app .logo-row .btn { min-height: 46px; font-size: 16px; }
main.app .logo-prev { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: 30px; flex: none; background: var(--ice); box-shadow: inset 0 0 0 2px var(--line); }
main.app .logo-prev img { width: 100%; height: 100%; object-fit: contain; }
main.app .tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
main.app .tile { background: var(--ice); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 2px var(--line); }
main.app .tile b { display: block; font: 700 28px var(--f-head); color: var(--blue); }
main.app .tile span { color: var(--muted); font-size: 14px; }
main.app table:not(.cmp) { width: 100%; border-collapse: collapse; font-size: 15px; }
main.app table:not(.cmp) td, main.app table:not(.cmp) th { padding: 10px 6px; border-bottom: 2px solid var(--ice); text-align: left; }
main.app table:not(.cmp) th { font: 700 13px var(--f-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
main.app td.n, main.app th.n { text-align: right; white-space: nowrap; }
main.app [hidden] { display: none !important; }
