
:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --panel: #eef4f4;
  --ink: #172026;
  --muted: #5b6871;
  --line: #d8e0e3;
  --brand: #116466;
  --brand-dark: #0b4448;
  --accent: #c36b3d;
  --gold: #ad8526;
  --blue: #2d5d84;
  --shadow: 0 18px 45px rgba(17, 32, 38, 0.11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 42px);
  background: rgba(245, 247, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
}
.nav-link:hover, .nav-link.active { color: var(--brand-dark); background: #e8eeee; }
main { width: 100%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
  min-height: calc(100vh - 64px);
  padding: clamp(18px, 3.2vw, 42px);
}
.hero-copy, .tool-panel, .plain-hero, .checkout-page, .legal-page, .band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 4vw, 46px);
  min-height: 560px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: 0;
}
h2 { font-size: 34px; line-height: 1.08; letter-spacing: 0; margin-bottom: 12px; }
h3 { font-size: 20px; letter-spacing: 0; margin-bottom: 8px; }
.lead { color: #33424a; font-size: 18px; max-width: 680px; }
.hero-actions, .tool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  background: #fff;
  color: var(--brand-dark);
}
.button.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(17, 100, 102, 0.22);
}
.button.secondary { background: #eef4f4; }
.button:hover { transform: translateY(-1px); }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 0;
}
.hero-facts div {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.hero-facts dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.hero-facts dd { margin: 2px 0 0; color: #2f3c44; }
.tool-panel {
  padding: clamp(16px, 2.5vw, 26px);
  min-height: 560px;
  box-shadow: var(--shadow);
}
.tool-head, .section-head, .pricing-head, .receipt-top, .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.tool-head h2 { margin-bottom: 0; }
.score-pill {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.workbench-visual {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 100px;
  margin: 12px 0 18px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.flow-node {
  min-height: 58px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}
.flow-node.active { background: #e6f3f2; color: var(--brand-dark); border-color: #9fc8c7; }
.flow-edge { height: 2px; background: var(--gold); }
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
label span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 5px;
}
label.wide { grid-column: 1 / -1; }
select, input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
}
.status-rail, .result-grid, .pricing-grid, .evidence-grid, .link-grid {
  display: grid;
  gap: 12px;
}
.status-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; }
.status-rail div, .result-block, .evidence-card, .price-card, .link-card, .receipt, .checkout-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.status-rail span, .label, .capability-id, .audience { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status-rail strong { display: block; margin-top: 4px; color: var(--brand-dark); }
.result-grid { grid-template-columns: 1fr 1fr 1.25fr; }
.result-block strong { display: block; font-size: 24px; color: var(--brand-dark); margin: 4px 0; }
pre {
  margin: 7px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.35;
  color: #20323a;
}
.band, .plain-hero, .checkout-page, .legal-page {
  margin: clamp(16px, 3vw, 30px) clamp(16px, 4vw, 42px);
  padding: clamp(22px, 4vw, 42px);
}
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}
.steps { padding-left: 20px; margin-bottom: 0; }
.steps li { margin: 8px 0; }
.receipt ul, .price-card ul { padding-left: 18px; color: #33424a; }
.meter { height: 9px; background: #e8ecef; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.meter span { display: block; height: 100%; background: var(--brand); }
.evidence-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evidence-card p { color: #33424a; }
.pricing-head { align-items: center; }
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e8eeee;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.billing-toggle button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}
.billing-toggle button.active { background: #fff; color: var(--brand-dark); box-shadow: 0 2px 8px rgba(17, 32, 38, 0.08); }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan-badge {
  align-self: flex-start;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}
.price-line { display: flex; align-items: baseline; gap: 5px; }
.price-value { font-size: 38px; line-height: 1; color: var(--brand-dark); }
.fine-print { color: var(--muted); min-height: 42px; }
.price-card .button { margin-top: auto; }
.link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.link-card { min-height: 175px; }
.link-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.link-card span { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.link-card strong { display: block; margin: 8px 0; color: var(--brand-dark); }
.plain-hero { max-width: none; }
.plain-hero p { max-width: 850px; color: #33424a; }
.checkout-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  align-items: start;
}
.summary-plan {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.summary-plan.active { border-color: var(--brand); background: #ecf5f4; }
.wide-button { width: 100%; margin-top: 8px; }
.legal-page { max-width: 900px; }
.legal-page p { color: #33424a; }
.site-footer {
  margin: 32px clamp(16px, 4vw, 42px) 40px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--brand-dark); font-weight: 800; display: block; margin-top: 4px; }
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 25, 30, 0.48);
  backdrop-filter: blur(6px);
}
.checkout-overlay.open { display: grid; }
.checkout-dialog {
  max-width: 520px;
  width: min(520px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.checkout-dialog p { color: #33424a; }
.checkout-dialog .dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy, .tool-panel { min-height: auto; }
  .evidence-grid, .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1280px) and (min-width: 1121px) {
  h1 { font-size: 42px; line-height: 1.02; }
  h2 { font-size: 29px; }
  .lead { font-size: 17px; }
  .hero-facts { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero { padding: 14px; }
  .hero-copy { padding: 22px; }
  h1 { font-size: 34px; line-height: 1.04; }
  h2 { font-size: 27px; }
  .hero-facts, .control-grid, .status-rail, .result-grid, .split-band, .pricing-grid, .checkout-page, .evidence-grid, .link-grid {
    grid-template-columns: 1fr;
  }
  .hero-facts { display: none; }
  .workbench-visual { grid-template-columns: 1fr; }
  .flow-edge { height: 20px; width: 2px; margin: 0 auto; }
  .band, .plain-hero, .checkout-page, .legal-page { margin: 14px; padding: 20px; }
  .pricing-head, .site-footer { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
}
