/* ============================================================
   Unlock — Design Tokens
   Colors, type, spacing, radii, shadows, motion.
   Imported by every kit + slide template.
   ============================================================ */

/* Geist — modern grotesk (Vercel). Instrument Serif — editorial italic accents.
   Picked over Inter/Manrope for a more confident, less ubiquitous voice
   that still reads like Linear / Stripe / Raycast / Notion. */
/* Production (unlockexpertise.online/v2): the fonts are served from this
   origin, not from Google Fonts — loading those sends every visitor's IP to
   Google before they answered the cookie banner. Instrument Serif is NOT
   loaded: it has no Cyrillic, so her Ukrainian accents (<em class="serif">)
   already fell back to the serif below; only the Latin «Unlock.» changes. Same files
   the product's landing pages use (Geist, OFL; apps/web/public/landing-fonts
   in the app repo) and the geist package's Geist Mono. File names carry a
   content hash, so a changed font is a new URL. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/v2/assets/fonts/geist-400-900-cyrillic.6129fc85.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/v2/assets/fonts/geist-400-900-latin-ext.58a6b173.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/v2/assets/fonts/geist-400-900-latin.9b6f5ff4.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/v2/assets/fonts/geist-mono-variable.fba8f577.woff2') format('woff2'); }

:root {
  /* ── Brand colors ─────────────────────────────────────────── */
  --brand-600: #2D43D2;          /* primary indigo — anchor */
  --brand-500: #3F58E8;
  --brand-700: #1E32B4;
  --brand-400: #6B7DF0;
  --brand-100: #EEF1FF;          /* faint indigo wash */
  --brand-50:  #F4F7FF;
  --accent-violet: #8F31EA;      /* gradient partner */
  --accent-violet-50: #F3E9FE;

  /* Signature gradient (hero, CTA, key surfaces) */
  --grad-brand: linear-gradient(135deg, #2D43D2 0%, #8F31EA 100%); /* @kind color */
  --grad-brand-soft: linear-gradient(135deg, #EEF1FF 0%, #F3E9FE 100%); /* @kind color */
  --grad-wash: linear-gradient(180deg, #FFFFFF 0%, #F4F7FF 100%); /* @kind color */

  /* ── Neutral scale ────────────────────────────────────────── */
  --ink-1000: #0A0F1D;           /* near-black, primary text */
  --ink-900:  #14192A;
  --ink-800:  #1A202C;
  --ink-700:  #2D3142;
  --ink-600:  #4B5163;
  --ink-500:  #5B6069;           /* muted body */
  --ink-400:  #656B7A;
  --ink-300:  #878D9C;
  --ink-200:  #CDD9FF;           /* indigo-tinted divider */
  --ink-150:  #D7DBE6;
  --ink-100:  #E4E7EE;
  --ink-50:   #F2F4F8;
  --paper:    #FFFFFF;
  --canvas:   #FAFBFD;

  /* ── Semantic tokens ──────────────────────────────────────── */
  --fg-primary: var(--ink-1000);
  --fg-secondary: var(--ink-500);
  --fg-muted: var(--ink-400);
  --fg-inverse: #FFFFFF;
  --fg-brand: var(--brand-600);

  --bg-page: var(--paper);
  --bg-surface: var(--paper);
  --bg-elevated: var(--paper);
  --bg-tint: var(--brand-50);
  --bg-tint-strong: var(--brand-100);
  --bg-inverse: var(--ink-1000);

  --border-subtle: rgba(10, 15, 29, 0.06);
  --border-default: rgba(10, 15, 29, 0.10);
  --border-strong: rgba(10, 15, 29, 0.18);
  --border-brand: rgba(45, 67, 210, 0.24);

  /* States */
  --success: #10A37F;
  --warning: #F5A524;
  --danger:  #E5484D;
  --info:    var(--brand-600);

  /* ── Typography ───────────────────────────────────────────── */
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale — refined: light display weights, air, hierarchy via size/color */
  --t-display-xl: 76px;
  --t-display-lg: 60px;
  --t-display-md: 48px;
  --t-display-sm: 38px;
  --t-h1: 36px;
  --t-h2: 28px;
  --t-h3: 22px;
  --t-h4: 18px;
  --t-h5: 16px;
  --t-body-lg: 17px;
  --t-body: 15.5px;
  --t-body-sm: 14px;
  --t-caption: 12.5px;
  --t-micro: 11px;

  /* Slightly more air on display; comfortable body */
  --lh-display: 1.04; /* @kind font */
  --lh-heading: 1.15; /* @kind font */
  --lh-body: 1.6; /* @kind font */
  --lh-tight: 1.25; /* @kind font */

  /* Tighter tracking offsets the lighter weight at large sizes */
  --tr-display: -0.04em; /* @kind font */
  --tr-heading: -0.025em; /* @kind font */
  --tr-eyebrow: 0.1em; /* @kind font */

  /* ── Spacing scale (4-based) ──────────────────────────────── */
  --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;

  /* Section / layout */
  --container: 1200px; /* @kind spacing */
  --container-wide: 1280px; /* @kind spacing */
  --section-y: 120px; /* @kind spacing */
  --section-y-sm: 80px; /* @kind spacing */

  /* ── Radii ────────────────────────────────────────────────── */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 18px;
  --r-5: 24px;
  --r-6: 32px;
  --r-pill: 999px;

  /* ── Shadow / elevation ──────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(10,15,29,0.04), 0 1px 1px rgba(10,15,29,0.03);
  --shadow-2: 0 4px 12px rgba(10,15,29,0.06), 0 1px 3px rgba(10,15,29,0.04);
  --shadow-3: 0 12px 32px rgba(10,15,29,0.08), 0 2px 8px rgba(10,15,29,0.04);
  --shadow-4: 0 24px 60px rgba(10,15,29,0.10), 0 8px 20px rgba(10,15,29,0.06);
  --shadow-brand: 0 14px 40px rgba(45,67,210,0.28), 0 4px 12px rgba(45,67,210,0.18);
  --ring-focus: 0 0 0 4px rgba(45,67,210,0.18);

  /* ── Motion ───────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-1: 120ms; /* @kind other */
  --dur-2: 200ms; /* @kind other */
  --dur-3: 320ms; /* @kind other */
  --dur-4: 520ms; /* @kind other */
}

/* ── Base reset (opt-in helpers) ───────────────────────────── */
.unlock-reset, .unlock-reset * { box-sizing: border-box; }

.unlock-base {
  font-family: var(--font-sans);
  color: var(--fg-primary);
  background: var(--bg-page);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Type primitives ──────────────────────────────────────── */
.u-display-xl,
.u-display-lg,
.u-display-md,
.u-display-sm,
.u-h1, .u-h2, .u-h3, .u-h4, .u-h5 {
  font-family: var(--font-display);
  font-weight: 500;             /* refined: 500 medium everywhere — hierarchy via size + color */
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--fg-primary);
  margin: 0;
  text-wrap: balance;
}
.u-display-xl { font-size: var(--t-display-xl); }
.u-display-lg { font-size: var(--t-display-lg); }
.u-display-md { font-size: var(--t-display-md); }
.u-display-sm { font-size: var(--t-display-sm); }
.u-h1 { font-size: var(--t-h1); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.u-h2 { font-size: var(--t-h2); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.u-h3 { font-size: var(--t-h3); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.u-h4 { font-size: var(--t-h4); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); }
.u-h5 { font-size: var(--t-h5); line-height: var(--lh-heading); }

.u-body-lg, .u-body, .u-body-sm {
  font-family: var(--font-sans);
  color: var(--fg-secondary);
  line-height: var(--lh-body);
  margin: 0;
  text-wrap: pretty;
}
.u-body-lg { font-size: var(--t-body-lg); }
.u-body    { font-size: var(--t-body); }
.u-body-sm { font-size: var(--t-body-sm); }

.u-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-caption);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-brand);
}

.u-mono { font-family: var(--font-mono); font-size: 13px; }

/* Gradient text — for hero punch words */
.u-grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Editorial italic accent — Instrument Serif. Reserved for ONE word per page,
   used at the most editorial moment (hero). Optical size slightly larger to
   match Geist's x-height. */
.u-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 1.12em;
  line-height: 0.92;
}
