
:root {
  --ink: #181c23;
  --muted: #5b6572;
  --line: #e0d9d1;
  --panel: #ffffff;
  --paper: #f6f4ef;
  --navy: #171b22;
  --blue: #1b7b8c;
  --blue-deep: #0f5968;
  --green: #16805a;
  --amber: #c37b1d;
  --red: #d8422f;
  --heat: #ffb22e;
  --shadow: 0 18px 50px rgba(44, 28, 14, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.page { min-height: 100vh; transition: filter .18s ease; }
body.payment-active .page { filter: blur(4px); pointer-events: none; user-select: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(245, 248, 251, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 18px; color: #385166; font-size: 14px; font-weight: 800; }
.nav-links a:hover { color: var(--blue); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(28, 109, 208, .24); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: #9eb5ca; color: var(--blue-deep); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.hero {
  max-width: 1220px;
  margin: 0 auto;
  min-height: min(760px, calc(100svh - 64px));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 20px 24px 28px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 660px;
  color: var(--navy);
  font-size: clamp(40px, 4.7vw, 60px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: #40566b;
  font-size: 18px;
  line-height: 1.58;
}
.hero-actions, .panel-actions, .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.price-note { color: var(--muted); font-size: 13px; font-weight: 800; margin: 12px 0 0; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.hero-metrics span, .signal-strip div, .evidence-grid div, .checkout-summary span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.hero-metrics strong, .signal-strip strong { display: block; color: var(--navy); font-size: 14px; }
.audit-console {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.console-head, .pricing-head, .section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.console-head h2, .section h2, .pricing h2, .faq h2, .resource-hero h1, .checkout-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}
.risk-pill, .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
}
.risk-pill.high { color: #fff; background: var(--red); }
.badge { color: #fff; background: var(--green); position: absolute; top: 14px; right: 14px; }
.burn-meter {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #f1c46d;
  border-radius: 8px;
  background: #fff8e7;
}
.burn-meter div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #6b4b09;
  font-weight: 900;
}
.burn-meter strong { color: var(--red); font-size: 28px; }
.burn-meter meter { width: 100%; height: 16px; margin: 8px 0 6px; }
.burn-meter p { margin: 0; color: #6b4b09; font-size: 13px; line-height: 1.45; }
.scope-switch, .billing-toggle {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.scope-switch button, .billing-toggle button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #f8fbfe;
  color: #354d63;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}
.scope-switch button.active, .billing-toggle button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.diff-list { display: grid; gap: 8px; }
.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 112px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #b9c9d9;
  border-radius: 8px;
  background: #f9fbfd;
  font-size: 13px;
}
.diff-row.active, .diff-row.critical { border-left-color: var(--red); background: #fff5f0; }
.path { font-family: "SFMono-Regular", Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actor, .status { text-align: center; border-radius: 8px; padding: 6px 8px; font-weight: 900; background: #e4f5f6; color: #115d69; }
.actor.human { color: #29513e; background: #e8f6ee; }
.status.ok { color: #16633f; background: #e5f6ed; }
.status.warn { color: #7b4a03; background: #fff2cf; }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.evidence-grid span { display: block; color: var(--muted); font-size: 12px; }
.evidence-grid strong { display: block; margin-top: 3px; color: var(--navy); }
.audit-timeline {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.audit-timeline li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef5fb;
  color: var(--muted);
  font-size: 13px;
}
.audit-timeline strong { color: var(--navy); }
.trace-input {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #394452;
  font-size: 12px;
  font-weight: 900;
}
.trace-input textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #171b22;
  color: #f6f4ef;
  font: 12px/1.45 "SFMono-Regular", Consolas, monospace;
}
.unlock-card {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #b7d4ef;
  border-radius: 8px;
  background: #eef9fb;
}
.unlock-card p { margin: 6px 0 0; color: var(--muted); }
.signal-strip {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 58px 24px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 32px;
  align-items: center;
}
.section p, .resource-hero p, .checkout-panel p, .legal p {
  color: var(--muted);
  line-height: 1.68;
}
.check-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li {
  padding: 12px 12px 12px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  position: relative;
  color: #31495f;
  font-weight: 700;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}
.visual-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.visual-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.visual-card figcaption { padding: 12px 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.workflow-card, .faq-card, .guide-card, .plan, .checkout-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}
.workflow-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 950;
}
.workflow-card h3, .faq-card h3, .guide-card h2, .plan h3 { margin: 14px 0 8px; color: var(--navy); }
.pricing { scroll-margin-top: 80px; }
.pricing-head p { max-width: 640px; }
.top-pricing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px solid #b7d4ef;
  background: #eef9fb;
  border-radius: 8px;
  color: #28465f;
  font-weight: 850;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.plan {
  position: relative;
  min-height: 378px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan.featured { border-color: #7bb8ed; box-shadow: var(--shadow); }
.price { margin-top: 4px; color: var(--navy); font-size: 42px; font-weight: 950; line-height: 1; }
.price small { color: var(--muted); font-size: 16px; }
.plan-note, .repo-note { margin: 0; font-size: 13px; }
.repo-note { font-weight: 900; color: var(--blue-deep); }
.plan ul { margin: 4px 0 0; padding-left: 20px; color: #31495f; line-height: 1.55; }
.faq-grid, .guide-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.guide-card li { margin-bottom: 10px; color: #31495f; line-height: 1.58; }
.product-bridge { grid-column: span 2; background: #eef9fb; }
.resource-hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 58px 24px 24px;
}
.resource-hero.compact { padding-bottom: 6px; }
.resource-hero h1 { max-width: 940px; }
.resource-hero p { max-width: 820px; font-size: 18px; }
.checkout-page {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: 42px 24px;
}
.checkout-panel {
  width: min(760px, 100%);
  box-shadow: var(--shadow);
}
.checkout-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.legal { max-width: 900px; margin: 0 auto; padding: 58px 24px; }
.legal h1 { margin: 0; font-size: clamp(38px, 5vw, 54px); letter-spacing: 0; }
.legal h2 { margin-top: 32px; color: var(--navy); }
.footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 24px 46px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 30px;
  border-top: 1px solid var(--line);
}
.footer p { color: var(--muted); line-height: 1.58; }
.fineprint { font-size: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: #31516b;
  font-weight: 800;
}
.footer-grid a:hover, .footer a:hover { color: var(--blue); }
.payment-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 26, 40, .48);
}
.payment-card {
  position: relative;
  width: min(480px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}
.payment-card h2 { margin: 0 0 8px; }
.icon-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
[hidden] { display: none !important; }
@media (max-width: 1060px) {
  .hero, .two-col, .footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 28px; }
  .audit-console { max-width: 760px; }
  .signal-strip, .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .nav-links { display: none; }
  .topbar .btn { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-metrics, .evidence-grid, .signal-strip, .workflow-grid, .plans, .faq-grid, .guide-layout { grid-template-columns: 1fr; }
  .diff-row { grid-template-columns: 1fr; align-items: start; }
  .actor, .status { text-align: left; width: fit-content; }
  .audit-timeline li, .unlock-card { grid-template-columns: 1fr; }
  .console-head, .pricing-head, .section-head { flex-direction: column; }
  .product-bridge { grid-column: span 1; }
  .hero-actions .btn, .panel-actions .btn, .section-actions .btn, .top-pricing-cta .btn, .checkout-panel .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
