/* =========================================================================
   Hailed.ai — AI visibility landing page
   Pure CSS. No frameworks. Premium B2B SaaS: white / slate / navy + indigo.
   Tokens → base → components → sections → responsive → reduced-motion.
   ========================================================================= */

/* ------------------------------- Tokens --------------------------------- */
:root {
  /* Brand / accent */
  --primary: #4f46e5;          /* indigo-600 */
  --primary-strong: #4338ca;   /* indigo-700 */
  --primary-soft: #eef2ff;     /* indigo-50  */
  --accent: #7c3aed;           /* violet-600 */
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  /* Neutrals */
  --navy: #0b1220;
  --navy-2: #111a2e;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --text: #0f172a;             /* slate-900 */
  --text-2: #334155;           /* slate-700 */
  --text-muted: #5b6678;       /* AA on white */
  --border: #e6e9f2;
  --border-strong: #d4d9e6;

  /* Semantic */
  --ok: #16a34a;
  --warn: #dc2626;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* Spacing (4 / 8 rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Elevation */
  --e-1: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.07);
  --e-2: 0 6px 18px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --e-3: 0 18px 48px rgba(15,23,42,.14), 0 6px 14px rgba(15,23,42,.07);

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --header-h: 66px;

  /* Theme-mapped tokens — overridden in [data-theme="dark"].
     --btn stays a fixed indigo in both themes so white button text keeps AA;
     --primary is the *accent ink* (text/icons) and goes lighter in dark mode. */
  --btn: #4f46e5;
  --btn-strong: #4338ca;
  --header-bg: rgba(255, 255, 255, .82);
  --cta-bg: #0b1220;
  --cta-border: transparent;
  --footer-bg: #0b1220;
  --footer-border: transparent;

  --dur: 220ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------- Dark theme ----------------------------- */
[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-alt: #10162a;
  --surface: #161d30;
  --surface-2: #1e273f;
  --text: #f1f5f9;
  --text-2: #cdd5e3;
  --text-muted: #98a3b8;
  --border: #2a3450;
  --border-strong: #3c4769;
  --primary: #a5b4fc;          /* accent ink: light indigo, readable on dark */
  --primary-strong: #c7d2fe;
  --primary-soft: #24305a;     /* dark indigo tint behind accent ink — kept distinct from --surface so check/icon badges read */
  --warn: #f87171;
  --header-bg: rgba(11, 15, 26, .82);
  --cta-bg: #161d30;           /* elevated so the CTA still pops on a dark page */
  --cta-border: var(--border);
  --footer-bg: #0d1322;
  --footer-border: var(--border);
  --e-1: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
  --e-2: 0 6px 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --e-3: 0 18px 48px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.35);
}

/* -------------------------------- Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

svg { display: block; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.16rem; font-weight: 600; }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* --------------------------- Accessibility ------------------------------ */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 1100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm);
}

/* ------------------------------- Layout --------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(var(--s-8), 6vw, var(--s-9)); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 680px; margin: 0 auto var(--s-7); text-align: center; }
.section-head .section-sub { margin-top: var(--s-3); font-size: 1.05rem; color: var(--text-2); }
.kicker {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-2);
}

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-weight: 600; font-size: .95rem; line-height: 1; min-height: 44px;
  padding: 12px 20px; border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: #fff; box-shadow: var(--e-1); }
.btn-primary:hover { background: var(--btn-strong); box-shadow: var(--e-2); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-strong); background: var(--primary-soft); }

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--e-1); }
.nav { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--grad); box-shadow: var(--e-1); }

.primary-nav { display: flex; align-items: center; gap: var(--s-6); margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: var(--s-5); }
.nav-menu a { color: var(--text-2); font-weight: 500; padding: 6px 0; transition: color var(--dur) var(--ease); }
.nav-menu a:hover { color: var(--text); }
.nav-cta { padding: 10px 18px; min-height: 44px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Theme toggle (sun/moon) */
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); color: var(--text); transition: background-color var(--dur) var(--ease); }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* -------------------------------- Hero ---------------------------------- */
.hero { position: relative; padding-top: clamp(var(--s-7), 5vw, var(--s-8)); padding-bottom: clamp(var(--s-7), 5vw, var(--s-8)); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(50% 60% at 78% 0%, rgba(124,58,237,.16), transparent 70%),
    radial-gradient(46% 56% at 12% 4%, rgba(79,70,229,.16), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s-8); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-2); font-weight: 600; font-size: .82rem;
  padding: 7px 14px; border-radius: var(--r-pill); box-shadow: var(--e-1);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.2); }
.hero-copy h1 { margin-top: var(--s-4); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.16rem; color: var(--text-2); margin-top: var(--s-4); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-trust { font-size: .88rem; margin-top: var(--s-4); }

/* Hero mockup */
.hero-visual { position: relative; }
.mockup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e-3); overflow: hidden; }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.m-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.m-dot:nth-child(1){ background:#ff5f57; } .m-dot:nth-child(2){ background:#febc2e; } .m-dot:nth-child(3){ background:#28c840; }
.mockup-tab { margin-left: 8px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.demo-label { margin-left: auto; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 3px 8px; border-radius: var(--r-pill); }
.mockup-body { padding: var(--s-5); display: grid; gap: var(--s-4); }

.score-card { display: flex; align-items: center; gap: var(--s-4); }
.score-ring {
  --pct: 11;
  position: relative; width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--surface-2) 0);
  display: grid; place-items: center;
}
.score-ring::after { content: ""; position: absolute; inset: 9px; background: var(--surface); border-radius: 50%; }
.score-val { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--text); }
.score-val small { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.score-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.score-note { font-size: .85rem; color: var(--text-muted); }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.metric { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3); text-align: center; }
.metric-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.metric-warn { color: var(--warn); }
.metric-label { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }

.mockup-list { display: grid; gap: var(--s-3); }
.ml-row { display: flex; align-items: center; gap: var(--s-3); font-size: .82rem; }
.ml-key { color: var(--text-muted); min-width: 116px; }
.ml-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.ml-fill { display: block; height: 100%; width: var(--w, 0%); background: var(--grad); border-radius: inherit; }
.ml-val { font-weight: 600; white-space: nowrap; }
.ml-tag { font-weight: 600; color: var(--text); background: var(--primary-soft); padding: 3px 10px; border-radius: var(--r-pill); }

/* ------------------------------ Cards x3 -------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card, .insight-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--e-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover, .insight-card:hover { transform: translateY(-4px); box-shadow: var(--e-3); border-color: var(--border-strong); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); color: var(--primary); background: var(--primary-soft); margin-bottom: var(--s-4); }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: .96rem; }

.insight-card { display: grid; gap: var(--s-3); }
.insight-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--primary); background: var(--primary-soft); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); }
.insight-card p { font-size: 1.05rem; color: var(--text-2); line-height: 1.5; }

/* ------------------------------- Report --------------------------------- */
.report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--e-2); overflow: hidden; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: var(--s-3); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--text-muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface); color: var(--primary-strong); box-shadow: var(--e-1); }
.tab-panels { padding: clamp(var(--s-5), 4vw, var(--s-7)); }
.tab-panel { display: grid; gap: var(--s-5); animation: fade var(--dur) var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-note { font-size: .92rem; color: var(--text-muted); }

.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.stat-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-5); text-align: center; }
.stat-big { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-variant-numeric: tabular-nums; }
.stat-big small { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.stat-cap { font-size: .85rem; color: var(--text-muted); }

.bar-list { display: grid; gap: var(--s-4); }
.bar-list li { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: var(--s-3); }
.bl-name { font-weight: 600; font-size: .92rem; }
.bl-you { color: var(--primary-strong); }
.bl-track { height: 12px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.bl-fill { display: block; height: 100%; width: var(--w, 0); background: var(--text-2); border-radius: inherit; }
.bl-fill-you { background: var(--grad); }
.bl-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip-list li { background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); font-size: .92rem; }

.source-list { display: grid; gap: var(--s-2); }
.source-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.src-name { font-weight: 600; }
.src-tag { font-size: .75rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 3px 10px; border-radius: var(--r-pill); }

/* --------------------------- Check / cross lists ------------------------ */
.check-list { display: grid; gap: var(--s-3); }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--primary-soft); border-radius: 50%; }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 5px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.cross-list { display: grid; gap: var(--s-3); }
.cross-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.cross-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 50%; }
.cross-list li::after { content: "\00d7"; position: absolute; left: 5px; top: -1px; color: var(--text-muted); font-size: 1rem; }

/* ------------------------------- Track ---------------------------------- */
.track-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
.track-card { display: flex; align-items: center; gap: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); font-weight: 600; font-size: .92rem; box-shadow: var(--e-1); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.track-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.track-ic { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); flex: none; }
.callout { margin-top: var(--s-6); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); color: var(--text-2); }

/* ------------------------------- Steps ---------------------------------- */
.steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--e-1); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--grad); margin-bottom: var(--s-4); box-shadow: var(--e-1); }
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: .94rem; }

/* ---------------------------- Deliverables ------------------------------ */
.deliverables { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-5); }
.deliver-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--e-1); }
.deliver-col.included { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.deliver-col h3 { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.dc-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; }
.dc-ic-yes { background: var(--primary-soft); }
.dc-ic-yes::after { content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.dc-ic-no { background: var(--surface-2); border: 1px solid var(--border-strong); }
.dc-ic-no::after { content: "\00d7"; position: absolute; left: 7px; top: 1px; color: var(--text-muted); }
.deliver-note { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); font-size: .92rem; }

/* ------------------------------ Pricing --------------------------------- */
.pricing { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-5); align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-7); box-shadow: var(--e-1); }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--e-3); }
.plan-badge { position: absolute; top: -13px; left: var(--s-7); background: var(--btn); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 13px; border-radius: var(--r-pill); }
.plan-name { font-family: var(--font-display); }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: var(--s-3); }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.03em; color: var(--text); }
.price-amount-sm { font-size: 1.7rem; }
.price-per { color: var(--text-muted); font-weight: 500; }
.price-sub { color: var(--text-muted); font-size: .92rem; margin-top: 2px; }
.plan-features { margin: var(--s-5) 0; }
.plan-foot { margin-top: var(--s-4); font-size: .86rem; color: var(--text-muted); }
.pricing-ladder { display: grid; gap: var(--s-5); }
.plan-mini { padding: var(--s-6); border-radius: var(--r-lg); }
.plan-mini .price { margin-top: var(--s-2); }
.plan-mini .price-sub { margin-block: var(--s-2) var(--s-5); }

/* ------------------------------ Compare --------------------------------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--e-1); }
.compare-card-primary { border: 2px solid var(--primary); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 60%); }
.compare-head { margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.dash-list { display: grid; gap: var(--s-3); }
.dash-list li { position: relative; padding-left: 24px; color: var(--text-muted); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 2px; background: var(--border-strong); border-radius: 2px; }

/* ------------------------------- Trust ---------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.trust-card { position: relative; display: flex; align-items: flex-start; min-height: 78px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-5) var(--s-5) var(--s-5) 46px; font-weight: 500; color: var(--text-2); box-shadow: var(--e-1); }
.trust-card::before { content: ""; position: absolute; left: 16px; top: calc(var(--s-5) + 2px); width: 20px; height: 20px; background: var(--primary-soft); border-radius: 50%; }
.trust-card::after { content: ""; position: absolute; left: 22px; top: calc(var(--s-5) + 9px); width: 8px; height: 5px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

/* -------------------------------- FAQ ----------------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%; text-align: left; padding: var(--s-5); font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--text); }
.faq-ic { position: relative; flex: none; width: 18px; height: 18px; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.faq-ic::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-ic::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-q[aria-expanded="true"] .faq-ic::after { transform: scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.faq-a p { padding: 0 var(--s-5) var(--s-5); font-size: .98rem; color: var(--text-2); }

/* -------------------------------- CTA ----------------------------------- */
.cta-section { padding-bottom: clamp(var(--s-8), 7vw, calc(var(--s-9) + var(--s-6))); }
.cta-card { background: var(--cta-bg); color: #fff; border: 1px solid var(--cta-border); border-radius: var(--r-xl); padding: clamp(var(--s-6), 5vw, var(--s-8)); box-shadow: var(--e-3); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 320px; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%); }
.cta-card .section-head { margin-bottom: var(--s-6); position: relative; }
.cta-card h2 { color: #fff; }
.cta-card .section-sub { color: rgba(255,255,255,.82); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); position: relative; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.92); }
.field .req { color: #fca5a5; }
.field .hint { color: rgba(255,255,255,.55); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; font-size: 1rem;
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.5); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field option { color: #0f172a; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.1); outline-offset: 1px; }
.field.has-error input, .field.has-error select { border-color: #fca5a5; }
.field-error { font-size: .82rem; color: #fecaca; min-height: 1em; }
.audit-form .btn-lg { margin-top: var(--s-5); }
.form-disclaimer { text-align: center; font-size: .82rem; color: rgba(255,255,255,.6); margin-top: var(--s-3); }
.form-submit-error { text-align: center; font-weight: 600; color: #fecaca; margin-top: var(--s-3); }

.form-success { text-align: center; padding: var(--s-6) var(--s-4); position: relative; }
.success-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(34,197,94,.18); color: #4ade80; margin-bottom: var(--s-4); }
.form-success h3 { color: #fff; font-size: 1.4rem; }
.form-success p { color: rgba(255,255,255,.82); margin-top: var(--s-2); }

/* ------------------------------- Footer --------------------------------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-border); color: rgba(255,255,255,.7); padding-block: var(--s-8) var(--s-5); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-6); }
.site-footer .brand { color: #fff; }
.footer-tagline { margin-top: var(--s-3); max-width: 30ch; color: rgba(255,255,255,.62); font-size: .94rem; }
.footer-cols ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-7); }
.footer-cols a { color: rgba(255,255,255,.7); font-size: .94rem; transition: color var(--dur) var(--ease); }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { color: rgba(255,255,255,.55); font-size: .86rem; }

/* --------------------------- Mobile sticky CTA -------------------------- */
.sticky-cta {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  text-align: center; padding: 15px 20px; border-radius: var(--r-pill);
  background: var(--btn); color: #fff; font-weight: 600; box-shadow: var(--e-3);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.sticky-cta.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* ---------------------- Review-pass additions --------------------------- */
/* Hero "Audited across" surfaces strip */
.surfaces { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3) var(--s-5); }
.surfaces-label { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.surfaces-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3) var(--s-5); }
.surfaces-list li { font-family: var(--font-display); font-weight: 600; color: var(--text-2); font-size: 1.02rem; }
.surfaces-list li.surfaces-more { font-family: var(--font-body); font-weight: 500; color: var(--text-muted); font-size: .86rem; }

/* What-we-track grouped framework */
.track-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.track-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--e-1); }
.track-group-title { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }

/* Pricing value line */
.plan-value { margin-top: var(--s-3); font-weight: 600; color: var(--text); font-size: .95rem; }

/* Mini-audit "what you get back" + honesty line (on dark CTA card) */
.audit-includes { display: grid; gap: var(--s-2); margin-top: var(--s-5); text-align: left; max-width: 460px; margin-inline: auto; position: relative; }
.audit-includes li { position: relative; padding-left: 28px; color: rgba(255,255,255,.9); font-size: .95rem; }
.audit-includes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(124,58,237,.3); }
.audit-includes li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 5px; border-left: 2px solid #c4b5fd; border-bottom: 2px solid #c4b5fd; transform: rotate(-45deg); }
.audit-honest { margin-top: var(--s-4); font-weight: 600; color: #c4b5fd; position: relative; }

/* ------------------------ Source ownership table ----------------------- */
.ownership { margin-top: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e-1); overflow: hidden; }
.ownership-intro { padding: var(--s-5) var(--s-5) var(--s-4); }
.ownership-intro h3 { font-size: 1.1rem; }
.ownership-intro p { margin-top: var(--s-2); font-size: .95rem; }
.ownership-table { display: grid; }
.ownership-row { display: grid; grid-template-columns: 0.9fr auto 1.5fr; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); }
.ownership-table-head { background: var(--surface-2); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding-block: 10px; }
.own-source { font-weight: 600; color: var(--text); }
.own-cell { display: flex; }
.own-action { color: var(--text-2); font-size: .94rem; }
.own-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid; white-space: nowrap; }
.own-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.own-independent { color: #15803d; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.32); }
.own-review { color: #b45309; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.34); }
.own-competitor { color: #b91c1c; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.32); }
[data-theme="dark"] .own-independent { color: #4ade80; }
[data-theme="dark"] .own-review { color: #fbbf24; }
[data-theme="dark"] .own-competitor { color: #f87171; }

/* Metric helper note (e.g. "qualified mention share") */
.metric-help { display: flex; align-items: flex-start; gap: 8px; margin-top: var(--s-3); padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); font-size: .86rem; color: var(--text-muted); }
.metric-help svg { flex: none; margin-top: 1px; color: var(--primary); }
.metric-help strong { color: var(--text-2); }

/* Pricing rationale note */
.price-note { margin-top: 6px; font-size: .82rem; color: var(--text-muted); }

/* --------------------------- Reveal animation --------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-visual { max-width: 540px; }
  .hero-sub { max-width: 56ch; }
  .track-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .pricing-ladder { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .theme-toggle { margin-left: auto; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: var(--s-4) var(--s-5) var(--s-6); background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: var(--e-3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu a { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-cta { margin-top: var(--s-4); }

  .cards-3, .panel-grid, .deliverables, .compare-grid, .pricing-ladder, .track-groups { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .ownership-table-head { display: none; }
  .ownership-row { grid-template-columns: 1fr; gap: 8px; padding: var(--s-4) var(--s-5); }
  .steps-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .bar-list li { grid-template-columns: 96px 1fr 46px; }
  .sticky-cta { display: block; }
  .plan-badge { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 420px) {
  .hero-actions .btn, .btn-block { width: 100%; }
  .chip-list { gap: var(--s-2); }
}

/* ------------------------- Reduced motion safety ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .tab-panel { animation: none; }
}
