/* Tokens */

:root {

  /* ------------------------------------------------------------------------
     Font families
     ------------------------------------------------------------------------ */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-control: Arial, sans-serif;   /* only the pop-up close "×": the mockup drew it in the browser's default button font (Arial on the mockup machine); see assumptions.md */

  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;


  /* ------------------------------------------------------------------------
     Colour: brand
     ------------------------------------------------------------------------ */
  --color-navy: #0D2144;              /* headings, dark sections, button text */
  --color-gold: #E3B31F;              /* primary action, accents on navy */
  --color-gold-text: #8C6A0A;         /* small accent text on cream */
  --color-cream: #FAF7F0;             /* page background, text on navy */
  --color-ink: #1B2433;               /* default body text */
  --color-muted: #4A5568;             /* secondary text on cream */
  --color-muted-on-navy: #C9D1E0;     /* secondary text on navy */
  --color-white: #FFFFFF;             /* cards, inputs */
  --color-footer: #0A1A38;            /* footer background */

  /* Colour: gradients (stops) */
  --color-hero-top: #FFFDF8;
  --color-hero-bottom: #EFE6D3;

  /* Colour: status */
  --color-success: #1E8A55;           /* "You're in" tick */
  --color-success-bg: #E8F3EC;        /* confirmation bar */
  --color-success-border: rgba(30,138,85,0.25);
  --color-error: #C0392B;             /* error state: from design-system.md 1.5 (phone ebook bearish/error); not used in the mockups */

  /* Colour: third-party */
  --color-trustpilot: #00B67A;

  /* Colour: borders, tracks and overlays */
  --color-border: rgba(13,33,68,0.12);          /* cards, dividers */
  --color-border-input: rgba(13,33,68,0.22);    /* text inputs */
  --color-border-prefix: rgba(13,33,68,0.18);   /* +44 divider */
  --color-border-gold: rgba(227,179,31,0.6);    /* bonus card, video frame */
  --color-track: rgba(13,33,68,0.1);            /* pop-up progress track */
  --color-close-bg: rgba(13,33,68,0.08);        /* pop-up close button */
  --color-overlay: rgba(9,24,54,0.9);           /* pop-up backdrop */
  --color-video-scrim: rgba(7,20,48,0.25);      /* darkening over the video frame */
  --color-surface-on-navy: rgba(255,255,255,0.06); /* bonus card on navy */
  --color-video-track: rgba(255,255,255,0.25);  /* video progress track */
  --color-bonus-track: rgba(255,255,255,0.15);  /* bonus progress track */


  /* ------------------------------------------------------------------------
     Gradients
     ------------------------------------------------------------------------ */
  --gradient-hero-landing: linear-gradient(180deg, var(--color-hero-top) 0%, var(--color-cream) 55%, var(--color-hero-bottom) 100%);
  --gradient-hero-masterclass: linear-gradient(180deg, var(--color-hero-top) 0%, var(--color-cream) 100%);


  /* ------------------------------------------------------------------------
     Font sizes
     No type scale is specified for the brand; each size in the mockups has
     its own token, named by pixel value. Fluid sizes are named by role.
     ------------------------------------------------------------------------ */
  --font-size-13: 13px;
  --font-size-13-5: 13.5px;
  --font-size-14: 14px;
  --font-size-14-5: 14.5px;
  --font-size-15: 15px;
  --font-size-16: 16px;
  --font-size-17: 17px;
  --font-size-18: 18px;
  --font-size-19: 19px;
  --font-size-20: 20px;
  --font-size-21: 21px;
  --font-size-22: 22px;
  --font-size-24: 24px;
  --font-size-25: 25px;
  --font-size-30: 30px;
  --font-size-34: 34px;
  --font-size-36: 36px;
  --font-size-46: 46px;

  --font-size-h1-landing: clamp(40px, 6vw, 64px);
  --font-size-h1-masterclass: clamp(28px, 4.6vw, 50px);
  --font-size-h2: clamp(32px, 4vw, 46px);
  --font-size-h2-reviews: clamp(30px, 4vw, 44px);
  --font-size-h2-masterclass: clamp(28px, 4vw, 38px);
  --font-size-sound-pill: clamp(15px, 2.4vw, 22px);


  /* ------------------------------------------------------------------------
     Line heights
     ------------------------------------------------------------------------ */
  --line-height-1: 1;
  --line-height-1-02: 1.02;
  --line-height-1-04: 1.04;
  --line-height-1-05: 1.05;
  --line-height-1-1: 1.1;
  --line-height-1-12: 1.12;
  --line-height-1-2: 1.2;
  --line-height-1-25: 1.25;
  --line-height-1-3: 1.3;
  --line-height-1-35: 1.35;
  --line-height-1-4: 1.4;
  --line-height-1-45: 1.45;
  --line-height-1-5: 1.5;
  --line-height-1-6: 1.6;


  /* ------------------------------------------------------------------------
     Letter spacing
     ------------------------------------------------------------------------ */
  --tracking-tight: -0.01em;
  --tracking-0: 0;
  --tracking-06: 0.06em;
  --tracking-08: 0.08em;
  --tracking-10: 0.1em;
  --tracking-12: 0.12em;
  --tracking-14: 0.14em;
  --tracking-16: 0.16em;
  --tracking-18: 0.18em;
  --tracking-20: 0.2em;
  --tracking-22: 0.22em;


  /* ------------------------------------------------------------------------
     Spacing
     No spacing scale is specified; every value used in the mockups.
     ------------------------------------------------------------------------ */
  --space-1: 1px;
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 4px;
  --space-6: 6px;
  --space-7: 7px;
  --space-8: 8px;
  --space-9: 9px;
  --space-10: 10px;
  --space-11: 11px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-34: 34px;
  --space-36: 36px;
  --space-40: 40px;
  --space-44: 44px;
  --space-48: 48px;
  --space-52: 52px;
  --space-56: 56px;
  --space-72: 72px;


  /* ------------------------------------------------------------------------
     Component sizes and layout widths
     ------------------------------------------------------------------------ */
  --size-wrap: 1120px;              /* page content width */
  --size-wrap-narrow: 920px;        /* masterclass page content width */
  --size-cta: 440px;                /* CTA and bonus card max width */
  --size-hero-media: 520px;         /* book mock-up, desktop */
  --size-hero-media-mobile: 420px;  /* book mock-up, mobile */
  --size-dialog: 560px;             /* opt-in pop-up */
  --size-dialog-image: 128px;
  --size-dialog-image-mobile: 96px;
  --size-chapter-label: 64px;

  --size-logo-mark-w: 30px;         /* landing header */
  --size-logo-mark-h: 34px;
  --size-logo-mark-sm-w: 25px;      /* masterclass header */
  --size-logo-mark-sm-h: 28px;

  --size-btn-xl: 62px;              /* landing CTA */
  --size-btn-lg: 60px;              /* pop-up submit */
  --size-btn-md: 58px;              /* offer card */
  --size-btn-sm: 48px;              /* mobile sticky bar */
  --size-input: 52px;
  --size-close: 36px;
  --size-checkbox: 20px;
  --size-progress: 4px;             /* pop-up step bar */
  --size-progress-video: 5px;
  --size-progress-bonus: 6px;

  --size-basis-hero-copy: 440px;
  --size-basis-hero-media: 380px;
  --size-basis-final-copy: 420px;
  --size-basis-chapters: 380px;
  --size-basis-offer: 300px;
  --size-basis-name-field: 140px;
  --size-grid-inside: 240px;
  --size-grid-learn: 280px;
  --size-grid-reviews: 250px;


  /* ------------------------------------------------------------------------
     Radius
     ------------------------------------------------------------------------ */
  --radius-2: 2px;
  --radius-3: 3px;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;
  --radius-40: 40px;
  --radius-round: 50%;


  /* ------------------------------------------------------------------------
     Border widths
     ------------------------------------------------------------------------ */
  --border-1: 1px;
  --border-1-5: 1.5px;
  --border-2: 2px;
  --border-3: 3px;
  --border-4: 4px;
  --border-5: 5px;


  /* ------------------------------------------------------------------------
     Shadows (full CSS)
     ------------------------------------------------------------------------ */
  --shadow-button: 0 10px 24px rgba(140,106,10,0.28);
  --shadow-bonus: 0 14px 30px rgba(13,33,68,0.18);
  --shadow-page-preview: 0 14px 32px rgba(0,0,0,0.38);
  --shadow-video: 0 24px 60px rgba(13,33,68,0.35);
  --shadow-dialog: 0 30px 80px rgba(0,0,0,0.45);
  --shadow-sound-pill: 0 0 0 10px rgba(227,179,31,0.25), 0 14px 30px rgba(0,0,0,0.45);
  --shadow-sticky-bar: 0 -8px 24px rgba(0,0,0,0.25);


  /* ------------------------------------------------------------------------
     Interaction states
     Not specified in design-system.md. Conservative choices recorded in
     assumptions.md (section 4). They reuse brand colours only.
     ------------------------------------------------------------------------ */
  --state-hover-filter: brightness(0.95);
  --state-active-filter: brightness(0.9);
  --state-active-shift: 1px;
  --state-disabled-opacity: 0.5;
  --state-pressed-opacity: 0.8;        /* text links while pressed */
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;
  --focus-ring-on-light: var(--color-navy);
  --focus-ring-on-dark: var(--color-cream);
  --spinner-size: 20px;
  --spinner-border: 3px;
  --spinner-duration: 0.8s;


  /* ------------------------------------------------------------------------
     Breakpoint (design-system.md 6)
     Custom properties cannot be used inside @media queries, so the value
     is written out as (max-width: 760px) in each page. Keep them in sync.
     ------------------------------------------------------------------------ */
  --breakpoint-mobile: 760px;
}
