/* Playcaster site v2: a bright, warm living room. The film is the hero, the games are big, one idea per screen.
   Cream and white, playful accents from the game art, one dark band for the price (the app's navy + gold).
   Coral = the phone. No web fonts: ui-rounded on Apple, system UI elsewhere. Mobile first, no analytics. */
:root {
  --bg: #fff8ee; --bg2: #ffeedb; --card: #fff; --line: #1b223814;
  --ink: #1b2238; --soft: #4b5470; --quiet: #757d95;
  --coral: #ff5b4f; --sky: #2f9ff0; --sun: #ffbf2e; --mint: #15b877; --grape: #8f63f5; --pink: #ff5fa8;
  --night: #121a31; --night-card: #1a2443; --gold: #ffc95c; --go: #3ddc97; --go-ink: #07291b;
  --round: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 56px); --max: 1240px;
  --shadow: 0 2px 6px #5a3a1a0d, 0 18px 40px #5a3a1a17;
  --bh: 48px; /* store badge height (Apple: at least 40 px, clear space a quarter of the height) */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--round); letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(36px, 8.4vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -.035em; }
section { padding: clamp(64px, 11vw, 136px) var(--pad); }
section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-lead { margin-top: 16px; color: var(--soft); font-size: clamp(18px, 2.6vw, 24px); line-height: 1.4; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) var(--pad) 16px; }
.brand { min-width: 0; font-family: var(--round); font-size: 13px; font-weight: 850; letter-spacing: .34em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top-cta { flex-shrink: 0; white-space: nowrap; padding: 9px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-family: var(--round); font-size: 15px; font-weight: 800; text-decoration: none; }
.top-cta:hover { background: #2a3352; }

/* The three beats: Jump. Dance. Play. (pop in once on load) */
.beat { display: inline-block; }
.b1 { color: var(--coral); } .b2 { color: var(--sky); } .b3 { color: var(--mint); }
@media (prefers-reduced-motion: no-preference) {
  .hero .beat { animation: beat-in 700ms cubic-bezier(.2, 1.6, .4, 1) both; }
  .hero .b2 { animation-delay: 140ms; } .hero .b3 { animation-delay: 280ms; }
}
@keyframes beat-in { from { opacity: 0; transform: translateY(.4em) scale(.85) rotate(-4deg); } }

/* Store badges: official artwork, unmodified. Google's PNG carries its own clear space; negative margins
   cancel it so both badges show at the same visible height. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--bh) / 4) calc(var(--bh) / 3); }
.badges a { display: block; border-radius: 8px; }
.badge-apple img { height: var(--bh); width: auto; }
.badge-google { overflow: hidden; }
.badge-google img { height: calc(var(--bh) * 250 / 168); width: auto; max-width: none; margin: calc(var(--bh) * -41 / 168); }
.badges a:hover { filter: brightness(1.15); }

/* 1. Hero. Phones: headline, then the film big, then the words and badges. Desktop: words left, film right. */
.hero { display: grid; padding: calc(84px + env(safe-area-inset-top)) var(--pad) clamp(56px, 9vw, 112px); }
.hero > * { max-width: none; margin: 0; }
.hero-copy { display: contents; }
.hero h1 { order: 1; font-size: clamp(54px, 15vw, 112px); line-height: .92; font-weight: 900; letter-spacing: -.045em; }
.hero h1 .beat { margin-right: .12em; }
.h1-line { display: block; margin-top: .35em; font-size: .42em; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.hero-film { order: 2; margin: 28px calc(var(--pad) * -.5) 0; }
.hero-film video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 30px; background: var(--night); box-shadow: 0 30px 70px #5a3a1a40; }
.lead { order: 3; margin: 28px 0 0; max-width: 34ch; font-size: clamp(18px, 4.6vw, 22px); line-height: 1.45; color: var(--soft); }
.hero .get { order: 4; margin-top: 24px; }

/* 2. Setup: the photo with the ring on the phone, then three pictures.
   The photo box crops from the left only, so the ring maths holds: --h is the photo height,
   phones (9:16 art) ring 91.2% across / 59.7% down; desktop (16:9 art) 6.05% of the art's width from the right / 49.2% down. */
.setup { padding: 0 var(--pad) clamp(64px, 11vw, 136px); background: var(--bg2); }
.setup-photo { --h: min(177.78vw, 100vh); position: relative; height: var(--h); overflow: hidden; max-width: none; margin: 0 calc(var(--pad) * -1); }
@supports (height: 100svh) { .setup-photo { --h: min(177.78vw, 100svh); } }
.setup-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.setup-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #ffeedbf0 0%, #ffeedb99 20%, #ffeedb00 36%, #ffeedb00 86%, var(--bg2) 100%); }
.setup-title { position: absolute; z-index: 2; top: clamp(48px, 10vw, 96px); left: var(--pad); right: var(--pad); max-width: 12ch; }
.console-mark { --k: .0495; --ring: 42px; position: absolute; z-index: 2; top: 59.7%; right: calc(var(--h) * var(--k)); width: 0; height: 0; }
.console-mark i, .console-mark i::after { position: absolute; width: var(--ring); height: var(--ring); left: calc(var(--ring) / -2); top: calc(var(--ring) / -2); border-radius: 50%; }
.console-mark i { border: 3px solid var(--coral); box-shadow: 0 0 0 3px #fff9, 0 0 22px #ff5b4f99; }
.console-mark i::after { content: ''; left: -3px; top: -3px; border: 3px solid var(--coral); animation: mark-pulse 2s ease-out infinite; }
.console-mark b { position: absolute; top: calc(var(--ring) / 2 + 12px); right: -18px; padding: 7px 14px; border-radius: 99px; background: var(--coral); color: #fff; font-family: var(--round); font-size: 15px; font-weight: 850; white-space: nowrap; box-shadow: 0 6px 18px #ff5b4f55; }
.console-mark b::before { content: ''; position: absolute; bottom: 100%; right: 13px; border: 7px solid transparent; border-bottom-color: var(--coral); border-top: 0; }
@keyframes mark-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(var(--pulse, 1.5)); opacity: 0; } }

.steps { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 40px; }
.steps img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.steps h3 { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: clamp(24px, 5.6vw, 30px); line-height: 1.1; }
.steps h3 b { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--coral); color: #fff; font-size: 21px; }
.steps li:nth-child(2) h3 b { background: var(--sky); }
.steps li:nth-child(3) h3 b { background: var(--mint); }
.steps p { margin: 8px 0 0 52px; color: var(--soft); font-size: 18px; }

/* 3. Proof: big pictures. Phones: a swipeable row that peeks the next one. */
.proof-strip { margin-top: 36px; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 6px var(--pad) 24px; scroll-padding: 0 var(--pad); }
.proof-strip::-webkit-scrollbar { display: none; }
.proof-strip figure { margin: 0; scroll-snap-align: start; }
.proof-strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }

/* 4. Games: a bento of big art. Big tiles show real gameplay with the words over it. */
.games { background: var(--bg2); }
.bento { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 400ms ease; }
.tile:hover img { transform: scale(1.04); }
.tile-info { padding: 10px 12px 14px; }
.tile h3 { font-size: 16px; line-height: 1.15; }
.tile p { margin: 4px 0 0; color: var(--soft); font-size: 15px; }
.tile .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; color: var(--ink); font-size: 12.5px; font-weight: 750; }
.meta span:first-child { padding: 2px 9px; border-radius: 99px; background: #f1ece4; }
.age { padding: 2px 8px; border-radius: 7px; color: var(--ink); font-weight: 850; }
.a-little { background: #9ee870; } .a-kids { background: #ffc94d; } .a-teens { background: #ff8f6b; }
.tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 11px; border-radius: 99px; font-family: var(--round); font-size: 13px; font-weight: 850; box-shadow: 0 4px 14px #0004; }
.tag.free { background: var(--go); color: var(--go-ink); }
.tile.big { grid-column: span 2; grid-row: span 2; min-height: 320px; }
.tile.big img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.tile.big .tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px 20px; background: linear-gradient(180deg, #0b122600, #0b1226d9 60%); color: #fff; }
.tile.big h3 { font-size: clamp(26px, 3vw, 36px); }
.tile.big p { color: #e6edff; font-size: 17px; }
.tile.big .tag { position: static; display: inline-block; margin-bottom: 10px; }
.tile.big .meta { color: #fff; }
.tile.big .meta span:first-child { background: #ffffff2e; }
.tile.more { grid-column: span 2; display: grid; place-content: center; gap: 6px; padding: 28px; min-height: 140px; text-align: center; background: linear-gradient(135deg, #ff7a5c, #ff5fa8 55%, #8f63f5); color: #fff; }
.tile.more b { font-family: var(--round); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.tile.more span { font-size: 16px; opacity: .92; }

/* 5. Parents: one big promise, three short ones. */
.promise { padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); border-radius: 40px; background: linear-gradient(160deg, #e3f8ec, #e6f4ff); text-align: center; }
.promise svg { width: 76px; height: 76px; margin: 0 auto 18px; fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.promise svg path { fill: #15b87722; }
.kicker { margin: 0 0 10px; font-family: var(--round); font-weight: 850; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.promise h2 { font-size: clamp(32px, 6.4vw, 60px); max-width: 16ch; margin: 0 auto; }
.promise .section-lead { margin: 16px auto 0; max-width: 36ch; }
.trust { list-style: none; padding: 0; margin-top: 40px; display: grid; gap: 22px; }
.trust li { padding-left: 20px; border-left: 4px solid var(--sky); }
.trust li:nth-child(2) { border-color: var(--grape); }
.trust li:nth-child(3) { border-color: var(--sun); }
.trust h3 { font-size: 21px; }
.trust p { margin: 4px 0 0; color: var(--soft); }

/* 6. Price: the one dark band */
.price { background: var(--night); color: #f2f7ff; }
.price h2 { text-align: center; }
.plans { margin-top: 36px; display: grid; gap: 16px; }
.plan { padding: 28px; border-radius: 30px; background: var(--night-card); border: 1px solid #ffffff14; }
.plan h3 { font-size: 20px; color: #b9c6e4; font-weight: 750; }
.amount { margin: 6px 0 0; font-family: var(--round); font-size: 52px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2307291b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.plan-pass { border-color: #ffc95c66; }
.pass-options { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pass-opt { position: relative; display: grid; align-content: start; gap: 2px; padding: 22px 16px 16px; border-radius: 20px; background: #ffffff0d; border: 2px solid #ffffff1f; }
.pass-opt.best { border-color: var(--gold); background: linear-gradient(160deg, #3a2e12, #1a2443 70%); box-shadow: 0 0 34px #ffb54726; }
.pass-opt .badge { position: absolute; top: -13px; left: 14px; padding: 3px 11px; border-radius: 99px; background: linear-gradient(135deg, #ffe08a, #ffb547); color: #2a1702; font-family: var(--round); font-size: 13px; font-weight: 900; }
.opt-name { color: #b9c6e4; font-weight: 750; font-size: 15px; }
.pass-opt b { font-family: var(--round); font-size: clamp(30px, 8vw, 38px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.pass-opt small { color: #b9c6e4; font-size: 14px; line-height: 1.35; }

/* 7. FAQ */
.faq h2 { margin-bottom: 20px; font-size: clamp(32px, 6vw, 52px); }
.faq details { border-bottom: 2px solid #1b22380f; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--round); font-size: 19px; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #ffe6e3; color: var(--coral); font-size: 24px; font-weight: 500; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--soft); max-width: 62ch; }

/* 8. Download: the closing screen */
.download { text-align: center; background: radial-gradient(120% 90% at 50% 100%, #ffe1c7, var(--bg) 70%); }
.download h2 { font-size: clamp(52px, 13vw, 120px); line-height: .95; letter-spacing: -.045em; }
.download .beat { margin: 0 .06em; }
.download .section-lead { margin-top: 14px; font-family: var(--round); font-weight: 800; color: var(--ink); font-size: clamp(22px, 4vw, 34px); }
.download .get { margin-top: 36px; } .download .badges { justify-content: center; }
.share-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 48px; color: var(--soft); font-weight: 650; }
.share-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px 0 16px; border-radius: 99px; background: #fff; color: var(--ink); font-family: var(--round); font-size: 16px; font-weight: 850; text-decoration: none; box-shadow: var(--shadow); }
.share-btn:hover { color: var(--coral); }
.share-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 32px var(--pad) calc(32px + env(safe-area-inset-bottom)); border-top: 2px solid #1b22380f; color: var(--quiet); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .marks { flex-basis: 100%; font-size: 12px; line-height: 1.5; }

/* Scroll motion (progressive: browsers with scroll-driven animations; never with reduced motion). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .bento .reveal:nth-child(even) { animation-range: entry 10% entry 80%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(48px) scale(.96); } }

/* Legal pages (privacy.html / terms.html, made by site-tools/legal.py) */
.doc { max-width: 760px; margin: 0 auto; padding: 96px var(--pad) 64px; }
.doc h1 { font-size: clamp(36px, 7vw, 48px); }
.doc .updated { margin: 8px 0 16px; color: var(--quiet); }
.doc .draft { margin: 0 0 28px; padding: 12px 18px; border-radius: 16px; background: #fff3d1; color: #5a4100; font-weight: 700; }
.doc h2 { margin: 40px 0 10px; font-size: 24px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .short { margin: 0 0 32px; padding: 24px 26px 18px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.doc .short h2 { margin-top: 0; }
.doc .table { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #1b22381a; color: var(--soft); }
.doc th { color: var(--ink); }
.doc .back { margin-top: 40px; font-weight: 700; }
/* Unconfirmed facts stay loud so nobody publishes them by accident. */
mark.tbc { padding: 1px 5px; border-radius: 5px; background: #ffe24d; color: #3a2a00; font-weight: 750; box-shadow: 0 0 0 2px #e0b800; }

/* Larger screens */
@media (min-width: 640px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1.5fr; max-width: 900px; align-items: start; }
  .tile h3 { font-size: 18px; }
}
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  :root { --bh: 54px; }
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 4vw, 64px); align-items: center; max-width: calc(1400px + 2 * var(--pad)); margin: 0 auto; padding-top: 120px; }
  .hero-copy { display: block; }
  .hero h1 { font-size: clamp(64px, 7.2vw, 116px); }
  .hero h1 .beat { display: block; }
  .hero-film { margin: 0; }
  .hero-film video { aspect-ratio: 16 / 9; border-radius: 28px; }
  .setup-photo { --h: max(56.25vw, 640px); }
  @supports (height: 100svh) { .setup-photo { --h: max(56.25vw, 640px); } }
  .setup-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #ffeedbf0 0%, #ffeedbb0 26%, #ffeedb00 46%); }
  .setup-photo::after { background: linear-gradient(180deg, #ffeedb00 80%, var(--bg2) 100%); }
  .setup-title { top: 50%; transform: translateY(-50%); left: max(var(--pad), (100% - var(--max)) / 2); max-width: min(8ch, 36vw); font-size: clamp(48px, 6vw, 92px); }
  .console-mark { --k: .1076; --ring: 70px; --pulse: 1.9; top: 49.2%; }
  .console-mark b { font-size: 16px; padding: 8px 16px; right: -22px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps p { margin-left: 0; }
  .proof-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 40px auto 0; padding: 0; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .bento .tile.right { grid-column: 3 / span 2; }
  .tile-info { padding: 12px 16px 16px; }
}
/* Narrower wide screens: the title overlaps the family, so the cream wash reaches further. */
@media (orientation: landscape) and (min-width: 640px) and (max-width: 1239px), (min-width: 900px) and (max-width: 1239px) {
  .setup-photo::before { background: linear-gradient(90deg, #ffeedbf5 0%, #ffeedbe6 34%, #ffeedb00 56%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .faq summary::after { transition: none; } .console-mark i::after { animation: none; opacity: 0; } .tile img { transition: none; } }
