/* Ten Thousand — product page styling, in the app's own visual language.
   Kept in this file on purpose: the site's `_headers` sets style-src 'self', so
   inline <style>/style="" is refused. Everything here is a class. This stylesheet
   is scoped to /10thousand/ and is independent of the site-wide /style.css. */

:root {
  --bg: #f3f6fc;
  --wash: #dfeafb;
  --card: #ffffff;
  --soft: #eef1f7;         /* the app's faint stat-card fill */
  --hero: #dbe8fb;         /* the app's light-blue hero card */
  --ink: #17212f;
  --muted: #5c6879;
  --line: #e3e8f0;
  --accent: #2f6feb;       /* labels, links */
  --deep: #274b73;         /* navy: hero text, primary buttons */
  --gold: #e0a83c;
  --silver: #9ba6b5;
  --bronze: #d2803a;
  --good: #2e9e6b;
  --danger: #e5484d;
  --shadow: 0 1px 2px rgba(15,22,35,.05), 0 22px 46px -22px rgba(24,50,90,.28);
  --shadow-lg: 0 30px 80px -30px rgba(24,50,90,.5);
  --radius: 22px;
  --free: #2e9e6b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --wash: #16202f; --card: #171b22; --soft: #1e232b;
    --hero: #16273f; --ink: #eef2f8; --muted: #9aa4b2; --line: #262d38;
    --accent: #6ea2ff; --deep: #6ea2ff; --gold: #e0a83c; --silver: #8b96a5; --bronze: #d2803a;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 24px 50px -24px rgba(0,0,0,.8);
    --shadow-lg: 0 34px 90px -30px rgba(0,0,0,.9); --free: #4ec984;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0 20px 88px;
  background:
    radial-gradient(1200px 620px at 50% -280px, var(--wash), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 980px; margin: 0 auto; }
a { color: var(--accent); text-underline-offset: 2px; }

/* Masthead ---------------------------------------------------------------- */
.top { padding: 26px 0 0; }
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-size: 16.5px; letter-spacing: -0.01em;
}
.mark svg { display: block; border-radius: 9px; }
.mark strong { font-weight: 680; }

/* Small-caps accent label, like the app's BEST PLAYER / HIGHEST SCORE ------ */
.label {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase; color: var(--accent);
}
.pill {
  display: inline-block; margin: 0 0 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 999px; padding: 5px 13px;
}
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 6px; }
.pills .pill { margin: 0; }
.pill.plain {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  border-color: var(--line);
}

/* The rules, from the app's own tutorial ---------------------------------- */
.play { padding: 44px 0 8px; border-top: 1px solid var(--line); }
.play h2 { margin-top: 6px; }
.play .lede { max-width: 40em; margin-bottom: 4px; }
.score-card {
  margin-top: 20px; background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 24px 20px; box-shadow: var(--shadow);
}
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.score-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.score-row .k { color: var(--ink); font-weight: 560; }
.score-row .v { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-note { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 560px) { .score-grid { grid-template-columns: 1fr; } }

/* Type -------------------------------------------------------------------- */
h1 {
  font-size: clamp(32px, 5vw, 44px); line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 800; margin: 16px 0 14px; text-wrap: balance; color: var(--ink);
}
h2 { font-size: clamp(23px, 3.4vw, 30px); letter-spacing: -0.02em; font-weight: 760; margin: 0 0 10px; }
h3 { font-size: 17.5px; letter-spacing: -0.008em; font-weight: 720; margin: 0 0 6px; }
p { margin: 0 0 12px; } p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(17.5px, 2.2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 30em; }
.quiet { color: var(--muted); }

.cta {
  display: inline-block; margin-top: 6px; background: var(--deep); color: #fff;
  text-decoration: none; font-weight: 680; font-size: 16.5px; padding: 14px 26px;
  border-radius: 14px; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--deep) 80%, transparent);
}
.cta:hover { filter: brightness(1.08); }

/* Hero -------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1fr 208px; gap: 40px; align-items: center;
  padding: 36px 0 16px;
}
.hero-copy { min-width: 0; }

/* The light-blue "app hero card", echoing the home screen's banner --------- */
.appcard {
  margin: 18px 0 0; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--hero), color-mix(in srgb, var(--hero) 55%, var(--card)));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  display: flex; align-items: center; gap: 14px;
}
.disc {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--deep) 14%, var(--card));
  display: flex; align-items: center; justify-content: center;
}
.appcard .name { font-weight: 820; letter-spacing: .06em; color: var(--deep); font-size: 17px; }

/* Phone frame around a real screenshot. Every shot is a compact "top of the
   phone" peek (fixed height, cropped to the meaningful top) so no single image
   runs the page for miles. */
.phone {
  justify-self: center; width: 100%; max-width: 208px; padding: 8px 8px 0;
  background: color-mix(in srgb, var(--ink) 82%, #000);
  border-radius: 34px 34px 8px 8px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06); align-self: start;
}
.phone img {
  display: block; width: 100%; height: 452px;
  object-fit: cover; object-position: top center; border-radius: 27px 27px 0 0;
}

/* Feature rows: screenshot + copy, alternating. */
.feature {
  display: grid; grid-template-columns: 208px 1fr; gap: 44px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.feature.flip { grid-template-columns: 1fr 208px; }
.feature.flip .phone { order: 2; }
.feature .phone img { height: 360px; } /* features a touch shorter than the hero */
.feature .body { min-width: 0; }
.feature .body p { color: var(--muted); }

/* Stat-card grid (small-caps labels, like the app's cards) ---------------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 40px 0 0; }
.card {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.card .label { margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* Plain block card (data, get-it) ----------------------------------------- */
.block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 26px 0; box-shadow: var(--shadow);
}
.block ul { padding-left: 20px; margin: 8px 0 0; }
.block li { margin: 8px 0; } .block li::marker { color: var(--accent); }

/* Prose (privacy / support share this file) ------------------------------- */
.page-head { padding: 32px 0 8px; }
.prose h2 { margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { font-weight: 680; }
.prose ul { padding-left: 20px; } .prose li { margin: 7px 0; } .prose li::marker { color: var(--accent); }

nav { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 20px; }
nav a { font-weight: 640; text-decoration: none; font-size: 15.5px; }
footer {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14.5px;
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: left; }
  .hero .hero-copy { width: 100%; }
  .hero .phone { max-width: 216px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .feature .body { width: 100%; }
  .feature .phone, .feature.flip .phone { order: 0; max-width: 216px; }
  .grid { grid-template-columns: 1fr; }
}

/* "Free" reads as a benefit, so it gets its own tint rather than sitting in the
   same grey as the platform pill. */
.pill.free {
  color: var(--free);
  background: color-mix(in srgb, var(--free) 13%, transparent);
  border-color: color-mix(in srgb, var(--free) 30%, transparent);
}
