/* ────────────────────────────────────────────────────────────────
   Nutri — design tokens (v3, warm gradient sport-luxe)
   Cousin of the recipe-bot system: peach → gold → pink accent.
   Single source of truth for color, type, radii, spacing, motion.
   ──────────────────────────────────────────────────────────────── */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700|space-grotesk:500,600,700&display=swap');

:root {
  /* ── Surface (warm graphite, not pure black) ───────────────── */
  --bg:           #0A0A0B;
  --surface-1:    #111113;
  --surface-2:    #17171A;
  --surface-3:    #1E1E22;
  --hairline:     rgba(255, 255, 255, 0.06);
  --hairline-2:   rgba(255, 255, 255, 0.10);

  /* ── Text ──────────────────────────────────────────────────── */
  --text:         #FAFAFA;
  --text-soft:    #E4E4E7;
  --muted:        #A1A1AA;
  --muted-2:      #71717A;

  /* ── Accent gradient stops (peach → gold → pink) ───────────
     Single tri-stop accent, used for the hero ring, the
     "primary" food-add CTA, and active-state highlights.       */
  --peach:        #FFB199;
  --gold:         #F4C97B;
  --pink:         #FF7AC6;
  --accent:       var(--peach);             /* legacy alias */
  --accent-ink:   #0A0A0B;

  --grad-accent:        linear-gradient(135deg, #FFB199 0%, #F4C97B 45%, #FF7AC6 100%);
  --grad-accent-soft:   linear-gradient(135deg, rgba(255,177,153,0.18) 0%, rgba(244,201,123,0.14) 45%, rgba(255,122,198,0.18) 100%);
  --grad-text:          linear-gradient(135deg, #FFB199 0%, #F4C97B 50%, #FF7AC6 100%);

  --accent-soft:  rgba(255, 177, 153, 0.14);
  --accent-line:  rgba(255, 177, 153, 0.34);

  /* ── Data tones (warm spectrum, all readable on dark) ──────── */
  --tone-kcal:    #FFB199;                  /* peach    = calories */
  --tone-protein: #A3FFB4;                  /* mint     = protein  */
  --tone-fat:     #F4C97B;                  /* gold     = fat      */
  --tone-carbs:   #7DD3FC;                  /* sky      = carbs    */
  --tone-fiber:   #C7F26B;                  /* lime-soft= fiber    */
  --tone-water:   #7DD3FC;                  /* sky      = water    */
  --tone-warn:    #FF6B8A;                  /* coral    = over     */

  /* tints for backgrounds + chip fills */
  --tint-protein: rgba(163, 255, 180, 0.10);
  --tint-fat:     rgba(244, 201, 123, 0.10);
  --tint-carbs:   rgba(125, 211, 252, 0.10);
  --tint-fiber:   rgba(199, 242, 107, 0.10);
  --tint-water:   rgba(125, 211, 252, 0.10);
  --tint-warn:    rgba(255, 107, 138, 0.10);

  /* ── Radii ─────────────────────────────────────────────────── */
  --r-xs:   8px;
  --r-sm:  12px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* ── Spacing (4pt grid) ────────────────────────────────────── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;

  /* ── Elevation + accent glow (used sparingly) ──────────────── */
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
               0 1px 2px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
               0 8px 22px rgba(0, 0, 0, 0.36);
  --glow-accent: 0 0 38px rgba(255, 122, 198, 0.30),
                 0 0 18px rgba(244, 201, 123, 0.22);

  /* ── Type ──────────────────────────────────────────────────── */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-ui:      'Inter', ui-sans-serif, system-ui, -apple-system, 'SF Pro Text', sans-serif;
  --font-scale: 1;

  /* ── Motion ────────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: calc(15px * var(--font-scale));
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Numeric (tabular, geometric — for big metrics) */
.num {
  font-family: var(--font-display);
  font-feature-settings: 'tnum', 'lnum';
  letter-spacing: -0.025em;
}

/* Gradient text — opt-in via class, applied to hero titles only */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
