/* Generated by scripts/build-waitlist.mjs from tokens/*.css. Do not edit. */
:root{
/* ---- Base palette (canonical, Wave design bible §4) ---- */
--wave-white:#FFFFFF;
--wave-black:#111111;
--wave-dark-grey:#555555;
--wave-light-grey:#D9D9D9;

/* Implementation tints derived from approved mockups (§19 permits
   establishing exact numeric values in implementation). */
--wave-grey-050:#F5F6F8;
--wave-grey-100:#EDEEF1;
--wave-grey-200:#E2E3E6;

/* ---- Grade colours (semantic; never reassigned, §4) ---- */
--grade-1:#F5AD14;
--grade-2:#D73939;
--grade-3:#0066CC;
--grade-4:#269659;
--grade-5:#FF538A;
--grade-6:#5E40BE;

--grade-beginner:var(--grade-1);
--grade-elementary:var(--grade-2);
--grade-intermediate:var(--grade-3);
--grade-advanced:var(--grade-4);
--grade-expert:var(--grade-5);
--grade-master:var(--grade-6);

/* ---- Semantic aliases ---- */
--bg-screen:var(--wave-white);
--surface-card:var(--wave-grey-050);
--surface-inset:var(--wave-grey-050);
/* Sits above --surface-card: flashcards, toggle knobs, pills inside cards. */
--surface-raised:var(--wave-white);
--surface-neutral:var(--wave-light-grey);

--text-primary:var(--wave-black);
--text-secondary:var(--wave-dark-grey);
--text-tertiary:#8A8A8E;
--text-inverse:var(--wave-white);
--text-disabled:var(--wave-light-grey);

--action-primary-bg:var(--wave-black);
--action-primary-fg:var(--wave-white);
--action-secondary-bg:transparent;
--action-secondary-fg:var(--wave-black);
--action-disabled-bg:var(--wave-light-grey);
--action-disabled-fg:var(--wave-white);
/* Destructive actions only (delete account). Its own red, deliberately not
   grade red, so it never reads as Grade 2. */
--action-destructive:#C8262B;

--state-remembered:var(--wave-black);
--state-forgotten:var(--wave-light-grey);
--state-locked:var(--wave-light-grey);

/* Quiz feedback: soft fills with dark text, never a grade colour, so a right
   answer on a red grade can't read as a mistake. The tick/cross always rides
   along, so colour is never the only signal. */
--feedback-correct-bg:#D3F2DE;
--feedback-correct-fg:#14532D;
--feedback-wrong-bg:#FBDADA;
--feedback-wrong-fg:#7F1D1D;

/* ---- Streak ----
   The one warm set in Wave, and the only colour outside the neutrals and the
   six grades. A streak is not a grade, so it must not borrow grade yellow or
   grade red; these are their own tokens, used on the flame and nowhere else.
   Ordered core → deep, hottest at the centre. */
--streak-core:#FFD24A;
--streak-mid:#F98A1E;
--streak-deep:#E84B23;

/* ---- Streak freeze ----
   The flame's cold counterpart, used only when a freeze has covered a missed
   day. Pale and desaturated so it never reads as a grade blue. */
--freeze-core:#F2FAFF;
--freeze-mid:#BFE3F5;
--freeze-deep:#6FB4DA;

--border-hairline:var(--wave-grey-100);
--focus-ring:var(--wave-black);

--link-fg:var(--wave-black);
--link-fg-hover:var(--wave-dark-grey);
}

/* ---- Dark theme ----
   Set data-wave-theme="dark" on any subtree (the app root, a single screen).
   The attribute is namespaced on purpose: preview hosts and browsers set a bare
   data-theme="dark" on the document element, which would otherwise drag every
   page in this system into dark mode.
   Only the SEMANTIC tokens move: the base palette and the grade colours stay
   canonical (§4), so ink drawn on a grade shape keeps the contrast it was
   designed with. Surfaces step up from the screen — screen, card, raised —
   rather than inverting light mode. */
[data-wave-theme="dark"]{
--bg-screen:#101012;
--surface-card:#1B1B1F;
--surface-inset:#1B1B1F;
--surface-raised:#26262B;
--surface-neutral:#4A4A52;

--text-primary:#F2F2F4;
--text-secondary:#A8A8AE;
--text-tertiary:#85858B;
--text-inverse:#101012;
--text-disabled:#55555C;

--action-primary-bg:#F2F2F4;
--action-primary-fg:#101012;
--action-secondary-fg:#F2F2F4;
--action-disabled-bg:#2E2E33;
--action-disabled-fg:#85858B;
--action-destructive:#FF5A55;

--state-remembered:#F2F2F4;
--state-forgotten:#34343A;
--state-locked:#2E2E33;

--feedback-correct-bg:#173F2A;
--feedback-correct-fg:#FFFFFF;
--feedback-wrong-bg:#4A1F22;
--feedback-wrong-fg:#FFFFFF;

--border-hairline:#2A2A2F;
--focus-ring:#F2F2F4;

--link-fg:#F2F2F4;
--link-fg-hover:#A8A8AE;

--shadow-card:0 2px 14px rgba(0,0,0,0.55);
--shadow-floating-action:0 2px 10px rgba(0,0,0,0.6);
}

/* ---- Colour vision filters ----
   Set data-wave-vision="deuteranopia" | "protanopia" | "tritanopia" on any
   subtree. Grade identity is colour PLUS shape, so a filter never changes what
   a grade means — it only re-points the six grade hues onto an axis the learner
   can separate, keeping the light-to-dark order of the canonical set so the
   shapes still read in sequence. Semantic tokens are untouched.
   Red-green filters move the set onto the blue-yellow axis; the blue-yellow
   filter moves it onto red-green. Each pair alternates light and dark so any
   two neighbours differ in value as well as hue. */
[data-wave-vision="deuteranopia"],[data-wave-vision="protanopia"]{
--grade-1:#F5AD14;
--grade-2:#8A5B00;
--grade-3:#6BA8FF;
--grade-4:#004C99;
--grade-5:#C6ACFF;
--grade-6:#432A96;
/* Red-green filters swap quiz feedback to blue (right) and orange (wrong). */
--feedback-correct-bg:#D6E6FF;
--feedback-correct-fg:#0B3A80;
--feedback-wrong-bg:#FFE2C7;
--feedback-wrong-fg:#7A3300;
}
[data-wave-theme="dark"][data-wave-vision="deuteranopia"],[data-wave-theme="dark"][data-wave-vision="protanopia"],
[data-wave-theme="dark"] [data-wave-vision="deuteranopia"],[data-wave-theme="dark"] [data-wave-vision="protanopia"],
[data-wave-vision="deuteranopia"] [data-wave-theme="dark"],[data-wave-vision="protanopia"] [data-wave-theme="dark"]{
--feedback-correct-bg:#15335F;
--feedback-correct-fg:#FFFFFF;
--feedback-wrong-bg:#4D2C0E;
--feedback-wrong-fg:#FFFFFF;
}
[data-wave-vision="tritanopia"]{
--grade-1:#FFB3A3;
--grade-2:#D73939;
--grade-3:#8FE0B0;
--grade-4:#1E7A47;
--grade-5:#E2569E;
--grade-6:#5B2D82;
}

:root{
--font-core:"Figtree","Google Sans","SF Pro Text",-apple-system,system-ui,sans-serif;

--weight-regular:400;
--weight-medium:500;
--weight-semibold:600;
--weight-bold:700;
--weight-heavy:800;

/* Sizes (px, iOS pt parity) */
--size-display:34px;
--size-title:28px;
--size-heading:22px;
--size-subhead:17px;
--size-body:17px;
--size-callout:16px;
--size-label:15px;
--size-caption:13px;
--size-micro:11px;
--size-stat:40px;
--size-stat-sm:28px;

--leading-tight:1.08;
--leading-snug:1.22;
--leading-normal:1.4;
--leading-relaxed:1.5;

--tracking-tight:-0.02em;
--tracking-snug:-0.01em;
--tracking-normal:0;
--tracking-wide:0.06em; /* eyebrow labels only */

/* Composed roles */
--text-display:var(--weight-heavy) var(--size-display)/var(--leading-tight) var(--font-core);
--text-title:var(--weight-bold) var(--size-title)/var(--leading-snug) var(--font-core);
--text-heading:var(--weight-bold) var(--size-heading)/var(--leading-snug) var(--font-core);
--text-subhead:var(--weight-regular) var(--size-subhead)/var(--leading-normal) var(--font-core);
--text-body:var(--weight-regular) var(--size-body)/var(--leading-relaxed) var(--font-core);
--text-callout:var(--weight-medium) var(--size-callout)/var(--leading-normal) var(--font-core);
--text-label:var(--weight-semibold) var(--size-label)/var(--leading-snug) var(--font-core);
--text-caption:var(--weight-medium) var(--size-caption)/var(--leading-normal) var(--font-core);
--text-micro:var(--weight-semibold) var(--size-micro)/var(--leading-snug) var(--font-core);
--text-stat:var(--weight-heavy) var(--size-stat)/1 var(--font-core);
}

/* ---- Text size ----
   Set data-wave-text="small" | "large" on any subtree. Only the reading roles
   move — display, title, heading and stat are fixed, so headings never crowd a
   phone screen and layout stays where it was. The composed roles are restated
   rather than the sizes alone, because a var() inside a custom property is
   substituted where that property is declared, not where it is used. Values are
   literal px on the same iOS-pt ladder, so every step is a size the type was
   drawn at. */
[data-wave-text="small"]{
--size-subhead:15px;
--size-body:15px;
--size-callout:14px;
--size-label:13px;
--size-caption:12px;
--size-micro:10px;
--text-subhead:var(--weight-regular) 15px/var(--leading-normal) var(--font-core);
--text-body:var(--weight-regular) 15px/var(--leading-relaxed) var(--font-core);
--text-callout:var(--weight-medium) 14px/var(--leading-normal) var(--font-core);
--text-label:var(--weight-semibold) 13px/var(--leading-snug) var(--font-core);
--text-caption:var(--weight-medium) 12px/var(--leading-normal) var(--font-core);
--text-micro:var(--weight-semibold) 10px/var(--leading-snug) var(--font-core);
}
[data-wave-text="large"]{
--size-subhead:20px;
--size-body:20px;
--size-callout:19px;
--size-label:17px;
--size-caption:15px;
--size-micro:12px;
--text-subhead:var(--weight-regular) 20px/var(--leading-normal) var(--font-core);
--text-body:var(--weight-regular) 20px/var(--leading-relaxed) var(--font-core);
--text-callout:var(--weight-medium) 19px/var(--leading-normal) var(--font-core);
--text-label:var(--weight-semibold) 17px/var(--leading-snug) var(--font-core);
--text-caption:var(--weight-medium) 15px/var(--leading-normal) var(--font-core);
--text-micro:var(--weight-semibold) 12px/var(--leading-snug) var(--font-core);
}

:root{
--space-xs:4px;
--space-sm:8px;
--space-md:16px;
--space-lg:24px;
--space-xl:32px;
--space-xxl:48px;
--space-xxxl:64px;

/* Layout */
--gutter-screen:24px;   /* generous outer margin on every screen */
--gap-group:12px;       /* inside a related group */
--gap-section:32px;     /* between major sections */
--gap-section-lg:48px;  /* around a hero / teaching area */
--tap-min:44px;         /* minimum tap target */
--tabbar-height:56px;
--header-height:44px;
--safe-top:44px;
--safe-bottom:34px;
}

:root{
--radius-sm:10px;
--radius-md:18px;
--radius-lg:18px;
--radius-xl:28px;
--radius-ui:18px;  /* the one corner for every bubble, card and button (matches the grade badge) */
--radius-pill:999px; /* circles, toggles and thin progress bars only */
--radius-shape:6px; /* soft corner used on grade squares / hexagons */
}

:root{
/* Quick, springy, physical, slightly playful (§12) */
--duration-instant:90ms; /* @kind other */
--duration-quick:160ms; /* @kind other */
--duration-base:240ms; /* @kind other */
--duration-slow:420ms; /* @kind other */

--ease-out:cubic-bezier(0.22,0.61,0.36,1); /* @kind other */
--ease-in-out:cubic-bezier(0.4,0,0.2,1); /* @kind other */
--ease-spring:cubic-bezier(0.34,1.56,0.64,1); /* @kind other */
--ease-squash:cubic-bezier(0.5,-0.3,0.5,1.3); /* @kind other */

--press-scale:0.96; /* @kind other */
--press-scale-shape:0.92; /* @kind other */
--hover-opacity:0.82; /* @kind other */
}

:root{
/* Wave is flat. There is no shadow scale — these tokens exist so that
   "no shadow" is an explicit, reviewable decision rather than an omission. */
--shadow-none:none;
--elevation-flat:none;
/* The single permitted exception: the floating primary tab-bar button,
   which needs separation from scrolling content behind it. */
--shadow-floating-action:0 2px 10px rgba(17,17,17,0.14);
/* The flashcard deck, whose stack has to read as physical cards. */
--shadow-card:0 2px 14px rgba(17,17,17,0.12);
--border-hairline-width:1px;
}

*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg-screen);color:var(--text-primary);font:var(--text-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,p{margin:0}
a{color:var(--link-fg);text-decoration:none}
a:hover{color:var(--link-fg-hover)}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
