:root {
  color-scheme: light;
  --ink: #171b1f;
  --muted: #5d676d;
  --line: #d9ded7;
  --paper: #f7f5ee;
  --panel: #ffffff;
  --green: #16765f;
  --green-dark: #0f5c4a;
  --amber: #e5a936;
  --coral: #d95f48;
  --violet: #6d5bd0;
  --shadow: 0 18px 60px rgba(29, 33, 36, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 245, 238, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 27, 31, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--coral));
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.nav-link {
  text-decoration: none;
  color: #3d464b;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-link.active, .nav-link:hover { color: var(--green-dark); background: rgba(22, 118, 95, .1); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, .7fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(22px, 4vw, 56px) clamp(18px, 5vw, 72px);
}
.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(44px, 7vw, 86px); line-height: .98; letter-spacing: 0; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: 0; }
.lead { max-width: 760px; color: #374248; font-size: 20px; line-height: 1.55; }
.hero-actions, .tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary:hover { border-color: var(--green); color: var(--green-dark); }
.hero-facts { display: grid; gap: 8px; margin-top: 22px; }
.hero-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.hero-facts dt { font-weight: 900; color: var(--green-dark); }
.hero-facts dd { margin: 0; color: var(--muted); line-height: 1.45; }
.tool-panel, .receipt, .evidence-card, .page-tile, .price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tool-panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
}
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tool-head h2 { margin-bottom: 0; font-size: 30px; }
.score-pill {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--ink);
  background: conic-gradient(var(--green) 0 82%, #e4e5dc 82% 100%);
  font-weight: 950;
  box-shadow: inset 0 0 0 8px #fff;
}
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brief-grid .wide { grid-column: 1 / -1; }
label span, .channel-field legend { display: block; margin-bottom: 6px; color: #394348; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cdd4cc;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcf8;
}
textarea { resize: vertical; min-height: 88px; }
.channel-field {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
}
.channel-field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #e0e4dd;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}
.channel-field input { width: auto; }
.result-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 12px; }
.result-block { min-width: 0; padding: 14px; background: #f5f7ef; border: 1px solid #e1e6dc; border-radius: 8px; }
.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: 18px; }
.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.5; color: #26343a; }
.band { padding: clamp(42px, 6vw, 82px) clamp(18px, 5vw, 72px); }
.section-head { max-width: 820px; 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: #334044; }
.receipt { padding: 20px; box-shadow: var(--shadow); border-left: 5px solid var(--amber); }
.receipt ul, .price-card ul { padding-left: 20px; line-height: 1.75; color: #364446; }
.meter { height: 12px; border-radius: 999px; background: #e4e8e5; overflow: hidden; margin: 18px 0; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.evidence-band { background: #eef0e7; }
.evidence-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; }
.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: #171b1f; color: #f7fbf9; }
.pricing-band .section-head p, .pricing-band .fine-print { color: #c9d2cf; }
.pricing-head { display: flex; justify-content: space-between; gap: 24px; max-width: none; align-items: end; }
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: #283037;
  border: 1px solid #4d565c;
  border-radius: 8px;
}
.billing-toggle button {
  border: 0;
  border-radius: 8px;
  min-width: 96px;
  padding: 10px 14px;
  color: #d9e4e1;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.billing-toggle button.active { background: #fff; color: var(--ink); }
.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); }
.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; }
.checkout-summary input { background: #fff; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #111619;
  color: #e7eeee;
}
.site-footer p { max-width: 680px; color: #bcc9c6; 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, 28, .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: 1080px) {
  .hero, .split-band, .checkout-page { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .evidence-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-head { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { width: 100%; max-width: 100%; justify-content: flex-start; gap: 4px; overflow: hidden; }
  .nav-link { font-size: 13px; padding: 7px 8px; }
  .header-pricing { display: none; }
  .hero { padding-top: 18px; gap: 16px; }
  .hero, .tool-panel, .band, .checkout-page { max-width: 100%; overflow-x: hidden; }
  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; }
  .tool-panel { padding: 16px; }
  .brief-grid, .result-grid, .evidence-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; }
}