/*
  WeDo design tokens — website (mobile-first).
  Values come from the Figma file's variables and text styles
  (WeDo App || UI › Website › Home). Figma names are noted in comments.
*/

:root {
  /* ---------- Color: primitives ---------- */
  --neutral-50:  #fffbf6;  /* neutral/50 */
  --neutral-100: #efebe3;  /* neutral/100 */
  --neutral-200: #d6d0c5;  /* neutral/200 */
  --neutral-300: #c4bcb3;  /* neutral/300 */
  --neutral-800: #3b3833;  /* neutral/800 */
  --neutral-900: #1d1c1a;  /* neutral/900 */
  --taupe-400:   #aba091;  /* base-light/on-teriary */
  --taupe-500:   #7e7162;  /* base-light/on-secondary */
  --white:       #ffffff;  /* base-light/primary */
  --blue-600:    #047da6;  /* brand accent — 4.68:1 on white (WCAG AA) */
  --logo-red:    #cd4745;  /* Logo Red */
  --typing-dot:  #d9d9d9;  /* chat typing indicator (no Figma variable) */
  --stroke:      #d6d0c5;  /* base-light/stroke: form field border */
  --error:       #b3372f;  /* form error text (no Figma variable; 5.6:1 on white) */

  --darken-100: rgba(0, 0, 0, 0.1);   /* darken/100 */
  --darken-200: rgba(0, 0, 0, 0.2);   /* pagination dots (no Figma variable) */
  --darken-500: rgba(0, 0, 0, 0.6);   /* darken/500 */
  --darken-900: rgba(0, 0, 0, 0.95);  /* darken/900 */
  --lighten-300: rgba(255, 255, 255, 0.3); /* alpha-white-30 */
  --backdrop:    rgba(0, 0, 0, 0.25);      /* behind the sign-up dialog */
  --lighten-400: rgba(255, 255, 255, 0.4); /* play button circle */
  --lighten-500: rgba(255, 255, 255, 0.5); /* play button circle, hovered */

  /* ---------- Color: semantic ---------- */
  --bg-page:        var(--neutral-50);
  --surface:        var(--white);
  --text-primary:   var(--neutral-900);  /* base-light/on-primary */
  --text-secondary: var(--taupe-500);    /* base-light/on-secondary */
  --text-tertiary:  var(--taupe-400);    /* base-light/on-teriary */
  --text-on-dark:           var(--white);      /* base-dark/on-primary */
  --text-on-dark-secondary: var(--neutral-50); /* base-dark/on-secondary */
  --text-on-dark-tertiary:  var(--neutral-100); /* base-dark/on-teriary */
  --accent: var(--blue-600);  /* text, active dots, focus ring */

  --button-dark-bg:     var(--neutral-900); /* interactive-dark/enabled */
  --button-dark-label:  var(--neutral-50);  /* interactive-dark/label */
  --button-light-bg:    var(--neutral-100); /* interactive-light/enabled */
  --button-light-label: var(--neutral-900); /* interactive-light/label */

  /* Warm dark section background, top → bottom ("All the feels", "Date night"). */
  --bg-dark-warm: linear-gradient(to bottom, var(--neutral-800), var(--taupe-500));

  /* Dark fade over photos, top → transparent (from "World's smallest social network"). */
  --scrim-photo: linear-gradient(to bottom, var(--neutral-900), rgba(59, 56, 51, 0));

  /* ---------- Type: families ---------- */
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ios:   -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; /* iOS notification mock only */

  /* ---------- Type: Figma text styles (Daily WeDo/…) ---------- */
  --type-serif-xl:          400 48px/1.2 var(--font-serif);   /* Serif XL */
  --type-serif-large-bold:  400 36px/1.1 var(--font-serif);   /* Serif Large Bold · tracking -1px */
  --type-serif-large:       400 32px/1.2 var(--font-serif);   /* Serif Large · tracking -1px */
  --type-serif-medium-bold: 400 26px/1.25 var(--font-serif);  /* Serif Medium Bold */
  --type-serif-small-bold:  400 20px/1.3 var(--font-serif);   /* Serif Small Bold */
  --type-sans-large:        600 24px/1.3 var(--font-sans);    /* Sans Large */
  --type-sans-medium-bold:  600 20px/1.2 var(--font-sans);    /* Sans Medium Bold */
  --type-sans-small-bold:   600 16px/1.4 var(--font-sans);    /* Sans Small Bold */
  --type-sans-small:        400 16px/1.4 var(--font-sans);    /* Sans Small */
  --type-sans-xs-bold:      700 12px/1.4 var(--font-sans);    /* Sans XS Bold */
  --type-sans-caption-bold: 600 14px/1.4 var(--font-sans);    /* no Figma style yet: tip bubble eyebrow, "Why?" */
  --type-sans-caption:      400 14px/1.4 var(--font-sans);    /* no Figma style yet: tip bubble "Why?" line */
  --tracking-tight: -1px;

  /* ---------- Spacing ---------- */
  --space-1:  4px;   /* spacing-xs */
  --space-2:  8px;   /* x-small, spacing-md */
  --space-3:  12px;
  --space-4:  16px;  /* small */
  --space-6:  24px;  /* spacing-3xl */
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;  /* spacing-6xl */
  --space-16: 64px;
  --space-20: 80px;

  --page-gutter: var(--space-6);
  --section-space: var(--space-20); /* top/bottom padding of full-width sections */

  /* ---------- Radius ---------- */
  --radius-sm:   12px;   /* radius-xl — buttons, video, card inner border */
  --radius-md:   16px;   /* chat bubbles, question cards */
  --radius-lg:   24px;   /* tip bubbles, invite cards */
  --radius-xl:   32px;   /* photo CTA cards */
  --radius-pill: 9999px; /* radius-full */

  /* ---------- Elevation ---------- */
  --shadow-card:       0 16px 16px rgba(0, 0, 0, 0.05); /* white cards: tip bubbles, invite cards (drop-shadow) */
  --shadow-chat:       0 16px 16px rgba(0, 0, 0, 0.05); /* hero chat bubbles (drop-shadow) */
  --shadow-photo-card: 0 16px 32px rgba(0, 0, 0, 0.1);
  --shadow-video:      0 16px 32px rgba(0, 0, 0, 0.25);
  --shadow-device-dark: 0 16px 16px rgba(0, 0, 0, 0.35); /* phone mockups on a dark background (drop-shadow) */
  --shadow-device-soft: 0 16px 16px rgba(0, 0, 0, 0.1);  /* phone mockups over a fade to the page color */
  --shadow-device:     var(--shadow-device-dark);
  --shadow-notification: 0 4.57px 36.57px rgba(0, 0, 0, 0.08); /* iOS notification mock (Figma: 8% black, 4.57px down, 36.57px blur) */
  --shadow-stack-top:  0 2px 8px rgba(0, 0, 0, 0.4);    /* question cards */
}
