/* Mypod design tokens. Locked 19 November 2026 (see BRAND.md).
   Every colour, size and curve on the site flows from here. */

:root {
  color-scheme: light dark;

  /* Colour: the app's own canvas and ink, and the two voices from the icon. */
  --canvas: #F6F4F0;
  --surface: #FFFFFF;
  --ink: #0E0E12;
  --ink-2: #5E5D63;
  --ink-3: #6F6E74;
  --line: rgba(14, 14, 18, 0.09);
  --line-strong: rgba(14, 14, 18, 0.16);
  --ava: #FF6B5E;
  --leo: #6FA8FF;
  --ava-ink: #BF3D2C;
  --leo-ink: #2F67C9;
  --night-1: #22222B;
  --night-2: #0B0B0F;
  --night-ink: #F5F3EF;
  --night-ink-2: #A3A2AA;
  --night-line: rgba(245, 243, 239, 0.1);
  --on-voice: #FFFFFF;
  --on-voice-ink: #16110F;
  --t-amber: #FFB547;
  --t-green: #43C59E;
  --t-violet: #8E7CFF;
  --t-deep-a: #3A1D1A;
  --t-deep-b: #0F2A26;
  --t-deep-c: #2B2016;
  --dawn-1: #4A2F45;
  --dawn-2: #C9605A;
  --dawn-3: #FFB08A;
  --dawn-4: #FFE3C2;

  /* Morning light: a low coral sun and a cool blue sky, both soft. */
  --sun: rgba(255, 107, 94, 0.30);
  --sun-2: rgba(255, 176, 120, 0.26);
  --sky: rgba(111, 168, 255, 0.28);
  --haze: rgba(255, 255, 255, 0.55);
  --shadow-phone: 0 50px 90px -30px rgba(40, 24, 20, 0.45), 0 18px 40px -20px rgba(40, 24, 20, 0.35);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 20px 40px -28px rgba(30, 20, 18, 0.35);

  /* Type: Bricolage Grotesque for display, Instrument Sans for reading. */
  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-ui: "Bricolage Text", "Bricolage Grotesque", "Instrument Sans", sans-serif;  /* the same face, cut for sizes under 32px */
  --font-body: "Instrument Sans", "Bricolage Text", sans-serif;
  --text-xs: 0.8125rem;                                  /* labels, 13px */
  --text-sm: clamp(0.94rem, 0.9rem + 0.15vw, 1rem);      /* small print */
  --text-base: clamp(1.06rem, 1rem + 0.25vw, 1.19rem);   /* body, 17 to 19px */
  --text-lg: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);    /* tile headlines */
  --text-xl: clamp(2.4rem, 1.5rem + 3.6vw, 5rem);        /* section headlines */
  --text-display: clamp(3rem, 1.1rem + 5.7vw, 7.4rem);   /* the hero */

  /* Space: 8px based, with one deliberate off-grid step (--space-4). */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 10rem;
  --gutter: clamp(1rem, 4.4vw, 4.5rem);
  --max: 1360px;
  --measure: 34rem;

  /* Radius: one house value for surfaces, taken from the app (28pt). Pills are pills. */
  --radius: 28px;
  --radius-pill: 999px;

  /* Motion: eases by intent, durations by role. */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-micro: 140ms;
  --dur-ui: 240ms;
  --dur-reveal: 900ms;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0B0B0F;
    --surface: #15151A;
    --ink: #F5F3EF;
    --ink-2: #A3A2AA;
    --ink-3: #86858D;
    --line: rgba(245, 243, 239, 0.09);
    --line-strong: rgba(245, 243, 239, 0.18);
    --ava-ink: #FF8A7E;
    --leo-ink: #8DBBFF;
    --sun: rgba(255, 107, 94, 0.22);
    --sun-2: rgba(255, 150, 110, 0.10);
    --sky: rgba(111, 168, 255, 0.20);
    --haze: rgba(11, 11, 15, 0.35);
    --shadow-phone: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 80px -10px rgba(255, 107, 94, 0.18);
    --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 40px -28px rgba(0, 0, 0, 0.8);
  }
}
