/* design\system.css: the design tokens, the director's. Every page loads it (the build copies it to
   site\assets\css\system.css; the fonts stay files, which every page preloads: site.mjs fonts, for the first paint's
   speed). No builder or scene maker adds a color, a font or a size outside
   it: they use these tokens, and ask the director for anything new. Colors come from the logo and its lighter and darker
   shades (and the client's current site). Fonts are files in site\assets\fonts\, never loaded from another site. */

@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-standard.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* colors: actions */
  --c-brand: #2563EB;          /* royal: every button and link on light */
  --c-brand-dark: #1A47C2;     /* hover and pressed */
  --c-brand-light: #3B99FC;    /* sky: links and highlights on dark */
  --c-sky: #3FA9F5;            /* the logo's "MORE" */
  --c-accent: #5ADCE4;         /* teal: booked, gained, done (on dark) */
  --c-accent-ink: #0E7C86;     /* teal for text and marks on light */
  --c-ring: linear-gradient(135deg, #5ADCE4 0%, #38B6FF 50%, #024DAE 100%); /* the logo ring: goal rings, highlight words on night */
  --c-ring-a: #5ADCE4; --c-ring-b: #38B6FF; --c-ring-c: #024DAE;

  /* colors: ink and paper */
  --c-ink: #0C2C4D;            /* deep navy: headlines on light */
  --c-navy: #113264;           /* navy: subheads, dark cards */
  --c-ink-soft: #4A5872;       /* body text on light */
  --c-ink-faint: #5E6D83;      /* small print on light (5.3:1 on white) */
  --c-paper: #FFFFFF;
  --c-paper-alt: #F3F9FF;      /* pale ice band */
  --c-ice: #E0F4FF;            /* ice: fills, selected states */
  --c-line: #D6E6F5;           /* hairlines on light */
  --c-on-brand: #FFFFFF;
  /* for the base and arsenal scenes (Part 2): colored text on paper, and text on the ink (--c-ink), each 4.5:1 or more */
  --c-brand-text: #2563EB;     /* royal on white 5.2:1 */
  --c-accent-text: #0E7C86;    /* deep teal on white 5.0:1 */
  --c-on-ink: #FFFFFF;
  --c-brand-on-ink: #3B99FC;   /* sky on deep navy 4.8:1 */
  --c-accent-on-ink: #5ADCE4;  /* teal on deep navy 9.4:1 */

  /* colors: night */
  --c-night: #060328;          /* the deepest band, footer base */
  --c-night-2: #061956;        /* the night gradient's lighter end */
  --g-night: linear-gradient(160deg, #061956 0%, #060328 100%);
  --c-on-night: #FFFFFF;
  --c-on-night-soft: #B9C8E6;  /* body text on night */
  --c-line-night: rgba(255, 255, 255, 0.14);

  /* colors: states inside pictures */
  --c-missed: #E5484D;         /* a missed call only */
  --c-gap: #F59E0B;            /* a gap to fix only */
  --c-star: #FBBC04;           /* review stars, as Google shows them */
  --c-slot: rgba(12, 44, 77, 0.22);       /* an empty slot's dashed outline on light */
  --c-slot-night: rgba(255, 255, 255, 0.28); /* an empty slot's dashed outline on dark or glass */

  /* glass (style 1 cards over footage) */
  --glass-bg: rgba(8, 24, 64, 0.38);
  --glass-bg-light: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(20px) saturate(1.5);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 18px 40px rgba(2, 8, 30, 0.35);

  /* scoreboard tiles */
  --tile-top: #0E1F4D;
  --tile-bottom: #0A1739;
  --tile-line: rgba(0, 0, 0, 0.55);
  --tile-text: #FFFFFF;
  --tile-text-dim: #5E6E91;

  /* type */
  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-num: 'Archivo', 'Segoe UI', system-ui, sans-serif; /* use with font-stretch: var(--stretch-num) and tabular-nums */
  --stretch-display: 112%;
  --stretch-num: 75%;
  --fw-display: 800;
  --fw-num: 700;
  --fs-display: clamp(2.6rem, 1.55rem + 3.7vw, 4.6rem);  /* the home H1 */
  --fs-h1: clamp(2.3rem, 1.5rem + 2.8vw, 3.75rem);       /* inner page H1 */
  --fs-h2: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);      /* the line under a headline */
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-ui: 0.9375rem;
  --fs-num-xl: clamp(3rem, 2rem + 4vw, 5.5rem);          /* the big result number */
  --fs-num-l: clamp(2rem, 1.5rem + 2vw, 3rem);
  --lh-tight: 1.02;
  --lh-snug: 1.18;
  --lh-body: 1.6;
  --ls-display: -0.022em;
  --ls-caps: 0.08em;

  /* type inside scenes (never smaller than 13px as shown) */
  --fs-scene-xl: 34px;
  --fs-scene-l: 22px;
  --fs-scene-m: 17px;
  --fs-scene-s: 14px;
  --fs-scene-xs: 13px;

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 136px);
  --max-w: 1200px;
  --header-h: 76px;

  /* corners and shadows */
  --radius-tile: 6px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgba(6, 25, 86, 0.08), 0 2px 6px rgba(6, 25, 86, 0.06);
  --shadow-m: 0 8px 20px rgba(6, 25, 86, 0.10), 0 2px 4px rgba(6, 25, 86, 0.06);
  --shadow-l: 0 28px 64px rgba(6, 25, 86, 0.20), 0 8px 20px rgba(6, 25, 86, 0.10);
  --shadow-cta: 0 10px 24px rgba(37, 99, 235, 0.35);
  --ring-focus: 0 0 0 3px #FFFFFF, 0 0 0 5px #2563EB;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;
}

/* The base: the page's own type and color, from the tokens. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-paper); color: var(--c-ink); font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body); }
img, video, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-display); font-stretch: var(--stretch-display); letter-spacing: var(--ls-display); line-height: var(--lh-tight); text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-s); }
