:root {
  --bg: oklch(99% 0.004 245);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(97% 0.008 245);
  --fg: oklch(18% 0.018 250);
  --muted: oklch(48% 0.018 250);
  --border: oklch(89% 0.008 250);
  --accent: oklch(57% 0.18 235);
  --accent-2: oklch(60% 0.13 165);
  --warn: oklch(72% 0.15 72);
  --danger: oklch(58% 0.18 28);
  --ok: oklch(58% 0.13 155);
  --ink: oklch(14% 0.02 250);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 24px 70px oklch(18% 0.02 250 / 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, oklch(96% 0.012 245) 100%);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-weight: 720;
  padding: 10px 14px;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid oklch(80% 0.1 235 / 0.42);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid oklch(92% 0.006 250 / 0.8);
  background: oklch(99% 0.004 245 / 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 22px oklch(18% 0.02 250 / 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-2);
  color: var(--fg);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 720;
  padding: 11px 17px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--fg);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--fg);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
}

.hero {
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.kicker,
.eyebrow {
  color: var(--accent);
  font: 720 12px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  text-wrap: pretty;
}

h1 {
  max-width: 900px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.97;
  margin-top: 20px;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

h3 {
  font-size: 21px;
  line-height: 1.18;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: oklch(34% 0.018 250);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.72);
  color: var(--muted);
  font: 650 13px/1 var(--font-body);
  padding: 9px 12px;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: oklch(100% 0 0 / 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--border);
}

.panel-body {
  padding: 22px;
}

.evidence-map {
  display: grid;
  gap: 12px;
}

.evidence-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 14px;
}

.step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: oklch(94% 0.04 235);
  color: var(--accent);
  font: 800 12px/1 var(--font-mono);
}

.step-label {
  color: var(--fg);
  font-weight: 760;
}

.step-note,
.mini {
  color: var(--muted);
  font-size: 13px;
}

.status {
  border-radius: 999px;
  background: oklch(93% 0.045 155);
  color: oklch(35% 0.1 155);
  font: 800 11px/1 var(--font-mono);
  padding: 7px 9px;
  text-transform: uppercase;
}

.section {
  padding: 68px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 560px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: oklch(100% 0 0 / 0.82);
  padding: 22px;
}

.card strong {
  color: var(--fg);
}

.card .tag {
  display: inline-flex;
  margin-bottom: 16px;
}

.tag {
  border-radius: 999px;
  background: oklch(94% 0.04 235);
  color: var(--accent);
  font: 820 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.tag.green {
  background: oklch(93% 0.045 155);
  color: oklch(35% 0.1 155);
}

.tag.amber {
  background: oklch(94% 0.07 72);
  color: oklch(43% 0.11 72);
}

.list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 10px;
  color: oklch(34% 0.018 250);
  line-height: 1.55;
}

.list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent-2);
}

.split-band {
  border-block: 1px solid var(--border);
  background: oklch(96% 0.012 245 / 0.75);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pipeline .card {
  min-height: 190px;
}

.price {
  color: var(--fg);
  font: 820 24px/1.1 var(--font-display);
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--fg);
  font: 780 12px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

tbody th {
  background: var(--surface);
  color: oklch(33% 0.018 250);
  font: inherit;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

td {
  color: oklch(33% 0.018 250);
  line-height: 1.5;
}

tr:last-child td {
  border-bottom: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 720;
  padding: 9px 14px;
}

.filter-button.active {
  border-color: oklch(75% 0.08 235);
  background: oklch(94% 0.04 235);
  color: var(--accent);
}

.form-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--fg);
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--fg);
  padding: 13px 14px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid oklch(80% 0.1 235 / 0.32);
}

.result-panel {
  border: 1px solid oklch(83% 0.05 155);
  border-radius: var(--radius-lg);
  background: oklch(97% 0.018 155);
  padding: 18px;
  margin-top: 18px;
}

.result-panel.error {
  border-color: oklch(82% 0.07 28);
  background: oklch(96% 0.028 28);
}

.result-copy {
  margin-top: 12px;
}

.result-note {
  margin-top: 14px;
}

.email-context {
  white-space: pre-wrap;
}

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: var(--fg);
  font: 700 22px/1.35 var(--font-display);
}

.resource-card {
  display: grid;
  gap: 14px;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer {
  border-top: 1px solid var(--border);
  background: oklch(97% 0.008 245);
  padding: 34px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.small-link {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.screen-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 20px;
}

.screen-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.preview-bar {
  height: 9px;
  border-radius: 999px;
  background: oklch(90% 0.018 250);
}

.preview-bar.short {
  width: 58%;
  background: oklch(88% 0.055 235);
}

.preview-blocks {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8px;
}

.preview-blocks span {
  height: 54px;
  border-radius: 10px;
  background: oklch(94% 0.02 245);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.legal-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.legal-card.good {
  border: 1px solid oklch(82% 0.06 155);
  background: oklch(96% 0.026 155);
}

.legal-card.risk {
  border: 1px solid oklch(82% 0.07 28);
  background: oklch(96% 0.028 28);
}

.sample-card {
  min-height: 300px;
}

.metric-stack {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.metric-stack div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.metric-stack span {
  color: var(--muted);
  font-size: 13px;
}

.metric-stack strong {
  color: var(--fg);
  font: 780 13px/1 var(--font-mono);
}

.matrix-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.matrix-preview span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: oklch(92% 0.018 250);
}

.matrix-preview span.active {
  background: oklch(82% 0.12 165);
}

.cta-band {
  padding-top: 0;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--ink);
  color: white;
  padding: 30px;
}

.cta-panel h2,
.cta-panel p {
  color: white;
}

.cta-panel p {
  max-width: 680px;
  opacity: 0.78;
}

.cta-panel .eyebrow {
  color: oklch(82% 0.12 165);
}

.cta-panel .button {
  background: white;
  color: var(--ink);
  flex: 0 0 auto;
}

.table-note {
  margin-top: 14px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg);
  line-height: 1.45;
}

.check-row input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.turnstile-status {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  margin-top: 10px;
  padding: 10px 12px;
}

.turnstile-status.error {
  border-color: oklch(82% 0.07 28);
  background: oklch(96% 0.028 28);
  color: oklch(40% 0.12 28);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .pipeline,
  .screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 64px;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-cta {
    justify-content: flex-start;
    border-radius: 10px;
  }

  .hero {
    padding: 48px 0 30px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .grid.three,
  .pipeline,
  .screen-gallery,
  .form-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-step {
    grid-template-columns: 34px 1fr;
  }

  .status {
    grid-column: 2;
    width: fit-content;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
