/* Coconuts design tokens v3 (2026-11-20). THE source for colour, type, spacing, radii, shadows and layout on the site and in the app.
   Rules and usage: docs/DESIGN_SYSTEM.md. Components read these tokens only; no literal colours in component CSS.
   Sizes are rem so the iOS app follows Dynamic Type (the app sets the root font to -apple-system-body); the site's root is 16px. */
:root {
  /* Colour: green, cream, ink, two greys, ONE highlight (best price). Yellow (--sun) is illustration-only: never text, badges or rules. */
  --green: #1F6B4A;            /* brand + primary action + links. 6.4:1 on white, 5.9:1 on cream */
  --green-press: #174F37;
  --cream: #FCF5E8;            /* page ground on marketing sections and app screens */
  --ink: #17211C;              /* text. 15.2:1 on cream */
  --gray-1: #4A5650;           /* secondary text. 7.1:1 on cream */
  --gray-2: #66716B;           /* meta text (times, captions). 5.1:1 on white, 4.7:1 on cream */
  --best-bg: #E8F3EC;          /* the ONE highlight: best price chip (one per game) */
  --best-ink: #1F6B4A;         /* 5.7:1 on --best-bg */
  --sun: #F5B841;              /* logo / illustration only */
  /* Surfaces and lines (derived neutrals, green-biased) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;          /* cards */
  --surface-2: #F3EFE6;        /* status pills, segmented-control track, skeletons */
  --line: #EEEAE2;             /* hairlines between rows */
  --control-border: #868E88;   /* inputs, outline buttons: 3.4:1 on white (WCAG 1.4.11) */
  --on-green: #FFFFFF;         /* text on a green button */
  --danger: #C2412F;           /* errors only. 5.1:1 on white */
  --focus: #1F6B4A;

  /* Type: Fredoka for headlines only, Inter for everything else. Prices always tabular. */
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;      /* codes and IDs only; system font, nothing downloaded */
  --text-display: clamp(2.5rem, 1rem + 4.2vw, 4rem);           /* 40 -> 64 px. Fredoka 700, line-height 1.04 */
  --text-h1: 2.125rem;                                          /* 34 px. Fredoka 700, 1.1. App large title */
  --text-h2: 1.5rem;                                            /* 24 px. Fredoka 600, 1.2 */
  --text-body: 1rem;                                            /* 16 px (17 in the app via Dynamic Type). Inter 400, 1.5 */
  --text-small: 0.8125rem;                                      /* 13 px. Inter 400/500, 1.45. Labels: 600 + .06em caps */
  --text-price: 1.625rem;                                       /* 26 px. Inter 700 tabular: the card's headline number */
  --lh-tight: 1.1; --lh-body: 1.5;

  /* Spacing: 4 8 12 16 24 32 48 64 96. Nothing in between. */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* Radii: 8 controls, 12 cards, full only for real pills (status) */
  --radius-control: 8px; --radius-card: 12px; --radius-pill: 999px;

  /* Two shadows, no more */
  --shadow-card: 0 1px 2px rgba(23, 33, 28, .06), 0 4px 16px rgba(23, 33, 28, .05);
  --shadow-pop: 0 2px 6px rgba(23, 33, 28, .08), 0 12px 32px rgba(23, 33, 28, .12);   /* menus, sheets, the hero card */

  /* Layout */
  --container: 1120px;
  --gutter: 16px;                       /* phones; 24 from 768 px */
  --section: var(--space-8);            /* 64 phone, 96 from 768 px */
  --tap: 44px;
  --header-h: 64px;

  /* Motion */
  --dur-fast: 120ms; --dur: 220ms; --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --section: var(--space-9); } }

/* Dark: deep green-black, not pure black and not navy. Shadows become a hairline ring (shadows don't read on dark). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #5CC28F; --green-press: #4BAE7D; --cream: #0D1411; --ink: #ECF1ED; --gray-1: #B5C1B9; --gray-2: #9AA89F;
    --best-bg: #193326; --best-ink: #6FD3A0; --bg: #0D1411; --surface: #151E19; --surface-2: #1C2721; --line: #222D27;
    --control-border: #66736B; --on-green: #0D1411; --danger: #FF8A7D; --focus: #5CC28F;
    --shadow-card: 0 0 0 1px #1F2A24; --shadow-pop: 0 0 0 1px #26332C, 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --green: #5CC28F; --green-press: #4BAE7D; --cream: #0D1411; --ink: #ECF1ED; --gray-1: #B5C1B9; --gray-2: #9AA89F;
  --best-bg: #193326; --best-ink: #6FD3A0; --bg: #0D1411; --surface: #151E19; --surface-2: #1C2721; --line: #222D27;
  --control-border: #66736B; --on-green: #0D1411; --danger: #FF8A7D; --focus: #5CC28F;
  --shadow-card: 0 0 0 1px #1F2A24; --shadow-pop: 0 0 0 1px #26332C, 0 12px 32px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* Base utilities every page gets */
.price, .odds, [data-num] { font-variant-numeric: tabular-nums; }   /* not .num: styles.css uses it for the numbered dot */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
