/* ==========================================================================
   Drawn AI — base.css
   Design tokens, reset, typography, layout primitives, buttons
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand blues */
  --blue-300: #A9BCFF;
  --blue-400: #7E9BFF;
  --blue-500: #4A6CFA;
  --blue-550: #4163F1;     /* AA on light surfaces — eyebrows, small accent text */
  --blue-600: #2E56F0;
  --blue-700: #1E40D8;

  /* Ink / dark surfaces */
  --ink-950: #00040F;
  --ink-900: #000616;
  --ink-850: #000A25;
  --ink-800: #041133;
  --ink-750: #071A45;
  --ink-700: #0B2258;

  /* Light surfaces */
  --paper: #FFFFFF;
  --paper-50: #FAFAFC;
  --paper-100: #F5F5F9;
  --paper-200: #EEF0F6;

  /* Text */
  --text-strong: #0A1020;
  --text: #1C2438;
  --text-muted: #5B6780;
  --text-faint: #6B7487;   /* WCAG AA on white and on --paper-50 */
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #A9B4CC;
  --text-on-dark-faint: #8C9AB7;  /* AA on the dark bands and panels */

  /* Lines */
  --line: #E4E7EF;
  --line-strong: #D3D8E5;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-dark-strong: rgba(255, 255, 255, 0.16);

  /* Semantic */
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #DE3333;          /* AA on white for the required-field marker */
  --violet: #8B5CF6;
  --cyan: #22D3EE;

  /* Effects */
  --glow-blue: 0 0 0 1px rgba(74, 108, 250, .35), 0 18px 50px -18px rgba(46, 86, 240, .65);
  --shadow-sm: 0 1px 2px rgba(10, 16, 32, .05);
  --shadow-md: 0 6px 20px -8px rgba(10, 16, 32, .14), 0 2px 6px rgba(10, 16, 32, .05);
  --shadow-lg: 0 24px 60px -24px rgba(10, 16, 32, .22), 0 6px 18px -8px rgba(10, 16, 32, .10);
  --shadow-dark: 0 30px 70px -30px rgba(0, 0, 0, .9);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --container-wide: 1400px;
  --gutter: 24px;
  --nav-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* Page loader: how long the screen holds, then how long it dissolves */
  --loader-hold: .5s;
  --loader-fade: .25s;
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --nav-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ==========================================================================
   Branded scrollbar
   Chrome 121+ lets the standard properties win over ::-webkit-scrollbar, which
   would drop the gradient thumb — so the standard properties are scoped to
   engines without the WebKit pseudo-element (Firefox), and Blink/WebKit get
   the richer treatment below.
   ========================================================================== */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--blue-500) var(--ink-850); }
  .scroll-light { scrollbar-color: var(--blue-500) var(--paper-200); }
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track {
  background: var(--ink-850);
  border-left: 1px solid rgba(255, 255, 255, .06);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
  border-radius: 99px;
  border: 2px solid var(--ink-850);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #93A9FF, var(--blue-500));
  background-clip: padding-box;
  border: 2px solid var(--ink-850);
}
::-webkit-scrollbar-corner { background: var(--ink-850); }

/* Scroll containers inside light sections keep a lighter rail */
.scroll-light::-webkit-scrollbar-track { background: var(--paper-200); border-left: 0; }
.scroll-light::-webkit-scrollbar-thumb { border-color: var(--paper-200); }
html.lenis, html.lenis body { height: auto; }
/* Whenever Lenis is driving the page, native smooth scrolling must be off or the
   two fight each other — every programmatic jump animates and can be interrupted.
   Lenis only guarantees the `lenis` class, so guard on that, not `lenis-smooth`. */
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(74, 108, 250, .28); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.h-display {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); letter-spacing: -0.03em; font-weight: 800; }
.h2 { font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.5rem); letter-spacing: -0.028em; font-weight: 800; }
.h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); letter-spacing: -0.02em; font-weight: 700; }
.h4 { font-size: 1.125rem; letter-spacing: -0.015em; font-weight: 700; }
.h5 { font-size: 1rem; letter-spacing: -0.01em; font-weight: 700; }

.lede {
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
}
.dark .lede, .is-dark .lede, .hero .lede, .cta-band .lede { color: var(--text-on-dark-muted); }

.eyebrow {
  display: inline-block;
  color: var(--blue-550);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-550);
}
.is-dark .eyebrow, .hero .eyebrow { color: var(--blue-400); }

.accent { color: var(--blue-550); }
.is-dark .accent, .hero .accent, .cta-band .accent { color: var(--blue-400); }
.is-dark .accent { color: var(--blue-400); }
.muted { color: var(--text-muted); }
.is-dark .muted, .hero .muted { color: var(--text-on-dark-muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }

.section { padding-block: clamp(56px, 5vw, 96px); position: relative; }
.section-sm { padding-block: clamp(40px, 3.5vw, 64px); }
.section-lg { padding-block: clamp(72px, 6.5vw, 128px); }

.bg-paper { background: var(--paper); }
.bg-paper-50 { background: var(--paper-50); }
.bg-paper-100 { background: var(--paper-100); }

.is-dark {
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
}
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4, .is-dark h5 { color: var(--text-on-dark); }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 3vw, 56px); }
.section-head .h2 { margin-top: 10px; }
.section-head .lede { margin-top: 14px; }
.section-head.left { margin-inline: 0; text-align: left; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: minmax(0, 1fr); }
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-40{margin-top:40px}
.center { text-align: center; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.is-dark .divider { background: var(--line-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  /* darker start point so white label text clears 4.5:1 across the whole gradient */
  background: linear-gradient(135deg, #3B5EF5 0%, var(--blue-700) 100%);
  box-shadow: 0 10px 30px -12px rgba(46, 86, 240, .8);
}
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(46, 86, 240, .9); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, .03);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .38); }

.btn-ghost {
  background: #fff;
  color: var(--text-strong);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }

.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  color: var(--blue-550);
  transition: gap .3s var(--ease-out), color .25s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.link-arrow:hover { gap: 12px; color: var(--blue-600); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Small shared bits ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, .035);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #DCE3F5;
  backdrop-filter: blur(10px);
}

.check-list { display: grid; gap: 10px; }
.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  width: 16px; height: 16px;
  margin-top: 3px;
  background: var(--green);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list.blue li::before { background: var(--blue-500); }
.is-dark .check-list li, .hero .check-list li { color: var(--text-on-dark-muted); }

.tick-list { display: grid; gap: 12px; }
.tick-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: center;
  font-size: .925rem;
}
.tick-list li .tick {
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue-500);
  display: grid; place-items: center; flex: none;
}
.tick-list li svg { width: 11px; height: 11px; color: #fff; }

/* utility to hide visually but keep for a11y */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Reveal animation base (JS adds .is-in) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ==========================================================================
   Interior page hero — single column, no dashboard collage
   ========================================================================== */
.hero-lead .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-lead .hero-copy {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}
.hero-lead .hero-copy .lede {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(1.02rem, .96rem + .32vw, 1.2rem);
}
.hero-lead .h-display { font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.35rem); }
.hero-lead .hero-actions { justify-content: center; }
.hero-lead .hero-points { justify-content: center; }
.hero-lead { padding-bottom: clamp(48px, 5vw, 78px); }
.hero-lead .hero-strip { margin-top: clamp(38px, 4.5vw, 64px); }
/* the strip carries more weight here — it is the hero's supporting content */
.hero-lead .hero-strip .feat { padding: 20px 20px 22px; grid-template-columns: 44px 1fr; }
.hero-lead .hero-strip .feat-icon { width: 44px; height: 44px; }
.hero-lead .hero-strip h4 { font-size: 1rem; }
.hero-lead .hero-strip p { font-size: .84rem; color: var(--text-on-dark-muted); margin-top: 7px; }
