/* iGMS web design system v3 · tokens (20 Nov 2026)
   Built on Ramp's measured system (benchmarks/SPEC.md): one typeface at one weight, near-black ink with a 60% "hushed"
   tone, white and sand grounds, one dark ground, one accent, hairlines instead of shadows, 4 px spacing, 64 px gutters,
   128 px section rhythm. Adapted to iGMS: Geist (closest free match to Ramp's Lausanne, benchmarks/font-test*.png)
   and the iGMS amber from the logo as the one accent.
   Fluid values run from a 390 px phone to a 1440 px desktop: min + (max − min) × (100vw − 390px) / 1050. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Arial (or Liberation Sans) resized to Geist 480's advance width (+4.9%; measured on running text, tools/cls_slowfont.js)
   with Geist's vertical metrics, so the swap moves almost nothing. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 104.9%;
  ascent-override: 95.8%;
  descent-override: 28.1%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* ── Type ─────────────────────────────────────────────────────────────── */
  --gm-font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gm-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gm-w: 480;            /* the one weight: Geist 480 carries the same ink as Ramp's Lausanne 400 (benchmarks/font-test2.png, h1 crops) */
  --gm-w-strong: 620;     /* bold lead-ins inside running text only */

  /* size / line-height pairs, phone → desktop (Ramp at 390 and 1440 in brackets) */
  --gm-fs-display: clamp(40px, 31.09px + 2.286vw, 64px);   --gm-lh-display: clamp(42px, 33.83px + 2.095vw, 64px);  /* 40/42 → 64/64 */
  --gm-fs-xl:      clamp(34px, 28.8px + 1.333vw, 48px);    --gm-lh-xl:      clamp(38px, 33.54px + 1.143vw, 50px);  /* 34/38 → 48/50: section H2, compare H1 */
  --gm-fs-l:       clamp(28px, 23.54px + 1.143vw, 40px);   --gm-lh-l:       clamp(32px, 27.54px + 1.143vw, 44px);  /* 28/32 → 40/42: answer H1, split H2 */
  --gm-fs-t1:      clamp(22px, 19.77px + .571vw, 28px);    --gm-lh-t1:      clamp(26px, 23.77px + .571vw, 32px);   /* 22/26 → 28/32 */
  --gm-fs-t2:      clamp(20px, 18.51px + .381vw, 24px);    --gm-lh-t2:      clamp(24px, 22.51px + .381vw, 28px);   /* 20/24 → 24/28 */
  --gm-fs-t3:      clamp(18px, 17.26px + .19vw, 20px);     --gm-lh-t3:      clamp(23px, 21.51px + .381vw, 27px);   /* 18/22 → 20/26 */
  --gm-fs-lead:    clamp(17px, 15.89px + .286vw, 20px);    --gm-lh-lead:    clamp(24px, 22.89px + .286vw, 27px);   /* 17/23 → 20/26 */
  --gm-fs-body:    clamp(15px, 14.63px + .095vw, 16px);    --gm-lh-body:    clamp(22px, 21.63px + .095vw, 23px);   /* 15/21 → 16/22 */
  --gm-fs-read:    clamp(17px, 16.63px + .095vw, 18px);    --gm-lh-read:    clamp(28px, 27.26px + .19vw, 30px);    /* article text: 18/30 */
  --gm-fs-quote:   clamp(22px, 19.03px + .762vw, 30px);    --gm-lh-quote:   clamp(28px, 25.03px + .762vw, 36px);
  --gm-fs-stat:    clamp(44px, 39.54px + 1.143vw, 56px);
  --gm-fs-sm: 14px;   --gm-lh-sm: 20px;
  --gm-fs-xs: 13px;   --gm-lh-xs: 19px;
  --gm-fs-eyebrow: 11px; --gm-lh-eyebrow: 16px; --gm-ls-eyebrow: .08em;

  /* tracking: Geist set 1.3% tighter than its default matches Lausanne's word widths at display sizes */
  --gm-ls-display: -.012em;
  --gm-ls-head: -.012em;
  --gm-ls-title: -.008em;
  --gm-ls-body: -.002em;

  /* ── Colour ───────────────────────────────────────────────────────────── */
  --gm-ink: #0c0a08;                    /* text, black buttons on light                      19.9:1 on white */
  --gm-ink-60: rgba(12, 10, 8, .6);     /* the hushed tone: run-on sentences, subheads, body  5.2:1 on white, 4.9:1 on sand */
  --gm-ink-45: rgba(12, 10, 8, .45);    /* placeholders, disabled, decorative only (not text that must be read) */
  --gm-ink-10: rgba(12, 10, 8, .1);     /* hairlines in tables, card borders */
  --gm-ink-05: rgba(12, 10, 8, .05);    /* pressed / soft fills */
  --gm-ink-03: rgba(12, 10, 8, .024);   /* ghost button fill */
  --gm-paper: #ffffff;
  --gm-sand: #f4f2f0;                   /* cards, bands, stages (Ramp grayLight) */
  --gm-chalk: #fbfaf9;                  /* stat cards on sand */
  --gm-line: #d2cecb;                   /* inputs, outlined buttons, card edges (Ramp border-primary) */
  --gm-night: #1a1919;                  /* the one dark ground: dark sections, footer, black buttons */
  --gm-night-2: #252423;                /* raised surface on night */
  --gm-on-night: #ffffff;
  --gm-on-night-60: rgba(255, 255, 255, .6);   /* 7.0:1 on night */
  --gm-on-night-20: rgba(255, 255, 255, .2);
  --gm-on-night-10: rgba(255, 255, 255, .1);

  --gm-amber: #ffc107;                  /* THE accent (iGMS logo): primary buttons, small marks, the iGMS column */
  --gm-amber-hover: #f5b400;
  --gm-amber-press: #e9a900;
  --gm-on-amber: #0c0a08;               /* 12.6:1 */
  --gm-amber-soft: #fff6d9;             /* highlight wash (Ramp solarLight role) */
  --gm-amber-text: #8a5a00;             /* amber-family text on light, 5.9:1; never amber itself on white */

  --gm-yes: #2f9e5b;                    /* functional only: check marks in tables */
  --gm-no: #c9c5c1;                     /* functional only: "not included" marks */
  --gm-daylight: linear-gradient(180deg, #d4e0f2 18%, #eef2f8 70%, #f6f7fa 100%);   /* product stage behind phones */
  --gm-dawn: linear-gradient(180deg, #f6efe4 0%, #f7f4ef 60%, #f8f7f5 100%);        /* warm stage variant */

  --gm-focus: #0c0a08;                  /* focus ring on light; on night it is amber */

  /* ── Space (4 px base) ───────────────────────────────────────────────── */
  --gm-s1: 4px;  --gm-s2: 8px;  --gm-s3: 12px; --gm-s4: 16px; --gm-s5: 20px; --gm-s6: 24px;
  --gm-s7: 32px; --gm-s8: 40px; --gm-s9: 48px; --gm-s10: 64px; --gm-s11: 80px; --gm-s12: 96px; --gm-s13: 128px;
  --gm-section: clamp(80px, 62.17px + 4.571vw, 128px);   /* Ramp spacer-l: 80 / 96 / 128 */
  --gm-gap-m:   clamp(40px, 31.09px + 2.286vw, 64px);    /* Ramp spacer-m: 40 / 48 / 64 (heading block → content) */
  --gm-gutter:  clamp(16px, -1.83px + 4.571vw, 64px);    /* page side margin: 16 → 64 */
  --gm-max: 1440px;                                      /* outer frame; content is 1312 at 1440 */
  --gm-center: 960px;                                    /* centred heading blocks */
  --gm-measure: 720px;                                   /* reading column */
  --gm-nav-h: 62px;
  --gm-bar-h: 40px;

  /* ── Radius ──────────────────────────────────────────────────────────── */
  --gm-r-xs: 4px;    /* icon buttons, tags */
  --gm-r-sm: 6px;    /* buttons */
  --gm-r-md: 8px;    /* large buttons, images, tables */
  --gm-r-field: 10px;/* the sign-up field */
  --gm-r-lg: 12px;   /* cards */
  --gm-r-xl: 16px;   /* stages, bento cards */
  --gm-r-page: 24px; /* the white page's bottom corners over the dark footer */
  --gm-r-pill: 999px;

  /* ── Depth (Ramp is flat: shadows only lift product UI inside a stage, and menus) ── */
  --gm-shadow-ui: 0 1px 2px rgba(12, 10, 8, .06), 0 10px 28px -8px rgba(12, 10, 8, .16);
  --gm-shadow-phone: 0 30px 60px -20px rgba(12, 10, 8, .35), 0 12px 24px -12px rgba(12, 10, 8, .25);
  --gm-shadow-pop: 0 18px 50px -12px rgba(12, 10, 8, .22), 0 2px 6px rgba(12, 10, 8, .05);

  /* ── Motion ──────────────────────────────────────────────────────────── */
  --gm-ease: cubic-bezier(.4, 0, .2, 1);
  --gm-ease-out: cubic-bezier(.16, 1, .3, 1);
  --gm-ease-menu: cubic-bezier(.45, .05, .55, .95);
  --gm-t-fast: .15s;
  --gm-t: .24s;
  --gm-t-slow: .5s;
}

@media (prefers-reduced-motion: reduce) {
  :root { --gm-t-fast: 0s; --gm-t: 0s; --gm-t-slow: 0s; }
}
