:root {
  --bg: #fafbff;
  --card: #ffffff;
  --ink: #10192e;
  --muted: #5b6478;
  --line: #e3e8f2;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8f0fe;
  --tint: #eef3fe;
  --navy: #0e1526;
  --ok: #157f3d;
  --ok-soft: #e6f6ec;
  --warn: #b45309;
  --warn-soft: #fdf3e4;
  --danger: #b3261e;
  --danger-soft: #fdeceb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 25, 46, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }
.mono { font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 14px; padding: 12px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 18.5px; letter-spacing: -0.03em; white-space: nowrap; }
.brand-name em { color: var(--blue); font-style: normal; }

/* pill nav chips, reference nav grammar */
.nav-chips { display: flex; gap: 8px; margin: 0 auto; }
.nav-chips a {
  padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); text-decoration: none;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.nav-chips a:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }

/* right cluster: circular icon buttons + solid blue allowance pill (reference) */
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; flex: none;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-circle svg { width: 17px; height: 17px; }
.icon-circle:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.usage-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  font-size: 13.5px; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.usage-pill .usage-icon { width: 15px; height: 15px; }
.usage-pill.exhausted { background: var(--danger); }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 40px; align-items: center; padding: 64px 0 30px; }
.hero-copy { position: relative; z-index: 2; }
.hero-art { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(33px, 3.8vw, 46px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.032em; margin: 18px 0 18px;
}
.hero p { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; max-width: 52ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
/* reference grammar: thin leading line before the badge dot */
.hero-badge::before {
  content: ""; display: inline-block;
  width: 36px; height: 2px; border-radius: 2px; background: var(--ink);
}
.hero-badge .badge-dot {
  width: 22px; height: 22px; border-radius: 999px; background: var(--blue);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.hero-badge .badge-dot svg { width: 12px; height: 12px; }
.hero-art img { width: 145%; max-width: none; height: auto; display: block; margin-left: -45%; }

/* hero CTA pair (solid pill + outline pill, like the reference) */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.btn.pill { border-radius: 999px; padding: 13px 26px; font-size: 14.5px; }

/* stats band: big numbers separated by vertical dividers (reference) */
.hero-stats { display: flex; margin-top: 26px; }
.stat { display: grid; align-content: start; padding-right: 36px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 36px; }
.stat-value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; max-width: 20ch; }

/* ------------------------------------------------------------- workbench */
.workbench { padding: 26px 0 40px; }
.workbench h2 { font-size: 22px; letter-spacing: -0.02em; margin: 10px 0 18px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft);
  color: var(--blue-dark);
  display: grid; place-items: center; flex: none;
}
.card-icon svg { width: 20px; height: 20px; }
.card p.muted { margin: 0; font-size: 13px; }

.dropzone {
  display: block;
  border: 1.5px dashed #b9c6e4; border-radius: 12px;
  padding: 26px 16px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 14px;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-soft); }
.dropzone input[type=file] { display: none; }
.dropzone-text { margin: 0; }
.dropzone.has-file { border-color: var(--ok); background: var(--ok-soft); color: var(--ink); font-weight: 600; }

.po-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 17px; border-radius: 999px; font-weight: 600; font-size: 13px;
  cursor: pointer;
}
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.po-editor {
  width: 100%; min-height: 190px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  color: var(--ink); background: #fbfcfe;
  font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 13px;
}
.po-editor:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }

/* PO file picker shell */
.po-file-shell {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed #b9c6e4; border-radius: 12px;
  padding: 16px; background: #fbfcfe;
}
.po-file-shell.has-file { border-color: var(--ok); background: var(--ok-soft); border-style: solid; }
.po-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.actions-row { display: flex; gap: 14px; align-items: center; margin: 22px 0 8px; }
.btn {
  border-radius: 11px; padding: 13px 26px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: transform .05s, opacity .15s, background .15s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: #1a2338; }
.btn.light { background: #fff; color: var(--blue-dark); }
.btn.light:hover { background: var(--blue-soft); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 999px; }

.banner { margin-top: 14px; padding: 13px 16px; border-radius: 11px; font-size: 14px; }
.banner.error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f3c4c0; }
.banner.warning { background: var(--warn-soft); color: var(--warn); border: 1px solid #ecd9b0; }
.banner.info { background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #cddcfb; }
.banner a { color: inherit; font-weight: 700; }

.loading { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--blue-soft); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- results */
#result-section { padding-bottom: 30px; }
.status-banner {
  display: flex; gap: 24px; align-items: flex-start;
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff;
}
.status-banner.matched { border-left: 6px solid var(--ok); }
.status-banner.discrepancy { border-left: 6px solid var(--warn); }
.status-banner.review { border-left: 6px solid var(--danger); }
.status-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.status-value { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.matched .status-value { color: var(--ok); }
.discrepancy .status-value { color: var(--warn); }
.review .status-value { color: var(--danger); }
.status-meta { flex: 1; }
.status-meta p { margin: 4px 0; }
.status-meta .action { color: var(--muted); }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.match-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  background: #fbfcfe;
}
.match-item .pair { font-weight: 600; font-size: 14px; }
.match-item .arrow { color: var(--blue); }
.match-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
}
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.match-notes { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

.disc-item {
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px;
  padding: 13px 16px; margin-bottom: 12px; background: #fff;
}
.disc-item.critical { border-left-color: var(--danger); }
.disc-item.warning { border-left-color: var(--warn); }
.disc-item.info { border-left-color: #94a3b8; }
.disc-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.disc-values { font-family: "SF Mono", Consolas, monospace; font-size: 12.5px; color: var(--ink); margin-top: 6px; }
.disc-expl { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.sev-token { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.sev-token.critical { background: var(--danger-soft); color: var(--danger); }
.sev-token.warning { background: var(--warn-soft); color: var(--warn); }
.sev-token.info { background: #eef2f7; color: #64748b; }

.raw-details { margin-top: 8px; }
.raw-details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.raw-details pre {
  background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 12px;
  overflow-x: auto; max-height: 420px;
}

/* -------------------------------------------------- reference section grammar */
nav a, .nav-chips a { scroll-padding-top: 80px; }
section[id] { scroll-margin-top: 84px; }
.section-block { padding: 78px 0 10px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.12; margin: 14px 0 0;
}
.section-head p { color: var(--muted); margin: 14px auto 0; max-width: 58ch; font-size: 15.5px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
}
.kicker::before, .kicker::after {
  content: ""; display: inline-block; width: 26px; height: 2px;
  border-radius: 2px; background: currentColor;
}

/* feature grid: white cards, tinted icon tile, thin border (reference) */
.fe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fe { padding: 26px 24px; border-radius: 18px; }
.fe h3 { margin-top: 16px; font-size: 16.5px; letter-spacing: -0.01em; }
.fe p { margin-top: 8px; font-size: 14.2px; }
.fe .fe-icon {
  width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft);
  color: var(--blue-dark); display: grid; place-items: center;
}
.fe .fe-icon svg { width: 21px; height: 21px; }

/* three-step pipeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* product tour: auto + manual screenshot carousel, full image always visible */
.tour-viewer { padding: 0; overflow: hidden; }
.tour-frame { position: relative; aspect-ratio: 1440 / 1140; background: #fbfcff; }
.tour-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .55s ease; pointer-events: none;
}
.tour-slide.is-active { opacity: 1; pointer-events: auto; }
.tour-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tour-btn {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 6px 18px rgba(15, 23, 42, .10); transition: background .18s ease, box-shadow .18s ease;
}
.tour-btn:hover { background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .16); }
.tour-btn svg { width: 18px; height: 18px; display: block; }
.tour-prev { left: 14px; }
.tour-next { right: 14px; }
.tour-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; justify-content: center; gap: 7px; margin: 0; padding: 0;
}
.tour-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #cbd5e1; box-shadow: 0 0 0 3px rgba(251, 252, 255, .85);
  transition: width .3s ease, background .3s ease;
}
.tour-dot.is-active { width: 24px; background: var(--blue); }
.tour-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .10); transition: background .18s ease;
}
.tour-zoom:hover { background: #fff; }
.tour-zoom svg { width: 17px; height: 17px; display: block; }
.tour-caption {
  min-height: 92px;
  border-top: 1px solid var(--line); padding: 13px 20px 16px;
  display: grid; gap: 3px; font-size: 13.5px; color: var(--muted);
}
.tour-caption strong { color: var(--ink); font-size: 14.5px; }
.tour-link { margin: 26px 0 0; text-align: center; }

/* pipeline section: full-width diagram figure with caption strip */
.pipeline-figure { padding: 0; overflow: hidden; }
.pipeline-stage { background: #16181d; }
.pipeline-stage img { display: block; width: 100%; height: auto; }
.pipeline-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-top: 1px solid var(--line); padding: 13px 20px 16px;
}
.pipeline-caption span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pipeline-caption strong { color: var(--ink); font-size: 14.5px; }
.pipeline-zoom {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--blue-dark); text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 7px 14px;
  transition: border-color .15s, background .15s;
}
.pipeline-zoom:hover { border-color: var(--blue); background: var(--blue-soft); }
.pipeline-credit { margin: 14px 0 0; text-align: center; font-size: 13px; }
.pipeline-credit a { color: var(--blue-dark); font-weight: 600; }

/* demo video section: 16:9 lazy Loom embed with caption strip */
.demo-video { padding: 0; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #16181d; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-top: 1px solid var(--line); padding: 13px 20px 16px;
}
.video-caption span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.video-caption strong { color: var(--ink); font-size: 14.5px; }
.video-loom {
  flex: none; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--blue-dark); text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 7px 14px;
  transition: border-color .15s, background .15s;
}
.video-loom:hover { border-color: var(--blue); background: var(--blue-soft); }
.tour-link a { font-weight: 700; color: var(--blue); }
.tour-link a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .tour-btn { top: 42%; }
  .tour-caption { min-height: 118px; }
}
.step { position: relative; padding: 24px 22px; }
.step-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; margin-bottom: 13px;
  background: var(--blue-soft); border: 1px solid var(--blue);
  color: var(--blue-dark); font-weight: 800; font-size: 12.5px;
}
.step h3 { margin-top: 0; }
.step p { margin-top: 8px; font-size: 14.2px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -14px;
  width: 14px; border-top: 2px dashed var(--blue);
  opacity: 0.55;
}

/* checks table: tinted header row, bold labels, zebra rows (reference) */
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.checks-scroll { overflow-x: auto; }
.checks-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.checks-table th {
  text-align: left; font-size: 13.5px; font-weight: 800;
  color: var(--ink); background: var(--blue-soft); padding: 14px 18px;
  white-space: nowrap;
}
.checks-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.2px; color: var(--muted); vertical-align: top; }
.checks-table tbody tr:nth-child(even) td { background: #f7f9ff; }
.checks-table tr:last-child td { border-bottom: 0; }
.checks-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.checks-table code { background: var(--blue-soft); color: var(--blue-dark); padding: 1px 7px; border-radius: 6px; font-size: 12.5px; }

/* ------------------------------------------- protection layers + agents */
.limit-strip {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.limit-strip b { color: var(--ink); font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }

.agents-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: stretch; }
.agents-grid .fe { display: flex; flex-direction: column; }
.agents-grid .fe p.muted { flex: none; }
.agents-grid .fe p a { color: var(--blue-dark); font-weight: 600; }
.agents-grid .code-block { margin-top: auto; }

.code-block {
  margin-top: 16px; padding: 14px 16px;
  background: #0f172a; color: #c9d7f5;
  border-radius: 12px; overflow-x: auto;
}
.code-block code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; white-space: pre;
}

.tool-list { list-style: none; margin: 14px 0 0; padding: 0; }
.tool-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}
.tool-list li:last-child { border-bottom: 0; }
.tool-list code {
  background: var(--blue-soft); color: var(--blue-dark);
  padding: 2px 9px; border-radius: 6px; flex: none;
  font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 12px;
}

/* copy buttons floating over dark code blocks (agents cards + run card) */
.code-wrap { position: relative; }
.code-wrap .code-block { margin-top: 16px; padding-right: 52px; }
.agents-grid .code-wrap { margin-top: auto; }
.agents-grid .code-wrap .code-block { margin-top: 16px; }

.copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(201, 215, 245, 0.35); background: rgba(15, 23, 42, 0.55);
  color: #c9d7f5; cursor: pointer;
  display: grid; place-items: center; flex: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  backdrop-filter: blur(4px);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn .check-icon { display: none; }
.copy-btn:hover { background: rgba(37, 99, 235, 0.3); border-color: #7fa4e6; color: #fff; }
.copy-btn:active { transform: scale(0.94); }
.copy-btn:focus-visible { outline: 2px solid #7fa4e6; outline-offset: 2px; }
.copy-btn.copied { border-color: #86efac; color: #86efac; background: rgba(22, 101, 52, 0.4); }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }

.run-card .copy-btn { background: rgba(255, 255, 255, 0.08); }
.run-card .copy-btn:hover { background: rgba(37, 99, 235, 0.35); }
.run-card pre { padding-right: 48px; }

/* scrollspy: the nav chip of the section in view stays highlighted */
.nav-chips a.active { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }

/* ------------------------------------------------------- pricing (reference) */
.billing-toggle {
  display: flex; justify-content: center; margin: 0 auto 42px;
  background: #eef1f8; border-radius: 999px; padding: 5px; width: fit-content;
  gap: 4px;
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.billing-toggle button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(16, 25, 46, 0.12); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { border-radius: 20px; padding: 30px 28px; border: 1px solid var(--line); background: #fff; }
.price-card.tint { background: var(--tint); border-color: transparent; }
.price-card.pro {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 26px 50px rgba(37, 99, 235, 0.35);
}
.plan-name { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.plan-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.price-card.pro .plan-sub { color: rgba(255, 255, 255, 0.85); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; }
.price-amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-amount sup { font-size: 22px; font-weight: 800; vertical-align: super; margin-right: 2px; }
.price-cyc { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card.pro .price-cyc { color: rgba(255, 255, 255, 0.8); }
.price-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.price-card.pro .price-note { color: rgba(255, 255, 255, 0.75); }
.plan-features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; font-size: 14px; }
.plan-features em { font-style: normal; opacity: 0.7; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .check { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue); }
.price-card.pro .plan-features .check { color: #bfdbfe; }
.price-card .block { margin-top: 26px; }

.pricing-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 22px; }

/* ------------------------------------------------------ contact (reference) */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 999px;
  padding: 13px 18px; font-size: 14.5px; background: #fff; color: var(--ink);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { border-radius: 24px; min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft);
}
.field select { appearance: none; }
#contact-form .btn { margin-top: 4px; }
#contact-form .banner { margin-top: 16px; }

.contact-aside { display: grid; gap: 14px; }
.info-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--tint); border-radius: 18px; padding: 16px 18px;
}
.info-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
  color: #fff; display: grid; place-items: center; flex: none;
}
.info-icon svg { width: 19px; height: 19px; }
.info-card h4 { margin: 0; font-size: 14px; }
.info-card p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); word-break: break-word; }
.info-card a { color: var(--blue-dark); font-weight: 600; }
.info-card.hiring-card { background: var(--blue-soft); border-color: var(--blue); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12); }

.run-card { border-radius: 18px; background: #0f172a; color: #c9d7f5; padding: 18px 20px; }
.run-title {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em;
  color: #7fa4e6; margin-bottom: 10px;
}
.run-card pre { margin: 0; overflow-x: auto; }
.run-card code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 12.5px;
  line-height: 1.75; white-space: pre;
}

/* ============================================== dark scene footer
 * full-bleed illustration on top of a dark body; the footer background
 * (#02454f) matches the illustration's bottom band so they read as one. */
.site-footer { margin-top: 70px; background: #02454f; color: #fff; }
.footer-scene { line-height: 0; }
.footer-scene img { display: block; width: 100%; height: auto; }
.footer-content { position: relative; margin-top: -11vw; padding: 0 0 50px; }

.footer-headline {
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 34px;
}

.footer-main {
  display: grid; grid-template-columns: minmax(190px, 1fr) 2.2fr auto;
  column-gap: 40px; row-gap: 22px; align-items: center;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name em { color: #a7c5ff; }
.footer-brand .brand-logo { background: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 56px; justify-content: start; }
.footer-col { border-left: 2px solid rgba(255, 255, 255, 0.35); padding-left: 14px; display: grid; gap: 10px; }
.footer-col a { color: #e7f4f0; font-size: 14px; text-decoration: none; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-cta {
  justify-self: end; background: #ff8a73; color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.footer-cta:hover { background: #f5715b; transform: translateY(-1px); }

.footer-bottom {
  display: grid; grid-template-columns: minmax(190px, 1fr) 2.2fr auto;
  column-gap: 40px; row-gap: 0; align-items: center; margin-top: 34px;
}
.footer-copy p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }
.footer-copy p.footer-tag { margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.footer-rule { grid-column: 2 / span 2; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.footer-social {
  grid-column: 2 / span 2;
  display: flex; gap: 14px; justify-content: flex-end; padding-top: 16px;
}
.footer-social a { color: rgba(255, 255, 255, 0.75); display: grid; place-items: center; transition: color .15s ease; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .footer-main, .footer-bottom { grid-template-columns: 1fr; column-gap: 0; }
  .footer-cta { justify-self: start; }
  .footer-rule, .footer-social { grid-column: 1; }
  .footer-social { justify-content: flex-start; }
  .footer-cols { grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 12px 24px; }
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 1010px) {
  .nav-chips { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .input-grid, .result-grid { grid-template-columns: 1fr; }
  .status-banner { flex-direction: column; gap: 8px; }
  .hero-art { order: -1; }
  .fe-grid, .steps, .pricing-grid, .contact-grid, .agents-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .stat { padding-right: 18px; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .section-block { padding: 52px 0 6px; }
  .price-card.pro { transform: none; }
  .usage-pill { font-size: 12.5px; padding: 8px 13px; }
  .icon-circle { width: 34px; height: 34px; }
}

/* ======================================================= production polish */
/* ------------------------------------------------------- scroll reveal */
[data-reveal], [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, .61, .36, 1);
}
[data-reveal].in, [data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger] > *:nth-child(2) { transition-delay: .07s; }
[data-reveal-stagger] > *:nth-child(3) { transition-delay: .14s; }
[data-reveal-stagger] > *:nth-child(4) { transition-delay: .21s; }
[data-reveal-stagger] > *:nth-child(5) { transition-delay: .28s; }
[data-reveal-stagger] > *:nth-child(6) { transition-delay: .35s; }

/* smooth anchor scrolling under the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* ------------------------------------------------------- sticky header elevation */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(16, 25, 46, 0.1); background: rgba(255, 255, 255, 0.97); }

/* ------------------------------------------------------- micro-interactions */
.btn { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35); }
.btn.primary:active { transform: translateY(0); box-shadow: none; }
.btn.ghost:hover, .btn.dark:hover, .btn.light:hover { transform: translateY(-1px); }
.btn.ghost:active, .btn.dark:active, .btn.light:active { transform: translateY(0); }

.fe, .step, .case, .price-card, .faq {
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease, border-color .25s ease;
}
.fe:hover, .step:hover, .case:hover, .price-card:hover, .faq:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16, 25, 46, 0.12);
  border-color: #c9d6f0;
}
.faq[open]:hover { border-color: var(--blue); }

.dropzone { transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.dropzone.drag { box-shadow: 0 0 0 4px var(--blue-soft); }
.tab { transition: color .18s ease, background .18s ease, border-color .18s ease; }
.billing-toggle button { transition: color .2s ease, background .2s ease, box-shadow .2s ease; }

/* ------------------------------------------------------- hero art motion */
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -10% -8%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 72%);
  pointer-events: none;
}
.hero-art img { position: relative; }

/* ------------------------------------------------------- trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-top: 4px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 17px 18px;
  border-left: 1px solid var(--line); transition: background .2s ease;
}
.trust-item:first-child { border-left: 0; }
.trust-item:hover { background: var(--tint); }
.trust-item svg { width: 21px; height: 21px; color: var(--blue-dark); flex: none; }
.trust-item b { display: block; font-size: 13.5px; }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------- who it is for */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-icon {
  width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft);
  color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 14px;
}
.case-icon svg { width: 21px; height: 21px; }
.case h3 { margin: 0 0 6px; font-size: 16px; }
.case p { margin: 8px 0 0; font-size: 14px; }

/* ------------------------------------------------------- faq */
.faq-list { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 18px; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease, border-color .25s ease;
}
details.faq[open] { border-color: var(--blue); }
details.faq summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; font-weight: 700; font-size: 15px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; margin-left: auto;
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); color: var(--blue);
  display: grid; place-items: center; font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
details.faq[open] summary::after {
  transform: rotate(45deg); border-color: var(--blue); background: var(--blue-soft);
}
details.faq p { margin: 0 0 16px; color: var(--muted); font-size: 14px; animation: faqIn .35s ease both; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- landing CTA band */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--tint) 0%, #ffffff 55%, var(--blue-soft) 100%);
  box-shadow: var(--shadow);
  padding: 42px 32px; text-align: center; margin-top: 64px;
}
.cta-band .kicker { display: inline-block; margin-bottom: 10px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; }
.cta-band p { color: var(--muted); margin: 0 auto 22px; max-width: 52ch; font-size: 15px; }

/* ------------------------------------------------------- responsive additions */
@media (max-width: 1010px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(odd) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
  .hero-art img { width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
  .fe, .step, .case, .price-card, .faq, .site-header, .btn, .dropzone, .tab, .billing-toggle button, details.faq p, .copy-btn {
    transition: none !important; animation: none !important;
  }
}

/* ------------------------------------------------------- mobile refinement */
html, body { overflow-x: clip; }  /* radial glows / wide art never create a horizontal scrollbar */

@media (max-width: 640px) {
  /* header: shrink + allow graceful wrap instead of clipping the pill */
  .header-inner { flex-wrap: wrap; row-gap: 4px; padding: 10px 14px; gap: 10px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-name { font-size: 16.5px; }
  .icon-circle { width: 32px; height: 32px; }
  .icon-circle svg { width: 15px; height: 15px; }
  .usage-pill { font-size: 12px; padding: 7px 12px; gap: 6px; }
  .usage-pill .usage-icon { width: 13px; height: 13px; }

  /* hero: tighter rhythm, stats stay 3-up with smaller numbers */
  .hero { padding: 42px 0 20px; gap: 28px; }
  .hero-stats { flex-wrap: nowrap; gap: 0; margin-top: 20px; }
  .stat { padding-right: 14px; }
  .stat + .stat { border-left: 1px solid var(--line); padding-left: 14px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 11px; }
  .hero p { font-size: 14px; }

  /* sections / cards breathe less */
  .section-block { padding: 44px 0 6px; }
  .section-head { margin: 0 auto 30px; }
  .section-head p { font-size: 14.5px; }
  .fe { padding: 22px 18px; }
  .step, .case { padding: 20px 18px; }
  .price-card { padding: 24px 20px; }
  .price-amount { font-size: 38px; }
  .price-card .block { margin-top: 20px; }
  .info-card { padding: 14px 16px; }
  .cta-band { padding: 32px 18px; margin-top: 44px; }
  .status-value { font-size: 22px; }
  .container { padding: 0 16px; }
}

@media (max-width: 560px) {
  /* narrow phones: the two decorative circles go; brand + pill always fit one row */
  .header-inner .icon-circle { display: none; }
}
