:root {
  --ink: #152023;
  --muted: #52656a;
  --line: #d5dfde;
  --surface: #ffffff;
  --paper: #f4f8f6;
  --green: #0f7b68;
  --green-dark: #084b40;
  --amber: #d48a1f;
  --coral: #c84c43;
  --blue: #3066be;
  --shadow: 0 18px 50px rgba(15, 54, 49, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
p { line-height: 1.58; }
.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 248, 246, .94);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.brand span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}
.brand strong { font-size: 16px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav-link, .header-pricing {
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.nav-link.active, .nav-link:hover, .header-pricing { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, .84fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 5vw, 70px) clamp(18px, 5vw, 72px);
}
.hero-copy { max-width: 760px; }
.eyebrow {
  color: var(--green-dark);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .06em;
  margin: 0 0 12px;
}
h1, h2, h3 { letter-spacing: 0; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: .98; margin: 0 0 18px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; margin: 0 0 16px; }
h3 { margin: 0 0 10px; font-size: 22px; }
.lead { font-size: 20px; color: #34464a; margin: 0; max-width: 720px; }
.hero-actions, .tool-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.button.primary { background: var(--green); color: #fff; border-color: var(--green); }
.button.secondary { background: #fff; }
.hero-facts { display: grid; gap: 10px; margin-top: 24px; }
.hero-facts div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}
dt { font-weight: 900; color: var(--green-dark); }
dd { margin: 0; color: var(--muted); }
.tool-panel, .receipt, .evidence-card, .page-tile, .price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tool-panel { padding: 18px; box-shadow: var(--shadow); }
.tool-head, .receipt-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.score-pill {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0 82%, #e2e8e6 82% 100%);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 8px #fff;
}
.scanner-visual {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  min-height: 170px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #213b3a;
  border-radius: 8px;
  background: #102525;
  color: #edf7f4;
}
.scan-source, .scan-output { display: grid; align-content: center; gap: 8px; }
.scan-source span { color: #a9c7c3; font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: .06em; }
.scan-source b {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}
.scan-source i { width: 2px; height: 12px; margin-left: 18px; background: var(--amber); }
.line {
  display: block;
  height: 16px;
  border-radius: 8px;
  background: #d5e9e5;
}
.line.long { width: 95%; }
.line.medium { width: 74%; }
.line.short { width: 48%; }
.line.warning { background: var(--coral); }
.line.safe { background: var(--green); }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.control-grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 850; color: #334447; }
label span { font-size: 13px; }
textarea, input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
}
textarea { resize: vertical; min-height: 112px; }
.result-grid, .preview-columns {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preview-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-block { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.label, .capability-id { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.result-block strong { display: block; margin: 7px 0; font-size: 24px; }
.result-block p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; font-size: 12px; line-height: 1.48; color: #26343a; max-height: 260px; overflow: auto; }
.band { padding: clamp(42px, 6vw, 82px) clamp(18px, 5vw, 72px); }
.section-head { max-width: 880px; margin-bottom: 26px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.split-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}
.steps { padding-left: 22px; line-height: 1.8; color: #334447; }
.receipt { padding: 20px; box-shadow: var(--shadow); border-left: 5px solid var(--amber); }
.mini-receipt { min-width: 0; box-shadow: none; }
.receipt ul, .price-card ul { padding-left: 20px; line-height: 1.75; color: #36484b; }
.meter { height: 12px; border-radius: 999px; background: #e4eae8; overflow: hidden; margin: 18px 0; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.evidence-band { background: #eaf2ef; }
.research-band { background: #fff; }
.evidence-grid, .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.evidence-card { padding: 18px; min-height: 260px; }
.evidence-card p { color: #39484b; line-height: 1.48; }
.stat-grid div { background: #f7faf9; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stat-grid span { color: var(--muted); display: block; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.stat-grid strong { display: block; margin-top: 8px; font-size: 28px; }
.source-note { color: var(--muted); max-width: 900px; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-tile { display: block; padding: 18px; text-decoration: none; min-height: 190px; }
.page-tile span { color: var(--green-dark); font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: .06em; }
.page-tile strong { display: block; margin: 10px 0; font-size: 19px; line-height: 1.18; }
.page-tile p { color: var(--muted); line-height: 1.45; }
.page-tile.current { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pricing-band { background: #172322; color: #f7fbf9; }
.pricing-band .section-head p, .pricing-band .fine-print { color: #c8d6d3; }
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: #263836;
  border: 1px solid #415a56;
  border-radius: 8px;
}
.billing-toggle button {
  border: 0;
  border-radius: 8px;
  min-width: 96px;
  padding: 10px 14px;
  color: #d9e5e2;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.billing-toggle button.active { background: #fff; color: var(--ink); }
.pricing-head { display: flex; justify-content: space-between; gap: 24px; max-width: none; align-items: end; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { padding: 22px; color: var(--ink); position: relative; }
.price-card.featured { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber), 0 18px 46px rgba(0, 0, 0, .18); }
.featured-label { position: absolute; top: 14px; right: 14px; background: var(--amber); color: #1f1a12; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.price span { font-size: 44px; font-weight: 900; }
.price small { color: var(--muted); }
.fine-print { font-size: 14px; }
.prose { max-width: 900px; line-height: 1.72; font-size: 18px; }
.checkout-page {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, .45fr);
  gap: 32px;
  align-items: center;
  padding: clamp(42px, 8vw, 110px) clamp(18px, 5vw, 72px);
}
.checkout-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #101918;
  color: #e7eeee;
}
.site-footer p { max-width: 720px; color: #bccbc8; margin-bottom: 0; }
.site-footer div:last-child { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; }
.site-footer a { color: #fff; }
.payment-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 25, 24, .42);
  backdrop-filter: blur(9px);
}
.payment-backdrop[hidden] { display: none; }
.payment-dialog {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .28);
}
@media (max-width: 1100px) {
  .hero, .split-band, .checkout-page { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .evidence-grid, .stat-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-head { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { width: 100%; justify-content: flex-start; }
  .header-pricing { display: none; }
  .hero { padding-top: 18px; gap: 16px; }
  h1 { font-size: 34px; line-height: 1.04; margin-bottom: 12px; }
  .lead { font-size: 16px; line-height: 1.42; }
  .hero-actions, .tool-actions { margin: 14px 0 12px; }
  .hero-facts { display: none; }
  .tool-head h2 { font-size: 24px; }
  .score-pill { width: 54px; height: 54px; }
  .scanner-visual { grid-template-columns: 1fr; min-height: auto; }
  .control-grid, .result-grid, .preview-columns, .evidence-grid, .stat-grid, .pricing-grid, .page-grid, .checkout-summary { grid-template-columns: 1fr; }
  .hero-facts div { grid-template-columns: 1fr; gap: 4px; }
  .button { width: 100%; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; min-width: 0; }
  .site-footer { flex-direction: column; }
  .site-footer div:last-child { justify-content: flex-start; }
}