/* ============================================================
   Innovating with AI — Brand foundation (design tokens)
   ------------------------------------------------------------
   PORTABLE. Copy this file verbatim into any new sales-page
   project, link it FIRST (before your page styles), and build
   on the CSS variables below. This is the single source of
   truth for color, type, spacing, radius, shadow, and motion.

   It is a verbatim copy of the production token file used by
   the Ethical AI Foundations sales page. Keep the two in sync.

   FONTS: self-hosted (no Google Fonts CDN, no @import). Drop the latin-subset
   .woff2 files into assets/fonts/ (get them from google-webfonts-helper or
   Fontsource — only the weights you use), and preload the 1–2 above-the-fold
   faces in each page's <head>. The @font-face rules below expect the exact
   filenames Figtree v9 / Libre Baskerville v24 produce; adjust if your export
   differs. unicode-range scopes them to latin (add a latin-ext set later as a
   drop-in). See kit/AGENTS.md §9.
   ============================================================ */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/figtree-v9-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/figtree-v9-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/figtree-v9-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: italic; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/figtree-v9-latin-600italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/figtree-v9-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: italic; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/figtree-v9-latin-700italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/libre-baskerville-v24-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/libre-baskerville-v24-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/libre-baskerville-v24-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* NOTE: there is deliberately no Libre Baskerville 700-italic @font-face.
   The family ships Regular 400, Italic 400 and Bold 700 only — there is no
   bold-italic cut, and no libre-baskerville-v24-latin-700italic.woff2 exists
   to point at. The declaration used to be here and 404'd on every page load;
   removing it changes nothing visually (the browser already synthesised a
   faux-bold from the 400 italic) and drops one failed request.
   This same dead rule is still present in the AIEX/Foundations copies of this
   file — fix it there too when syncing. */

:root {
  /* --- Brand blues --- */
  --iwai-blue:        #00538c; /* primary brand blue: logo, links, italic accents */
  --iwai-blue-600:    #03467a; /* hover/darken for primary blue */
  --iwai-navy:        #08365b; /* deep navy: primary buttons, founder card */
  --iwai-navy-900:    #062842; /* darkest navy: button hover, ink-on-sand headings */
  --iwai-blue-tint:   #e3ebf2; /* pale blue-gray: input fills, quiet surfaces */

  /* --- Warm neutrals (paper) --- */
  --iwai-sand:        #efeadd; /* signature cream: hero, cards, footer */
  --iwai-sand-200:    #f5f1e8; /* lighter cream for nested surfaces */
  --iwai-paper:       #f9f9f9; /* cool off-white panel */
  --iwai-white:       #ffffff;

  /* --- Accent --- */
  --iwai-yellow:      #ffcc01; /* marker-highlight gold — used sparingly */
  --iwai-yellow-soft: #fff0b8; /* soft wash of the same gold */

  /* --- Ink & grays --- */
  --iwai-ink:         #111111; /* primary text */
  --iwai-charcoal:    #333333; /* dark section band */
  --iwai-gray-700:    #3f4a54;
  --iwai-gray-600:    #5f6b76; /* secondary / muted text */
  --iwai-gray-400:    #9aa4ad; /* placeholder, disabled */
  --iwai-gray-200:    #dce3ea; /* hairline borders */
  --iwai-gray-100:    #eef1f4;

  /* --- Status (derived, used lightly) --- */
  --iwai-success:     #1f7a4d;
  --iwai-warning:     #b8860b;
  --iwai-danger:      #b3261e;

  /* --- Semantic aliases — prefer these in components --- */
  --surface-page:     var(--iwai-white);
  --surface-sand:     var(--iwai-sand);
  --surface-card:     var(--iwai-sand);
  --surface-panel:    var(--iwai-paper);
  --surface-inverse:  var(--iwai-navy);
  --surface-field:    var(--iwai-white);

  --text-body:        var(--iwai-ink);
  --text-muted:       var(--iwai-gray-600);
  --text-subtle:      var(--iwai-gray-600); /* was gray-400; darkened to meet WCAG AA 4.5:1 for small text */
  --text-on-dark:     var(--iwai-white);
  --text-link:        var(--iwai-blue);

  --brand-primary:    var(--iwai-blue);
  --brand-deep:       var(--iwai-navy);
  --accent:           var(--iwai-yellow);

  --border-color:     var(--iwai-gray-200);
  --border-strong:    var(--iwai-gray-400);

  --focus-ring:       color-mix(in srgb, var(--iwai-blue) 45%, transparent);

  /* --- Families --- */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans:  'Figtree', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: var(--font-serif); /* big marketing headlines, quotes */
  --font-heading: var(--font-serif); /* section titles */
  --font-body:    var(--font-sans);  /* paragraphs, UI, labels */

  /* --- Weights --- */
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  /* --- Type scale (display sizes lean large & confident) --- */
  --fs-display-2xl: 64px;  /* hero headline */
  --fs-display-xl:  52px;
  --fs-display-lg:  40px;  /* section headline */
  --fs-display-md:  32px;
  --fs-h1:          30px;
  --fs-h2:          24px;
  --fs-h3:          20px;
  --fs-body-lg:     19px;
  --fs-body:        17px;
  --fs-body-sm:     15px;
  --fs-caption:     13px;
  --fs-overline:    12px;

  /* --- Line heights --- */
  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.55;
  --lh-relaxed: 1.7;

  /* --- Letter spacing --- */
  --ls-display:  -0.01em;
  --ls-tight:    -0.015em;
  --ls-normal:   0;
  --ls-overline: 0.14em;

  /* --- Spacing scale (4px base) --- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- Radii --- */
  --radius-sm:   6px;
  --radius-md:   10px;  /* inputs, small cards */
  --radius-lg:   16px;  /* program cards, image frames */
  --radius-xl:   24px;
  --radius-pill: 999px; /* primary CTA buttons, badges */

  /* --- Borders --- */
  --border-width: 1px;
  --border-hairline: 1px solid var(--border-color);

  /* --- Shadows (soft, low-contrast; never harsh) --- */
  --shadow-xs: 0 1px 2px rgba(9, 54, 91, 0.06);
  --shadow-sm: 0 2px 6px rgba(9, 54, 91, 0.08);
  --shadow-md: 0 10px 24px rgba(9, 54, 91, 0.10);
  --shadow-lg: 0 22px 48px rgba(9, 54, 91, 0.14);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  /* --- Layout --- */
  --container-max: 1120px;
  --container-narrow: 720px;  /* editorial reading width */
  --gutter: 24px;

  /* --- Motion --- */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* Light reset so bare elements inherit the brand without extra classes. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  color: var(--iwai-navy-900);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-display-lg); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-display-md); }
h3 { font-size: var(--fs-h2); }

p { margin: 0 0 1em; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--iwai-yellow); color: var(--iwai-ink); }
