/* ==========================================================================
   Aspiro KIT · tokens.css
   Every colour below is the app's own value (constants/colors.ts on main
   d65339374). Marketing-only additions (type scale, shadows, eases) are
   marked "marketing". Fonts: put this in <head> BEFORE the kit CSS:

   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap" rel="stylesheet">
   ========================================================================== */

:root {
  /* ---- Brand (AspiroBrand) --------------------------------------------- */
  --aspiro-primary-80: #6E6E6E;
  --aspiro-primary-100: #505050;
  --aspiro-primary-120: #2A2A2A;          /* Colors.primary, the mark colour */
  --aspiro-gold-10: #F7F4EE;
  --aspiro-gold-40: #E8DFCE;
  --aspiro-gold-100: #CDBB98;
  --aspiro-gold-120: #AE8E51;             /* small accent only, never a fill or a button */

  /* ---- Warm neutrals (AspiroNeutrals) ----------------------------------- */
  --n-0: #FFFFFF;   --n-0-5: #FAFAF9; --n-1: #F5F5F3; --n-1-5: #F0F0EC;
  --n-2: #EBEBE6;   --n-3: #E2E1DA;   --n-4: #D8D7CD; --n-5: #CECDC1;
  --n-6: #A5A49A;   --n-7: #7C7B74;   --n-8: #52524D; --n-8-5: #3E3E3A;
  --n-9: #292927;   --n-9-5: #151513; --n-10: #000000;

  /* ---- W.I.N.S. pillars (small dots, rings, tags only) ------------------ */
  --pillar-workouts: #B06A43;    /* kiln clay */
  --pillar-intentions: #8A745A;  /* warm umber */
  --pillar-nutrition: #74835A;   /* muted sage */
  --pillar-shine: #AE8E51;       /* antique gold */
  --clay-10: #F7E6DA; --clay-40: #E0A987; --clay-140: #8A4A2A; --clay-glow: #FFD6B4;
  --sage-10: #F1F3EA; --sage-40: #C3CCAD; --sage-80: #8E9C72; --sage-glow: #EEF0E6;
  --metal-bronze: #D9B48F; --metal-silver: #D9D8D2; --metal-gold: #CDBB98;
  --metal-platinum: #E3E6E8; --metal-diamond: #CFE6EC;

  /* ---- Data colours ------------------------------------------------------ */
  --macro-calories: #D85935; --macro-protein: #4A90D9;
  --macro-carbs: #F5A623;    --macro-fat: #7B68EE;
  --health-heart: #FF2D55;

  /* ---- Semantic, light (Colors.light) ----------------------------------- */
  --bg: #FAFAF9;
  --surface: #F5F5F3;
  --surface-2: #EBEBE6;
  --card: #FFFFFF;
  --text: #292927;
  --text-2: #52524D;
  --text-3: #7C7B74;
  --ink: #151513;                         /* marketing: headline ink */
  --border: #E2E1DA;
  --hairline: rgba(41, 41, 39, 0.10);     /* = glassBorder light */
  --glass: rgba(250, 250, 249, 0.85);
  --glass-border: rgba(41, 41, 39, 0.10);
  --success: #34C759; --warning: #FF9500; --error: #FF3B30; --info: #007AFF;
  --highlight-fill: #F7F4EE; --highlight-edge: #E8DFCE; --highlight-ink: #AE8E51;
  --scrim: rgba(0, 0, 0, 0.4);
  --btn-bg: #151513; --btn-ink: #FAFAF9;  /* filled buttons are black in light */
  --stage-cyc: #E5E3E6; --stage-eyebrow: #8C7240;   /* guided "studio stage" */
  --sand-a: #F2D9BE; --sand-b: #EBC9AA;   /* app theme gradient "Warm sand" */
  --sky-a: #DCE6EE;  --sky-b: #9DB4C6;    /* app theme gradient "Sky" */
  color-scheme: light;

  /* ---- Type ------------------------------------------------------------- */
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* app steps (Typography.*) for faux UI inside tiles */
  --t-caption: 11px; --t-label: 12px; --t-footnote: 13px; --t-body: 14px;
  --t-callout: 15px; --t-subhead: 16px; --t-headline: 18px; --t-title: 20px;
  --t-title-large: 24px; --t-display: 28px; --t-hero: 32px; --t-feature: 52px;
  /* marketing scale (fluid, 390 → 1440) */
  --fs-mega:  clamp(104px, 13.4vw, 216px);   /* Bebas, one word or a number */
  --fs-hero:  clamp(60px, 9.6vw, 152px);    /* Bebas hero headline */
  --fs-h1:    clamp(48px, 6.6vw, 104px);    /* Bebas chapter headline */
  --fs-h2:    clamp(38px, 4.6vw, 72px);     /* Bebas section headline */
  --fs-h3:    clamp(24px, 2.2vw, 32px);     /* DM Sans 600 card title */
  --fs-lead:  clamp(18px, 1.55vw, 22px);    /* DM Sans one supporting line */
  --fs-body:  17px;
  --fs-small: 14px;
  --fs-eyebrow: 12px;
  --lh-display: 0.9;  --lh-tight: 1.15; --lh-body: 1.5;
  --tracking-display: 0.01em;  --tracking-eyebrow: 0.16em; --tracking-tight: -0.015em;

  /* ---- Radius (Radius.*; corners are continuous in the app) -------------- */
  --radius-card: 18px;  --radius-tile: 16px; --radius-sheet: 14px;
  --radius-dense: 12px; --radius-section: 32px; --radius-input-multi: 18px;
  --radius-pill: 999px;
  --radius-panel: 28px;   /* marketing: large feature panels */

  /* ---- Spacing ---------------------------------------------------------- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --space-20: 80px; --space-24: 96px; --space-32: 128px;
  --screen-padding: 20px; --card-padding: 16px; --card-gap: 16px;
  --gutter: clamp(16px, 4.4vw, 64px);            /* page side gutter (16 at 390) */
  --section-y: clamp(96px, 12.5vw, 184px);       /* vertical rhythm between chapters */
  --container: 1200px; --container-wide: 1360px; --container-text: 720px;

  /* ---- Shadows (marketing; layered, soft, warm-ink not grey) -------------- */
  --shadow-hairline: 0 0 0 0.5px rgba(41, 41, 39, 0.10);
  --shadow-sm: 0 1px 1px rgba(21, 21, 19, .04), 0 2px 4px rgba(21, 21, 19, .04), 0 6px 12px -2px rgba(21, 21, 19, .05);
  --shadow-tile:                                  /* a card resting on the page */
    0 0 0 0.5px rgba(41, 41, 39, .08),
    0 1px 1px rgba(21, 21, 19, .03),
    0 3px 6px -1px rgba(21, 21, 19, .04),
    0 10px 20px -4px rgba(21, 21, 19, .06),
    0 28px 48px -12px rgba(21, 21, 19, .10);
  --shadow-float:                                 /* a tile floating above a phone */
    0 0 0 0.5px rgba(41, 41, 39, .08),
    0 2px 2px rgba(21, 21, 19, .03),
    0 6px 10px -2px rgba(21, 21, 19, .05),
    0 18px 32px -8px rgba(21, 21, 19, .09),
    0 44px 80px -20px rgba(21, 21, 19, .16);
  --shadow-device:                                /* behind a bezel (device.css) */
    0 2px 4px rgba(21, 21, 19, .06),
    0 18px 36px -10px rgba(21, 21, 19, .16),
    0 50px 100px -30px rgba(21, 21, 19, .28);
  --shadow-app-glass: 0 4px 8px rgba(0, 0, 0, .2); /* GlassCard default, verbatim */

  /* ---- Motion ------------------------------------------------------------ */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* entering UI: strong ease-out */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* moving on screen */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* iOS sheet curve */
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);   /* calm marketing reveal */
  --ease-app: cubic-bezier(0.45, 0, 0.55, 1);        /* app card entrance, Easing.inOut(quad) */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);           /* leaving: quick, never on entry */
  /* closed-form springs sampled into linear(); pair with the matching duration */
  --spring-smooth: linear(0, 0.0229, 0.0789, 0.1533, 0.2362, 0.3209, 0.4031, 0.4803, 0.5511, 0.6147, 0.6712, 0.7208, 0.7639, 0.8011, 0.833, 0.8602, 0.8833, 0.9028, 0.9192, 0.933, 0.9445, 0.9542, 0.9622, 0.9688, 0.9744, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --spring-smooth-dur: 735ms;   /* response 0.5s, bounce 0 */
  --spring-snappy: linear(0, 0.0212, 0.0749, 0.1488, 0.2337, 0.3228, 0.4113, 0.4957, 0.574, 0.645, 0.7081, 0.7632, 0.8106, 0.8508, 0.8845, 0.9123, 0.935, 0.9532, 0.9676, 0.9789, 0.9874, 0.9938, 0.9985, 1.0018, 1.004, 1.0053, 1.006, 1.0063, 1.0062, 1.0059, 1.0055, 1.0049, 1.0044, 1.0038, 1.0033, 1.0028, 1.0023, 1.0019, 1.0016, 1.0013, 1);
  --spring-snappy-dur: 558ms;   /* response 0.4s, bounce 0.15 */
  --spring-soft: linear(0, 0.0201, 0.0716, 0.1436, 0.2274, 0.3164, 0.4058, 0.492, 0.5728, 0.6465, 0.7125, 0.7704, 0.8203, 0.8627, 0.8982, 0.9273, 0.9508, 0.9694, 0.9838, 0.9947, 1.0026, 1.0082, 1.0118, 1.014, 1.015, 1.0151, 1.0147, 1.0138, 1.0126, 1.0113, 1.0099, 1.0086, 1.0073, 1.0061, 1.005, 1.0041, 1.0032, 1.0025, 1.0019, 1.0014, 1);
  --spring-soft-dur: 945ms;     /* response 0.7s, bounce 0.2 */
  --dur-press: 140ms;  --dur-ui: 220ms;  --dur-app-card: 320ms;
  --dur-reveal: 900ms; --dur-chapter: 1200ms; --stagger: 60ms;
  --orb-swirl: 7000ms; --orb-breathe: 4200ms;       /* SPHERE_REST_MOTION */
}

/* ---- Dark (Colors.dark). Opt in per section with [data-theme="dark"] or
        .theme-dark; or put data-theme="auto" on <html> to follow the OS. ---- */
[data-theme="dark"], .theme-dark {
  --bg: #151513;
  --surface: #292927;
  --surface-2: #3E3E3A;
  --card: #292927;
  --text: #E2E1DA;
  --text-2: #EBEBE6;
  --text-3: #A5A49A;
  --ink: #F5F5F3;
  --border: #52524D;
  --hairline: rgba(255, 255, 255, 0.10);
  --glass: rgba(21, 21, 19, 0.85);
  --glass-border: rgba(255, 255, 255, 0.10);
  --success: #30D158; --warning: #FF9F0A; --error: #FF453A; --info: #0A84FF;
  --highlight-fill: #3C372D; --highlight-edge: #514734; --highlight-ink: #CDBB98;
  --btn-bg: #F5F5F3; --btn-ink: #151513;   /* filled buttons are white in dark */
  --stage-cyc: #151513; --stage-eyebrow: #CDBB98;
  --shadow-tile: 0 0 0 0.5px rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -10px rgba(0, 0, 0, .55);
  --shadow-float: 0 0 0 0.5px rgba(255, 255, 255, .10), 0 4px 8px rgba(0, 0, 0, .3), 0 30px 70px -16px rgba(0, 0, 0, .7);
  --shadow-device: 0 2px 4px rgba(0, 0, 0, .4), 0 40px 90px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #151513; --surface: #292927; --surface-2: #3E3E3A; --card: #292927;
    --text: #E2E1DA; --text-2: #EBEBE6; --text-3: #A5A49A; --ink: #F5F5F3;
    --border: #52524D; --hairline: rgba(255, 255, 255, 0.10);
    --glass: rgba(21, 21, 19, 0.85); --glass-border: rgba(255, 255, 255, 0.10);
    --highlight-fill: #3C372D; --highlight-edge: #514734; --highlight-ink: #CDBB98;
    --btn-bg: #F5F5F3; --btn-ink: #151513;
    color-scheme: dark;
  }
}
