/* Challengo — static site. No external fonts, images or scripts. */
:root {
  --paper: #F5F4EF;
  --paper-2: #ECEBE4;
  --surface: #FFFFFF;
  --ink: #20221F;
  --muted: #5F625A;
  --line: rgba(32, 34, 31, .14);
  --lime: #D5F578;
  --lavender: #D7C9F4;
  --peach: #F3CFB7;
  --on-accent: #20221F;
  --stage: #20221F;
  --stage-ink: #F5F4EF;
  --stage-muted: #B9BCB2;
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161714;
    --paper-2: #1E201C;
    --surface: #23251F;
    --ink: #F1F0EA;
    --muted: #B3B6AC;
    --line: rgba(241, 240, 234, .16);
    --stage: #0E0F0D;
    --stage-ink: #F5F4EF;
    --stage-muted: #B9BCB2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over component display rules (.button, .status, …). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.stage :focus-visible, .on-dark:focus-visible { outline-color: var(--lime); }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.45rem; letter-spacing: -.045em; text-decoration: none; }
.wordmark svg { width: 40px; height: 32px; flex: none; }
.wordmark .dot { color: #8AB31F; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-weight: 650; font-size: .98rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 750; }
.lang a, .lang span { padding: 4px 9px; border-radius: 999px; text-decoration: none; }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) { .nav .nav-hide { display: none; } }

/* Buttons and small type */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.lime { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }
.button.ghost { background: transparent; color: var(--ink); }
.text-button { background: none; border: 0; padding: 10px 2px; min-height: 44px; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.marker { background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 88%, transparent 88%); color: var(--on-accent); padding-inline: .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.marker.lav { background: linear-gradient(transparent 12%, var(--lavender) 12%, var(--lavender) 88%, transparent 88%); }
.status { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px dashed var(--line); font-weight: 750; color: var(--ink); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8AB31F; box-shadow: 0 0 0 4px rgba(138, 179, 31, .22); }
.note { font-size: .9rem; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "copy art" "facts art"; column-gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 104px); }
.hero-copy { grid-area: copy; align-self: end; }
.hero-art { grid-area: art; }
.hero .facts { grid-area: facts; align-self: start; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); }
.hero .lead { margin-top: 26px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-weight: 650; }
.facts b { font-size: 1.6rem; letter-spacing: -.04em; margin-right: 6px; }
.hero-art { position: relative; display: grid; justify-items: end; align-items: center; padding-right: 4%; }
.hero-art::before { content: ""; position: absolute; inset: 7% 0 2% 14%; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; background: var(--lavender); transform: rotate(-6deg); }
.mascot { position: absolute; z-index: 3; width: clamp(96px, 10vw, 124px); left: 0; top: 16%; transform: rotate(-9deg); filter: drop-shadow(4px 5px 0 var(--ink)); }
.sticker { position: absolute; z-index: 3; left: 0; bottom: 14%; padding: 10px 14px 9px; background: var(--lime); color: var(--on-accent); border: 2px solid #20221F; border-radius: 20px; box-shadow: 5px 6px 0 #20221F; transform: rotate(-5deg); font-weight: 800; line-height: 1.1; }
.sticker small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.sticker strong { font-size: 1.3rem; letter-spacing: -.04em; white-space: nowrap; }
.hero .phone { width: clamp(240px, 25vw, 300px); }

/* Phone frame around real captures */
.phone { position: relative; z-index: 2; width: min(300px, 74vw); aspect-ratio: 1206 / 2622; padding: 10px; border-radius: 48px; background: #20221F; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; background: #F5F4EF; }
.phone.tilt-l { transform: rotate(-4deg); }
.phone.tilt-r { transform: rotate(3.5deg); }
.capture-note { margin-top: 18px; font-size: .82rem; color: var(--muted); text-align: center; }

/* Ticker strip */
.strip { overflow: hidden; border-block: 2px solid var(--ink); background: var(--lime); color: var(--on-accent); }
.strip ul { display: flex; gap: 40px; width: max-content; margin: 0; padding: 16px 0; list-style: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; animation: ticker 48s linear infinite; }
.strip li::after { content: "✳"; margin-left: 40px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2, .story h2, .final h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.section-head p { margin-top: 20px; font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }

/* Demo stage */
.stage { background: var(--stage); color: var(--stage-ink); border-radius: clamp(28px, 4vw, 44px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.stage .eyebrow { color: var(--lime); }
.stage h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-top: 14px; }
.stage p { color: var(--stage-muted); margin-top: 18px; font-size: 1.1rem; }
.stage p strong { color: var(--stage-ink); }
.demo-badge { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; padding: 7px 14px; border: 1px dashed rgba(245, 244, 239, .4); border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--stage-ink); }
.result { margin-top: 28px; padding: 22px; border-radius: 22px; background: rgba(245, 244, 239, .07); border: 1px solid rgba(245, 244, 239, .14); }
.result .score { display: block; font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 8px 0; color: var(--lime); }
.result .score small { font-size: .45em; letter-spacing: 0; }
.result span { display: block; color: var(--stage-muted); }
.result .verdict { color: var(--stage-ink); font-weight: 750; }
.dial-box { text-align: center; }
.dial-top { display: flex; justify-content: space-between; font: 700 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--stage-muted); margin-bottom: 10px; }
#angle-game { width: 100%; max-width: 460px; margin-inline: auto; touch-action: none; cursor: grab; border-radius: 24px; }
#angle-game:active { cursor: grabbing; }
#angle-game[aria-disabled="true"] { cursor: default; }
.dial-ring { fill: none; stroke: #3F413B; stroke-width: 2; }
.base-ray { stroke: #6E7266; stroke-width: 3; stroke-dasharray: 6 8; stroke-linecap: round; }
.guess-ray { stroke: var(--lime); stroke-width: 7; stroke-linecap: round; }
.target-ray { stroke: var(--lavender); stroke-width: 6; stroke-linecap: round; opacity: 0; transition: opacity .35s ease; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.demo-controls .text-button { color: var(--stage-ink); }
.keys { margin-top: 12px; font-size: .85rem; color: var(--stage-muted); }

/* Stories */
.stories { display: grid; gap: clamp(88px, 13vw, 160px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story:nth-child(even) .story-art { order: -1; }
.story-num { display: block; font-size: clamp(4.5rem, 10vw, 8rem); font-weight: 800; line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 18px; }
.story p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.story p strong { color: var(--ink); }
.story-art { position: relative; display: grid; justify-items: center; }
.story-art .blob { position: absolute; inset: 8% 6%; border-radius: 50% 44% 52% 48% / 46% 54% 46% 54%; z-index: 0; }
.blob.lime { background: var(--lime); }
.blob.peach { background: var(--peach); }
.blob.lav { background: var(--lavender); }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.ticks li::before { content: "↗"; flex: none; font-weight: 800; }
.local-time { margin-top: 22px; padding: 14px 18px; border-left: 4px solid var(--lime); background: var(--paper-2); border-radius: 0 16px 16px 0; font-size: .98rem; }

/* Group board illustration */
.board { position: relative; z-index: 1; width: min(420px, 100%); background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 30px; padding: 24px; box-shadow: 8px 9px 0 var(--ink); }
.board-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.board-head h3 { font-size: 1.5rem; margin-top: 6px; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--on-accent); font: 800 .72rem/1 var(--mono); letter-spacing: .12em; }
.locked { text-align: center; padding: 18px 6px 6px; }
.locked .q { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--lavender); color: var(--on-accent); font-size: 1.8rem; font-weight: 800; }
.locked h4 { font-size: 1.5rem; }
.locked p { margin: 10px 0 18px; color: var(--muted); font-size: 1rem; }
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--paper-2); font-weight: 700; }
.row.you { background: var(--lime); color: var(--on-accent); }
.row b { font-family: var(--mono); font-size: .85rem; }
.row.pending { opacity: .65; }
.sample { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Game catalogue */
.catalogue { margin-top: 30px; display: grid; gap: 18px; }
.catalogue h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1.5px solid var(--ink); }
.chips.free li { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }

/* Pricing */
.pricing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(36px, 6vw, 60px); }
.pricing-head h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.pricing-head p { margin-top: 18px; font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.burger-button { display: grid; justify-items: center; gap: 8px; width: 210px; padding: 8px; background: none; border: 0; cursor: pointer; border-radius: 24px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.burger { width: 180px; height: auto; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.burger.open { transform: translateY(-10px) rotate(-7deg) scale(1.06); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.plan { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 2px solid var(--ink); }
.plan.pro { background: var(--lime); color: var(--on-accent); }
.plan.pro .eyebrow, .plan.pro .muted { color: #3E4339; }
.plan h3 { font-size: 2rem; margin-top: 10px; }
.price { margin-top: 14px; font-size: 3.2rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.price small { font-size: .38em; letter-spacing: 0; font-weight: 700; }
.plan .muted { color: var(--muted); margin-top: 8px; font-weight: 600; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.plan li.no { opacity: .62; }
.plan li.no::before { content: "–"; }
.fineprint { margin-top: 22px; font-size: .9rem; color: var(--muted); max-width: 90ch; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 750; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); color: var(--on-accent); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq details p + p { margin-top: -10px; }

/* Final CTA */
.final { text-align: center; display: grid; justify-items: center; gap: 22px; padding-block: clamp(72px, 11vw, 140px); }
.final .eyes { width: 150px; filter: drop-shadow(5px 6px 0 var(--ink)); }
.final p { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.final .hero-actions { justify-content: center; margin-top: 6px; }

/* Footer */
.footer { border-top: 2px solid var(--ink); padding-block: 36px 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 36px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 650; }
.footer small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }

/* Legal / document pages */
.doc { max-width: 780px; padding-block: 24px 96px; overflow-wrap: break-word; }
.doc h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 18px 0 18px; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 52px 0 14px; letter-spacing: -.025em; }
.doc h3 { font-size: 1.15rem; margin: 28px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc .summary { margin-top: 26px; padding: 22px 24px; border-radius: 22px; background: var(--lime); color: var(--on-accent); }
.doc .summary h2 { margin: 0 0 10px; font-size: 1.2rem; }
.doc .summary ul { margin: 0; }
.doc .summary li { color: var(--on-accent); }
.doc .card { margin-top: 18px; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--surface); }
.doc address { font-style: normal; }
.toc { margin-top: 28px; padding: 18px 22px; border: 1.5px dashed var(--line); border-radius: 20px; }
.toc ol { columns: 2 240px; margin: 8px 0 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1.5px solid var(--line); border-radius: 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--paper-2); font-weight: 750; }
.doc tr:last-child td { border-bottom: 0; }
.back { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.code-box { margin: 18px 0; padding: 18px 20px; border-radius: 18px; background: var(--paper-2); font: 700 1.15rem/1.4 var(--mono); overflow-wrap: anywhere; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; }
.press-grid figure { margin: 0; }
.press-grid img { width: 100%; border-radius: 18px; border: 1.5px solid var(--line); }
.press-grid figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .stage, .story, .faq { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "facts"; padding-block: 12px 56px; row-gap: 28px; }
  .hero .facts { margin-top: 0; }
  .hero-art { justify-items: center; padding-right: 0; }
  .hero-art::before { inset: 6% 6% 4% 6%; }
  .hero .phone { width: min(260px, 64vw); }
  .mascot, .sticker { display: none; }
  .story:nth-child(even) .story-art { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 2px solid var(--ink); }
  .pricing-head { grid-template-columns: 1fr; }
  .burger-button { justify-self: start; }
}
@media (max-width: 640px) {
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer nav { justify-content: flex-start; }
  .hero h1 { margin-top: 10px !important; }
  .hero .lead { margin-top: 16px; font-size: 1.1rem; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero .capture-note { margin-top: 10px; }
  .hero-actions .button { width: 100%; }
  .stage { padding: 24px 18px; }
}
@media (max-width: 380px) {
  .header { flex-wrap: wrap; }
  .hero h1 { font-size: 2.65rem; }
  .facts b { font-size: 1.3rem; }
  .board { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strip .dup { display: none; }
  .strip ul { transform: none; flex-wrap: wrap; width: auto; padding-inline: 20px; gap: 10px 40px; }
  .button:hover { transform: none; }
}
@media (forced-colors: active) {
  .marker { background: none; text-decoration: underline; }
  .button { border: 2px solid ButtonText; }
}
@media print {
  .header nav, .strip, .skip, .burger-button { display: none; }
  body { background: #fff; color: #000; }
}
