/* =========================================================
   DealCloser Autopilot: design tokens + shared primitives
   ---------------------------------------------------------
   Ink + cobalt + signal lime. Geist / Instrument Serif / Geist Mono.
   Shared by the home page (assets/dc-home.css) and any other page that
   wants the same look (for example the Enterprise intake form).

   Load order on a page:
     1. Google Fonts: Geist (400-700), Geist Mono (400, 500), Instrument Serif (italic + regular)
     2. /assets/dc-tokens.css   (this file: tokens, reset, type, buttons, focus, skip link)
     3. page css

   Rules: no em-dashes in copy, never invent numbers or reviews.
   ========================================================= */

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  /* ---- Color: surfaces ---- */
  --ink: #06070B;            /* page background */
  --ink-2: #0B0D14;          /* cards, panels */
  --ink-3: #12151F;          /* raised / inner surfaces */
  --panel: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.08);     /* hairlines */
  --line-2: rgba(255,255,255,.14);   /* stronger borders */

  /* ---- Color: text ---- */
  --text: #EEF0F6;
  --muted: #A2A7B8;          /* 8.3:1 on --ink */
  --dim: #8189A0;            /* 5.5:1 on --ink, use for small meta text only */

  /* ---- Color: brand ---- */
  --cobalt: #3D63FF;
  --cobalt-2: #7D9BFF;       /* links, eyebrow text, accents on dark */
  --violet: #8A5CFF;
  --signal: #C8F53C;         /* primary action color */
  --signal-ink: #1A2300;     /* text on --signal */
  --danger: #FF6B6B;
  --claude: #F0A784;         /* Claude section accent */

  /* ---- Type ---- */
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-h2: clamp(32px, 5.2vw, 64px);
  --fs-hero: clamp(38px, 7.2vw, 100px);

  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 120px;
  --gutter: 24px;             /* page side padding (18px under 720px) */
  --wrap: 1200px;             /* content max width */
  --section-y: clamp(64px, 9vw, 120px);

  /* ---- Shape + motion ---- */
  --radius: 20px;
  --radius-lg: 28px;
  --tap: 44px;                /* minimum touch target */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* ---- Layout helpers ---- */
  --nav-h: 72px;              /* fixed header height incl. padding, for scroll-padding */

  color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 18px; --nav-h: 68px; } }

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-sans); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--signal); color: var(--signal-ink); padding: 12px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
section { position: relative; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-2);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.h2 em { color: var(--cobalt-2); font-size: 1.08em; }
.lede { color: var(--muted); font-size: clamp(16.5px, 1.4vw, 19px); max-width: 60ch; margin: 22px 0 0; text-wrap: pretty; }
.lede a { color: var(--text); text-decoration-color: var(--cobalt); text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap);
  font: 600 15.5px/1.1 var(--f-sans); letter-spacing: -.005em; text-decoration: none; text-align: center;
  border-radius: 999px; padding: 14px 24px; border: 1px solid transparent; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s, box-shadow .3s, color .25s;
  isolation: isolate; overflow: hidden;
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-lg { padding: 17px 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 0 0 0 rgba(200,245,60,0), 0 10px 30px -12px rgba(200,245,60,.55); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120px circle at var(--hx, 50%) var(--hy, 50%), rgba(255,255,255,.65), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: .55; }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(200,245,60,.12), 0 18px 40px -14px rgba(200,245,60,.7); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

/* ---------- Form primitives (for the intake form and calculator) ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.input {
  width: 100%; min-height: var(--tap); padding: 12px 14px; border-radius: 12px;
  background: var(--ink-3); border: 1px solid var(--line-2); color: var(--text);
  font: 400 16px/1.4 var(--f-sans);   /* 16px stops iOS zoom on focus */
}
.input::placeholder { color: var(--dim); }
.input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
