/* EmailGain design tokens, v3: show the work.
   References: Really Good Emails, Klaviyo and Mailchimp (see DESIGN.md).
   Pages use these names, never raw values. Light theme only. */

:root {
  /* ---------- Colour ---------- */
  --color-white: #FFFFFF;          /* page background, email frames, the calendar card */
  --color-lilac-soft: #DCCAF7;     /* hero: his lilac, lighter and cleaner */
  --color-lavender: #EEE6FA;       /* quiet bands, chat bubbles, small icon circles */
  --color-lilac: #B996F2;          /* brand: booking block, buttons and marks on plum */
  --color-lilac-hover: #C9AEF6;    /* lilac button hover */
  --color-lilac-deep: #6C45A8;     /* lilac for numbers and small marks on white (6.9:1) */
  --color-plum: #24152F;           /* bold dark bands: Fran's story, the EmailGain panel, footer */
  --color-ink: #1A1322;            /* text and buttons on light backgrounds */
  --color-ink-hover: #3A2A48;      /* dark button hover */
  --color-grey-panel: #F4F1F8;     /* the "doing it yourself" panel */
  --color-text-soft: #4D4656;      /* secondary text on white and lavender (7:1+) */
  --color-text-muted: #696273;     /* captions on white and lavender (4.6:1+) */
  --color-on-plum: #FFFFFF;        /* text on plum */
  --color-on-plum-soft: #CFC4DA;   /* secondary text on plum (10:1) */
  --color-line: #E5DEEE;           /* dividers on white (decorative) */
  --color-line-strong: #8F879A;    /* control borders (3:1) */
  --color-line-on-plum: rgb(255 255 255 / 0.16); /* dividers on plum (decorative) */
  --color-wordmark: #4A3462;       /* the huge EmailGain in the footer: lilac sunk into plum (decoration) */

  /* ---------- Typography ---------- */
  --font-display: "Sora Variable", "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans Variable", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-hero: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);        /* 40–80px, the short hero line: two lines */
  --hero-measure: 11em;                                    /* breaks it into two even lines */
  --text-h2: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);      /* 34–56px, section headings */
  --text-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);      /* 20–24px */
  --text-stat: clamp(2.75rem, 2rem + 2.6vw, 4.25rem);      /* 44–68px, result numbers */
  --text-step: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);        /* 40–56px, step numbers */
  --text-quote: clamp(1.625rem, 1.35rem + 1.1vw, 2.375rem);/* 26–38px, client words */
  --text-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);/* 19–22px */
  --text-question: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem); /* 18–21px, questions in the FAQ chat */
  --text-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);/* 17–18px */
  --text-small: 0.9375rem;                                 /* 15px */
  --text-wordmark: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); /* 18–21px, "EmailGain" by the logo */

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  --tracking-hero: -0.035em;  /* the hero line */
  --tracking-tight: -0.035em; /* section headings and numbers */
  --measure: 60ch;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  --section-y: clamp(4.5rem, 2.8rem + 6vw, 8rem);   /* 72–128px top and bottom of sections */
  --container: 77.5rem;                             /* 1240px */
  --gutter: clamp(1rem, 0.4rem + 3vw, 2rem);        /* 16–32px */

  /* ---------- Shape and depth ---------- */
  --radius-sm: 0.5rem;     /* 8px: logo tile */
  --radius-md: 0.875rem;   /* 14px: email frames */
  --radius-lg: 1.5rem;     /* 24px: photo, video, panels, calendar */
  --radius-xl: 2rem;       /* 32px: the FAQ panel */
  --bubble-radius: 1.375rem; /* 22px: chat bubbles (client messages, FAQ) */
  --bubble-tail: 0.375rem;   /* 6px: the corner a bubble "points" from */
  --radius-pill: 999px;    /* buttons */

  --shadow-frame: 0 1px 2px rgb(26 19 34 / 0.08), 0 18px 40px -18px rgb(26 19 34 / 0.38); /* emails */
  --shadow-cal: 0 2px 4px rgb(36 21 47 / 0.08), 0 32px 64px -32px rgb(36 21 47 / 0.55);  /* the calendar card on lilac */

  --focus-ring: 3px solid var(--color-ink);
  --focus-offset: 3px;

  /* ---------- Components ---------- */
  --button-height: 3.5rem;       /* 56px */
  --button-height-sm: 2.75rem;   /* 44px */
  --button-pad-x: 1.75rem;       /* 28px */
  --nav-height: 4.5rem;          /* 72px */
  --icon-size: 1.25rem;          /* 20px, Lucide outline */
  --icon-stroke: 1.75;
  --logo-size: 2.25rem;          /* 36px */
  --logo-size-lg: 2.75rem;       /* 44px */
  --play-size: 5rem;             /* 80px, the play button on Fran's video */
  --avatar-size: 2rem;           /* 32px, the EmailGain logo beside Ruairí's answers */
  --video-width: 24rem;          /* 384px, Fran's video on wide screens */
  --strip-email-width: clamp(10rem, 8.2rem + 5.6vw, 13.75rem);  /* 160–220px, emails in the moving strip */
  --strip-email-height: clamp(20rem, 16.4rem + 11vw, 27.5rem);  /* 320–440px */
  --strip-rise: calc(var(--strip-email-height) * 0.55);         /* how far the emails reach up into the hero colour */
  --strip-stagger: var(--space-7);                              /* every other email sits a little lower */
  --strip-speed: 70s;            /* one full loop of the strip */
  --calendar-height: 50rem;      /* 800px on phones, 44rem from 64rem up */
  --footer-wordmark: 19.5vw;     /* the footer's huge EmailGain, about 90% of the screen width */

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;        /* step numbers arriving */
  --draw-duration: 500ms;        /* one step's line drawing across */
  --draw-gap: 280ms;             /* wait before the next step's line starts */
}

@media (min-width: 64rem) {
  :root {
    --calendar-height: 44rem;    /* 704px, Calendly's recommended inline height on desktop */
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --draw-duration: 0ms;
    --draw-gap: 0ms;
  }
}
