/* ── Design tokens ──────────────────────────────────────────────────
   Modelled on elevenlabs.io, measured from the live site on 2026-11-16.
   Read design-system/README.md for how to use them.
   One name per value. Components use these, never a literal colour.
   ------------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;700&family=Geist+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ── Surfaces ── */
  --page: #fdfcfc;            /* "eggshell": the page ground, almost white with a warm hint */
  --surface: #ffffff;         /* buttons, inputs, raised cards on the page */
  --stone-50: #f5f3f1;        /* soft panel: feature cards, tab rails */
  --stone-100: #ebe8e4;       /* deeper panel, selected tab, thick dividers */
  --stone-200: #d7d2cc;       /* the darkest warm neutral; strokes on stone */
  --inverse: #000000;         /* primary buttons, the strongest surface */

  /* ── Text ── */
  --text: #000000;            /* headings and body: pure black */
  --text-secondary: #44403b;  /* supporting copy */
  --text-muted: #777169;      /* captions, meta, placeholder, inactive nav */
  --text-faint: #a59f97;      /* disabled, footnotes */
  --text-inverse: #ffffff;    /* on --inverse */

  /* ── Lines ── */
  --line: #e5e5e5;                     /* 1px hairline on white */
  --line-warm: #ebe8e4;                /* hairline on stone */
  --ring: rgba(0, 0, 0, 0.125);        /* the 0.5px ring that draws a white button */
  --ring-soft: rgba(0, 0, 0, 0.075);   /* the 0.5px inset ring on panels */
  --ring-selected: #000000;            /* 1.5px inset ring on a selected option */

  /* ── State tints (laid over any surface) ── */
  --tint-hover: rgba(0, 0, 0, 0.05);
  --tint-press: rgba(0, 0, 0, 0.1);
  --scrim: rgba(0, 0, 0, 0.3);         /* behind modals */
  --inverse-hover: #262626;            /* primary button under the pointer */

  /* ── Colour: used sparingly, never for chrome ── */
  --accent-red: #f41a2f;      /* code keywords, live / recording dot, errors */
  --accent-blue: #0a59d2;     /* links inside running text, code strings */
  --accent-navy: #052f70;
  --accent-orange: #ff4704;   /* orb gradients */
  --accent-electric: #0447ff; /* orb gradients */
  --danger: var(--accent-red);
  --danger-tint: #fde8ea;
  --success: #16794a;
  --success-tint: #e6f4ec;
  --warning-tint: #fdf0e6;

  /* ── Type ── */
  --font-display: 'Geist', 'Inter', system-ui, sans-serif;   /* stands in for ElevenLabs' licensed Waldenburg */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --display-xl: 300 3rem/1.08 var(--font-display);      /* 48px hero */
  --display-xl-tracking: -0.02em;
  --heading-1: 300 2.25rem/1.05 var(--font-display);    /* 36px section titles */
  --heading-1-tracking: -0.03em;
  --heading-2: 300 2rem/1.1 var(--font-display);        /* 32px */
  --heading-2-tracking: -0.03em;
  --heading-3: 300 1.75rem/1.2 var(--font-display);     /* 28px */
  --heading-3-tracking: -0.02em;
  --heading-4: 400 1.25rem/1.3 var(--font-display);     /* 20px card titles */
  --heading-4-tracking: -0.01em;
  --heading-5: 400 1.125rem/1.35 var(--font-display);   /* 18px */

  --text-lg: 400 1.125rem/1.6 var(--font-body);         /* 18px marketing body */
  --text-md: 400 1rem/1.5 var(--font-body);             /* 16px app body */
  --text-sm: 400 0.875rem/1.4 var(--font-body);         /* 14px controls, tables */
  --text-xs: 400 0.75rem/1.4 var(--font-body);          /* 12px meta */
  --label: 500 0.875rem/1.4 var(--font-body);           /* 14px labels, card names */
  --code: 400 0.8125rem/1.6 var(--font-mono);           /* 13px */
  --body-tracking: 0.01em;

  /* ── Shape ── */
  --radius-xs: 4px;        /* chips, tags, small inputs, code blocks inside cards */
  --radius-sm: 8px;        /* small cards, menus */
  --radius-md: 12px;       /* cards */
  --radius-lg: 16px;       /* large feature panels, modals */
  --radius-xl: 20px;
  --radius-pill: 9999px;   /* every button, every tab, every toggle */

  /* ── Elevation: rings first, shadows barely there ── */
  --shadow-button: 0 0 0 0.5px var(--ring), 0 1px 1px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-panel: inset 0 0 0 0.5px var(--ring-soft);
  --shadow-selected: inset 0 0 0 1.5px var(--ring-selected);
  --shadow-float: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 0 0 0.5px var(--ring), 0 8px 24px rgba(0, 0, 0, 0.08), 0 24px 64px rgba(0, 0, 0, 0.08);

  /* ── Space ── */
  --space-1: 4px;
  --space-2: 8px;          /* --gap-default on the site */
  --space-3: 12px;
  --space-4: 16px;         /* inner inset */
  --space-5: 20px;         /* outer gutter */
  --space-6: 24px;
  --space-8: 32px;         /* panel padding */
  --space-10: 40px;
  --space-14: 56px;        /* section, medium */
  --space-20: 80px;        /* section, large */
  --space-30: 120px;       /* section, extra large */
  --container: 1306px;     /* 81.625rem max content width */

  /* ── Controls ── */
  --control-sm: 32px;      /* 13px text, 12px side padding */
  --control-md: 36px;      /* 14px text, 14px side padding — the default */
  --control-lg: 40px;      /* 15px text, 16px side padding */
  --control-xl: 44px;      /* 16px text, 20px side padding — hero actions */

  /* ── Motion ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
}
