:root {
  --ink: #0F172A;
  --paper: #F8F7F4;
  --surface: #FFFFFF;
  --accent: #0D9488;
  --accent-hover: #0f766e;
  --accent-muted: #CCFBF1;
  --border: #E2E0DA;
  --muted: #64748B;
  --risk-high: #DC2626;
  --risk-med: #D97706;
  --risk-low: #059669;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.has-paywall { padding-bottom: 108px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px 40px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; flex: 0 0 24px; width: 24px; height: 24px; }
.brand-word { color: var(--ink); }
.brand .kit { color: var(--accent); }
/* legacy alias if any leftover markup */
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.wordmark .kit { color: var(--accent); font-weight: 600; }
.nav-meta { font-size: 13px; color: var(--muted); text-align: right; }
.hero {
  padding: 48px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 12px;
}
h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(40px, 4.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-title {
  font-size: 28px;
  margin-bottom: 8px;
}
.report-title { font-size: 26px; margin-bottom: 0; }
.hero-answer {
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 10px;
}
.lead { font-size: 15px; color: var(--muted); margin-bottom: 22px; max-width: 520px; }
.disclaimer-inline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.disclaimer-inline.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}
.report-disclaimer { margin-bottom: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-bottom: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost, .btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 11px 16px;
}
.btn-secondary { font-size: 14px; padding: 11px 16px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: 0.7; cursor: wait; }
.price-pill { font-size: 14px; color: var(--muted); }
.price-pill strong { color: var(--ink); font-weight: 600; }
.subline { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-card, .score-card, .outline, .email-card, .step, .faq-item, .finding, .success-banner, .notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 20px; }
.hero-card h2 { font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.diff-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.diff-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.diff-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.diff-list strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.diff-list span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.section { padding: 8px 0 48px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { border-radius: var(--radius); padding: 18px; }
.step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 8px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--muted); }
.faq { padding: 4px 0 64px; }
.faq h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.faq-item { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; }
.faq-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--muted); }
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.progress {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin: 8px 0 24px;
}
.progress .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.progress .dot.on { background: var(--ink); }
.progress .cur { color: var(--ink); font-weight: 500; }
.drop {
  background: var(--surface);
  border: 1px dashed #C9C5BB;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.drop.drag, .drop:hover { border-color: var(--ink); background: var(--surface); }
.drop-icon {
  width: 40px; height: 40px; margin: 0 auto 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 18px;
}
.drop h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.drop p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--muted); margin-top: 16px;
}
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.template-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.template-slot summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}
.template-slot summary::-webkit-details-marker { display: none; }
.tag {
  font-size: 11px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px;
  white-space: nowrap;
}
.template-body {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.mini-drop {
  margin-top: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  background: var(--paper);
}
.mini-drop .quiet { margin-top: 8px; font-size: 12px; }
.privacy { font-size: 13px; color: var(--muted); padding: 4px 2px 28px; line-height: 1.5; }
.privacy strong { color: var(--ink); font-weight: 500; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 10px; font-size: 13px; margin-top: 12px;
}
.file-chip code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
.file-chip .muted-size { color: var(--muted); }
.actions { padding-bottom: 28px; }
.footer-note { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 40px; }
.notice {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  box-shadow: none;
}
.notice-error { background: #FEF2F2; border-color: #FECACA; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.score-card, .outline, .email-card { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.outline { padding: 16px 18px; }
.score-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.score-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.score-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.03em;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.badge-med { background: #FEF3C7; color: var(--risk-med); }
.badge-high { background: #FEE2E2; color: var(--risk-high); }
.badge-low { background: #D1FAE5; color: var(--risk-low); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.score-meta { font-size: 13px; color: var(--muted); }
.file-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--muted); margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.outline h2 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.outline ul { list-style: none; }
.outline li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.outline li:last-child { border-bottom: none; }
.sev-high { color: var(--risk-high); font-size: 11px; font-weight: 600; }
.sev-med { color: var(--risk-med); font-size: 11px; font-weight: 600; }
.sev-low { color: var(--risk-low); font-size: 11px; font-weight: 600; }
.main-head { margin-bottom: 8px; }
.preview-note {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--ink);
}
.finding { border-radius: var(--radius); padding: 18px; margin-bottom: 12px; position: relative; overflow: hidden; }
.finding-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.finding h3 { font-size: 16px; font-weight: 600; }
.finding .label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.finding p { font-size: 14px; margin-bottom: 10px; }
.suggest {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 0 8px 8px 0;
  white-space: pre-wrap;
}
.suggest strong { color: var(--accent); font-weight: 600; }
.finding.locked .blur-body { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248,247,244,0.15) 0%, rgba(248,247,244,0.72) 45%, rgba(248,247,244,0.92) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 22px;
}
.lock-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  box-shadow: var(--shadow);
}
.paywall {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  z-index: 20;
}
.paywall-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.paywall-copy { font-size: 14px; }
.paywall-copy strong { font-weight: 600; }
.paywall-copy span { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.paywall .btn { white-space: nowrap; background: var(--accent); color: #fff; font-size: 14px; padding: 12px 18px; }
.paywall-error { color: var(--risk-high); font-size: 13px; margin-top: 6px; }
.success-banner {
  background: #ECFDF5;
  border-color: #A7F3D0;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.success-banner h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.success-banner p { font-size: 13px; color: var(--muted); }
.email-card h2 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.email-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.email-row { display: flex; gap: 8px; flex-wrap: wrap; }
.email-row input {
  flex: 1; min-width: 160px;
  font-family: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; background: var(--paper); color: var(--ink);
}
.email-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.report-footer {
  border-top: 1px solid var(--border);
  margin-top: 28px; padding-top: 24px;
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.download-row { margin-top: 24px; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .layout { grid-template-columns: 1fr; }
  .nav-meta { font-size: 12px; }
}
@media (max-width: 800px) {
  .how { grid-template-columns: 1fr; }
}
