/* COPY of src/styles/tokens.css for the landing site (its own Vercel project, no build step, can't import from the app).
   When the app's tokens change, copy the file again: cp src/styles/tokens.css landing/tokens.css */
/* Vera brand tokens — calm (2026-11-24 draft, user: "full calmer rebrand" after clean wellness-app references).
   Warm off-white base, white cards, a rose accent (feminine pass 2026-11-24: blush, rose, lilac, peach; plum ink), an ink main button, upright Inter headings.
   Contrast checked: --brand >= 5.2:1 on cream, surface, --brand-100 and every --blob-*; white 5.5:1 on --brand-solid;
   --on-cta 15:1 on --cta (both themes). */
:root {
  --brand: oklch(49.4% 0.154 2.4);          /* accent text and icons: links, active states */
  --brand-100: oklch(93.9% 0.026 359.9);      /* soft tint: selected chips, icon wells */
  --brand-200: oklch(86.5% 0.06 359.8);
  --cream: oklch(97.6% 0.006 43.3);          /* app background */
  --surface: oklch(100% 0 0);        /* cards, sheets, chips, the bottom bar (dark: a warm charcoal) */
  --backdrop: oklch(93.4% 0.012 4.8);       /* around the phone frame on desktop */
  --white: oklch(100% 0 0);          /* always white: text and marks on the accent or on the clover gradient */
  --brand-solid: oklch(54.2% 0.164 4.6);    /* accent fills that carry white text or sit as dots (same in both themes) */
  --cta: oklch(27.1% 0.034 346.7);            /* the one main button per screen: ink */
  --sticker-bg: oklch(27.1% 0.034 346.7);     /* behind the transparent share sticker's preview; dark in both themes */
  --sticker-accent: oklch(80% 0.123 1.5); /* set counts on the share sticker, drawn over her photo; same in both themes */
  --on-cta: oklch(100% 0 0);
  --glow: oklch(86.5% 0.06 359.8 / 0.55); /* warm glow behind Vera in onboarding */
  --coral: oklch(70.4% 0.192 37.1);
  --sunshine: oklch(84.8% 0.156 82.4);
  --lavender: oklch(66.4% 0.142 296.1);      /* movement */
  --lavender-50: var(--tint-lilac);
  --wine-700: oklch(34.6% 0.131 24.7);
  --mist: oklch(92.9% 0.014 0.3);
  --stage-bg: oklch(24.4% 0.033 340.7);        /* full-screen card draw (CardReveal): deep plum so the pastel cards glow */
  --tarot-ink: oklch(45.7% 0.08 80.9);       /* type-card titles on the cream ribbon art: same in both themes (the art doesn't change) */

  /* Tile tints (2026-12-02, user, Figma 394:2 "Vera colour, refined"): seven pastels became three, picked by meaning:
     rose = cycle, period and you · lilac = the guide and movement · sand = food and feelings. */
  --tint-rose: oklch(93.5% 0.025 355.3);
  --tint-lilac: oklch(93.4% 0.027 304.8);
  --tint-sand: oklch(94.8% 0.019 57.2);
  /* Older names kept as aliases so every screen follows the three tints. */
  --blob-pink: var(--tint-rose);
  --blob-rose: var(--tint-rose);
  --blob-blue: var(--tint-rose);
  --blob-aqua: var(--tint-rose);
  --blob-lilac: var(--tint-lilac);
  --blob-peach: var(--tint-sand);
  --blob-yellow: var(--tint-sand);
  /* One colour per nutrient (2026-11-21), a touch dustier since 2026-12-02 so they sit with rose. Dots and bars only. */
  --macro-kcal: oklch(77.2% 0.099 41.9);
  --macro-protein: oklch(71% 0.123 359.4);
  --macro-carbs: oklch(81% 0.108 83.7);
  --macro-fat: oklch(74.2% 0.076 275.9);
  --macro-water: oklch(78.2% 0.073 205.8);

  --text-primary: oklch(26.1% 0.026 349.5);
  --text-body: oklch(42.8% 0.025 346.6);
  --text-muted: oklch(49.9% 0.027 346.5);
  --text-disabled: oklch(74.7% 0.021 349.3);
  --info-text: oklch(33.7% 0.091 356.8);
  --success: oklch(60.7% 0.182 138.6);
  --success-text: oklch(46.7% 0.131 138.5);
  --success-bg: oklch(96.5% 0.022 132.5);
  /* Error is deep wine, apart from the rose accent. */
  --error: oklch(41.1% 0.154 12.5);
  --error-text: oklch(41.1% 0.154 12.5);
  --error-bg: oklch(92.9% 0.025 355.3);
  --area-fill: oklch(93.9% 0.026 359.9);
  --grid-line: oklch(93.4% 0.013 358.8);

  --shadow-card: 0 0 0 1px var(--mist); /* 2026-12-01, user: no drop shadows on panels; a flat hairline keeps white on cream readable */
  --shadow-float: 0 10px 28px oklch(35.3% 0.077 356.6 / 0.12);
  --shadow-cta: 0 6px 16px oklch(27.1% 0.034 346.7 / 0.2);
  --cta-gradient: var(--cta); /* kept as a name: every main fill is the solid ink now */
  /* Brand mark in the rose family (2026-12-02, user): peach → rose → lilac (was orange, red, magenta). */
  --clover-a: oklch(81.6% 0.107 39.2);
  --clover-ab: oklch(73.7% 0.144 22.9); /* OKLCH halfway stops, so SVG and older phones get clean middles too */
  --clover-b: oklch(65.8% 0.182 6.6);
  --clover-bc: oklch(67% 0.173 332.5);
  --clover-c: oklch(68.3% 0.164 298.3);
  --clover-star: oklch(20% 0.021 357.5);
  --clover-glow: oklch(65.8% 0.182 6.6 / 0.38); /* shadow under the Vera button: clover rose */

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, sans-serif; /* headings only (2026-12-02, user: Body Coach reference); numbers and body stay Inter */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-blob: 58% 42% 52% 48% / 48% 56% 44% 52%;
}

/* Night mode (2026-11-22, user): same roles, warm charcoal surfaces; the main button turns light with ink text. */
:root[data-theme='dark'] {
  --stage-bg: oklch(19.8% 0.02 342.4);
  color-scheme: dark;
  --brand: oklch(80% 0.123 1.5);
  --brand-100: oklch(28.4% 0.05 355.3);
  --brand-200: oklch(38.5% 0.081 349.7);
  --cream: oklch(18.4% 0.014 343.3);
  --surface: oklch(23.3% 0.019 342);
  --backdrop: oklch(14.6% 0.008 346.4);
  --cta: oklch(94.6% 0.016 352);
  --on-cta: oklch(22.1% 0.026 348);
  --lavender-50: var(--tint-lilac);
  --wine-700: oklch(34.6% 0.131 24.7);
  --mist: oklch(31.2% 0.024 347);
  --glow: oklch(77.5% 0.145 358.9 / 0.14);

  --tint-rose: oklch(30.5% 0.05 357.7);
  --tint-lilac: oklch(30.6% 0.061 297.6);
  --tint-sand: oklch(31.6% 0.026 49.4);

  --text-primary: oklch(95.6% 0.013 353.1);
  --text-body: oklch(85.8% 0.021 350.6);
  --text-muted: oklch(70.6% 0.026 347.5);
  --text-disabled: oklch(49.8% 0.026 344.9);
  --info-text: oklch(86.5% 0.06 359.8);
  --success: oklch(76.7% 0.201 137.1);
  --success-text: oklch(83.8% 0.151 136.3);
  --success-bg: oklch(27.8% 0.051 136.7);
  --error: oklch(77.8% 0.139 3.1);
  --error-text: oklch(77.8% 0.139 3.1);
  --error-bg: oklch(27% 0.061 2.1);
  --area-fill: oklch(28.4% 0.05 355.3);
  --grid-line: oklch(28.6% 0.022 349.2);

  --shadow-card: 0 0 0 1px var(--mist);
  --shadow-float: 0 10px 28px oklch(0% 0 0 / 0.45);
  --shadow-cta: 0 6px 16px oklch(0% 0 0 / 0.4);
}

/* Hex fallback (2026-12-02, user): the tokens above are OKLCH; Android WebViews older than Chrome 111 and older
   browsers can't read oklch(), so they get the same colours in hex. Keep both in step: tokens.test.ts checks every pair. */
@supports not (color: oklch(0% 0 0)) {
  :root {
    --brand: #a3305a;
    --brand-100: #fbe4ea;
    --brand-200: #f5c3d1;
    --cream: #fbf6f4;
    --surface: #ffffff;
    --backdrop: #f1e6e8;
    --white: #ffffff;
    --brand-solid: #b83a63;
    --cta: #33202a;
    --sticker-bg: #33202a;
    --sticker-accent: #ff9bb8;
    --on-cta: #ffffff;
    --glow: rgba(245, 195, 209, 0.55);
    --coral: #ff6a3d;
    --sunshine: #ffc23d;
    --lavender: #9c7fe0;
    --wine-700: #6e0a12;
    --mist: #f0e4e7;
    --stage-bg: #2b1a25;
    --tarot-ink: #6e521b;
    --tint-rose: #f8e3ea;
    --tint-lilac: #ede5f8;
    --tint-sand: #f8ebe2;
    --macro-kcal: #eba083;
    --macro-protein: #df7f9f;
    --macro-carbs: #e2bb6c;
    --macro-fat: #9ea8dc;
    --macro-water: #7ec6cf;
    --text-primary: #2e1f26;
    --text-body: #5a4a52;
    --text-muted: #6f5d66;
    --text-disabled: #b8a8af;
    --info-text: #5a1f38;
    --success: #3f9a14;
    --success-text: #2e6a16;
    --success-bg: #eef7e8;
    --error: #8a1033;
    --error-text: #8a1033;
    --error-bg: #f6e1e8;
    --area-fill: #fbe4ea;
    --grid-line: #f1e6e9;
    --shadow-float: 0 10px 28px rgba(90, 40, 60, 0.12);
    --shadow-cta: 0 6px 16px rgba(51, 32, 42, 0.2);
    --clover-a: #ffab8f;
    --clover-ab: #f7827f;
    --clover-b: #e8577f;
    --clover-bc: #d167c3;
    --clover-c: #a77ff0;
    --clover-star: #1e1216;
    --clover-glow: rgba(232, 87, 127, 0.38);
  }
  :root[data-theme='dark'] {
    --stage-bg: #1c1218;
    --brand: #ff9bb8;
    --brand-100: #3d1f2b;
    --brand-200: #63304a;
    --cream: #171014;
    --surface: #241a20;
    --backdrop: #0d090b;
    --cta: #f6e9ee;
    --on-cta: #24161d;
    --wine-700: #6e0a12;
    --mist: #3a2c33;
    --glow: rgba(255, 140, 180, 0.14);
    --tint-rose: #43242f;
    --tint-lilac: #33284a;
    --tint-sand: #3d2e26;
    --text-primary: #f8edf1;
    --text-body: #dccbd2;
    --text-muted: #ad9aa3;
    --text-disabled: #6e5d66;
    --info-text: #f5c3d1;
    --success: #6fcf3e;
    --success-text: #9be07a;
    --success-bg: #1c2e14;
    --error: #ff8fae;
    --error-text: #ff8fae;
    --error-bg: #3e1824;
    --area-fill: #3d1f2b;
    --grid-line: #33262c;
    --shadow-float: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-cta: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

/* Spacing (4px scale) and radii. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-sheet: 28px;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 26px;
}
