/* Multipop landing, multipop.app (light only, founder 2026-09-23; redesign 2026-10-11: "more like the app").
   Tokens mirror the app (Design/TOKENS.md + the 2.0 Play tab): sky paper, navy ink, raspberry "pop" for actions, the gold
   Daily Challenge card, one tint per game tile (Speedy violet, Practice peach), green = right, red = wrong. Rounded heavy type
   (Nunito, self-hosted, standing in for SF Rounded) on everything a child would read. No gradients, no glow. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/nunito-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/nunito-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/nunito-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --paper: #EEF2FA; --card: #FFFFFF; --ink: #1C2440; --muted: rgba(28, 36, 64, .68); --line: rgba(28, 36, 64, .10);
  --pop: #E23D74; --pop-ink: #C42A5E; --gold: #F0B429; --gold-deep: #D99A12; --navy: #1F2747;
  --green: #23995F; --red: #E0473F; --bubble: #3E9E3A;
  --violet: #E7E1FB; --peach: #F8E4D8; --rose: #FBE0EA; --gold-tint: #FCEFCB;
  --round: "Nunito", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pop-ink); }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 9; }
.skip:focus { top: 12px; }

.top, main { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--round); font-weight: 900; letter-spacing: -0.01em; color: var(--ink); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 22px/1 var(--round); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 10px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--card); box-shadow: 0 2px 0 var(--line); font: 800 15px/1 var(--round); color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 8px; list-style: none;
  width: min(92vw, 520px); columns: 3 150px; column-gap: 4px; background: var(--card); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(28, 36, 64, .16); }
.langs li { break-inside: avoid; }
.langs a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.langs a:hover { background: var(--paper); }
.langs a[aria-current] { font-weight: 700; color: var(--pop-ink); }

/* Hero: copy left, the playable challenge card right */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-block: 40px 88px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.note { font-size: .93rem; color: var(--muted); margin: 14px 0 0; }
.soon { display: inline-block; margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--card); color: var(--pop-ink); font: 800 1rem/1.3 var(--round); }

/* The gold Daily Challenge card (the lobby's hero in the app) */
.challenge { position: relative; margin: 0; background: var(--gold); border-radius: 30px; padding: 26px 22px 22px;
  box-shadow: 0 6px 0 var(--gold-deep); }
.pip { position: absolute; width: 124px; height: 124px; inset-inline-end: -14px; top: -62px; }
.pip-win, .challenge[data-state="right"] .pip-ask, .challenge[data-state="pop"] .pip-ask { display: none; }
.challenge[data-state="right"] .pip-win, .challenge[data-state="pop"] .pip-win { display: block; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding-inline-end: 96px; }
.steps8 { display: flex; gap: 5px; flex: 1; max-width: 260px; }
.steps8 i { height: 9px; flex: 1; border-radius: 9px; background: rgba(28, 36, 64, .16); }
.steps8 i.done, .challenge[data-state="right"] .steps8 i:nth-child(4), .challenge[data-state="pop"] .steps8 i:nth-child(4) { background: var(--green); }
.pts { font: 900 1.6rem/1 var(--round); color: var(--ink); font-variant-numeric: tabular-nums; }
.pts .p1, .challenge[data-state="right"] .pts .p0, .challenge[data-state="pop"] .pts .p0 { display: none; }
.challenge[data-state="right"] .pts .p1, .challenge[data-state="pop"] .pts .p1 { display: inline; color: var(--green); }

.question { background: var(--card); border-radius: 22px; padding: 24px 18px 18px; text-align: center; }
.bubbles { display: grid; gap: 8px; justify-content: center; margin-bottom: 14px; }
.row { display: flex; gap: 8px; }
.row i { --s: clamp(22px, 3.4vw, 34px); width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--bubble); position: relative;
  box-shadow: inset calc(var(--s) * -.12) calc(var(--s) * -.12) 0 rgba(0, 0, 0, .1); }
.row i::after { content: ""; position: absolute; width: 28%; height: 28%; left: 18%; top: 16%; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.challenge[data-state="pop"] .row i { animation: pop .34s ease-out var(--d) both; }
@keyframes pop { 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
.eq { direction: ltr; unicode-bidi: isolate; margin: 0; font: 900 clamp(2.6rem, 6vw, 4rem)/1 var(--round); font-variant-numeric: tabular-nums; }
.ans .a { color: var(--green); } .ans .q { color: rgba(28, 36, 64, .28); }
.ans .a, .challenge[data-state="right"] .ans .q, .challenge[data-state="pop"] .ans .q { display: none; }
.challenge[data-state="right"] .ans .a, .challenge[data-state="pop"] .ans .a { display: inline; }

.answers { direction: ltr; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile { position: relative; min-height: 64px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); cursor: pointer;
  font: 900 2.2rem/1 var(--round); font-variant-numeric: tabular-nums; box-shadow: 0 4px 0 rgba(28, 36, 64, .14); }
.tile:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(28, 36, 64, .14); }
.tile.is-wrong { background: var(--red); color: #fff; box-shadow: 0 4px 0 #B8342D; }
.tile.is-wrong::after { content: "×"; position: absolute; top: 6px; inset-inline-end: 10px; font-size: 1.1rem; }
.challenge[data-state="right"] .tile.is-right, .challenge[data-state="pop"] .tile.is-right { background: var(--green); color: #fff; box-shadow: 0 4px 0 #1A7A4B; }
.challenge[data-state="right"] .tile.is-right::after, .challenge[data-state="pop"] .tile.is-right::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 10px; font-size: 1.1rem; }

/* Sections */
section { padding-block: 44px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; margin: 0 0 26px; }

/* A day of Multipop: the app's game tiles, in order */
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game { position: relative; border-radius: 24px; padding: 22px 20px 24px; background: var(--card); }
.game.gold { background: var(--gold-tint); } .game.violet { background: var(--violet); } .game.peach { background: var(--peach); } .game.rose { background: var(--rose); }
.game img { width: 76px; height: 76px; margin: -4px 0 10px -4px; }
[dir="rtl"] .game img { margin: -4px -4px 10px 0; }
.game .num { position: absolute; top: 18px; inset-inline-end: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); font: 900 1rem/1 var(--round); }
.game h3 { font-size: 1.2rem; line-height: 1.2; margin: 0 0 8px; }
.game p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Screenshots in the visitor's language, on the store's raspberry band */
.shots { margin-block: 28px; margin-inline: calc(50% - 50vw); padding-block: 56px 48px; background: var(--pop); }
.shots-in { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.shots h2 { color: #fff; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent; }
.strip img { scroll-snap-align: start; border-radius: 20px; }
.strip:focus-visible { outline-color: #fff; }

/* FAQ: rounded white rows, like the app's Settings */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--card); border-radius: 20px; margin-bottom: 10px; padding-inline: 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 800 1.1rem/1.35 var(--round); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); font: 900 1.2rem/1 var(--round); color: var(--pop-ink); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Closing: the navy card of the app's Pro banner */
.closing { display: flex; align-items: center; gap: 28px; margin-block: 28px 8px; padding: 34px 40px; border-radius: 30px; background: var(--navy); color: #fff; }
.closing img { width: 150px; height: 150px; flex: none; }
.closing h2 { color: #fff; margin: 0 0 8px; }
.closing p { margin: 0 0 22px; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.closing .soon { background: var(--gold); color: var(--ink); }
.support { text-align: center; color: var(--muted); font-size: .95rem; margin: 18px 0 48px; }

/* Footer: a white band, three columns (brand + badge, links, languages), then the legal line */
.foot { max-width: none; padding: 0; margin-top: 24px; background: var(--card); color: var(--muted); font-size: .95rem; }
.foot-in { max-width: 1120px; margin-inline: auto; padding: 48px 20px 36px; display: grid; grid-template-columns: 1.2fr .7fr 1.6fr; gap: 40px; }
.foot-brand p { margin: 12px 0 18px; max-width: 26ch; color: var(--muted); }
.badge.small img { height: 40px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.foot-links a { color: var(--ink); font: 800 1rem/1.3 var(--round); text-decoration: none; }
.foot-links a:hover { color: var(--pop-ink); }
.foot-links .mail { font-size: .88rem; }
.foot-langs h2 { font: 800 1rem/1.2 var(--round); letter-spacing: 0; color: var(--ink); margin: 6px 0 14px; }
.foot-langs ul { list-style: none; margin: 0; padding: 0; columns: 3 120px; column-gap: 20px; }
.foot-langs li { break-inside: avoid; }
.foot-langs a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot-langs a:hover { color: var(--ink); }
.foot-langs a[aria-current] { color: var(--pop-ink); font-weight: 700; }
.foot-more { max-width: 1120px; margin-inline: auto; padding: 0 20px 20px; } /* "More apps by JCOM" (jcom.llc /_apps.php) */
.foot-base { max-width: 1120px; margin-inline: auto; padding: 18px 20px 32px; border-top: 1px solid var(--line); font-size: .85rem;
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot-base p { margin: 0; }

/* Legal pages (privacy, terms): full width of main (founder 2026-10-03), on a white sheet */
.doc { margin-block: 12px 56px; padding: 36px clamp(20px, 4vw, 48px); background: var(--card); border-radius: 28px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.doc .eyebrow, .doc .updated { color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 80px; padding-block: 12px 48px; }
  .games { grid-template-columns: 1fr 1fr; }
  .strip { grid-auto-columns: 62%; }
  .closing { flex-direction: column; text-align: center; padding: 30px 24px; }
  .closing p { margin-inline: auto; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .foot-langs ul { columns: 2; }
}
@media (max-width: 560px) {
  .games { grid-template-columns: 1fr; }
  .pip { width: 100px; height: 100px; top: -50px; inset-inline-end: -6px; }
  .bar { padding-inline-end: 78px; }
  .tile { min-height: 58px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
