/*
  ClipReady design tokens
  -----------------------
  The single source of truth for colour, type, spacing, radii, shadows,
  buttons and the wordmark. The website imports this file and uses nothing
  but these values. The app can import it the same way.

  Emails and video end cards cannot read CSS variables: copy the values
  from design-system.md, which lists every token with its hex or pixel value.

  Every token starts with --cr- so it cannot clash with a framework's own.
*/

:root {
  color-scheme: light;

  /* ---------- Colour: neutrals ---------- */
  --cr-white: #ffffff;        /* page background, text on the accent and on black */
  --cr-black: #000000;        /* the examples band, the phone notch */
  --cr-ink: #1a1c20;          /* main text, headings, wordmark, phone body, cards on black */
  --cr-ink-2: #41444b;        /* quieter text: header links, FAQ answers */
  --cr-grey: #676a72;         /* secondary text: sub-lines, tile body, form notes, footer */
  --cr-grey-2: #858890;       /* large muted type only: second half of headings, the pain paragraph, big times, placeholders */
  --cr-line: #d3d5db;         /* hairlines, input border */
  --cr-tile: #f4f5f8;         /* tiles, grey sections, footer, success box; also text on black */

  /* ---------- Colour: on dark ---------- */
  --cr-on-dark: var(--cr-tile);         /* text on black */
  --cr-on-dark-muted: #a2a5ad;          /* secondary text on black */
  --cr-on-dark-line: rgb(255 255 255 / .45); /* outline of a button on black */
  --cr-device-rim: #464950;             /* inner edge of the phone frame */

  /* ---------- Colour: accent ---------- */
  --cr-accent: #1466e6;        /* primary buttons */
  --cr-accent-hover: #0f5bd6;  /* primary button, hover and pressed */
  --cr-accent-ink: #0f57c8;    /* accent as text on white or grey: links, focus rings, the FAQ arrow */
  --cr-accent-on-dark: #5c9dff;/* focus rings on black */
  --cr-accent-ring: rgb(20 102 230 / .2); /* soft ring round a focused field */
  --cr-on-accent: var(--cr-white);        /* text on the accent */

  /* ---------- Colour: status ---------- */
  --cr-soon: #b0480a;          /* "Coming soon" labels */
  --cr-error: #b3261e;         /* form error text */

  /* ---------- Colour: gradient ---------- */
  --cr-grad-1: #3d8bff;
  --cr-grad-2: #a36bfa;
  --cr-grad-3: #ff5d90;
  --cr-gradient: linear-gradient(90deg, var(--cr-grad-1), var(--cr-grad-2) 50%, var(--cr-grad-3)); /* highlight text: eyebrow, view counts, "About 15 minutes" */
  --cr-reel-fallback: linear-gradient(160deg, var(--cr-grad-1), var(--cr-grad-2) 62%, var(--cr-grad-3)); /* shown in a reel frame until its video loads */

  /* ---------- Colour: surfaces with transparency ---------- */
  --cr-header-bg: rgb(255 255 255 / .8);   /* sticky header, over a blur */
  --cr-header-line: rgb(0 0 0 / .08);      /* line under the header */
  --cr-header-blur: saturate(180%) blur(20px); /* the frosted effect behind the header */
  --cr-scrim: rgb(0 0 0 / .45);            /* behind the play icon on a paused reel */

  /* ---------- Type: families ---------- */
  /* System font first (San Francisco on Apple devices), Inter everywhere else. */
  --cr-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* For anything rendered to pixels (video end cards, social images), use Inter. */
  --cr-font-export: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* ---------- Type: weights ---------- */
  /* Two weights only. Nothing on a marketing page is set heavier than 600. */
  --cr-weight-regular: 400;   /* body, ledes, secondary text, the email field */
  --cr-weight-semibold: 600;  /* headlines, headings, buttons, labels, the wordmark */

  /* ---------- Type: sizes (1rem = 16px) ---------- */
  /* Three text sizes (14, 17, 22). Sizes one or two pixels apart read as one size, so there are none. */
  --cr-text-sm: .875rem;      /* 14px  header links, labels, "Coming soon", form notes, small buttons, footer */
  --cr-text-base: 1.0625rem;  /* 17px  body, buttons, the email field, eyebrow, item names */
  --cr-text-lg: 1.375rem;     /* 22px  FAQ questions, sub-lines (1.3 times body, a clear step up) */
  --cr-text-lede: clamp(1.15rem, 1rem + .8vw, 1.5rem);         /* 18 to 24px  the line under the headline */
  --cr-text-title: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);      /* 26 to 37px  tile headings */
  --cr-text-statement: clamp(1.6rem, 1.1rem + 2.6vw, 3rem);    /* 26 to 48px  the pain paragraph */
  --cr-text-figure: 2.75rem;                                    /* 44px  view counts */
  --cr-text-figure-lg: clamp(2.5rem, 1.4rem + 5.4vw, 4.4rem);  /* 40 to 70px  the four big times, stacked */
  --cr-text-figure-col: clamp(2rem, 3.1vw, 2.9rem);            /* 32 to 46px  the four big times, in columns */
  --cr-text-h2: clamp(2.1rem, 1.2rem + 4.4vw, 4.2rem);         /* 34 to 67px  section headings */
  --cr-text-display: clamp(3rem, 1.2rem + 9vw, 7rem);          /* 48 to 112px the headline and "Join the waitlist." */

  /* ---------- Type: line height ---------- */
  --cr-leading-none: 1;        /* big figures */
  --cr-leading-display: 1.03;  /* display */
  --cr-leading-heading: 1.06;  /* section headings */
  --cr-leading-title: 1.1;     /* tile headings, the pain paragraph */
  --cr-leading-snug: 1.3;      /* small headings, buttons, FAQ questions */
  --cr-leading-lede: 1.38;     /* lede and sub-lines */
  --cr-leading-body: 1.55;     /* body: small text needs looser lines than big text */

  /* ---------- Type: letter spacing ---------- */
  --cr-tracking-display: -.04em;   /* display and big figures */
  --cr-tracking-heading: -.035em;  /* section and tile headings, the pain paragraph */
  --cr-tracking-wordmark: -.03em;  /* the wordmark */
  --cr-tracking-tight: -.02em;     /* small headings, FAQ questions */
  --cr-tracking-body: 0;           /* body and buttons: only large type is tightened */

  /* ---------- Spacing: --cr-space-N is N x 4px ---------- */
  --cr-space-1: 4px;
  --cr-space-2: 8px;
  --cr-space-3: 12px;
  --cr-space-4: 16px;
  --cr-space-5: 20px;
  --cr-space-6: 24px;
  --cr-space-8: 32px;
  --cr-space-10: 40px;
  --cr-space-12: 48px;
  --cr-space-14: 56px;
  --cr-space-16: 64px;
  --cr-space-22: 88px;
  --cr-space-24: 96px;
  --cr-space-28: 112px;
  --cr-space-38: 152px;
  --cr-space-50: 200px;

  /* ---------- Layout ---------- */
  --cr-container: 1080px;         /* widest content */
  --cr-container-narrow: 860px;   /* reading sections: pain, FAQ */
  --cr-gutter: var(--cr-space-5);       /* page edge on phones */
  --cr-gutter-wide: var(--cr-space-8);  /* page edge from 760px up */
  --cr-header-height: 56px;
  --cr-measure: 30em;             /* longest line for a lede or sub-line */
  --cr-measure-long: 60ch;        /* longest line for body text: about 70 characters */

  /* ---------- Corner radii ---------- */
  --cr-radius-sm: 10px;     /* small chips, the skip link */
  --cr-radius-md: 20px;     /* reels, the success box */
  --cr-radius-lg: 28px;     /* tiles and cards */
  --cr-radius-pill: 999px;  /* buttons and inputs */

  /* ---------- Borders ---------- */
  --cr-border: 1px;         /* hairlines */
  --cr-focus-width: 3px;    /* focus outline, and its offset */

  /* ---------- Shadows (the system is flat: these are the only two) ---------- */
  --cr-shadow-device: inset 0 0 0 1.5px var(--cr-device-rim), 0 20px 32px -20px rgb(0 0 0 / .35); /* phone frame: kept tight, so three phones do not fog the page */
  --cr-shadow-focus: 0 0 0 4px var(--cr-accent-ring);                                            /* focused field */

  /* ---------- Buttons and fields ---------- */
  --cr-button-height: 52px;      /* primary button and email field */
  --cr-button-height-md: 48px;   /* outline button on black */
  --cr-button-height-sm: 44px;   /* header button; also the smallest tap target allowed */
  --cr-button-pad: var(--cr-space-6);     /* left and right inside a primary button or field */
  --cr-button-pad-sm: var(--cr-space-5);  /* left and right inside a small button: about half its height */
  --cr-button-radius: var(--cr-radius-pill);
  --cr-button-weight: var(--cr-weight-semibold);  /* one step above body text */

  /* ---------- Wordmark ---------- */
  --cr-wordmark-font: var(--cr-font);
  --cr-wordmark-weight: var(--cr-weight-semibold);
  --cr-wordmark-size: 1.25rem;   /* 20px in the header */
  --cr-wordmark-tracking: var(--cr-tracking-wordmark);
  --cr-wordmark-color: var(--cr-ink);

  /* ---------- Motion ---------- */
  --cr-duration-fast: .12s;   /* hover */
  --cr-duration-press: .06s;  /* press */
  --cr-duration: .2s;         /* small moves: the FAQ arrow */
  --cr-duration-float: 6s;    /* the slow float of the phones */
  --cr-ease: ease;
}
