
:root {
  --ink: #122033;
  --muted: #5d6b7c;
  --line: #d9e4ed;
  --paper: #ffffff;
  --cloud: #f3f8fc;
  --steel: #e7f0f7;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #f59e0b;
  --red: #dc2626;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(18, 32, 51, .13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
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(--cloud);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.page-shell { min-height: 100vh; transition: filter .18s ease; }
body.checkout-active .page-shell { filter: blur(5px); pointer-events: none; user-select: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(243, 248, 252, .92);
  border-bottom: 1px solid rgba(217, 228, 237, .9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.12);
}
nav { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--blue); }
.header-cta, .primary-btn, .secondary-btn, .ghost-btn, .plan-cta, .console-actions button, .inline-cta button, .site-footer button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  white-space: nowrap;
}
.header-cta, .primary-btn, .plan-cta, .inline-cta button, .site-footer button {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}
.secondary-btn, .ghost-btn, .console-actions button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.compact-btn { min-height: 42px; }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(520px, 1.12fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(24px, 4vw, 48px) clamp(18px, 5vw, 72px);
}
.hero-copy { max-width: 650px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  max-width: 780px;
  letter-spacing: 0;
}
.hero-lede, .page-hero > p, .section-heading p, .evidence-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.trust-strip span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 7px 10px;
}

.benchmark-console {
  background: #fdfefe;
  border: 1px solid #cbd8e3;
  border-radius: 10px;
  padding: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow);
}
.console-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-size: 14px;
}
.console-topline div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(15,118,110,.12); }
.pill { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.pill.danger { background: #fee2e2; color: #991b1b; }

.benchmark-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.benchmark-form label, .benchmark-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.benchmark-form select {
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: none;
}
.benchmark-form fieldset {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.benchmark-form legend { padding: 0 5px; }
.check-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric-card {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
}
.metric-card span, .metric-card small { display: block; color: #b8c7d6; font-size: 12px; }
.metric-card strong { display: block; margin: 4px 0; font-size: 25px; }
.comparison-panel, .curve-panel, .failure-panel, .report-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-heading h2 { font-size: 15px; margin: 0; }
.panel-heading span { color: var(--muted); font-size: 12px; }
.agent-bars { display: grid; gap: 9px; }
.agent-row { display: grid; grid-template-columns: 112px 1fr 48px; gap: 9px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; background: #eaf0f5; border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--rate); background: var(--bar); border-radius: 999px; }
.curve-panel svg { width: 100%; height: 130px; display: block; }
.curve-panel text { font: 700 13px Inter, Arial, sans-serif; fill: var(--muted); }
.failure-panel ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.console-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.section { padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px); }
.section.compact { padding-top: 44px; }
.section-heading { max-width: 820px; margin-bottom: 28px; }
.section-heading h2, .evidence-band h2, .pricing-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-grid article, .resource-card, .guide-side, .plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 30px;
  border-radius: 7px;
  background: var(--steel);
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 12px;
}
.feature-grid h3, .resource-card strong, .guide-side h2 { margin: 0 0 8px; }
.feature-grid p, .resource-card p, .plan-card p, .site-footer p, .legal-page p, .guide-main p, .guide-main li, .guide-side p { color: var(--muted); line-height: 1.62; }

.evidence-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: 28px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 10px;
  background: #122033;
  color: #fff;
}
.evidence-band p { color: #c7d7e6; }
.report-card { margin: 0; color: var(--ink); }
.report-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: 0; }
.report-row span { color: var(--muted); }

.pricing-section { scroll-margin-top: 84px; }
.pricing-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.pricing-head p { color: var(--muted); margin-bottom: 0; }
.pricing-head-actions { display: grid; gap: 10px; justify-items: end; }
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  min-height: 34px;
  padding: 0 13px;
  font-weight: 800;
  color: var(--muted);
}
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.plan-card { position: relative; display: grid; gap: 12px; align-content: start; }
.plan-card.featured {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 18px 50px rgba(37, 99, 235, .14);
}
.featured-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
.plan-title h3 { margin: 0; font-size: 22px; }
.plan-title p { margin: 4px 0 0; max-width: 220px; }
.price-line { display: flex; align-items: baseline; gap: 6px; }
.price-line strong { font-size: 42px; line-height: 1; }
.price-line span, .billing-note, .limit { color: var(--muted); }
.billing-note, .limit { margin: 0; font-size: 13px; }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }

.resources-section { padding-top: 32px; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.resource-card { display: grid; gap: 8px; min-height: 190px; }
.resource-card span { color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.resource-card:hover { border-color: var(--blue); transform: translateY(-2px); transition: .18s ease; }

.faq-list { display: grid; gap: 10px; max-width: 920px; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
summary { cursor: pointer; font-weight: 900; }
details p { color: var(--muted); line-height: 1.6; }

.page-hero {
  padding: clamp(46px, 7vw, 78px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 52px);
  background: linear-gradient(180deg, #f3f8fc 0%, #fff 100%);
}
.page-hero.short-hero { padding-bottom: 26px; }
.page-hero h1 { max-width: 900px; font-size: clamp(38px, 5vw, 58px); }
.page-hero > p { max-width: 850px; }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px) 54px;
}
.guide-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
}
.guide-main h2 { margin: 26px 0 10px; font-size: 25px; }
.guide-main h2:first-child { margin-top: 0; }
.guide-main li { margin-bottom: 8px; }
.guide-side { position: sticky; top: 94px; align-self: start; display: grid; gap: 10px; }
.guide-side a { color: var(--blue); font-weight: 800; }
.inline-cta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #b7d8ff;
  background: #eef6ff;
  border-radius: 8px;
  padding: 18px;
}
.inline-cta span { display: block; color: var(--muted); margin-top: 4px; }

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) clamp(18px, 5vw, 42px);
}
.legal-page h1 { font-size: clamp(38px, 5vw, 58px); }
.legal-page h2 { margin-top: 30px; }
.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 760px;
  margin: 22px 0 4px;
}
.checkout-summary div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.checkout-summary span { display: block; color: var(--muted); font-size: 12px; }
.checkout-summary strong { display: block; margin-top: 4px; }
.compact-summary { grid-template-columns: 1fr; margin: 16px 0; }

.site-footer {
  padding: 42px clamp(18px, 5vw, 72px);
  background: #0f172a;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1fr .8fr;
  gap: 26px;
}
.site-footer h2 { font-size: 14px; margin: 0 0 12px; }
.site-footer a, .site-footer button { display: flex; margin: 9px 0; color: #d7e3ef; }
.site-footer button { color: #fff; width: fit-content; }
.site-footer p { color: #b8c7d6; }
.fineprint { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; margin-top: 28px; font-size: 13px; }
.muted { color: var(--muted); }

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 18, 32, .42);
}
.checkout-dialog {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(10, 18, 32, .34);
  position: relative;
}
.checkout-dialog h2 { margin: 0 0 10px; font-size: 29px; }
.checkout-dialog p { color: var(--muted); line-height: 1.6; }
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.loading-bar { height: 8px; background: #e7eef5; border-radius: 999px; overflow: hidden; }
.loading-bar span { display: block; height: 100%; width: 42%; background: var(--blue); border-radius: 999px; animation: load 1.2s ease-in-out infinite alternate; }
@keyframes load { from { transform: translateX(-10%); } to { transform: translateX(155%); } }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .feature-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .evidence-band, .guide-layout { grid-template-columns: 1fr; }
  .guide-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: auto; min-height: 64px; align-items: flex-start; padding: 12px 16px; }
  nav { display: none; }
  .header-cta { min-height: 38px; padding: 0 12px; }
  .hero { padding: 24px 16px; }
  h1 { font-size: 38px; }
  .benchmark-form, .metric-grid, .checkout-summary, .feature-grid, .resource-grid, .footer-grid { grid-template-columns: 1fr; }
  .agent-row { grid-template-columns: 94px 1fr 42px; }
  .pricing-head, .inline-cta { flex-direction: column; align-items: stretch; }
  .pricing-head-actions { justify-items: stretch; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; }
  .evidence-band { margin: 0 16px; padding: 22px; }
  .page-hero, .section, .guide-layout, .site-footer { padding-left: 16px; padding-right: 16px; }
}
