
:root {
  --ink: #10202a;
  --muted: #5f7180;
  --bg: #f5f9f8;
  --surface: #ffffff;
  --line: #d8e7e3;
  --navy: #102f47;
  --teal: #13b8a6;
  --green: #18a058;
  --cyan: #38bdf8;
  --amber: #f5a524;
  --danger: #d14343;
  --shadow: 0 24px 70px rgba(16, 47, 71, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 184, 166, .18), transparent 30%),
    linear-gradient(180deg, #eef8f6 0%, #f7faf9 42%, #ffffff 100%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy); color: white; padding: 10px 12px; z-index: 20; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(16, 47, 71, .1);
  background: rgba(247, 250, 249, .9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  font-size: 12px;
}
.site-header nav { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; }
.site-header nav a { text-decoration: none; }
.header-cta, .primary-action, .secondary-action, .price-card button, .doc-actions button, .inline-cta button, .site-footer button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
}
.header-cta, .primary-action, .price-card button, .doc-actions button, .inline-cta button, .site-footer button {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 12px 26px rgba(19, 184, 166, .24);
}
.secondary-action {
  color: var(--navy);
  background: white;
  border-color: var(--line);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-tool {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 5vw, 70px) clamp(18px, 5vw, 72px) 40px;
}
.hero-copy h1, .resource-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}
.hero-lead, .resource-hero p {
  max-width: 690px;
  color: #405563;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}
.eyebrow {
  margin: 0 0 12px;
  color: #087f73;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 900;
}
.hero-actions, .resource-cta-row, .doc-actions, .inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.trust-row span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
}

.scan-workbench {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(280px, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(16, 47, 71, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}
.scan-form, .audit-report, .remediation-panel, .document-stack article, .resource-layout article, .dashboard-preview {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}
.scan-form {
  padding: 18px;
}
.scan-form label, .scan-form legend, .label {
  display: block;
  color: #304756;
  font-size: 13px;
  font-weight: 800;
}
.input-row { display: flex; gap: 8px; margin: 8px 0 4px; }
.input-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
.input-row button {
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  background: var(--teal);
  font-weight: 800;
}
.scan-form p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.scan-form select {
  width: 100%;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}
.scan-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.scan-form fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.audit-report { padding: 18px; }
.report-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-topline strong { display: block; font-size: 44px; line-height: 1; color: var(--navy); }
.score-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0deg 295deg, #e3efec 295deg 360deg);
  color: var(--navy);
  font-weight: 900;
}
.score-ring span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: white; }
.report-target { overflow-wrap: anywhere; color: var(--muted); }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mini-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}
.mini-metrics strong { display: block; color: var(--ink); font-size: 20px; }
.issue-list { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.issue-list li { padding: 8px 0; color: var(--muted); }
.issue-list strong { color: var(--ink); }
.code-fix { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.code-fix span { color: var(--muted); font-size: 12px; font-weight: 800; }
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #0e202d;
  color: #d7fff8;
  line-height: 1.5;
  font-size: 13px;
}

.section-band, .split-section, .pricing-section, .resource-hero, .resource-layout, .legal-page {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}
.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading h2, .split-section h2, .legal-page h1, .legal-page h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}
.section-heading p, .split-section p, .legal-page p, .resource-layout p, .resource-layout li {
  color: var(--muted);
  line-height: 1.7;
}
.risk-grid, .pricing-grid, .faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.risk-grid article, .price-card, .faq-grid details {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 22px;
}
.risk-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dff8f3;
  color: #087f73;
  font-weight: 900;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
}
.check-list { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.remediation-panel { padding: 18px; box-shadow: var(--shadow); }
.patch-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); }
.patch-header strong { color: var(--teal); }
.dashboard-preview { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 16px; align-items: stretch; padding: 18px; }
.trend-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #ecf8f5;
}
.trend-bars span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}
.status-board { display: grid; gap: 12px; }
.status-board div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.status-board strong { display: block; font-size: 30px; color: var(--navy); }
.status-board span { color: var(--muted); }
.dashboard-preview img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: cover;
  height: 100%;
}
.document-stack { display: grid; gap: 14px; }
.document-stack article { padding: 20px; }
.document-stack span, .plan-badge { color: #087f73; font-weight: 900; font-size: 12px; text-transform: uppercase; }
.document-stack span { display: block; margin-bottom: 6px; }

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-bottom: 18px;
}
.billing-toggle button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 800;
}
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: white; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: rgba(19, 184, 166, .7); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: 18px; right: 18px; }
.price-card h3 { margin: 0; font-size: 26px; }
.price-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-line strong { font-size: 38px; color: var(--navy); }
.price-line span, .price-note { color: var(--muted); }
.price-card ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.price-card button { margin-top: auto; width: 100%; }

.resource-hero { max-width: 980px; }
.resource-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}
.resource-layout article { padding: 24px; }
.resource-layout h2 { margin-top: 0; }
.inline-cta a, .doc-actions a { font-weight: 800; color: #087f73; }
.resource-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #edf9f6;
}
.resource-next div { max-width: 760px; }
.resource-next button { flex: 0 0 auto; }
.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.checkout-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
}
.checkout-summary span { display: block; color: var(--muted); margin-bottom: 6px; }

.legal-page { max-width: 940px; }
.legal-page h1 { font-size: clamp(42px, 6vw, 72px); }
.legal-page h2 { margin-top: 34px; font-size: 26px; }

.site-footer {
  padding: 42px clamp(18px, 5vw, 72px);
  background: #0e202d;
  color: #eef8f6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}
.site-footer a, .site-footer button { display: block; margin: 8px 0; color: inherit; }
.site-footer button { width: fit-content; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; color: #8ee5d7; }
.site-footer p, .muted, .fineprint { color: #b7c8ce; line-height: 1.7; }
.fineprint { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; font-size: 13px; }

.checkout-overlay[hidden] { display: none; }
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 18, 26, .5);
  backdrop-filter: blur(12px);
}
body.checkout-open > *:not(.checkout-overlay) { filter: blur(4px); }
.modal-shell {
  width: min(620px, 100%);
  max-height: min(780px, calc(100vh - 28px));
  overflow: auto;
  position: relative;
  border-radius: 8px;
  background: white;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 900;
}
.modal-lead { color: var(--muted); line-height: 1.6; }
.modal-plans { display: grid; gap: 10px; margin: 16px 0; }
.modal-plans button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}
.modal-plans button.selected { border-color: var(--teal); background: #eefbf8; }
.modal-plans small { color: var(--muted); }
.selected-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f6fbfa;
  margin: 16px 0;
}
.selected-summary span { display: block; color: var(--muted); }
.selected-summary strong { display: block; font-size: 24px; color: var(--navy); margin: 5px 0; }
.selected-summary p { margin: 0; color: var(--muted); }
.full-width { width: 100%; justify-content: center; text-align: center; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px;
  width: 100%;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-tool, .split-section { grid-template-columns: 1fr; }
  .scan-workbench { grid-template-columns: 1fr; }
  .risk-grid, .pricing-grid, .faq-grid, .dashboard-preview, .footer-grid, .resource-layout, .checkout-summary { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .resource-next { display: grid; }
}

@media (max-width: 560px) {
  .hero-copy h1, .resource-hero h1 { font-size: 42px; }
  .hero-tool, .section-band, .split-section, .pricing-section, .resource-hero, .resource-layout, .legal-page { padding-left: 16px; padding-right: 16px; }
  .input-row { flex-direction: column; }
  .mini-metrics { grid-template-columns: 1fr; }
  .site-header { gap: 10px; }
  .brand span:last-child { display: none; }
}
