/* Fib Club website. Sunny Cola tokens mirrored from apps/mobile/src/theme/tokens.ts. */
:root {
  --bg: #FFF8E6; --ink: #1E1A2E; --muted: #6B6478; --body: #4A4458; --surface: #FFFFFF;
  --primary: #FF4F3A; --primary-deep: #D63523; --accent: #2F6BFF; --accent-deep: #1D4FD6;
  --highlight: #FFC72C; --success: #1FB577; --pink: #FF8FC7; --track: #F1E7CF;
  --puff: inset -4px -6px 0 rgba(0,0,0,.05), 0 12px 24px rgba(30,26,46,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Fredoka", system-ui, sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 14px; border-radius: 999px; z-index: 10; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.wordmark { font-family: "Grandstander", "Fredoka", sans-serif; font-weight: 900; color: var(--primary); text-shadow: 0 3px 0 var(--accent); font-size: 34px; line-height: 1; text-decoration: none; }
nav.links { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
nav.links a { color: var(--ink); text-decoration: none; padding: 8px 2px; }
nav.links a:hover { color: var(--primary-deep); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 36px 0 72px; }
.kicker { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-deep); background: #FFE7E1; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -.01em; margin: 16px 0 16px; font-weight: 700; }
h1 em { font-style: normal; color: var(--primary); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--body); max-width: 34ch; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 18px; text-decoration: none; color: #fff; background: var(--primary); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 6px 0 var(--primary-deep); transition: transform .12s ease-out, box-shadow .12s ease-out; }
.btn:hover { transform: translateY(2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 4px 0 var(--primary-deep); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 2px 0 var(--primary-deep); }
.btn.alt { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 rgba(30,26,46,.10); }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* Phone mock in the hero: the app's own home screen, drawn in HTML. */
.phone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 314 / 640; background: var(--bg); border: 10px solid var(--ink); border-radius: 46px; padding: 22px 14px 14px; box-shadow: 0 30px 60px rgba(30,26,46,.22); display: flex; flex-direction: column; gap: 9px; transform: rotate(2.5deg); }
.phone .wm { font-family: "Grandstander", sans-serif; font-weight: 900; color: var(--primary); text-shadow: 0 2px 0 var(--accent); font-size: 22px; padding: 0 6px; }
.tabs { display: flex; background: var(--track); border-radius: 999px; padding: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tabs span { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; }
.tabs .on { background: var(--primary); color: #fff; box-shadow: 0 3px 0 var(--primary-deep); }
.feat { background: var(--primary); color: #fff; border-radius: 24px; padding: 14px; box-shadow: inset -4px -6px 0 rgba(0,0,0,.12), inset 4px 4px 0 rgba(255,255,255,.22), 0 6px 0 var(--primary-deep); margin-bottom: 6px; }
.feat small { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 999px; }
.feat b { display: block; font-size: 20px; line-height: 1.1; margin-top: 22px; }
.feat i { font-style: normal; font-size: 11px; }
.row { background: var(--surface); border-radius: 18px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; box-shadow: inset -3px -5px 0 rgba(0,0,0,.04), 0 6px 16px rgba(30,26,46,.07); }
.row b { display: block; font-size: 13px; line-height: 1.15; } .row i { font-style: normal; font-size: 10px; color: var(--body); }
.tile { flex: none; border-radius: 28%; display: grid; place-items: center; font-weight: 700; box-shadow: inset -5px -7px 0 rgba(0,0,0,.14), inset 5px 5px 0 rgba(255,255,255,.28); }
.row .tile { width: 36px; height: 36px; font-size: 18px; }
.t-classic { background: #FF4F3A; color: #fff; } .t-question { background: #2F6BFF; color: #fff; } .t-whodis { background: #FF8FC7; color: #1E1A2E; }
.t-exposed { background: #FFC72C; color: #1E1A2E; } .t-traitor { background: #1B1620; color: #FF4F3A; } .t-realone { background: #1FB577; color: #1E1A2E; }

section { padding: 64px 0; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; margin: 0 0 12px; font-weight: 700; }
.sub { color: var(--body); max-width: 60ch; margin: 0 0 32px; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.game { background: var(--surface); border-radius: 28px; padding: 22px; box-shadow: var(--puff); display: flex; flex-direction: column; gap: 10px; }
.game .tile { width: 64px; height: 64px; font-size: 32px; }
.game h3 { margin: 4px 0 0; font-size: 23px; line-height: 1.1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game .tag { font-weight: 600; margin: 0; }
.game p { margin: 0; color: var(--body); font-size: 16px; }
.game .meta { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.chip { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--highlight); }
.chip.free { background: #DDF5EA; color: #138A59; }
.c-classic { color: #D63523; } .c-question { color: #2F6BFF; } .c-whodis { color: #C93F84; } .c-exposed { color: #8A6400; } .c-traitor { color: #D63523; } .c-realone { color: #138A59; }

.band { background: var(--accent); color: #fff; border-radius: 40px; padding: 48px; box-shadow: inset -4px -6px 0 rgba(0,0,0,.12), 0 8px 0 var(--accent-deep); }
.band h2 { color: #fff; } .band .sub { color: #fff; opacity: .92; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.ways li { background: rgba(255,255,255,.14); border-radius: 26px; padding: 22px; }
.ways b { display: block; font-size: 22px; margin-bottom: 4px; } .ways p { margin: 0; font-size: 16px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--highlight); color: var(--ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border-radius: 28px; padding: 24px; box-shadow: var(--puff); }
.steps li::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; font-size: 21px; } .steps p { margin: 4px 0 0; color: var(--body); font-size: 16px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--surface); border-radius: 28px; padding: 26px; box-shadow: var(--puff); }
.plan.plus { background: var(--ink); color: var(--bg); } .plan.plus h3 { color: var(--highlight); }
.plan h3 { margin: 0 0 8px; font-size: 26px; } .plan ul { margin: 0; padding-left: 20px; } .plan li { margin: 4px 0; }

details { background: var(--surface); border-radius: 22px; padding: 4px 22px; box-shadow: var(--puff); margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; } summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; } details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--body); }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; } footer a { color: var(--body); }

/* Plain document pages: privacy, terms, support. */
.doc { width: min(720px, 100% - 40px); margin-inline: auto; padding: 16px 0 64px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); } .doc h2 { font-size: 24px; margin: 32px 0 8px; } .doc p, .doc li { color: var(--body); }
.doc .card { background: var(--surface); border-radius: 28px; padding: 24px; box-shadow: var(--puff); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 40px; } .phone { transform: none; }
  .games, .ways, .steps, .plans { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; border-radius: 30px; } section { padding: 44px 0; }
  nav.links a.hide-s { display: none; }
}
@media (min-width: 861px) and (max-width: 1020px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
