/* Frontier Wellness tokens (brand manual, September 2026). The ONLY file with colour literals.
   Primary: Electric Blue #3B82F6 · Deep Blue #10172B · Digital Lavender #A78BFA · Cloud Blue #E3E7F0.
   Colour roles (v2, 2026-11-02): Deep Blue = filled buttons and selected states (calm, premium, 17.8:1 with white).
   Electric Blue = the accent: icons, charts, dots, progress, toggles, arrow chips, focus. Small brand text uses
   Electric Blue 600 (#2563EB) because pure Electric Blue is 3.68:1 on white. Hover on a Deep Blue button = Electric Blue 700.
   Light theme. Lavender is the secondary accent, used sparingly. Secondary teal (#0D717B) is the "approved / ok" state. */
@font-face { font-family: "Aspekta"; src: url("../fonts/aspekta-variable.woff2") format("woff2"); font-weight: 50 1000; font-display: swap; }
:root {
  /* ---- Brand primary (manual 4.1) ---- */
  --c-electric: #3b82f6;      /* Electric Blue: logo, graphics, focus, large type */
  --c-brand: var(--c-electric); /* accent for icons, charts, dots, progress, toggles, arrow chips (never small text) */
  --c-pri: #5440c8;           /* same fill as signed-in Wellness buttons */
  --c-pri-h: #3d2c9e;         /* same hover as signed-in Wellness buttons */
  --c-pri-on: #ffffff;
  --c-brand-ink: #2563eb;     /* Electric Blue 600: small brand TEXT and links (AA 5.17:1 on white) */
  --c-brand-2: #1d4ed8;       /* Electric Blue 700: primary button hover fill (white text 6.7:1) */
  --c-ink: #10172b;           /* Deep Blue: all text, nav, dark surfaces */
  --c-black: #0b1020;         /* Deep Blue, deepest: button hover fill */
  --c-deep: #0a0f1e;          /* dark sections (closing CTA) */
  --c-lavender: #a78bfa;      /* Digital Lavender: secondary accent, gradients */
  --c-violet: #6656da;        /* secondary violet (manual 4.2): lavender as text / icon on light (5.0:1) */
  --c-cloud: #e3e7f0;         /* Cloud Blue: quiet surfaces, skeletons */
  --c-white: #ffffff;

  /* ---- Tints (light washes of Electric Blue / Lavender) ---- */
  --c-tint-2: #93b4fb;
  --c-tint: #cddcfd;
  --c-tint-hi: #eaf1fe;
  --c-lav-2: #c4b5fd;
  --c-lav-hi: #f3effe;
  --c-sky: #72dbfa;           /* secondary cyan (manual 4.2), highlights only */

  /* ---- States ---- */
  --c-ok: #0d717b;            /* secondary teal (manual 4.2) */
  --c-rose: #e0605a;          /* secondary blush, deepened for icon contrast */
  --c-warn: #9a6a1e;
  --c-err: #b3261e;
  --c-flag-red: #b22234; --c-flag-blue: #3c3b6e; --c-flag-white: #ffffff;

  /* ---- Surfaces ---- */
  --c-bg: #f5f7fb;
  --c-bg-2: #eceff6;
  --c-surface: #ffffff;
  --c-ink-2: color-mix(in oklab, var(--c-ink) 70%, var(--c-white));
  --c-ink-3: color-mix(in oklab, var(--c-ink) 60%, var(--c-white));   /* 5:1 on --c-bg, AA for small text */
  --c-line: color-mix(in oklab, var(--c-ink) 8%, transparent);
  --c-line-2: color-mix(in oklab, var(--c-ink) 14%, transparent);
  --c-brand-08: color-mix(in oklab, var(--c-brand) 8%, transparent);
  --c-brand-14: color-mix(in oklab, var(--c-brand) 14%, transparent);
  --c-brand-30: color-mix(in oklab, var(--c-brand) 30%, transparent);
  --c-tint-30: color-mix(in oklab, var(--c-tint) 30%, transparent);
  --c-tint-60: color-mix(in oklab, var(--c-tint) 60%, transparent);
  --c-glass: color-mix(in oklab, var(--c-white) 58%, transparent);
  --c-glass-2: color-mix(in oklab, var(--c-white) 80%, transparent);
  --c-glass-line: color-mix(in oklab, var(--c-white) 80%, transparent);
  --c-scrim: color-mix(in oklab, var(--c-deep) 40%, transparent);
  --c-warn-bg: color-mix(in oklab, var(--c-warn) 10%, var(--c-white));

  /* ---- Gradients (manual 4.3) ---- */
  --g-brand: linear-gradient(90deg, var(--c-electric), var(--c-lavender));                  /* gradient 1 */
  --g-mark: linear-gradient(45deg, var(--c-ink) 0%, var(--c-electric) 52%, var(--c-lavender) 100%);
  --g-hero: radial-gradient(60% 70% at 78% 46%, var(--c-tint-hi) 0%, transparent 70%), radial-gradient(50% 60% at 8% 100%, var(--c-lav-hi) 0%, transparent 70%);
  --g-premium: radial-gradient(80% 120% at 0% 0%, color-mix(in oklab, var(--c-electric) 18%, var(--c-white)) 0%, transparent 60%),
               radial-gradient(70% 90% at 100% 100%, color-mix(in oklab, var(--c-lavender) 34%, var(--c-white)) 0%, transparent 65%),
               radial-gradient(60% 80% at 70% 0%, var(--c-lav-hi) 0%, transparent 70%),
               linear-gradient(160deg, var(--c-tint-hi), var(--c-bg) 60%, var(--c-lav-hi));
  --g-spec: linear-gradient(135deg, color-mix(in oklab, var(--c-white) 95%, transparent), color-mix(in oklab, var(--c-white) 25%, transparent) 40%, color-mix(in oklab, var(--c-white) 5%, transparent) 60%, color-mix(in oklab, var(--c-white) 70%, transparent));
  /* image placeholder: shown under every photo until it decodes (no blank boxes, no layout shift) */
  --g-skeleton: linear-gradient(160deg, var(--c-tint-hi), var(--c-cloud) 55%, var(--c-lav-hi));

  --font: "Aspekta", system-ui, sans-serif;
  --w-thin: 200; --w-light: 300; --w-reg: 400; --w-med: 500; --w-semi: 600;
  --fs-11: 0.6875rem; --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-15: 0.9375rem; --fs-16: 1rem; --fs-18: 1.125rem;
  --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-30: 1.875rem; --fs-36: 2.25rem; --fs-48: 3rem;
  --fs-h1: clamp(2.5rem, 0.9rem + 4.1vw, 4.6rem);
  --fs-h2: clamp(2.2rem, 1rem + 3.3vw, 4.25rem);
  --ls-display: -0.045em; --ls-tight: -0.02em; --ls-caps: 0.14em;

  --gutter: clamp(16px, 3.2vw, 48px);
  --container: 1320px;
  --section-y: clamp(72px, 6vw + 20px, 124px);

  --r-8: 8px; --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-24: 24px; --r-28: 28px; --r-32: 32px; --r-pill: 999px;
  /* Very soft shadows only (tinted with Deep Blue) */
  --sh-1: 0 1px 2px color-mix(in oklab, var(--c-ink) 4%, transparent);
  --sh-2: 0 1px 2px color-mix(in oklab, var(--c-ink) 3%, transparent), 0 12px 32px -18px color-mix(in oklab, var(--c-ink) 12%, transparent);
  --sh-3: 0 2px 4px color-mix(in oklab, var(--c-ink) 3%, transparent), 0 30px 60px -36px color-mix(in oklab, var(--c-ink) 16%, transparent);
  --sh-glass: inset 0 1px 0 color-mix(in oklab, var(--c-white) 95%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--c-white) 55%, transparent), 0 16px 40px -26px color-mix(in oklab, var(--c-ink) 18%, transparent);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-liquid: cubic-bezier(0.2, 1.25, 0.3, 1);
  --z-nav: 40; --z-menu: 50; --z-banner: 70; --z-splash: 90; --z-cursor: 100;
  --focus-ring: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-electric);
  color-scheme: light;
}
/* Large monitors (27" at 2560 px, and 1800 px+ windows): a wider container and one step larger type, so the layout
   fills the screen like it does on a 16" laptop instead of floating in the middle */
@media (min-width: 1800px) { :root { --container: 1560px; --gutter: 56px; } html { font-size: 17px; } }
@media (min-width: 2300px) { :root { --container: 1760px; } html { font-size: 18px; } }

/* One colour, as on the live reference (frontierwellness.netlify.app, tokens v20): every brand accent on the
   sign-in pages is the reference primary (#4b37bb, hover #36278f): buttons, arrow chips, links, steppers and focus. */
:root {
  --c-pri: #4b37bb; --c-pri-h: #36278f;
  --c-electric: var(--c-pri); --c-brand: var(--c-pri); --c-brand-ink: var(--c-pri); --c-brand-2: var(--c-pri-h); --c-violet: var(--c-pri); --c-ok: var(--c-pri);
  --c-lavender: color-mix(in srgb, var(--c-pri) 50%, #ffffff);
  --c-tint-2: color-mix(in srgb, var(--c-pri) 30%, #ffffff); --c-lav-2: color-mix(in srgb, var(--c-pri) 30%, #ffffff);
  --c-tint: color-mix(in srgb, var(--c-pri) 8%, #ffffff); --c-tint-hi: color-mix(in srgb, var(--c-pri) 4%, #ffffff); --c-lav-hi: color-mix(in srgb, var(--c-pri) 6%, #ffffff);
  --c-sky: color-mix(in srgb, var(--c-pri) 22%, #ffffff);
  /* WCAG AAA text contrast (reference v20): ink-2 10.5:1, ink-3 7.8:1 on --c-bg; error 8.2:1 */
  --c-warn: #6b4a12; --c-err: #8c1c16;
  --c-ink-2: color-mix(in srgb, var(--c-ink) 85%, #ffffff);
  --c-ink-3: color-mix(in srgb, var(--c-ink) 77%, #ffffff);
}
