:root {
  /* Warm editorial palette — cream paper, ink, single emerald accent */
  --paper: #f5f1e8;
  --paper-alt: #efe9dadf;
  --card: #fdfbf6;
  --ink: #1b1a16;
  --ink-2: #56524a;
  --ink-3: #8c8779;
  --line: #e4ddcc;
  --line-strong: #d6cdb6;
  --brand: #155c43;
  --brand-2: #1c7a59;
  --brand-soft: #e7f0e9;
  --good: #2f7d54;
  --mid: #b07d23;
  --bad: #b04a30;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(27, 26, 22, 0.04), 0 12px 28px -16px rgba(27, 26, 22, 0.18);
  --shadow-lg: 0 2px 4px rgba(27, 26, 22, 0.05), 0 30px 60px -28px rgba(27, 26, 22, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

h1, h2, h3 { font-family: var(--serif); font-weight: 540; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 560; font-size: 15.5px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.btn-primary:hover { background: #2c2a23; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-brand { background: var(--brand); color: #f3f7f2; }
.btn-brand:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(27,26,22,0.04); }
.btn-lg { font-size: 16.5px; padding: 15px 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.logo svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
/* Buttons inside the nav must keep their own text color (beat the `a` selector) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--paper); }
.nav-links a.btn-brand, .nav-links a.btn-brand:hover { color: #f3f7f2; }
.nav-links a.btn-ghost { color: var(--ink); }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #cfe2d4;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02; margin: 0 0 20px; font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p.sub { font-size: 19px; color: var(--ink-2); max-width: 480px; margin: 0 0 30px; }

/* ---------- Audit form ---------- */
.audit-form {
  display: flex; gap: 8px; max-width: 480px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 13px; padding: 7px; box-shadow: var(--shadow);
}
.audit-form input[type="text"] {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 16px; padding: 11px 14px;
}
.audit-form input::placeholder { color: var(--ink-3); }
@media (max-width: 480px) { .audit-form { flex-direction: column; } }
.form-note { margin-top: 15px; font-size: 14px; color: var(--ink-3); }
.hero-checks { display: flex; gap: 20px; margin-top: 15px; flex-wrap: wrap; }
.hero-checks span { font-size: 14px; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; }
.hero-checks svg { color: var(--brand); }

/* ---------- Hero sample card ---------- */
.sample-card {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); position: relative;
}
.sample-card .sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sample-card .sc-url { font-size: 14px; color: var(--ink-2); font-family: var(--sans); }
.sample-card .sc-grade { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--brand); }
.sc-score-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.sc-mini-gauge { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.sc-mini-gauge .c { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--serif); font-weight: 600; font-size: 26px; }
.sc-score-row .lbl { font-size: 14px; color: var(--ink-2); }
.sc-score-row .lbl strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: 600; }
.sc-bars { display: grid; gap: 13px; }
.sc-bar-row { display: grid; grid-template-columns: 92px 1fr 28px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.sc-bar { height: 7px; border-radius: 999px; background: rgba(27,26,22,0.07); overflow: hidden; }
.sc-bar > i { display: block; height: 100%; border-radius: 999px; }
.sc-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- Report preview (real screenshot in browser frame) ---------- */
.browser-frame { max-width: 880px; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--card); }
.browser-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .dot:nth-child(1) { background: #d98b7d; }
.browser-bar .dot:nth-child(2) { background: #e0c07a; }
.browser-bar .dot:nth-child(3) { background: #9fc4a8; }
.browser-bar .url { margin-left: 12px; font-size: 13px; color: var(--ink-3); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 4px 14px; }
.browser-body { position: relative; max-height: 560px; overflow: hidden; }
.browser-body img { width: 100%; display: block; }
.browser-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, rgba(253,251,246,0), var(--card)); pointer-events: none; }
.browser-cta { text-align: center; position: relative; z-index: 2; }
/* 3-up report gallery */
.report-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .report-gallery { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.rg-card { margin: 0; }
.rg-shot { position: relative; height: 360px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.rg-shot img { width: 100%; height: auto; display: block; }
.rg-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.rg-card figcaption { text-align: center; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

/* ---------- Trust strip (under hero) ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 15px 0; font-size: 14.5px; color: var(--ink-2); flex-wrap: wrap; text-decoration: none; transition: color 0.15s; }
.trust-strip-inner:hover { color: var(--ink); }
.trust-strip-inner strong { color: var(--ink); font-weight: 600; }
.trust-strip-inner .ts-star { color: var(--mid); flex-shrink: 0; }
.trust-strip-inner .ts-sep { color: var(--ink-3); }
.trust-strip-inner .ts-gh { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
@media (max-width: 600px) { .trust-strip-inner .ts-sep, .trust-strip-inner span:nth-child(4) { display: none; } }

/* ---------- Section ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; font-weight: 500; line-height: 1.08; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 34px; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
@media (max-width: 820px) { .step { border-right: none; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: none; } }
.step .step-ic { color: var(--brand); margin-bottom: 16px; }
.step .step-num { font-family: var(--serif); font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 560; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); padding: 30px 28px; transition: background 0.18s; }
.feature:hover { background: #fffdf8; }
.feature .ic { color: var(--brand); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 560; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- About page ---------- */
.about-top { padding: 88px 0 60px; }
.about-hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; gap: 36px; } .about-photo { order: -1; max-width: 360px; } }
.about-hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; margin: 14px 0 10px; font-weight: 500; }
.about-hero h1 em { font-style: italic; color: var(--brand); }
.about-hero .role { font-size: 16px; font-weight: 600; color: var(--brand); margin: 0 0 22px; }
.about-hero .bio { color: var(--ink-2); font-size: 17px; margin: 0 0 16px; max-width: 560px; }
.about-links { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 24px; }
.about-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: 999px; transition: background 0.15s, transform 0.15s; }
.about-links a:hover { background: #fffdf8; transform: translateY(-1px); }
.about-links svg { color: var(--brand); }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); display: block; }
.photo-placeholder { display: none; }
.about-photo.photo-missing { aspect-ratio: 4/3; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 14px; background: var(--card); }
.about-photo.photo-missing .photo-placeholder { display: block; }
.photo-placeholder code { font-size: 12px; color: var(--ink-2); }

/* ---------- Footer AI Workshop badge ---------- */
.aiw-badge { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink-3); font-size: 13px; transition: color 0.15s; }
.aiw-badge:hover { color: var(--ink); }
.aiw-badge img { height: 26px; width: auto; display: block; border-radius: 6px; }

/* ---------- Open-source band ---------- */
.os-band { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .os-band { grid-template-columns: 1fr; gap: 32px; } }
.os-left h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 14px; font-weight: 500; line-height: 1.08; }
.os-left p { color: var(--ink-2); font-size: 17px; margin: 0 0 24px; max-width: 540px; }
.os-stats { display: flex; gap: 34px; margin: 0 0 26px; flex-wrap: wrap; }
.os-stats div { display: flex; flex-direction: column; }
.os-stats strong { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--brand); }
.os-stats span { font-size: 13px; color: var(--ink-3); }
.repo-card {
  display: block; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease; color: inherit;
}
.repo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.repo-top { display: flex; align-items: center; gap: 9px; font-size: 16px; color: var(--ink-2); }
.repo-top strong { color: var(--ink); }
.repo-desc { color: var(--ink-2); font-size: 14px; margin: 14px 0 18px; line-height: 1.5; }
.repo-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.repo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.repo-meta svg { color: var(--mid); }
.lang-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); display: inline-block; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 800px; margin: 0 auto; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 34px; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -12px; left: 34px; background: var(--brand); color: #f3f7f2; font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 999px; letter-spacing: 0.02em; }
.plan h3 { margin: 0; font-size: 22px; font-weight: 560; }
.plan .price { font-family: var(--serif); font-size: 46px; font-weight: 560; margin: 14px 0 2px; letter-spacing: -0.02em; }
.plan .once { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; }
.plan li { padding: 8px 0; color: var(--ink-2); font-size: 15px; display: flex; gap: 11px; align-items: flex-start; }
.plan li svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.pricing-3 { grid-template-columns: repeat(3, 1fr); max-width: 1080px; gap: 20px; }
@media (max-width: 940px) { .pricing-3 { grid-template-columns: 1fr; max-width: 460px; } }
.plan-pro { border-color: var(--ink); background: linear-gradient(180deg, rgba(27,26,22,0.04), rgba(255,255,255,0.02)); }
.plan .price .price-plus { font-size: 26px; color: var(--brand); vertical-align: super; margin-left: 2px; }
.plan-note { font-size: 13px; line-height: 1.5; color: var(--ink-3); font-style: italic; margin: 0 0 18px; padding-top: 4px; border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 540; padding: 24px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { transition: transform 0.22s ease; color: var(--brand); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; color: var(--ink-2); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { margin: 0 0 24px; font-size: 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--paper-alt); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin: 0 0 15px; }
.foot-grid a { display: block; color: var(--ink-2); padding: 5px 0; font-size: 14.5px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Legal pages (privacy / terms) */
.legal-page { padding: 64px 0 80px; }
.legal-page .legal-inner { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.1; margin: 0 0 10px; }
.legal-page .legal-updated { color: var(--ink-3); font-size: 14px; margin: 0 0 8px; }
.legal-page .legal-intro { color: var(--ink-2); font-size: 18px; margin: 0 0 40px; }
.legal-page h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin: 40px 0 14px; }
.legal-page h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-page p { margin: 0 0 16px; }
.legal-page ul { margin: 0 0 16px; padding-left: 22px; }
.legal-page li { margin: 0 0 8px; }
.legal-page a { color: var(--brand); text-decoration: underline; }
.legal-page strong { color: var(--ink); }
.legal-page .legal-note { background: var(--brand-soft); border: 1px solid #cfe2d4; border-radius: 10px; padding: 16px 18px; font-size: 14.5px; color: var(--ink-2); margin: 0 0 28px; }
.legal-page hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }

/* ---------- Report page ---------- */
.report-head { padding: 56px 0 8px; }
.url-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--brand); background: var(--brand-soft); border: 1px solid #cfe2d4; padding: 6px 13px; border-radius: 999px; margin-bottom: 22px; }
.score-hero { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: center; }
@media (max-width: 720px) { .score-hero { grid-template-columns: 1fr; gap: 26px; } }
.gauge { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .num { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; }
.gauge .of { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.grade-badge { display: inline-grid; place-items: center; min-width: 58px; height: 58px; padding: 0 14px; border-radius: 14px; font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 16px; }
.score-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; font-weight: 500; }
.score-hero p { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 560px; }

.divider { height: 1px; background: var(--line); margin: 44px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0; }
@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cat-top h3 { margin: 0; font-size: 18px; font-weight: 560; }
.cat-top .s { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.cat p.desc { margin: 0 0 14px; color: var(--ink-3); font-size: 13px; }
.bar { height: 7px; border-radius: 999px; background: rgba(27,26,22,0.07); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.recs { margin-top: 14px; list-style: none; padding: 0; }
.recs li { color: var(--ink-2); font-size: 14.5px; padding: 7px 0; display: flex; gap: 11px; align-items: flex-start; }
.recs li svg { color: var(--brand); flex-shrink: 0; margin-top: 4px; }

/* Paywall */
.locked-wrap { position: relative; margin: 22px 0; }
.locked-content { filter: blur(7px); pointer-events: none; user-select: none; opacity: 0.55; }
.paywall { position: absolute; inset: 0; display: grid; place-content: center; padding: 30px; }
.paywall-card { background: var(--card); border: 1px solid var(--brand); border-radius: var(--radius-lg); padding: 38px 42px; box-shadow: var(--shadow-lg); max-width: 440px; text-align: center; }
.paywall-card .lock { color: var(--brand); margin-bottom: 14px; }
.paywall-card h3 { margin: 0 0 10px; font-size: 25px; font-weight: 560; }
.paywall-card p { color: var(--ink-2); margin: 0 0 22px; font-size: 15px; }
.paywall-card .pw-price { font-family: var(--serif); font-size: 32px; font-weight: 600; margin-bottom: 20px; }
.paywall-card .pw-price small { font-size: 14px; color: var(--ink-3); font-weight: 400; font-family: var(--sans); }
.report-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 50px; }

/* ---------- Rich report sections ---------- */
.rsec { margin: 0 0 14px; }
.rsec h2 { font-size: 27px; font-weight: 500; margin: 0 0 6px; }
.rsec .lead { color: var(--ink-2); margin: 0 0 18px; }
.report-meta { color: var(--ink-3); font-size: 13.5px; }

.exec {
  background: var(--card); border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand); border-radius: var(--radius);
  padding: 26px 28px; font-size: 17px; line-height: 1.7; color: var(--ink);
}
.exec .label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 10px; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; flex: 1; min-width: 150px; }
.stat .v { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.stat .k { font-size: 13px; color: var(--ink-2); }

.rtable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; font-size: 14.5px; }
.rtable th { text-align: left; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.rtable td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.rtable tr:last-child td { border-bottom: none; }
.rtable td strong, .rtable td b { color: var(--ink); font-weight: 600; }
.rtable .num { font-variant-numeric: tabular-nums; font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-good { background: #e7f0e9; color: var(--good); border: 1px solid #c7ddcc; }
.pill-bad { background: #f6e2db; color: var(--bad); border: 1px solid #e7c4b6; }
.pill-mid { background: #f6edd6; color: var(--mid); border: 1px solid #e6d6a8; }
.sev-Critical { color: var(--bad); font-weight: 600; }
.sev-High { color: #c2622c; font-weight: 600; }
.sev-Medium { color: var(--mid); font-weight: 600; }
.sev-Low { color: var(--good); font-weight: 600; }

.score-cell { font-family: var(--serif); font-weight: 600; font-size: 17px; }

.codeblock { background: #1f1d18; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; margin: 8px 0 0; }
.codeblock pre { margin: 0; font-family: "SF Mono", ui-monospace, "Menlo", monospace; font-size: 13px; line-height: 1.6; color: #e9e2cf; white-space: pre; }
.code-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 18px 0 8px; }

.roadmap { display: grid; gap: 16px; }
.phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.phase h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 4px; color: var(--brand); }
.phase .rm-goal { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.phase ul { margin: 0; padding-left: 18px; }
.phase li { color: var(--ink-2); font-size: 15px; padding: 4px 0; }
.rm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: rm; }
.rm-steps > li { position: relative; padding-left: 38px; counter-increment: rm; }
.rm-steps > li::before {
  content: counter(rm); position: absolute; left: 0; top: 1px;
  width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #cfe2d4;
}
.rm-step-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rm-step-title { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.rm-detail { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.rm-impact { flex-shrink: 0; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rm-impact.rm-high { color: var(--bad); background: #f6e2db; }
.rm-impact.rm-medium { color: var(--mid); background: #f6edd6; }
.rm-impact.rm-low { color: var(--good); background: #e7f0e9; }

.kw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kw-row:last-child { border-bottom: none; }
.kw-row .kw { font-size: 15px; color: var(--ink); }
.kw-row .meta { font-size: 13px; color: var(--ink-3); }

/* ---------- Loading overlay (stepped) ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(245, 241, 232, 0.92); backdrop-filter: blur(7px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.loading-overlay.show { display: flex; }
.loading-card {
  width: 100%; max-width: 470px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 32px 34px; box-shadow: var(--shadow-lg);
}
.loading-card .l-eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--brand); }
.loading-card .l-url { font-family: var(--serif); font-size: 23px; font-weight: 560; margin-top: 4px; word-break: break-all; }
.lsteps { margin: 24px 0 22px; display: grid; gap: 1px; }
.lstep { display: flex; align-items: center; gap: 13px; padding: 9px 0; }
.lstep-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong);
  flex-shrink: 0; display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.lstep-dot svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity 0.2s; }
.lstep-label { font-size: 15.5px; color: var(--ink-3); transition: color 0.2s; }
.lstep.active .lstep-dot { border-top-color: var(--brand); animation: spin 0.75s linear infinite; }
.lstep.active .lstep-label { color: var(--ink); font-weight: 500; }
.lstep.done .lstep-dot { background: var(--brand); border-color: var(--brand); animation: none; }
.lstep.done .lstep-dot svg { opacity: 1; }
.lstep.done .lstep-label { color: var(--ink-2); }
.lbar { height: 6px; border-radius: 999px; background: rgba(27, 26, 22, 0.08); overflow: hidden; }
.lbar > span { display: block; height: 100%; width: 4%; border-radius: 999px; background: linear-gradient(90deg, #cf9a33, var(--brand-2)); transition: width 0.25s ease; }
.checkout-spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--brand); animation: spin 0.8s linear infinite; margin: 0 auto 18px; }
