/* Cado design tokens. Source: ticket "Cado's brand and design system, in Paper"
   (.scratch/cado-rebuild/issues/17-brand-and-design-system.md), picked 16.11.2026.
   Boards: https://app.paper.design/file/01M7JD9M0AN1HTTGA9T4PCDA0R/p-1-0 */

:root {
  /* Colour: neutrals */
  --color-ground: #FFFFFF;
  --color-ink: #1F1D1A;
  --color-text-muted: #6B665E;          /* 5.7:1 on white */
  --color-text-muted-on-glass: #4A4640; /* use instead of muted wherever a glow shows through */
  --color-hairline: #DDDDDD;
  --color-field-border: #BDB8AE;

  /* Colour: Valencia orange, elevated */
  --color-brand: #FF7A1A;
  --color-brand-top: #FF8E2E;           /* button gradient, top */
  --color-brand-bottom: #FF6A0A;        /* button gradient, bottom */
  --color-brand-hover-top: #FF9A3D;
  --color-brand-hover-bottom: #FF7417;
  --color-on-brand: #1F1D1A;            /* ink on orange 6.5:1; white fails at 2.6:1 */
  --color-link: #C2480A;                /* 5.0:1 on white */
  --color-tint: #FFF1E3;

  /* Colour: glows behind the glass ("orange and sea"). Glow only, never text or buttons. */
  --color-glow-orange: #FF7A1A;
  --color-glow-sea: #2CC4C0;
  --color-glow-sun: #FFC83D;

  /* Frosted glass */
  --glass-fill: rgba(255, 255, 255, 0.5);
  --glass-fill-strong: rgba(255, 255, 255, 0.8); /* search pill on glass */
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-blur: 28px;
  --glow-blur: 80px;

  /* Type */
  --font-display: "Figtree", sans-serif; /* headlines, buttons, prices: 700 and 800 */
  --font-text: "Inter", sans-serif;      /* text, labels, small print: 400 and 600 */
  --text-display: 40px;
  --text-title: 28px;
  --text-heading: 22px;
  --text-body: 16px;
  --text-small: 14px;
  --tracking-display: -0.02em;

  /* Shape */
  --radius-field: 16px;
  --radius-photo: 20px;
  --radius-panel: 24px;
  --radius-hero: 28px;
  --radius-pill: 999px;
  --touch-target-min: 48px;

  /* One shadow tier, plus the glow under the main button */
  --shadow-float: 0 2px 8px rgba(31, 29, 26, 0.10);
  --shadow-brand-glow: 0 10px 24px rgba(255, 106, 10, 0.35);

  /* Motion */
  --motion-press: 0.12s;       /* button shrinks to 97% and springs back */
  --motion-hover-words: 0.15s; /* button and search words cross-fade; size stays */
  --motion-switch: 0.2s;       /* gifter / shop switch */
  --motion-enter: 0.3s;        /* fade in and rise 12px, once, 0.06s apart */
  --motion-success: 0.6s;      /* drawn check mark: sign-up sent, gift paid, gift redeemed */
  --motion-logo-draw: 1.6s;    /* once on open, again on tap, never loops */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reduced motion: logo and check mark appear finished, content fades without rising, switch changes at once. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-press: 0s;
    --motion-switch: 0s;
    --motion-enter: 0.15s;
    --motion-success: 0s;
    --motion-logo-draw: 0s;
  }
}
