/* ============================================================
   Vektr — product pages that fetch more sales for pet-supplement brands
   Premium light design system: warm cream + emerald + honey.
   ============================================================ */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-800.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/geist-mono-600.woff2") format("woff2"); }

:root {
  --paper: #fbf7f0;
  --paper-2: #f4ede1;
  --surface: #ffffff;
  --ink: #1b1714;
  --ink-2: #3d362f;
  --muted: #6b6258;
  --faint: #9a8f81;
  --line: #e7ddcd;
  --line-2: #d9ccb6;

  --emerald: #0e7c5a;
  --emerald-deep: #0a5e44;
  --emerald-soft: #e4f1ea;
  --honey: #f2a93b;
  --honey-soft: #fceccf;
  --coral: #e8654e;
  --coral-soft: #fbe3dd;

  --ok: #0e7c5a;
  --warn: #f2a93b;
  --bad: #e8654e;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max: 1140px;
  --shadow-sm: 0 1px 2px rgba(27, 23, 20, 0.06), 0 2px 6px rgba(27, 23, 20, 0.05);
  --shadow: 0 6px 16px -6px rgba(27, 23, 20, 0.12), 0 16px 40px -16px rgba(27, 23, 20, 0.16);
  --shadow-emerald: 0 12px 30px -10px rgba(14, 124, 90, 0.4);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  color-scheme: light;
  font-family: var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--emerald-soft), transparent 60%),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kicker, .label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.94), rgba(251, 247, 240, 0.72));
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav a { transition: color 150ms ease; }
.nav a:hover { color: var(--emerald); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--emerald); color: #fff; box-shadow: var(--shadow-emerald); }
.btn-primary:hover { transform: translateY(-1px); background: var(--emerald-deep); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--emerald); color: var(--emerald); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn::after { content: "\2192"; transition: transform 200ms ease; }
.btn.no-arrow::after { content: none; }
.btn:hover::after { transform: translateX(3px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; }

.header-cta { display: inline-flex; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 64px 0 56px; }
.hero-copy > * { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy .kicker { animation-delay: 40ms; }
.hero-copy h1 { animation-delay: 120ms; margin: 14px 0 0; }
.hero-copy .lede { animation-delay: 200ms; }
.hero-copy .hero-actions { animation-delay: 280ms; }
.hero-copy .hero-trust { animation-delay: 360ms; }
.hero .lede { max-width: 520px; margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.lede-mark { color: var(--emerald); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint); }

/* hero mock: a scanned pet-supplement PDP showing the leak -> fix rewrite.
   The badge lives on .hero-mock (not inside the card) so the card can keep
   overflow:hidden without clipping it. */
.hero-mock { position: relative; animation: pop 800ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 240ms; }
.mock-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}
.mock-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mock-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line-2); }
.mock-url { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.mock-img { height: 96px; border-radius: 12px; background: linear-gradient(135deg, var(--honey-soft), var(--emerald-soft)); display: grid; place-items: center; color: var(--emerald); }
.mock-lines { display: grid; gap: 8px; align-content: start; min-width: 0; }
.mock-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.35; }
.mock-line s { color: var(--faint); text-decoration-color: var(--coral); }
.mock-line b { color: var(--ink); font-weight: 700; }
.mock-line i {
  flex: none; font-style: normal; font-family: var(--font-mono); font-size: 9.5px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
}
.mock-line.is-leak i { background: var(--coral-soft); color: var(--coral); }
.mock-line.is-fix i { background: var(--emerald-soft); color: var(--emerald); }
.mock-stars { margin: 0; font-size: 13px; color: var(--honey); letter-spacing: 1px; }
.mock-stars span { color: var(--faint); font-size: 11px; letter-spacing: 0; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.mock-cta {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 18px;
  border-radius: 999px; background: var(--emerald); color: #fff;
  font-size: 12.5px; font-weight: 600;
}
.mock-score { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.mock-score b { font-family: var(--font-display); font-size: 22px; color: var(--honey); }
.mock-score span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; line-height: 1.3; }
.mock-badge {
  position: absolute; top: -10px; left: 18px; z-index: 1;
  padding: 5px 11px; border-radius: 999px; background: var(--honey); color: #3a2a08;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; box-shadow: var(--shadow-sm);
}

/* ---------- section rhythm ---------- */
section.block { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head h1, .section-head h2 { margin: 8px 0 10px; }
/* Standalone pages (sample, privacy) lead with an h1 for a sane document
   outline, but visually it matches the section h2 scale, not the hero. */
.section-head h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }

/* Keyboard focus must be visible everywhere, not just where the browser
   default survives. The scan input swaps outline for a box-shadow; every
   other interactive element gets an explicit emerald ring. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- audit tool ---------- */
.audit { scroll-margin-top: 88px; }
.audit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}
.audit-head { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; justify-content: space-between; }
.audit-head h2 { font-size: clamp(22px, 3vw, 30px); }
.audit-head p { margin-top: 8px; max-width: 520px; color: var(--muted); font-size: 15px; }
.audit-controls { display: flex; gap: 8px; }

.audit-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.audit-steps li { display: flex; gap: 10px; align-items: baseline; list-style: none; font-size: 13.5px; color: var(--ink-2); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.audit-steps span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--emerald); }
.audit-steps ol, .audit-steps ul { margin: 0; padding: 0; }

.lever-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lever-intro strong { font-size: 15px; }
.lever-intro small { color: var(--faint); font-size: 12.5px; }

/* ---------- URL scan form ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scan-row { display: flex; gap: 10px; }
.scan-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: 500 15px/1 var(--font-body, inherit);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.scan-row input::placeholder { color: var(--faint); }
.scan-row input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.scan-status { min-height: 20px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.scan-status[data-tone="busy"]::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px;
  border: 2px solid var(--emerald-soft); border-top-color: var(--emerald);
  border-radius: 50%; vertical-align: -1px; animation: spin 700ms linear infinite;
}
.scan-status[data-tone="error"] { color: var(--coral); }
.scan-fallback { margin-top: 10px; }
.scan-meta { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--faint); }
.result-note { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--honey-soft); color: #6a4c10; font-size: 13.5px; line-height: 1.5; }
.leak-evidence { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--honey); color: var(--muted); font-size: 13px; line-height: 1.5; }

.lever-grid { display: grid; gap: 10px; }
.lever {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 150ms ease, background 150ms ease;
}
.lever.is-scored { background: var(--surface); border-color: var(--line-2); }
.lever-text strong { display: block; font-size: 14.5px; font-weight: 600; }
.lever-text p { margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2); }
.seg button {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button[data-v="2"].on { background: var(--emerald); color: #fff; }
.seg button[data-v="1"].on { background: var(--honey); color: #3a2a08; }
.seg button[data-v="0"].on { background: var(--coral); color: #fff; }

/* result */
.result { display: none; margin-top: 22px; }
.result.show { display: block; animation: rise 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.result-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; }
.score-card, .leak-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.score-card { background: var(--paper); text-align: center; display: grid; align-content: center; gap: 6px; }
.score-num { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1; }
.score-num small { font-size: 22px; color: var(--faint); font-weight: 700; }
.score-band { font-weight: 600; font-size: 15px; }
.score-meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.score-meter > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--coral); transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms ease; }
.score-meter > i[data-tone="ok"] { background: var(--emerald); }
.score-meter > i[data-tone="warn"] { background: var(--honey); }

.leak-card { background: linear-gradient(180deg, var(--honey-soft), transparent 70%), var(--surface); border-color: var(--line-2); }
.leak-card .label { color: var(--coral); }
.leak-card h3 { margin: 8px 0 6px; font-size: 20px; }
.leak-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.leak-fix { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.leak-fix span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald); }
.leak-fix p { margin-top: 4px; color: var(--ink); }

.fixlist { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fixlist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 13.5px; }
.fixlist .rank { font-family: var(--font-mono); font-weight: 700; color: var(--faint); }
.fixlist .ev { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fixlist .pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pill.bad { background: var(--coral-soft); color: var(--coral); }
.pill.warn { background: var(--honey-soft); color: #9a6a12; }
.pill.ok { background: var(--emerald-soft); color: var(--emerald); }

/* ---------- paste-ready fixes ---------- */
.fixes { margin-top: 18px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); }
.fixes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fixes-head strong { font-family: var(--font-display); font-size: 17px; }
.pro-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--emerald); color: #fff; }
.fixes-sub { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.fix-item { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.fix-item header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fix-item header span { font-size: 13px; font-weight: 600; }
.fix-item pre { margin: 0; padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.copy-btn { flex: none; min-height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 150ms ease, color 150ms ease; }
.copy-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.copy-btn.copied { background: var(--emerald); border-color: var(--emerald); color: #fff; }

/* ---------- competitor compare ---------- */
.compare { margin-top: 18px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.compare > strong { font-family: var(--font-display); font-size: 17px; }
.compare > p { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.compare-verdict { margin: 14px 0 10px; font-size: 14px; font-weight: 600; }
.compare-table { display: grid; gap: 6px; }
.compare-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-size: 13px; }
.compare-row.head { background: transparent; border: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 0 12px; }
.compare-row .pill { min-width: 64px; text-align: center; }

/* ---------- watchdog ---------- */
.watch { margin-top: 18px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.watch > strong { font-family: var(--font-display); font-size: 17px; }
.watch > p { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.watch-note { margin-top: 10px; font-size: 12px; color: var(--faint); line-height: 1.5; }

.result-cta { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--emerald-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.result-cta div { min-width: 0; }
.result-cta strong { display: block; font-family: var(--font-display); font-size: 18px; }
.result-cta p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.scope-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

/* A re-scan is in flight or just failed: the visible result belongs to the
   previous URL, so dim it rather than presenting it as current. */
.result.is-stale { opacity: 0.45; transition: opacity 200ms ease; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.how-card .n { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--honey); }
.how-card h3 { margin: 10px 0 8px; }
.how-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- pricing / offer ladder ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 220ms ease, border-color 200ms ease; }
.tier:not(.featured):hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tier .price { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.tier .price small { font-size: 15px; color: var(--faint); font-weight: 600; }
.tier h3 { margin: 10px 0 8px; }
.tier .desc { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.tier ul { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.tier li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.tier li::before { content: "\2713"; color: var(--emerald); font-weight: 700; }
.tier .btn { width: 100%; margin-top: auto; }
.tier.featured { border-color: var(--emerald); box-shadow: var(--shadow-emerald); background: linear-gradient(180deg, var(--emerald-soft), var(--surface) 55%); animation: breathe 5s ease-in-out infinite; }
.tier.featured .price { color: var(--emerald); }
.tier-tag { position: absolute; top: -11px; left: 24px; padding: 5px 11px; border-radius: 999px; background: var(--emerald); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tier-tag.alt { background: var(--honey); color: var(--ink); }
.price-was { font-size: 18px; font-weight: 600; color: var(--faint); text-decoration-color: #d9534f; margin-right: 8px; }
.price-alt { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* The drift story: a short second-person narrative that future-paces the
   buyer into the Watchdog. Storytelling, not testimony — nothing invented. */
.drift-story { max-width: 640px; margin: -8px 0 26px; padding: 16px 20px; border-left: 3px solid var(--honey); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

.pricing-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.tier-note { margin-top: 10px; font-size: 12px; color: var(--faint); line-height: 1.5; }

.guarantee { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.guarantee > div { background: var(--surface); padding: 18px; }
.guarantee .label { color: var(--emerald); }
.guarantee h3 { margin: 8px 0 6px; font-size: 17px; }
.guarantee p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- sample teaser ---------- */
.sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sample-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.sample-card .sc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sample-card .sc-head b { font-family: var(--font-display); }
.sample-card .sc-score { font-family: var(--font-mono); font-size: 12px; color: var(--coral); font-weight: 700; }
.sc-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sc-row:last-child { border-bottom: none; }
.sc-row span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sc-row p { color: var(--ink-2); }

/* ---------- faq / final ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--emerald); }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.final { text-align: center; padding: 56px 0; }
.final h2 { max-width: 720px; margin: 0 auto 12px; }
.final p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; font-size: 16px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 26px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--emerald); }
.footer-fine { width: 100%; font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ---------- animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 10px 26px -12px rgba(14, 124, 90, 0.35); } 50% { box-shadow: 0 16px 40px -10px rgba(14, 124, 90, 0.5); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .sample { grid-template-columns: 1fr; gap: 24px; }
  .how-grid, .pricing-grid { grid-template-columns: 1fr; }
  /* Stacked tiers need clearance for the absolutely-positioned tier tag. */
  .pricing-grid { row-gap: 28px; }
  .result-top { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .audit-steps { grid-template-columns: 1fr; }
  .audit-panel { padding: 18px; }
  .lever { grid-template-columns: 1fr; }
  .seg { justify-self: start; }
  .scan-row { flex-direction: column; }
  .scan-row .btn { width: 100%; }
  .result-cta { flex-direction: column; align-items: stretch; }
  .result-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .hero-copy > *, .hero-mock { opacity: 1 !important; transform: none !important; }
}
