/* ─────────────────────────────────────────────
   Convert Design Tokens — Single Source of Truth
   Source: New Home/docs/convert-design-system.md
   Apply to ALL Convert LPs and pages.
   ───────────────────────────────────────────── */

:root {
  /* Brand — Blue */
  --color-blue-600: #0066FF;   /* primary action */
  --color-blue-700: #0052CC;   /* primary hover */
  --color-blue-50:  #EEF4FF;   /* blue card bg tint */
  --color-blue-100: #DBEAFE;
  --color-blue-200: #E0E7FF;

  /* Brand — Violet */
  --color-violet-700: #6D28D9; /* links, icons, accents */
  --color-violet-600: #7C3AED; /* stat gradient top */
  --color-violet-800: #5B21B6; /* stat gradient mid */
  --color-violet-900: #4C1D95; /* stat gradient bottom */
  --color-violet-50:  #EDE9FE;
  --color-violet-100: #F5F0FF;
  --color-violet-200: #C4B5FD;

  /* Brand — Green (compliance / privacy) */
  --color-green-50:  #EDFAF5;
  --color-green-400: #6EE7B7;
  --color-green-500: #10B981;  /* emerald — avatar / accent */
  /* green-600 darkened 2026-09-08 (#059669 -> #047857): the old value read at
     3.5:1 on green-50 and 3.8:1 on white, so every small green label failed AA.
     #047857 clears it at 5.1 / 5.5 and still reads as the same brand green on icons. */
  --color-green-600: #047857;

  /* Accents — avatars, status chips */
  --color-orange-50:  #FFF4ED; /* orange chip surface */
  --color-orange-200: #FED7AA; /* orange chip border */
  --color-orange-500: #F97316; /* orange — avatar accent */
  --color-orange-700: #C2410C; /* orange chip text on light surface */
  --color-pink-500:   #EC4899; /* pink — editorial illustration delight accent */
  --color-rose-500:   #F43F5E; /* rose — Data & Tools pillar accent */
  --color-rose-600:   #E11D48; /* rose — pressed/hover */

  /* Brand — Logo wordmark */
  --color-logo:      var(--color-ink-900);  /* Convert wordmark, aliased to ink-900 */

  /* Surfaces — cream (card backgrounds) */
  --color-surface-cream:       #FAFAF7;  /* default cream card bg */
  --color-surface-cream-hover: #F5F4EE;  /* cream card hover state */

  /* Neutrals — Ink scale
     Contrast on white / cream(#FAFAF7) / ink-200(#F4F6F9). Every step down to
     ink-600 clears WCAG AA (4.5:1) for normal text, so any of them is safe on
     prose. ink-500 does NOT — it is decorative only, see its note. */
  --color-ink-900: #2A3442;    /* primary text, headings          — 12.6 / 12.0 / 11.6 */
  --color-ink-800: #3C4659;    /* nav links                       —  9.5 /  9.1 /  8.8 */
  --color-ink-700: #586478;    /* secondary text, descriptions    —  6.0 /  5.7 /  5.5 */
  --color-ink-600: #647084;    /* muted, uppercase labels         —  5.0 /  4.8 /  4.6 */
  /* ink-500 is a DECORATIVE tint (3.1:1 on white) — placeholder strings inside
     UI-mock replicas, ghost wordmarks, disabled affordances. It is below AA for
     text, so it must never carry a sentence, a label or a number the reader is
     meant to read. Real content that looks "quiet" belongs on ink-600. */
  --color-ink-500: #8792A7;    /* decorative / placeholder only   —  3.1 /  3.0 /  2.9 */
  --color-ink-400: #D0D7E1;    /* default card border */
  --color-ink-300: #E7EBF1;    /* section borders, tab bg */
  --color-ink-200: #F4F6F9;    /* subtle navy tint */
  --color-ink-100: #FFFFFF;    /* surface */

  /* Dark (mobile menu only) */
  --color-dark-900: #0D1019;
  --color-dark-800: #1A1A2E;

  /* Semantic aliases */
  --color-bg:               var(--color-ink-100);
  --color-bg-subtle:        var(--color-ink-300);
  --color-surface:          var(--color-ink-100);
  --color-border:           var(--color-ink-400);
  --color-border-subtle:    rgba(207, 217, 230, 0.55);
  --color-border-cream:     #E7E3D9;  /* warm cream-toned border — cards, mocks */
  --color-text-primary:     var(--color-ink-900);
  --color-text-secondary:   var(--color-ink-700);
  --color-text-muted:       var(--color-ink-600);
  --color-text-placeholder: var(--color-ink-500);
  --color-action-primary:   var(--color-blue-600);
  --color-action-hover:     var(--color-blue-700);
  --color-link:             var(--color-violet-700);  /* brand link/accent — aligned to .text-link/.kicker usage (2026-06) */

  /* Chip / pill surfaces — 4 semantic colors */
  --chip-blue-bg:   var(--color-blue-50);    --chip-blue-text:   var(--color-blue-700);   --chip-blue-border:   var(--color-blue-100);
  --chip-violet-bg: var(--color-violet-100); --chip-violet-text: var(--color-violet-700); --chip-violet-border: var(--color-violet-200);
  --chip-green-bg:  var(--color-green-50);   --chip-green-text:  var(--color-green-600);  --chip-green-border:  var(--color-green-400);
  --chip-orange-bg: var(--color-orange-50);  --chip-orange-text: var(--color-orange-700); --chip-orange-border: var(--color-orange-200);

  /* Layout */
  --max-width:       1200px;
  --section-px:      24px;
  --section-py:        96px;   /* desktop section rhythm (was 80) */
  --section-py-mobile: 64px;
  /* Radius — coherence rule: every value is a multiple of 4 */
  --radius-xs:       4px;     /* tags, inner chips */
  --radius-sm:       8px;     /* small elements, navbar buttons */
  --radius-md:       12px;    /* buttons, chips, pills (non-fully-round) */
  --radius-lg:       16px;    /* default cards (was 14px) */
  --radius-xl:       20px;    /* large cards */
  --radius-2xl:      24px;    /* logo / hero cards */
  --radius-pill:     999px;   /* fully-rounded */
  /* Back-compat aliases (existing LPs reference these) */
  --card-radius:     var(--radius-lg);   /* 16px */
  --card-radius-lg:  var(--radius-xl);   /* 20px */
  /* Spacing scale — 4px base */
  --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;
  --card-gap:        20px;
  --navbar-height:   60px;
  --logo-height:     26px;    /* standard height for third-party customer logos */
  --badge-height:    48px;    /* standard height for certification badges (ISO, SOC2, GDPR…) */

  /* Prose widths (single source of truth for centered text columns) */
  --prose-narrow:    540px;   /* forms, focused conversion blocks */
  --prose-default:   720px;   /* section subheads, mid-density copy */
  --prose-wide:      880px;   /* long-form: author bios, FAQ, pitch */

  /* Breakpoints (use as design reference — CSS still uses px values) */
  --bp-mobile:       640px;
  --bp-tablet:       960px;
  --bp-desktop:      1200px;

  /* Shadows */
  --shadow-soft:        0 4px 16px rgba(0,0,0,0.04); /* very soft elevation — feature cards, mini chips */
  --shadow-card:        0 8px 24px rgba(0,0,0,0.08);
  --shadow-card-lift:   0 14px 36px rgba(0,0,0,0.12);
  --shadow-stat:        0 16px 48px rgba(109,40,217,0.22), 0 2px 10px rgba(109,40,217,0.10);
  --shadow-stat-hover:  0 24px 60px rgba(109,40,217,0.25), 0 2px 10px rgba(109,40,217,0.10);
  --shadow-logo-card:   0 4px 16px rgba(109,40,217,0.08), 0 1px 4px rgba(109,40,217,0.04);
  --shadow-btn-primary: 0 8px 24px rgba(0,102,255,0.12);

  /* Type — Geist Sans */
  --font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Geist Mono loaded via Google Fonts (family=Geist+Mono:wght@400;500) only on pages that use reinforcements */
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --shadow-frame: 0 22px 56px rgba(42,52,66,0.16);   /* browser/video/screenshot frames */
  --icon-watermark-opacity: 0.08;

  /* ── Type scale ──
     Raised 2026-09-08 after the first performance read on the new pages: text
     was too small across the board. Every prose step moved up ~2px and the
     clamp minimums moved up hardest, because the mobile end was where the
     scale bottomed out (a 24px H1 and 15px body on a phone).

     RULE: --text-label (12px) is the floor for anything a reader reads.
     Nothing smaller than that is allowed to carry prose, a control label or a
     number that matters. If a design needs smaller text, it is a UI-mock
     replica — use --text-micro and read its note. */
  --text-hero:        clamp(32px, 3.8vw, 52px);
  /* Hero headline when the hero is SPLIT with a visual beside it. The copy
     column is roughly half width there, so the full --text-hero wraps long
     headlines to four lines and leaves the text taller than the visual. */
  --text-hero-split:  clamp(30px, 3.4vw, 48px);
  --text-section:     clamp(28px, 3.2vw, 40px);
  --text-card-title:  22px;   /* was 20 */
  --text-body-lg:     20px;   /* was 18 — section subheads, lead paragraphs */
  --text-body:        17px;   /* was 15 — default reading size for prose */
  --text-ui:          15px;   /* was 14 — buttons, nav, tabs, controls */
  --text-small:       14px;   /* was 13 — captions, author roles, fine print */
  --text-label:       12px;   /* was 11 — uppercase kickers/eyebrows. FLOOR. */
  --text-caption:     var(--text-small);
  /* UI-mock replicas ONLY — the miniature Convert app screenshots embedded in
     zig-zag and bento visuals. Those are pictures of an interface, so their
     labels scale with the mock, not with the reading scale; enlarging them
     breaks the mock's layout and stops it reading as a screenshot. Never use
     --text-micro for page prose. Because it is below the readable floor,
     anything set at this size must still clear AA on colour (ink-600 or
     darker) so the mock stays legible as an image. */
  --text-micro:       11px;

  /* ── Motion ──
     Built-in CSS easings are too weak for deliberate motion. Pick by intent:
     entering/exiting → --ease-out; moving on screen → --ease-in-out;
     panels sliding in → --ease-drawer; constant motion (marquee) → linear.
     `ease-in` is never correct on UI — it starts slow, delaying the exact
     moment the user is watching. UI motion stays at or under 300ms. */
  --ease-out:        cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out:     cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer:     cubic-bezier(0.32, 0.72, 0, 1);

  --duration-press:  160ms;  /* press feedback */
  --duration-fast:   200ms;  /* tooltips, small popovers, colour changes */
  --duration-ui:     250ms;  /* dropdowns, tabs, selects */
  --duration-panel:  360ms;  /* carousels, drawers, mobile menu */
  --duration-reveal: 600ms;  /* scroll-reveal — marketing, off the UI budget */
}

/* ── Base body styles ── */
body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
}

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

* { box-sizing: border-box; }
*:focus-visible {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.section { padding: var(--section-py) 0; }
.section--tight { padding: 48px 0; }

/* ── Kicker / uppercase label ──
   Set one step above --text-label rather than on it. All-caps at wide tracking
   reads roughly two sizes smaller than the same value in sentence case, so the
   eyebrow needs the extra step to sit level with the copy underneath it. */
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-violet-700);
  margin-bottom: 16px;
}

/* ── Text link with arrow ── */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-ui);
  font-weight: 500;
  color: var(--color-violet-700);
  transition: opacity 0.2s ease;
}
.text-link .text-link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.text-link:hover { opacity: 0.85; }
.text-link:hover .text-link-arrow { transform: translateX(3px); }
.text-link--light { color: var(--color-violet-200); }
.text-link--light:hover { opacity: 0.85; }
