/*
 * marketing.css — Shared base CSS for static marketing pages (v3)
 *
 * Loaded by: features.html, terms.html, privacy.html, faq.html
 * NOT loaded by: landing.html (keeps its inline <style> block; see BRAND_CANON §6)
 *
 * Per BRAND_CANON.md:
 *   - §4 colour tokens (paper/slate/gold)
 *   - §5.3 body type is Inter (not Outfit) since 2026-04-30
 *   - §10 token roster for long-form / utility surfaces
 *   - §19 long-form link style
 */

:root {
  --gold: hsl(37, 91%, 55%);
  --gold-soft: hsla(37, 91%, 55%, 0.10);
  --gold-edge: hsla(37, 91%, 55%, 0.32);
  --gold-rule: hsla(37, 91%, 55%, 0.36);
  --slate: #20242b;
  --slate-2: #2a2f37;
  --paper: #fcfbf9;
  --paper-2: #f6f3ec;
  --paper-3: #efeae0;
  --ink: #15181d;
  --ink-2: #3a3f47;
  --ink-3: #6b6e75;
  --rule: rgba(30,25,18,0.10);
  --rule-strong: rgba(30,25,18,0.18);
  --muted: rgba(30,25,18,0.58);
  --label: rgba(30,25,18,0.48);
  --rule-dark: rgba(255,252,245,0.12);
  --muted-dark: rgba(255,252,245,0.62);
  --label-dark: rgba(255,252,245,0.46);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' on;
}
::selection { background: var(--gold); color: var(--ink); }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--label);
  font-weight: 400;
}
.eyebrow.gold { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300; margin: 0; letter-spacing: -0.02em;
}
h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
em, .italic { font-style: italic; font-weight: 400; }
.gold-italic { color: var(--gold); font-style: italic; font-weight: 400; }

.shell { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .shell { padding: 0 24px; } }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-size: 13px; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 249, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
nav .brand .wm {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px; font-weight: 300; letter-spacing: -0.01em;
}
nav .brand .wm b { font-weight: 500; }
nav .links { display: flex; align-items: center; gap: 36px; }
nav .links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 13px; font-weight: 400;
  transition: color .15s ease; position: relative;
}
nav .links a:hover { color: var(--ink); }
nav .links a[aria-current="page"] { color: var(--ink); }
nav .links a[aria-current="page"]::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--gold);
}
nav .links a.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 4px;
  min-width: 96px; justify-content: center;
  transition: background .15s ease;
}
nav .links a.cta:hover { background: var(--slate); color: var(--paper); }
nav .links a.cta::after { display: none; }
@media (max-width: 880px) { nav .links a:not(.cta) { display: none; } }

/* Page header (shared on faq, privacy, terms) */
.page-header { padding: 96px 0 48px; }
.page-header h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  margin: 0 0 24px;
}
.page-header .gold-rule {
  display: block; width: 56px; height: 2px;
  background: var(--gold); margin: 0 0 24px;
}
.page-header .updated {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--label); margin: 0;
}

/* Generic CTAs */
.cta-catalyst {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--gold); color: var(--ink);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: 4px;
  transition: opacity .15s ease;
}
.cta-catalyst:hover { opacity: 0.9; }
.cta-primary-inverted {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--paper); color: var(--ink);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: 4px;
  transition: background .15s ease;
}
.cta-primary-inverted:hover { background: var(--paper-2); }
.cta-secondary-inverted {
  color: var(--paper); text-decoration: none;
  font-size: 14px; font-weight: 400;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.cta-secondary-inverted:hover { border-color: var(--gold); }

/* Reveal animation (BRAND_CANON §6.4) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* FOOTER */
footer {
  background: var(--slate);
  color: var(--paper);
  padding: 80px 0 32px;
  border-top: 1px solid var(--rule-dark);
}
footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 880px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer .brand-col p {
  color: var(--muted-dark);
  font-size: 13px; line-height: 1.5;
  margin: 16px 0 0; max-width: 240px;
}
footer .brand { color: var(--paper); }
footer h5 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--label-dark);
  font-weight: 500;
  margin: 0 0 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a {
  color: var(--muted-dark); text-decoration: none;
  font-size: 13px; font-weight: 400;
  transition: color .15s ease;
}
footer ul a:hover { color: var(--paper); }
footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--label-dark);
  flex-wrap: wrap; gap: 16px;
}
footer .legal a { color: var(--muted-dark); text-decoration: none; }
footer .legal a:hover { color: var(--paper); }
footer .legal em { font-style: italic; text-transform: none; letter-spacing: 0; }
