/* Self-hosted type (no third-party dependency) */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/InstrumentSerif-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  src: url(fonts/InstrumentSerif-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  src: url(fonts/Inter-var.woff2) format("woff2");
}

/* ============================================================
   FEED HEARTBEAT - design system v3 "THE CASE FILE"
   Art direction: dark editorial-money. Display serif + mono
   machinery + warm paper + grain. Emerald = released.
   v1 classes kept working (wrap, hero, cta, card, steps,
   eyebrow, lede, brand, pulse, nav-cta, site, legal).
   ============================================================ */
:root {
  --ink: #11151b;
  --muted: #5b6572;
  --line: rgba(17, 21, 27, .09);
  --bg: #f6f5f1;                 /* warm paper */
  --soft: #efece4;
  --paper: #fbfaf7;
  --ink-soft: #1b222c;           /* dark section bg */
  --ink-2: #232c39;
  --hero: #0a0d12;
  --accent: #10b981;             /* emerald: released */
  --accent-ink: #0a8a5e;
  --accent-soft: #e2f5ec;
  --gold: #d8b36a;               /* editorial warmth */
  --danger: #ef5252;
  --danger-soft: #fdeaea;
  --amber: #f0a53a;
  --amber-soft: #fdf1dd;
  --max: 780px;
  --r: 18px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(10, 13, 18, .05), 0 14px 40px rgba(10, 13, 18, .07);
  --shadow-lg: 0 2px 4px rgba(10, 13, 18, .06), 0 30px 80px rgba(10, 13, 18, .14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16.5px/1.7 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(16, 185, 129, .25); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
.wrap.wide { max-width: 940px; }

/* ---------- grain + glow utilities ---------- */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 245, 241, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--ink); font-size: 16.5px; }
.brand .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
nav { display: flex; align-items: center; gap: 6px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 7px 12px; border-radius: 8px; transition: color .15s, background .15s; }
nav a:hover { color: var(--ink); background: rgba(17,21,27,.05); }
nav a.nav-cta { color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
nav a.nav-cta:hover { background: var(--accent-ink); color: #fff; }
header.dark { background: rgba(10, 13, 18, .78); border-bottom: 1px solid rgba(255,255,255,.07); }
header.dark .brand { color: #f2f4f8; }
header.dark nav a { color: #a8b1bd; }
header.dark nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
header.dark nav a.nav-cta { background: var(--accent); color: #06100b; }
header.dark nav a.nav-cta:hover { background: #34d399; color: #06100b; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1.02; margin: 0 0 22px; }
h1 em, .serif-i { font-style: italic; color: var(--accent-ink); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0 0 16px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 16px; }
ul { padding-left: 22px; margin: 0 0 16px; }
li { margin: 0 0 9px; }
a { color: var(--accent-ink); }
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 600;
  margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- hero (light, v1) ---------- */
.hero { padding: 96px 0 56px; }
.lede { font-size: 1.14rem; color: var(--muted); margin: 0 0 30px; max-width: 560px; }

/* ---------- hero dark (v3 flagship) ---------- */
.hero-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(16,185,129,.14), transparent 62%),
    radial-gradient(760px 460px at -8% 112%, rgba(216,179,106,.09), transparent 58%),
    linear-gradient(180deg, var(--hero) 0%, #0d1117 100%);
  color: #e8ecf2; padding: 104px 0 78px;
}
.hero-dark .wrap { position: relative; z-index: 2; }
.hero-dark .eyebrow { color: #3dd9a2; }
.hero-dark .eyebrow::before { background: currentColor; }
.hero-dark h1 { color: #f4f6fa; font-size: clamp(2.8rem, 6.8vw, 5.2rem); }
.hero-dark h1 em { color: #34d399; }
.hero-dark .lede { color: #a7b1c0; font-size: 1.13rem; max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #04120c; text-decoration: none; font-weight: 600;
  font-size: 15.5px; padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(16,185,129,.25);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cta:hover { background: #34d399; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(16,185,129,.35); }
.cta .arr { transition: transform .16s ease; }
.cta:hover .arr { transform: translateX(4px); }
.cta.ghost { background: transparent; color: #cfd8e4; border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.cta.ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); color: #fff; }
.cta.dark { background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(10,13,18,.18); }
.cta.dark:hover { background: #1b222c; }
.cta + .trial { color: var(--muted); font-size: 14.5px; margin-left: 14px; }
.hero-dark .trial { color: #8f9aab; }

/* ---------- THE CASE LEDGER (signature component) ---------- */
.ledger {
  position: relative; z-index: 2;
  margin-top: 46px; max-width: 620px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.ledger-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: #93a0b2; text-transform: uppercase;
}
.ledger-bar .dots { display: flex; gap: 6px; margin-right: 10px; }
.ledger-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ledger-bar .dots i:first-child { background: #ef5252; opacity: .85; }
.ledger-bar .dots i:nth-child(2) { background: #f0a53a; opacity: .85; }
.ledger-bar .dots i:nth-child(3) { background: #10b981; opacity: .85; }
.ledger-bar .tag { margin-left: auto; color: #3dd9a2; }
.ledger-body { padding: 20px 22px 22px; font-family: var(--mono); font-size: .82rem; line-height: 1.9; min-height: 208px; }
.l-line { display: flex; align-items: baseline; gap: 12px; opacity: 0; transform: translateY(6px); animation: lline .5s ease forwards; }
.l-line .t { color: #5c6a7d; flex-shrink: 0; }
.l-line .msg { color: #c3ccd8; }
.l-line .msg b { color: #eef2f7; font-weight: 600; }
.l-chip { margin-left: auto; flex-shrink: 0; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.l-chip.sus { background: rgba(239,82,82,.14); color: #f5a3a3; border: 1px solid rgba(239,82,82,.35); }
.l-chip.rev { background: rgba(240,165,58,.12); color: #f2c07c; border: 1px solid rgba(240,165,58,.3); }
.l-chip.ok { background: rgba(16,185,129,.13); color: #5ee6ae; border: 1px solid rgba(16,185,129,.35); }
.l-caret { color: #3dd9a2; }
@keyframes lline { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .l-line { animation: none; opacity: 1; } }

/* ---------- guarantee pill ---------- */
.g-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
  color: #5ee6ae; font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; margin-top: 24px;
  font-family: var(--mono); letter-spacing: .03em;
}
.g-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: pulse 2s infinite; }
.g-pill.on-paper { background: var(--accent-soft); border-color: #b7e8d2; color: var(--accent-ink); }

/* ---------- sections ---------- */
section { padding: 76px 0; border-top: 1px solid var(--line); }
section.soft { background: var(--soft); }
section.dark { background: var(--hero); color: #d7dee8; border-top: 1px solid rgba(255,255,255,.06); }
section.dark h2 { color: #f4f6fa; }
section.dark .eyebrow { color: #3dd9a2; }
section.dark .eyebrow::before { background: currentColor; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 28px; margin: 18px 0; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(16,185,129,.35); }
.card.accent { background: var(--accent-soft); border-color: #c2ecd9; }
.card.warn { background: var(--amber-soft); border-color: #f0d9ae; }
.card.danger { background: var(--danger-soft); border-color: #f0c4c4; }
.card.dark { background: var(--ink-soft); border-color: rgba(255,255,255,.08); color: #d7dee8; }
.card.dark h3 { color: #f4f6fa; }
.num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--accent-ink); font-weight: 700; display: block; margin-bottom: 10px;
}
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; margin-bottom: 20px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(10,13,18,.2);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 720px) { .split, .split3 { grid-template-columns: 1fr; } }

/* ---------- pricing cards ---------- */
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.price-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px 30px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: rgba(16,185,129,.5); background: linear-gradient(160deg, #ffffff, #f2fbf7); }
.price-card .pc-name { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-card .pc-price { font-family: var(--serif); font-size: 3.1rem; line-height: 1; margin: 14px 0 4px; }
.price-card .pc-price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.price-card .pc-desc { color: var(--muted); font-size: .95rem; margin: 10px 0 20px; }
.price-card .cta { width: 100%; justify-content: center; }
@media (max-width: 720px) { .price-row { grid-template-columns: 1fr; } }

/* ---------- verdict / wizard ---------- */
.wiz { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 34px 34px 38px; box-shadow: var(--shadow-lg); background: var(--paper); margin: 40px 0 10px; }
.wiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.wiz-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(17,21,27,.08); overflow: hidden; }
.wiz-bar .fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #34d399); transition: width .35s ease; }
.wiz-count { font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .1em; }
.wiz-step { display: none; animation: stepin .32s ease; }
.wiz-step.active { display: block; }
@keyframes stepin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-q { font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; margin: 0 0 22px; font-weight: 400; }
.wiz-opts { display: grid; gap: 11px; }
.wiz-opt {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 18px;
  cursor: pointer; font-size: 15.5px; background: #fff;
  transition: border-color .15s, background .15s, transform .15s;
}
.wiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.wiz-opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.wiz-opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.wiz-back { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; cursor: pointer; padding: 8px 0; }
.wiz-back:hover { color: var(--ink); }
.wiz-next { background: var(--ink); color: #fff; border: none; font-weight: 600; font-size: 15px; padding: 13px 26px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: background .15s, transform .15s; }
.wiz-next:hover { background: var(--accent-ink); transform: translateY(-1px); }
.wiz-next:disabled { opacity: .35; cursor: default; transform: none; }
.wiz-email { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; font-family: var(--sans); background: #fff; }
.wiz-email:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(16,185,129,.12); }

.verdict { display: none; margin-top: 30px; padding: 34px 34px 38px; border-radius: 22px; border: 1px solid var(--line); background: var(--soft); animation: stepin .5s ease; }
.verdict.show { display: block; }
.v-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-weight: 800; font-size: 21px; color: #fff;
  background: conic-gradient(var(--accent) calc(var(--score) * 10%), #d9d3c6 0);
  position: relative; font-family: var(--mono);
}
.v-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--ink); }
.v-ring span { position: relative; z-index: 1; }
.verdict h2 { text-align: center; font-family: var(--serif); font-size: 2rem; margin: 0 0 8px; }
.verdict p { text-align: center; color: var(--muted); font-size: 15.5px; max-width: 520px; margin: 0 auto 10px; }
.verdict .v-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.verdict .v-mail { display: flex; justify-content: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- cta band / faq / breadcrumb ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 360px at 85% -20%, rgba(16,185,129,.16), transparent 60%),
    linear-gradient(135deg, var(--hero), #11161d);
  color: #e8ecf2; border-radius: 26px; padding: 54px 44px 56px; margin: 50px 0 14px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #f4f6fa; margin-bottom: 10px; }
.cta-band p { color: #9fabbc; margin: 0 auto 26px; max-width: 480px; }
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 17px 20px; margin: 11px 0; background: var(--paper); }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-ink); font-size: 1.1rem; }
details.faq[open] { border-color: rgba(16,185,129,.4); }
details.faq[open] summary::after { content: "\2212"; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; color: #8f9aab; margin-bottom: 20px; letter-spacing: .04em; }
.breadcrumb a { color: #8f9aab; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.readtime { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .76rem; color: #8f9aab; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(3px); transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 40px 0 70px; }
footer.site a { color: var(--muted); margin-right: 20px; }
footer.site a:hover { color: var(--ink); }

/* ---------- legal / misc ---------- */
.legal { padding: 70px 0; }
.legal h1 { font-size: 3rem; }
.legal .meta { font-family: var(--mono); color: var(--muted); font-size: .8rem; margin-bottom: 10px; }
.legal blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); margin: 22px 0; padding: 16px 20px; border-radius: 0 10px 10px 0; }
.legal h2 { font-size: 1.7rem; margin-top: 40px; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; }
.alt-link { margin: 20px 0 0; font-size: 15px; }

@media (max-width: 600px) {
  .hero, .hero-dark { padding: 64px 0 44px; }
  nav a { padding: 7px 8px; }
  nav a:not(.nav-cta):not(:first-child) { display: none; }
  .price-card { padding: 26px 22px; }
}
