:root {
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --card: #ffffff;
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --muted: #5b5b57;
  --dim: #8a8a84;
  --line: rgba(14, 14, 14, 0.09);
  --line-strong: rgba(14, 14, 14, 0.18);
  --accent: #1f4d3a; /* deep forest, used sparingly */
  --accent-soft: #e4ded0;
  --highlight: #edeadd;
  --shadow-soft: 0 1px 0 rgba(14, 14, 14, 0.04), 0 24px 48px -24px rgba(14, 14, 14, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* --- Typography --- */
.display {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1.display,
h2.display,
h3.display {
  margin: 0 0 20px;
  color: var(--ink);
}

h1.display {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2.display {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2.display.huge {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.display em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 14px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label.centered {
  display: flex;
  justify-content: center;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.15);
}

.lede {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.lede-sm {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 238, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: url("./assets/qualiloop-mark.png") center / cover no-repeat;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links > a,
.nav-item > a {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Nav dropdown (CSS-only) */
.nav-item {
  position: relative;
}

.nav-item > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
  transition: transform 0.18s ease;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-item:hover > a::after {
  transform: translateY(-2px) rotate(225deg);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.dropdown a span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.dropdown a:hover {
  background: var(--paper-2);
}

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

.mobile-nav-toggle,
.mobile-menu-button,
.mobile-menu {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #2a2a2a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(14, 14, 14, 0.04);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(31, 77, 58, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%, rgba(14, 14, 14, 0.04), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-inner .eyebrow {
  justify-content: center;
  margin-bottom: 28px;
}

.hero-inner .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-proof-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 860px;
  margin: -12px auto 22px;
  color: var(--ink);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.4;
}

.hero-proof-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-proof-line span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.hero-proof-line strong {
  font-weight: 700;
  color: var(--ink);
}

.hero-inner .lede-follow {
  max-width: 590px;
  margin-bottom: 10px;
}

.hero-price {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-visual {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.06), rgba(14, 14, 14, 0.01));
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* --- Metric strip --- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-strip .unit {
  font-family: inherit;
  font-size: 26px;
  color: var(--ink);
  margin-left: 2px;
}

.metric-strip span {
  color: var(--ink);
  font-size: 14px;
}

/* --- Trusted by bar --- */
.trusted-bar {
  padding: 40px 0;
  background: var(--ink);
  color: var(--paper);
}

.trusted-inner {
  text-align: center;
}

.trusted-label {
  margin: 0 0 28px;
  color: rgba(246, 244, 238, 0.55);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.logo-item:hover {
  opacity: 1;
}

.logo-item img {
  width: auto;
  max-width: 180px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-item--b2bee img {
  height: 38px;
}

.logo-item--solflare img {
  height: 32px;
}

.logo-item--one img {
  height: 30px;
}

.logo-item--atomic img {
  height: 34px;
}

@media (max-width: 900px) {
  .logo-row {
    gap: 28px;
  }

  .logo-item {
    min-width: 120px;
  }

  .logo-item img {
    max-width: 150px;
    height: 28px;
  }
}

/* --- Sections --- */
.section {
  position: relative;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section.problem {
  background: var(--paper);
}

.split,
.feature-grid,
.faq-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.split-lead {
  position: sticky;
  top: 100px;
}

.copy-stack p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

/* --- Problem grid --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.problem-grid article {
  padding: 28px 26px 30px;
  background: var(--card);
}

.tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.problem-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.problem-grid em {
  font-style: italic;
  color: var(--ink-2);
}

/* --- Product sections --- */
.section.product {
  background: var(--paper);
}

.section.product.feature-inverted {
  background: var(--paper-2);
}

.feature-grid {
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 72px;
}

.feature-grid--wide {
  grid-template-columns: 4fr 8fr;
  gap: 56px;
}

.feature-grid.reverse.feature-grid--wide {
  grid-template-columns: 8fr 4fr;
}

.feature-grid--suite {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.feature-grid--image-wide {
  grid-template-columns: 6fr 4fr;
  gap: 56px;
}

.feature-grid--half {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.feature-grid.reverse .feature-copy {
  order: 2;
}

.feature-grid.reverse .screenshot {
  order: 1;
}

.stat-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-num {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}

.stat-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.two-col p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Screenshot frames --- */
.screenshot {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.06), rgba(14, 14, 14, 0.01));
  box-shadow: var(--shadow-soft);
}

.screenshot img {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
}

.screenshot figcaption {
  padding: 14px 6px 4px;
  color: var(--muted);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.005em;
}

.anchor-offset {
  display: block;
  position: absolute;
  top: -80px;
}

/* --- Overlapping screenshot stack --- */
.screenshot-stack {
  position: relative;
  padding-bottom: 18%;
  padding-right: 8%;
}

.screenshot-stack .screenshot {
  margin: 0;
}

.screenshot-stack__back {
  width: 95%;
}

.screenshot-stack__front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  box-shadow: 0 2px 0 rgba(14, 14, 14, 0.04), 0 32px 64px -28px rgba(14, 14, 14, 0.28);
  transition: transform 0.25s ease;
}

.screenshot-stack__front:hover {
  transform: translateY(-4px);
}


@media (max-width: 560px) {
  .screenshot-stack {
    padding-bottom: 0;
    padding-right: 0;
  }

  .screenshot-stack__back {
    width: 100%;
  }

  .screenshot-stack__front {
    display: none;
  }
}

/* --- Sub-page hero --- */
.page-hero {
  position: relative;
  padding: 84px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 80% 0%, rgba(31, 77, 58, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%, rgba(14, 14, 14, 0.04), transparent 60%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero .eyebrow {
  justify-content: center;
  margin-bottom: 24px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 auto 20px;
}

.page-hero .lede {
  margin: 0 auto 30px;
  text-align: center;
}

.page-hero .hero-actions {
  margin-bottom: 0;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* Cross-links between test pages */
.crosslinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.crosslink {
  display: block;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.crosslink:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.crosslink[aria-current="page"] {
  border-color: var(--ink);
  background: var(--paper-2);
}

.crosslink h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.crosslink p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.crosslink-arrow {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .crosslinks {
    grid-template-columns: 1fr;
  }
}

/* --- How it works --- */
.section.how {
  background: var(--paper-2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.step-num {
  display: inline-block;
  margin-bottom: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Section head --- */
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Test types (reliability / red team / bias) --- */
.duo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.duo-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.duo-card header {
  padding-bottom: 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.duo-card header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.duo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.duo-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.duo-tag--reliability {
  background: rgba(31, 77, 58, 0.1);
  color: var(--accent);
}

.duo-tag--reliability::before {
  background: var(--accent);
}

.duo-tag--redteam {
  background: rgba(178, 58, 46, 0.1);
  color: #a5352b;
}

.duo-tag--redteam::before {
  background: #b23a2e;
}

.duo-tag--bias {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.duo-tag--bias::before {
  background: #2563eb;
}

.duo-list {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duo-list li {
  display: grid;
  gap: 5px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.duo-list li:last-child {
  border-bottom: 0;
}

.duo-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.duo-test {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.duo-check {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.duo-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* --- Compliance band --- */
.compliance-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 20px;
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.01));
}

.compliance-copy h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.compliance-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.compliance-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compliance-chips li {
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.duo-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}

.duo-more:hover {
  color: var(--accent);
}

.duo-foot {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.duo-foot a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.duo-foot a:hover {
  text-decoration-color: var(--ink);
}

@media (max-width: 960px) {
  .duo-grid {
    display: flex;
    gap: 16px;
    margin: 0 -24px;
    padding: 0 24px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-left: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--accent) rgba(14, 14, 14, 0.08);
    scrollbar-width: thin;
  }

  .duo-grid::after {
    content: "Scroll →";
    position: sticky;
    right: 8px;
    align-self: flex-start;
    flex: 0 0 auto;
    margin: 10px 0 0 -72px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(246, 244, 238, 0.94);
    color: var(--ink);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px -18px rgba(14, 14, 14, 0.35);
    pointer-events: none;
  }

  .duo-card {
    flex: 0 0 min(84vw, 390px);
    scroll-snap-align: center;
  }

  .duo-grid::-webkit-scrollbar {
    height: 8px;
  }

  .duo-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.08);
  }

  .duo-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--accent);
  }

  .compliance-band {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
}

/* --- Use cases + integrations chips --- */
.chip-grid,
.chip-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.chip-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.chip-grid span,
.chip-panel span {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chip-panel span {
  border: 1px dashed var(--line-strong);
  background: transparent;
}

.chip-grid span:hover {
  border-color: var(--line-strong);
  background: rgba(14, 14, 14, 0.02);
}

.section.integrations {
  background: var(--ink);
  color: var(--paper);
}

.section.integrations .section-label,
.section.integrations .lede-sm,
.section.integrations .stat-desc {
  color: rgba(246, 244, 238, 0.68);
}

.section.integrations h2,
.section.integrations .stat-num {
  color: var(--paper);
}

.section.integrations .stat-line {
  border-top-color: rgba(246, 244, 238, 0.16);
  border-bottom-color: rgba(246, 244, 238, 0.16);
}

.section.integrations .chip-panel {
  border-color: rgba(246, 244, 238, 0.14);
  background: rgba(246, 244, 238, 0.035);
}

.section.integrations .chip-panel span {
  border-color: rgba(246, 244, 238, 0.2);
  background: rgba(246, 244, 238, 0.04);
  color: var(--paper);
}

/* --- Pricing --- */
.section.pricing {
  background: var(--paper);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  position: relative;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(246, 244, 238, 0.72);
}

.price-card.featured .price-note {
  border-bottom-color: rgba(246, 244, 238, 0.14);
}

.price-card.featured li::before {
  background: var(--paper);
}

.popular {
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 6px;
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price .cur {
  font-size: 24px;
  color: var(--dim);
}

.price small {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.price-card.featured .price small {
  color: rgba(246, 244, 238, 0.6);
}

.price.custom {
  font-size: 44px;
}

.price-note {
  min-height: 42px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.price-btn {
  width: 100%;
  margin-top: 24px;
}

.price-card.featured .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.price-card.featured .btn-primary:hover {
  background: #fff;
}

/* --- FAQ --- */
.section.faq {
  background: var(--paper);
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

summary {
  cursor: pointer;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

.chev {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.chev::before,
.chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
}

.chev::before {
  width: 12px;
  height: 1.5px;
}

.chev::after {
  width: 1.5px;
  height: 12px;
  transition: transform 0.2s ease;
}

details[open] .chev::after {
  transform: translate(-50%, -50%) scaleY(0);
}

details p {
  margin: 0;
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 640px;
}

/* --- Savings strip --- */
.savings {
  padding: 96px 0;
  background: var(--ink);
  color: var(--paper);
}

.savings-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.savings-head .section-label {
  justify-content: center;
  display: flex;
  color: rgba(246, 244, 238, 0.55);
}

.savings-head h2.display {
  color: var(--paper);
}

.savings-sub {
  margin: 0 auto;
  max-width: 620px;
  color: rgba(246, 244, 238, 0.68);
  font-size: 16px;
  line-height: 1.6;
}

.savings-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
}

.savings-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 244, 238, 0.16);
}

.savings-card--new {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.savings-card__label {
  margin: 0 0 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 244, 238, 0.55);
}

.savings-card--new .savings-card__label {
  color: var(--muted);
}

.savings-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.savings-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 244, 238, 0.12);
  font-size: 15px;
  color: rgba(246, 244, 238, 0.82);
}

.savings-list li:last-child {
  border-bottom: 0;
}

.savings-cost {
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--paper);
}

.savings-new-copy {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.savings-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 244, 238, 0.16);
}

.savings-card--new .savings-total {
  border-top-color: var(--line);
}

.savings-total span {
  font-size: 13px;
  color: rgba(246, 244, 238, 0.55);
}

.savings-card--new .savings-total span {
  color: var(--muted);
}

.savings-total strong {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.savings-total small {
  font-size: 16px;
  font-weight: 400;
  color: rgba(246, 244, 238, 0.5);
}

.savings-card--new .savings-total small {
  color: var(--muted);
}

.savings-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 244, 238, 0.4);
}

.savings-btn {
  margin-top: 24px;
  width: 100%;
}

.savings-foot {
  margin: 40px auto 0;
  text-align: center;
  color: rgba(246, 244, 238, 0.7);
  font-size: 16px;
}

.savings-foot strong {
  color: var(--paper);
  font-weight: 600;
}

@media (max-width: 768px) {
  .savings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .savings-vs {
    padding: 4px 0;
  }
}

/* --- Final CTA --- */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  padding: 128px 0;
  text-align: center;
}

.final-cta .section-label {
  color: rgba(246, 244, 238, 0.55);
  justify-content: center;
  display: flex;
}

.final-cta h2.display {
  color: var(--paper);
}

.final-cta .display em {
  color: #a3d9c1;
}

.final-cta .lede {
  color: rgba(246, 244, 238, 0.72);
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.final-cta .btn-primary:hover {
  background: #fff;
}

.final-cta .btn-ghost {
  color: var(--paper);
  border-color: rgba(246, 244, 238, 0.24);
}

.final-cta .btn-ghost:hover {
  background: rgba(246, 244, 238, 0.06);
}

.final-cta .hero-actions {
  margin-top: 32px;
  margin-bottom: 0;
  justify-content: center;
}

.final-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 40px 0 48px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  margin: 0;
  color: var(--dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Legal pages --- */
.legal-section {
  padding-top: 96px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%),
    var(--paper);
}

.legal-wrap {
  width: min(calc(100% - 48px), 820px);
  padding: 0 0 32px;
}

.legal-wrap h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-wrap .meta {
  margin: 0 0 56px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-wrap h2 {
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-wrap p {
  margin: 0 0 16px;
}

.legal-wrap ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-wrap li {
  margin: 0 0 8px;
}

.legal-wrap strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-wrap a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glossary-wrap > p:not(.meta) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .split,
  .feature-grid,
  .feature-grid--wide,
  .feature-grid--suite,
  .feature-grid--image-wide,
  .feature-grid--half,
  .feature-grid.reverse.feature-grid--wide,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-grid > * {
    min-width: 0;
    width: 100%;
  }

  .split-lead {
    position: static;
  }

  .feature-grid.reverse .feature-copy,
  .feature-grid.reverse .screenshot {
    order: initial;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    position: relative;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-menu-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
  }

  .mobile-menu-button span {
    position: absolute;
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobile-menu-button span:nth-child(1) {
    transform: translateY(-5px);
  }

  .mobile-menu-button span:nth-child(3) {
    transform: translateY(5px);
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px -34px rgba(14, 14, 14, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-menu a:hover {
    background: var(--paper);
  }

  .mobile-menu a:nth-last-child(2) {
    margin-top: 6px;
    background: var(--ink);
    color: var(--paper);
  }

  .mobile-menu a:nth-last-child(1) {
    color: var(--muted);
  }

  .mobile-nav-toggle:checked ~ .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-nav-toggle:checked ~ .mobile-menu-button span:nth-child(1) {
    transform: rotate(45deg);
  }

  .mobile-nav-toggle:checked ~ .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle:checked ~ .mobile-menu-button span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .section {
    padding: 80px 0;
  }

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

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    padding: 24px 0;
  }

  .metric-strip div {
    padding: 8px 20px;
  }

  .metric-strip div:nth-child(2) {
    border-right: 0;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .two-col,
  .chip-grid,
  .chip-panel {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 88px 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero-proof-line {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    max-width: 310px;
    margin-top: -8px;
    text-align: center;
  }

  .hero-proof-line span {
    justify-content: center;
    white-space: normal;
  }

  .hero-proof-line span + span::before {
    display: none;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    padding: 6px;
    border-radius: 14px;
  }

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

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
