:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5f6f75;
  --paper: #f6f7f3;
  --panel: #ffffff;
  --line: #d9dfdc;
  --green: #127a67;
  --green-dark: #075d4e;
  --blue: #2f5f8f;
  --amber: #e4a22d;
  --coral: #c85a4a;
  --shadow: 0 18px 52px rgba(23, 32, 38, .14);
}
* { 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);
  letter-spacing: 0;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(246, 247, 243, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; max-width: 720px; }
.nav-link, .header-pricing {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link.active, .nav-link:hover, .header-pricing:hover { color: var(--ink); background: #e8ece7; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 5vw, 66px) clamp(18px, 5vw, 72px) 34px;
  min-height: calc(100vh - 68px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(47, 95, 143, .08) 1px, transparent 1px),
    linear-gradient(rgba(18, 122, 103, .08) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}
.hero-copy { max-width: 780px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 5.8vw, 72px); line-height: .98; margin-bottom: 20px; max-width: 860px; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; margin-bottom: 14px; }
h3 { font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: #324147; max-width: 760px; }
.hero-actions, .tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.button {
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 14px 28px rgba(18, 122, 103, .22); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.fine-print { color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero-facts { display: grid; gap: 10px; margin: 24px 0 0; }
.hero-facts div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--green-dark); font-weight: 850; }
.hero-facts dd { margin: 0; color: #3d4a50; line-height: 1.45; }
.tool-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #ccd8d3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
}
.tool-head, .receipt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.score-pill {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: conic-gradient(var(--green) 0 84%, #e4e8e5 84% 100%);
  font-weight: 900;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.canvas-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #111b20; margin: 16px 0; aspect-ratio: 16 / 9; }
canvas { display: block; width: 100%; height: 100%; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.control-grid.compact { grid-template-columns: 1fr 1fr .8fr; align-items: end; }
label span { display: block; color: var(--muted); font-size: 13px; font-weight: 850; margin-bottom: 6px; }
select, textarea, input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}
input[type="range"] { padding: 0; min-height: 42px; }
input[type="file"] { min-height: 42px; }
.result-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.result-block, .receipt, .evidence-card, .price-card, .page-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.result-block { padding: 14px; min-width: 0; }
.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; }
.pricing-head { display: flex; justify-content: space-between; gap: 24px; max-width: none; align-items: end; }
.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: #edf1ed; }
.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: #172026; color: #f7fbf9; }
.pricing-band .section-head p, .pricing-band .fine-print { color: #c8d4d1; }
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: #243038;
  border: 1px solid #41515a;
  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: #10191c;
  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: 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) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { width: 100%; }
  .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; }
  .canvas-frame { margin: 10px 0; }
  .tool-panel { padding: 16px; }
  .control-grid, .control-grid.compact, .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; }
}
