/* PlayKo website — one stylesheet for every page.
   Tokens are the app's Direction A values (PlaykoApp/src/theme/tokens.ts): refined dark + matte gold,
   ivory light + deep gold. One gold per card / primary button. DM Sans only (self-hosted, OFL). */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/dm-sans-600.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/dm-sans-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/dm-sans-800.woff2") format("woff2"); }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  /* light (ivory) — default */
  --bg: #F7F3EB; --bg-elevated: #EFE9DE; --surface: #FFFDF9; --surface-2: #EDE7DB;
  --text: #1D1A15; --text-2: #5C574E; --text-muted: #68625A;
  --accent: #7F6118; --on-accent: #FFFFFF; --accent-subtle: rgba(127, 97, 24, 0.08);
  --border: #E2DBCD; --border-strong: #CFC6B4;
  --warn: #A64B06;
  --shadow: 0 1px 2px rgba(29, 26, 21, 0.06), 0 12px 32px rgba(29, 26, 21, 0.08);
  --radius-btn: 12px; --radius-card: 16px;
  --gutter: 16px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --bg-elevated: #171614; --surface: #1B1A18; --surface-2: #242220;
    --text: #F4F0E8; --text-2: #A39E94; --text-muted: #8E887E;
    --accent: #C9A24E; --on-accent: #1A1408; --accent-subtle: rgba(201, 162, 78, 0.10);
    --border: #2C2A26; --border-strong: #3B3833;
    --warn: #F59E0B;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}
/* The hero is a LOCKED dark surface in both themes (like the app's Welcome screen). */
.dark-surface {
  --bg: #121110; --surface: #1B1A18; --surface-2: #242220;
  --text: #F4F0E8; --text-2: #A39E94; --text-muted: #8E887E;
  --accent: #C9A24E; --on-accent: #1A1408;
  --border: #2C2A26; --border-strong: #3B3833;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--radius-btn);
  font: 600 15px/1 "DM Sans", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn:active { transform: scale(0.98); }

/* Store badges — ONE switch in /assets/site.js (STORE_LINKS). Without a link they render "Coming soon". */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; min-width: 176px;
  padding: 0 16px 0 14px; border-radius: var(--radius-btn);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); text-decoration: none;
}
.store svg { width: 22px; height: 22px; flex: none; fill: currentColor; opacity: .9; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: .02em; }
.store b { font-size: 16px; font-weight: 700; letter-spacing: -0.005em; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"] small { color: var(--text-muted); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #000; color: var(--text); isolation: isolate; }
.hero::before { /* the Welcome montage, muted, behind a scrim */
  content: ""; position: absolute; z-index: -2; inset: 0 0 auto auto; width: min(100%, 860px); aspect-ratio: 1;
  background: url("/assets/img/hero-montage.webp") center top / cover no-repeat; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 55% 34%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 62% at 55% 34%, #000 45%, transparent 100%);
}
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 45%, #121110 100%); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 8px; }
.topbar .crest { width: 64px; height: 64px; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.topnav a:hover { background: rgba(255,255,255,.06); }
.hero-grid { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.lockup { display: flex; gap: 16px; }
.lockup .rail { width: 3px; border-radius: 2px; background: rgba(255,255,255,.9); flex: none; }
.lockup .lead { display: block; font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.lockup .key { display: block; font-size: clamp(52px, 15vw, 104px); line-height: .98; font-weight: 800; text-transform: uppercase; letter-spacing: .005em; color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,.45); }
.lockup .key.gold { color: #C9A24E; }
.lockup .gap { display: block; height: 18px; }
.hero-copy .value { margin-top: 32px; font-size: 19px; line-height: 1.5; color: #E9E4DA; max-width: 30em; }
.hero-copy .meta { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.hero-copy .stores { margin-top: 28px; }

/* Brand + headline variants: phones keep the Welcome-style crest and stacked lockup. */
.brand { display: block; text-decoration: none; }
.brand-row, .headline, .hero-phones, .topnav .get-app { display: none; }
.hero h1 { margin: 0; }

/* ── Tablet / desktop hero (≥ 900px): a website hero, not the app's Welcome screen ── */
@media (min-width: 900px) {
  .hero { background: #0E0D0C; }
  .hero::before { /* no montage: a calm vignette + a soft gold glow behind the phones */
    background: radial-gradient(ellipse 50% 60% at 74% 52%, rgba(201,162,78,.13), transparent 70%);
    width: 100%; aspect-ratio: auto; inset: 0; opacity: 1; -webkit-mask-image: none; mask-image: none;
  }
  .hero::after { background: radial-gradient(ellipse 120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,.45) 100%), linear-gradient(180deg, transparent 75%, #121110 100%); }
  .hero .wrap { max-width: 1280px; }
  .topbar { padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .topbar .crest { display: none; }
  .brand-row { display: flex; align-items: center; gap: 14px; }
  .brand-mark { width: 40px; height: 48px; }
  .brand-word { width: 124px; height: auto; }
  .topnav { align-items: center; gap: 8px; }
  .topnav .get-app { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin-left: 8px; border-radius: var(--radius-btn);
    border: 1px solid var(--border-strong); background: var(--surface-2); }
  .topnav .get-app:hover { background: #2E2B28; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; min-height: min(760px, calc(100vh - 92px)); padding-top: 64px; padding-bottom: 96px; }
  .hero .lockup { display: none; }
  .headline { display: block; font-size: clamp(40px, 4.6vw, 72px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; color: #F4F0E8; }
  .headline .line { display: block; white-space: nowrap; }
  .headline .gold { color: #C9A24E; }
  .hero-copy .value { margin-top: 28px; font-size: 20px; color: #D9D3C8; max-width: 27em; }
  .hero-copy .stores { margin-top: 36px; }
  .hero-phones { display: block; position: relative; height: 640px; }
  .hero-phones .phone { position: absolute; width: 290px; margin: 0; }
  .hero-phones .phone { box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 30px 60px rgba(0,0,0,.35); }
  .hero-phones .phone-back { right: 0; top: 0; }
  .hero-phones .phone-front { right: 180px; top: 80px; }
}
@media (min-width: 1200px) { .headline { font-size: clamp(64px, 5.2vw, 72px); } }
@media (min-width: 900px) and (max-width: 1099px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .hero-phones { height: 560px; }
  .hero-phones .phone { width: 240px; }
  .hero-phones .phone-front { right: 140px; top: 64px; }
}

/* ── Phone frame (CSS only) ─────────────────────────────────────────────── */
.phone {
  width: min(280px, 76vw); margin: 0 auto; padding: 9px; border-radius: 46px;
  background: #0B0A09; border: 1px solid #2C2A26;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 30px 60px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.25);
}
.phone img { width: 100%; aspect-ratio: 600 / 1304; border-radius: 37px; background: #121110; }
@media (min-width: 960px) { .phone { width: 300px; } }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { margin-top: 10px; font-size: clamp(30px, 6vw, 44px); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--text-2); }

.features { display: grid; gap: 72px; }
.feature { display: grid; gap: 32px; align-items: center; }
.feature h3 { margin-top: 8px; font-size: clamp(24px, 5vw, 32px); font-weight: 700; }
.feature p { margin-top: 12px; font-size: 17px; color: var(--text-2); max-width: 32em; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: baseline; color: var(--text); font-size: 16px; }
.feature li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); transform: translateY(-2px); }
.feature .tag { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-media { order: -1; }
}

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); font-weight: 700; font-size: 16px; }
.step h3 { margin-top: 16px; font-size: 20px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.clubs { display: grid; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px 20px; box-shadow: var(--shadow); }
.clubs h2 { margin-top: 10px; font-size: clamp(28px, 5.5vw, 40px); font-weight: 800; }
.clubs > div > p { margin-top: 14px; font-size: 17px; color: var(--text-2); max-width: 34em; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; stroke: var(--text-2); fill: none; stroke-width: 2; margin-top: 2px; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--text-2); font-size: 15px; }
.clubs .btn { margin-top: 28px; }
.clubs .note { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
@media (min-width: 900px) { .clubs { grid-template-columns: 1.1fr .9fr; padding: 56px; gap: 56px; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding: 48px 0 40px; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
.footer .wordmark { width: 120px; height: auto; }
.footer .tagline { margin-top: 10px; color: var(--text-2); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a, .footer .mail { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; }
.footer nav a:hover, .footer .mail:hover { text-decoration: underline; }
.footer .de { color: var(--text-muted); font-size: 14px; }
.footer .de a { color: var(--text-2); }
.footer .copy { color: var(--text-muted); font-size: 14px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } .footer .right { text-align: right; } .footer nav { justify-content: flex-end; } }

/* ── Document pages (support, legal, 404) ───────────────────────────────── */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.site-header .home img { width: 112px; height: auto; }
.site-header nav { display: flex; gap: 2px; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 420px) { .site-header nav a.opt { display: none; } }
.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 800; margin: 8px 0 8px; }
.doc h2 { font-size: 21px; font-weight: 700; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc .mut { color: var(--text-2); font-size: 15px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.doc .draft { border: 1px solid var(--warn); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; }
.doc .todo { color: var(--warn); font-weight: 700; background: rgba(245, 158, 11, .12); border-radius: 4px; padding: 0 4px; }
.doc .langs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.doc .langs a { font-weight: 600; }
.doc .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px 22px; margin: 16px 0; }
.doc .card h2 { margin-top: 0; }
.doc .btn { margin-top: 8px; }
.doc .legal-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.doc .legal-nav a { text-decoration: none; font-weight: 600; color: var(--text-2); }
.doc .legal-nav a[aria-current="page"] { color: var(--text); }
.doc .legal-nav .lang { margin-left: auto; color: var(--accent); }

/* ── Motion (only when the user allows it) ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .76s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  html { scroll-behavior: smooth; }
}
