/* Witbolt web. Tokens mirror apps/mobile/src/theme/tokens.ts so the site reads as the app. */
@font-face {
  font-family: 'Nunito';
  src: url('/assets/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0F1B33;
  --ink-soft: #334155;
  --muted: #5B6B82;
  --bg: #F6F8FF;
  --surface: #FFFFFF;
  --surface-alt: #F1F5FF;
  --border: #E2E8F0;
  --primary: #1A66FF;
  --primary-pressed: #0F52D9;
  --primary-grad: linear-gradient(180deg, #3A87FD, #1060F5);
  --primary-text: #1D5FE0;
  --gold: #F6B91A;
  --lavender: #EEE8FF;
  --logic: #2F7BFF;   --logic-soft: #E6F0FF;
  --patterns: #9F52FC; --patterns-soft: #F2E9FF; --patterns-text: #7C3AED;
  --numbers: #FA8131; --numbers-soft: #FFF0E4; --numbers-text: #B9500C;
  --memory: #16C964;  --memory-soft: #E3FBEF; --memory-text: #0F8A45;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(30, 58, 138, .10);
  --shadow-lg: 0 24px 60px rgba(30, 58, 138, .18);
  --gutter: 20px;
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
a { color: var(--primary-text); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; }
.skip:focus { top: 12px; }
.fine { color: var(--muted); font-size: .85rem; }
.strong { font-weight: 800; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 18px; background: var(--primary-grad); color: #fff; font: 800 1.05rem/1 var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(16, 96, 245, .30), inset 0 -3px 0 rgba(0, 0, 0, .12); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16, 96, 245, .36), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(1px); }
.btn-sm { white-space: nowrap; min-height: 44px; padding: 0 20px; border-radius: 14px; font-size: .95rem; }
.btn-ghost { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow), inset 0 0 0 2px var(--logic-soft); }
.btn-ghost:hover { box-shadow: var(--shadow-lg), inset 0 0 0 2px #CFE0FF; }
.bolt { width: 14px; height: 20px; background: currentColor; clip-path: polygon(60% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 56% 38%); }

/* Header / nav */
.site-head { position: sticky; top: 0; z-index: 20; padding: 10px 0; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 12px 0 16px; border-radius: 22px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 6px 24px rgba(30, 58, 138, .08); max-width: calc(1200px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 900; font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 44px; height: auto; }
.nav-links { display: none; margin: 0 auto; padding: 0; list-style: none; gap: 4px; }
.nav-links a, .menu a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .menu a:hover { background: var(--surface-alt); color: var(--primary-text); }
.nav-cta { margin-left: auto; }
.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-alt); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); content: ''; transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
.menu ul { position: absolute; right: 0; top: 54px; min-width: 220px; margin: 0; padding: 8px; list-style: none; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
@media (max-width: 360px) { .nav-cta { display: none; } .menu { margin-left: auto; } }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
  .menu { display: none; }
}

/* Shared section rhythm */
main > section { padding: 28px 0; }
.panel { position: relative; overflow: hidden; padding-top: 36px; padding-bottom: 36px; border-radius: var(--radius); background: linear-gradient(135deg, #F3F6FF 0%, #ECE8FF 100%); }
.wrap.panel { width: calc(100% - 2 * var(--gutter)); max-width: calc(1200px - 2 * var(--gutter)); padding-left: 24px; padding-right: 24px; }
.panel-warm { background: linear-gradient(135deg, #FFFBEA 0%, #FFF1E2 100%); }
.section-head { margin-bottom: 24px; }
.section-head h2, .tension h2, .social h2, .profile h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 8px 0 24px; background: radial-gradient(60% 50% at 85% 30%, #E6E1FF 0%, transparent 70%), radial-gradient(50% 40% at 0% 0%, #E3EEFF 0%, transparent 70%); }
.hero-grid { display: grid; gap: 8px; }
.hero h1 { font-size: clamp(2.35rem, 1.1rem + 6.4vw, 5.1rem); line-height: 1.02; letter-spacing: -.025em; }
.h-quiet, .h-loud { display: block; }
.h-loud { margin-top: .08em; background: linear-gradient(95deg, #1A66FF 0%, #6A5BFF 50%, #9F52FC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lede { margin: 18px 0 6px; max-width: 30rem; color: var(--ink-soft); font-size: 1.12rem; }
.tagline { font-weight: 900; font-size: 1.2rem; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-note { margin-top: 14px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.store-note::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.hero-art { position: relative; order: -1; width: min(70%, 270px); margin: 0 auto; aspect-ratio: 1 / 1; }
.halo { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0%, #E4ECFF 55%, #DCD4FF 100%); box-shadow: 0 30px 60px rgba(106, 91, 255, .18); }
.hero-mascot { position: absolute; left: 50%; bottom: 2%; width: 74%; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(30, 58, 138, .2)); animation: bob 5s ease-in-out infinite; }
.gem { position: absolute; width: 22%; animation: float 6s ease-in-out infinite; }
.gem img { filter: drop-shadow(0 10px 14px rgba(30, 58, 138, .22)); }
.gem b { display: none; }
.gem-logic { left: 0; top: 10%; }
.gem-patterns { right: 2%; top: 2%; width: 19%; animation-delay: -1.5s; }
.gem-numbers { right: -2%; top: 46%; width: 18%; animation-delay: -3s; }
.gem-memory { left: 3%; bottom: 8%; width: 18%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@media (min-width: 960px) {
  .hero { padding: 24px 0 48px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
  .hero-art { order: 0; width: 100%; max-width: 520px; }
  .gem b { display: block; margin-top: 4px; text-align: center; font-size: .9rem; color: var(--ink-soft); }
}

/* AI tension */
.tension-grid { display: grid; gap: 24px; align-items: center; }
.tension h2 { max-width: 14ch; margin-bottom: 14px; }
.beats { font-weight: 800; color: var(--primary-text); font-size: 1.1rem; }
.prompts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.prompts li { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); color: var(--muted); font-weight: 700; font-size: .9rem; box-shadow: 0 4px 14px rgba(30, 58, 138, .06); }
.prompts li::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; background: #C9D3E6; }
.prompts li:nth-child(2) { opacity: .78; }
.prompts li:nth-child(3) { opacity: .56; }
.prompts li:nth-child(4) { opacity: .36; }
.tension-mascot { width: min(300px, 80%); margin: 0 auto; filter: drop-shadow(0 16px 20px rgba(30, 58, 138, .18)); }
@media (min-width: 720px) {
  .prompts { grid-template-columns: 1fr; gap: 10px; }
  .prompts li { padding: 12px 16px; }
  .prompts li:nth-child(2) { margin-left: 12px; }
  .prompts li:nth-child(3) { margin-left: 4px; }
  .prompts li:nth-child(4) { margin-left: 16px; }
  .tension-grid { grid-template-columns: 1.2fr 1fr; }
  .tension-mascot { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .tension .panel { padding: 48px; }
  .tension-grid { grid-template-columns: 1.15fr .8fr 1fr; }
  .tension-mascot { grid-column: auto; width: 100%; max-width: 360px; }
}

/* Skills */
.skill-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.skill { padding: 20px 16px; border-radius: 24px; text-align: center; background: var(--logic-soft); transition: transform .2s, box-shadow .2s; }
.skill img { width: 72px; margin: 0 auto 12px; transition: transform .3s; }
.skill h3 { font-size: 1.25rem; }
.skill p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; font-weight: 700; }
.skill-logic h3 { color: var(--primary-text); }
.skill-patterns { background: var(--patterns-soft); } .skill-patterns h3 { color: var(--patterns-text); }
.skill-numbers { background: var(--numbers-soft); } .skill-numbers h3 { color: var(--numbers-text); }
.skill-memory { background: var(--memory-soft); } .skill-memory h3 { color: var(--memory-text); }
.skill:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.skill:hover img { transform: scale(1.08) rotate(-6deg); }
@media (min-width: 720px) {
  .skill-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .skill { padding: 32px 20px; }
  .skill img { width: 96px; }
}

/* How it works */
.how .panel { background: var(--surface); box-shadow: var(--shadow); }
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: center; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: -6px; top: -6px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; font-size: .85rem; }
.step-art { grid-row: span 2; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--surface-alt); }
.step-art img { width: 58px; }
.step-play { grid-template-columns: 1fr 1fr; gap: 3px; padding: 10px; }
.step-play img { width: 100%; }
.step-score { background: var(--ink); color: #fff; font-weight: 900; font-size: 1.05rem; }
.steps h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; align-self: end; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; align-self: start; }
@media (min-width: 720px) {
  .how .panel { padding: 44px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: start; }
  .steps li::before { left: calc(50% - 60px); }
  .step-art { grid-row: auto; width: 112px; height: 112px; margin-bottom: 14px; border-radius: 28px; }
  .step-art img { width: 84px; }
  .step-play img { width: 100%; }
  .step-score { font-size: 1.4rem; }
}

/* Social challenge */
.social-grid { display: grid; gap: 24px; align-items: center; }
.social h2 { max-width: 16ch; margin-bottom: 14px; }
.duel { display: grid; gap: 14px; justify-items: center; }
.card { width: 100%; max-width: 320px; padding: 20px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.who { display: flex; align-items: center; gap: 10px; text-align: left; font-size: .95rem; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-grad); color: #fff; font-weight: 900; }
.label { margin: 14px 0 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.big-score { margin: 0; font-size: 3rem; font-weight: 900; line-height: 1.1; }
.ask { margin: 0 0 14px; font-weight: 800; color: #7A4B00; }
.fake-btn { display: block; padding: 14px; border-radius: 16px; background: var(--primary-grad); color: #fff; font-weight: 800; }
.duel-arrow { width: 28px; height: 28px; border-right: 4px solid var(--primary); border-bottom: 4px solid var(--primary); border-radius: 3px; transform: rotate(45deg); opacity: .6; }
.versus { display: flex; justify-content: space-around; align-items: end; margin: 0 0 8px; }
.versus span { display: grid; }
.versus small { color: var(--muted); font-size: .85rem; font-weight: 700; }
.versus b { font-size: 1.8rem; font-weight: 900; }
.versus .vs { align-self: center; color: var(--muted); font-weight: 900; }
.won { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 14px; padding: 8px 12px; border-radius: 14px; background: #FFF2C2; color: #7A4B00; font-size: 1.3rem; font-weight: 900; }
.won img { width: 32px; }
@media (min-width: 960px) {
  .social .panel { padding: 48px; }
  .social-grid { grid-template-columns: .9fr 1.3fr; }
  .duel { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .duel-arrow { transform: rotate(-45deg); }
  .invite { transform: rotate(-3deg); }
  .outcome { transform: rotate(3deg) translateY(24px); }
}

/* Phones */
.phone { margin: 0; border: 9px solid var(--ink); border-radius: 42px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); aspect-ratio: 540 / 1169; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Profile */
.profile-grid { display: grid; gap: 28px; align-items: center; }
.profile .phone { width: min(260px, 72%); margin: 0 auto; }
.profile-copy > p { color: var(--ink-soft); max-width: 32rem; }
.profile h2 { margin-bottom: 14px; }
.bars { display: grid; gap: 10px; max-width: 26rem; margin: 18px 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 6.5rem 1fr 2.2rem; align-items: center; gap: 10px; font-weight: 800; font-size: .95rem; }
.bars i { height: 12px; border-radius: 99px; background: var(--surface-alt); position: relative; overflow: hidden; }
.bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.bars b { text-align: right; }
.bar-logic i::after { width: 88%; background: var(--logic); }
.bar-patterns i::after { width: 74%; background: var(--patterns); }
.bar-numbers i::after { width: 69%; background: var(--numbers); }
.bar-memory i::after { width: 81%; background: var(--memory); }
@media (min-width: 720px) {
  .profile-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .phone-tilt { transform: rotate(-4deg); }
  .profile .phone { width: 100%; max-width: 290px; }
}

/* Why */
.benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.benefits li { padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.benefits h3 { margin: 12px 0 6px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
.benefits p { margin: 0; color: var(--muted); }
.b-icon { display: block; width: 52px; height: 52px; border-radius: 16px; position: relative; }
.b-icon::after { content: ''; position: absolute; inset: 13px; background: #fff; }
.b-fast { background: var(--primary-grad); }
.b-fast::after { inset: 12px 17px; clip-path: polygon(60% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 56% 38%); }
.b-social { background: linear-gradient(180deg, #B57BFF, #8B3DF5); }
.b-social::after { clip-path: polygon(0 50%, 100% 0, 70% 100%, 48% 62%); }
.b-guest { background: linear-gradient(180deg, #2EE07D, #12B357); }
.b-guest::after { inset: 15px 13px; clip-path: polygon(0 55%, 14% 40%, 38% 64%, 86% 10%, 100% 25%, 38% 92%); }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 18px; } .benefits li { padding: 28px; } }

/* Showcase */
.showcase { overflow: hidden; }
.phones { display: flex; justify-content: center; align-items: center; padding: 12px 0 28px; }
.phones .phone { flex: none; width: 46%; max-width: 250px; }
.phones .p1, .phones .p5 { display: none; }
.phones .p2 { transform: rotate(-5deg) translateX(14%); }
.phones .p3 { position: relative; z-index: 2; width: 52%; }
.phones .p4 { transform: rotate(5deg) translateX(-14%); }
@media (min-width: 720px) {
  .phones .phone { width: 22%; }
  .phones .p1, .phones .p5 { display: block; }
  .phones .p1 { transform: rotate(-8deg) translate(24%, 30px); }
  .phones .p2 { position: relative; z-index: 1; transform: rotate(-4deg) translate(10%, 8px); }
  .phones .p3 { width: 26%; }
  .phones .p4 { position: relative; z-index: 1; transform: rotate(4deg) translate(-10%, 8px); }
  .phones .p5 { transform: rotate(8deg) translate(-24%, 30px); }
}

/* Final CTA */
.final { margin-top: 24px; padding: 0; background: linear-gradient(160deg, #3A5BFF 0%, #5B3FD9 55%, #7B2FE0 100%); color: #fff; overflow: hidden; }
.final-inner { position: relative; display: grid; gap: 8px; justify-items: center; padding-top: 44px; padding-bottom: 44px; text-align: center; }
.final h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); }
.final h2 span { display: block; color: #FFD45C; }
.final .tagline { margin: 14px 0 22px; color: #fff; }
.final-mascot { width: 200px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .25)); }
.final-trophy { display: none; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: grid; min-width: 170px; padding: 12px 22px; border-radius: 16px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); color: #fff; text-align: left; text-decoration: none; }
.store-k { font-weight: 900; font-size: 1.1rem; }
.store-v { font-size: .85rem; font-weight: 700; opacity: .9; }
.store.is-live { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .15s; }
.store.is-live .store-v { color: var(--primary-text); opacity: 1; }
.store.is-live:hover { transform: translateY(-2px); }
.final .fine { margin-top: 18px; color: rgba(255, 255, 255, .85); }
.final :focus-visible { outline-color: #FFD45C; }
@media (min-width: 960px) {
  .final-inner { grid-template-columns: 1fr 2.2fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 56px; }
  .final-mascot { width: 100%; max-width: 300px; }
  .final-trophy { display: block; width: 100%; max-width: 240px; justify-self: end; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .25)); animation: float 6s ease-in-out infinite; }
}

/* Footer */
.site-foot { padding: 24px 0 32px; background: var(--surface); border-top: 1px solid var(--border); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-inner nav a { color: var(--ink-soft); font-weight: 700; font-size: .95rem; text-decoration: none; padding: 6px 0; }
.foot-inner nav a:hover { color: var(--primary-text); text-decoration: underline; }
.foot-inner p { margin: 0; color: var(--muted); font-size: .9rem; }
.foot-inner .brand { font-size: 1.15rem; }
.foot-inner .brand img { width: 36px; }

/* Legal / support pages: readability first. */
.doc main { max-width: 44rem; margin: 0 auto; padding: 12px var(--gutter) 56px; }
.doc .doc-body { padding: 28px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 6px; }
.doc h2 { margin: 32px 0 6px; font-size: 1.3rem; line-height: 1.25; }
.doc h3 { margin: 18px 0 2px; font-size: 1.05rem; line-height: 1.3; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.doc .site-head .nav, .challenge .site-head .nav { max-width: calc(44rem - 2 * var(--gutter)); }
@media (min-width: 720px) { .doc .doc-body { padding: 44px 52px; } }

/* Guide pages (/how-it-works, /brain-games, /play-with-friends): doc readability, home components. */
.guide main { max-width: 52rem; margin: 0 auto; padding: 12px var(--gutter) 56px; }
.guide .site-head .nav { max-width: calc(52rem - 2 * var(--gutter)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 14px; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.guide-hero { padding: 8px 0 20px; }
.guide-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); line-height: 1.05; }
.guide-hero .lede { max-width: 38rem; }
.guide-hero .eyebrow-icon { width: 72px; margin-bottom: 12px; }
.guide-body { padding: 28px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.guide-body h2 { margin: 32px 0 8px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin: 20px 0 4px; font-size: 1.1rem; line-height: 1.3; }
.guide-body p, .guide-body li { color: var(--ink-soft); line-height: 1.65; }
.guide-body ol, .guide-body ul { padding-left: 1.3rem; }
.guide-body li { margin-bottom: 6px; }
.guide-body .skill-cards { padding: 0; margin-top: 14px; }
.guide-body .skill-cards li { margin: 0; }
.example { margin: 14px 0; padding: 16px 18px; border-radius: 18px; background: var(--surface-alt); }
.example p:last-child { margin-bottom: 0; }
.guide-cta { margin-top: 24px; padding: 28px 22px; border-radius: var(--radius); background: linear-gradient(160deg, #3A5BFF 0%, #5B3FD9 55%, #7B2FE0 100%); color: #fff; text-align: center; }
.guide-cta h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.guide-cta p { margin: 10px auto 18px; max-width: 30rem; color: rgba(255, 255, 255, .9); }
.guide-cta .cta-row { justify-content: center; margin-top: 0; }
.guide-cta .btn { background: #fff; color: var(--primary-text); }
.guide-cta .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.guide-cta :focus-visible { outline-color: #FFD45C; }
.related { margin-top: 24px; }
.related h2 { font-size: 1.3rem; margin-bottom: 12px; }
.related ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.related a { display: block; height: 100%; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; text-decoration: none; }
.related a span { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.related a:hover { box-shadow: var(--shadow-lg); color: var(--primary-text); }
.skill { position: relative; }
.skill h3 a { color: inherit; text-decoration: none; }
.skill h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.more { margin-top: 18px; font-weight: 800; }
.foot-inner .foot-explore { flex-basis: 100%; }
@media (min-width: 720px) {
  .guide-body { padding: 44px 52px; }
  .related ul { grid-template-columns: repeat(2, 1fr); }
}

/* Challenge landing: the invite first, brand second. */
.challenge main { max-width: 30rem; margin: 0 auto; padding: 8px var(--gutter) 40px; }
.invite-card { position: relative; margin-top: 28px; padding: 50px 22px 26px; border-radius: 32px; background: linear-gradient(180deg, #FFFBEA 0%, #FFFFFF 46%); box-shadow: var(--shadow-lg); text-align: center; }
.invite-card::before { content: ''; position: absolute; left: 50%; top: -30px; width: 84px; height: 72px; transform: translateX(-50%); background: url('/assets/crown-200.webp') center / contain no-repeat; }
.invite-card h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem); margin: 10px 0 14px; }
.invite-card .eyebrow { margin: 0; color: var(--primary-text); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.invite-card .score-box { margin: 0 auto 6px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 2px #FFE7A3; }
.invite-card .score-label { margin: 0; color: var(--muted); font-weight: 800; font-size: .9rem; }
.score { margin: 0; font-size: 3.6rem; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.invite-card .ask { display: inline-block; margin: 14px 0 6px; padding: 8px 16px; border-radius: 99px; background: #FFF2C2; color: #7A4B00; font-weight: 900; }
.invite-card button { width: 100%; margin-top: 16px; min-height: 56px; border: 0; border-radius: 18px; background: var(--primary-grad); color: #fff; font: 800 1.1rem/1 var(--font); cursor: pointer; box-shadow: 0 10px 24px rgba(16, 96, 245, .30); }
.invite-card .muted { margin-top: 16px; }
.brand-strip { margin-top: 28px; text-align: center; }
.brand-strip .icons { display: flex; justify-content: center; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.brand-strip .icons img { width: 44px; }
.brand-strip p { color: var(--muted); font-size: .95rem; }
.brand-strip .tagline { font-size: 1.05rem; }
.mini-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; }
.mini-foot a { color: var(--muted); font-size: .9rem; font-weight: 700; }

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .btn { padding: 0 20px; }
}

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