/* GeneMap — Zyvolab + Warm Institute Paper base
   Cream paper tokens + Zyvolab dark lab via body.theme-zyvolab · genemap.io */
:root {
  --bg: #f6f1e8;
  --bg-deep: #efe8dc;
  --ink: #1c1f1c;
  --muted: #5e645e;
  --card: #fffdf9;
  --line: #e2d9cc;
  --line-soft: rgba(47, 93, 80, 0.12);
  --accent: #2f5d50;
  --accent-hover: #264a40;
  --accent-soft: #e8f0eb;
  --accent-mid: #6b9a88;
  --accent-ink: #f7f4ef;
  --warm: #f4ebe0;
  --warm-ink: #7a5a2e;
  --shadow: 0 1px 2px rgba(28, 31, 28, 0.04), 0 8px 24px rgba(47, 93, 80, 0.07);
  --shadow-lg: 0 4px 12px rgba(28, 31, 28, 0.05), 0 20px 48px rgba(47, 93, 80, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 780px;
  --max-wide: 960px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(107, 154, 136, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

/* —— Sticky nav (genemap.io feel) —— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255, 253, 249, 0.6);
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
}
.wordmark:hover { color: var(--ink); }
.wordmark-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.22rem;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
}
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav nav a:hover { color: var(--ink); }

/* —— Layout —— */
.hero, .section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}
.hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  max-width: var(--max-wide);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 700;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.05rem, 5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1.15rem;
  max-width: 18ch;
}
.hero h1 { max-width: 20ch; }
h2 {
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
h3 { margin: 0 0 0.4rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.lede, .wide {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 38rem;
  line-height: 1.65;
}
.muted { color: var(--muted); }
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.fine {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  max-width: 32rem;
  line-height: 1.5;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(47, 93, 80, 0.2), 0 4px 12px rgba(47, 93, 80, 0.12);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(47, 93, 80, 0.22), 0 8px 20px rgba(47, 93, 80, 0.16);
}
.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(47, 93, 80, 0.15);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

/* —— Alt bands —— */
.alt {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
  max-width: none;
  padding-left: max(1.5rem, calc(50% - var(--max) / 2));
  padding-right: max(1.5rem, calc(50% - var(--max) / 2));
}

/* —— Intro video slot —— */
.intro-video {
  max-width: var(--max-wide);
  margin: 0 auto 0.5rem;
  padding: 0 1.5rem 2.5rem;
}
.intro-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.intro-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c1f1c;
}
.intro-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--accent-soft) 0%, var(--warm) 55%, #e8f0eb 100%);
  text-align: center;
  padding: 1.5rem;
}
.intro-placeholder[hidden] { display: none !important; }
.intro-play {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  line-height: 1;
}
.intro-placeholder p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}
.intro-placeholder .fine {
  margin-top: 0.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.intro-caption {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* —— Steps / cards —— */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.alt .steps li { background: var(--card); }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.step-n {
  width: 2.15rem; height: 2.15rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
  font-family: var(--font);
  box-shadow: 0 2px 6px rgba(47, 93, 80, 0.2);
}
.bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.bullets li { margin-bottom: 0.5rem; }

/* legacy waitlist styles kept inert (no waitlist UI on pages) */
.waitlist form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.waitlist input {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--card);
}
.msg { margin-top: 0.75rem; color: var(--accent); font-weight: 600; }

/* —— Footer —— */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer p { margin: 0 0 1rem; }
.footer .site-url {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.footer .site-url:hover { text-decoration: underline; }
.copy { opacity: 0.85; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding-top: 3rem; }
  h1 { max-width: none; }
}

/* —— Match + wins —— */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1.35rem 0 1.1rem;
}
@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
}
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.compare-card.miss { opacity: 0.92; }
.compare-card.hit {
  border-color: #b9d0c8;
  box-shadow: 0 8px 28px rgba(47, 93, 80, 0.12);
  background: linear-gradient(180deg, #fffdf9 0%, #f3f8f5 100%);
}
.compare-tag {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}
.compare-card.hit .compare-tag { color: var(--accent); }
.compare-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.compare-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
table.wins {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.wins th,
table.wins td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.wins th {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font);
}
table.wins tr:last-child td { border-bottom: none; }
table.wins td:first-child { font-weight: 600; white-space: nowrap; }
table.wins td { color: var(--muted); }
table.wins td:first-child { color: var(--ink); }
table.wins .th-sub {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
table.wins .caveat-inline { color: var(--muted); font-weight: 500; }

/* —— Flow wizard —— */
.flow-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}
.flow-title { margin-bottom: 0.5rem; max-width: none; }
.flow-lede { margin-bottom: 1.65rem; }
.flow-progress {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.65rem;
}
.flow-progress li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 1px 2px rgba(28, 31, 28, 0.03);
}
.flow-progress li span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  background: var(--line);
  color: var(--ink);
}
.flow-progress li.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}
.flow-progress li.active span,
.flow-progress li.done span {
  background: var(--accent);
  color: var(--accent-ink);
}
.flow-progress li.done { opacity: 0.85; }
.flow-panel.card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow: var(--shadow);
}
.flow-panel h2 { margin-top: 0; }
.flow-form {
  display: grid;
  gap: 1.15rem;
  margin: 1.15rem 0;
}
.flow-form label,
.flow-form fieldset {
  display: grid;
  gap: 0.4rem;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.flow-form legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}
.flow-form input[type="text"],
.flow-form input[type="email"],
.flow-form select,
.flow-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.file-picker {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}
.file-picker-label {
  font-weight: 600;
  font-size: 0.95rem;
}
/* Visually hidden but still programmatically clickable (not display:none) */
.file-input-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
}
.btn-choose-file {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  box-sizing: border-box;
}
#file-chosen-name {
  display: block;
  margin: 0;
}
.flow-form input:focus,
.flow-form select:focus,
.flow-form textarea:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.12);
}
.flow-form textarea { resize: vertical; }
.choice-row, .choice-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}
.choice-col { flex-direction: column; }
.choice {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--accent-mid); background: var(--accent-soft); }
.choice input { width: auto; accent-color: var(--accent); }
.check-block {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.9rem 1.05rem;
  background: var(--accent-soft);
  border: 1px solid #b9d0c8;
  border-radius: var(--radius);
  font-weight: 500;
}
.req { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.mt-sm { margin-top: 0.5rem; }
.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.flow-error {
  color: #8a3b2a;
  background: #fbf0ec;
  border: 1px solid #e8cfc6;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin: 0;
  font-size: 0.92rem;
}
.file-check {
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.file-check.ok { background: var(--accent-soft); border: 1px solid #b9d0c8; }
.file-check.warn { background: #fbf3e8; border: 1px solid #e8d4b8; }
.pay-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-top: 1rem;
}
.pay-price {
  font-family: var(--serif);
  font-size: 2.15rem;
  margin: 0 0 0.35rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.pilot-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fbf3e8;
  color: var(--warm-ink);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  vertical-align: middle;
}
.map-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
}
.map-badge.demo { background: #fbf3e8; color: var(--warm-ink); border: 1px solid #e8d4b8; }
.map-badge.live { background: var(--accent-soft); color: var(--accent); border: 1px solid #b9d0c8; }
.map-result .map-block { margin: 0 0 1rem; }
.map-result .tag {
  display: inline-block;
  font-size: 0.8rem;
  background: #e8f0ed;
  color: var(--accent);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}
.map-result .warn,
.card.warn {
  background: #fbf3e8;
  border-color: #e8d4b8;
}

/* —— Certificate —— */
.cert-preview { margin: 1rem 0 1.25rem; }
.cert-sheet {
  position: relative;
  background:
    linear-gradient(#fffef9, #fffef9) padding-box,
    linear-gradient(135deg, #2f5d50, #8aab9c 45%, #2f5d50) border-box;
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 2.1rem 1.85rem 1.85rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cert-sheet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(47, 93, 80, 0.28);
  border-radius: 4px;
  pointer-events: none;
}
.cert-ornament {
  width: 48px;
  height: 4px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}
.cert-sheet.preview { text-align: left; }
.cert-sheet.preview .cert-header,
.cert-sheet.preview .cert-title,
.cert-sheet.preview .cert-soft,
.cert-sheet.preview .cert-body,
.cert-sheet.preview .cert-name,
.cert-sheet.preview .cert-footer { text-align: center; }
.cert-header {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  text-align: center;
  font-weight: 600;
}
.cert-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  text-align: center;
  margin: 0 0 0.45rem;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}
.cert-soft {
  text-align: center;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
}
.cert-body { text-align: center; color: var(--muted); margin: 0.35rem 0; }
.cert-body-sm { font-size: 0.9rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.cert-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  text-align: center;
  margin: 0.7rem 0 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.cert-disclaimers {
  margin-top: 1.35rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.45;
}
.cert-disclaimers p { margin: 0 0 0.35rem; }
.cert-disclaimer-quiet {
  margin: 1.15rem auto 0;
  max-width: 34rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.cert-footer {
  margin: 1.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.cert-teaser {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.35rem;
}
.cert-sheet.teaser {
  padding: 1.35rem 1.15rem 1.15rem;
  transform: scale(1);
}
.cert-sheet.teaser .cert-title { font-size: 1.15rem; }
.cert-sheet.teaser .cert-name { font-size: 1.25rem; margin: 0.45rem 0 0.55rem; }
.cert-sheet.teaser .cert-soft { font-size: 0.85rem; margin-bottom: 0.75rem; }
.cert-sheet.teaser .cert-body { font-size: 0.85rem; }
.cert-sheet.teaser .cert-body-sm { font-size: 0.78rem; }
.cert-sheet.teaser .cert-disclaimer-quiet { font-size: 0.68rem; margin-top: 0.85rem; }
.cert-sheet.teaser .cert-footer { font-size: 0.7rem; margin-top: 0.9rem; }
.cert-sheet.teaser::before { inset: 7px; }
.cert-teaser-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}
@media (max-width: 720px) {
  .cert-teaser { grid-template-columns: 1fr; }
}
.cert-print { display: none; }
@media print {
  body.printing-cert .nav,
  body.printing-cert .flow-wrap,
  body.printing-cert .footer {
    display: none !important;
  }
  body.printing-cert .cert-print {
    display: block !important;
  }
  body.printing-cert .cert-sheet {
    box-shadow: none;
    padding: 0.55in 0.5in;
    page-break-inside: avoid;
  }
}
@media (max-width: 640px) {
  .flow-progress li { font-size: 0.72rem; }
  .flow-progress li span { display: none; }
}

/* —— Sample map page helpers —— */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
  background: var(--card);
}
.tag {
  display: inline-block;
  font-size: 0.8rem;
  background: #e8f0ed;
  color: var(--accent);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  margin-right: 0.35rem;
}


/* —— Featured case-study product block —— */
.feature-case {
  background: linear-gradient(180deg, #f7fbf9 0%, var(--bg, #faf7f2) 100%);
  border-top: 1px solid var(--line, #e8d4b8);
  border-bottom: 1px solid var(--line, #e8d4b8);
}
.feature-case-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
}
.feature-case-labels {
  margin-top: 1rem;
  max-width: 52rem;
}

/* —— Pilot skip banner —— */
.pilot-banner {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: var(--accent-soft, #e8f0ed);
  border: 1px dashed var(--accent, #2f5d50);
  border-radius: 10px;
}
.pilot-banner p { margin: 0 0 0.75rem; color: var(--ink, #1a1c1a); font-size: 0.95rem; }

/* —— Detected rsID chips (map step; presence only) —— */
.rsid-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  align-items: center;
}
.rsid-chip {
  display: inline-block;
  font-size: 0.78rem;
  background: #eef6f3;
  color: var(--accent, #2f5d50);
  border: 1px solid #b9d0c8;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}


/* Interactive DNA trait map cards */
.map-theme-grid { display: flex; flex-direction: column; gap: 0.75rem; margin: 0 0 1rem; }
.map-theme-card { padding: 0; overflow: hidden; }
.map-theme-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.map-theme-card > summary::-webkit-details-marker { display: none; }
.map-theme-card > summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--muted, #6b7280);
  font-size: 0.85rem;
}
.map-theme-card[open] > summary::after { content: "▾"; }
.map-theme-card > summary + p,
.map-theme-card .map-theme-topics,
.map-theme-card .map-clinician-callout {
  padding: 0 1.15rem 1rem;
  margin: 0;
}
.map-theme-card .map-theme-topics { padding-top: 0.35rem; }
.map-flag-row { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.map-flag-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft, #e7f1ed);
  color: var(--accent, #2f6b5a);
  border: 1px solid #b9d0c8;
}
.map-flag-chip-warn {
  background: #fbf3e8;
  color: var(--warm-ink, #7a4b1a);
  border-color: #e8d4b8;
}
.map-clinician-callout {
  font-size: 0.9rem;
  background: #fbf3e8;
  border: 1px solid #e8d4b8;
  border-radius: 8px;
  padding: 0.65rem 0.85rem !important;
  margin: 0 1.15rem 1rem !important;
  color: var(--warm-ink, #7a4b1a);
}
.map-clinician-list .map-flag-chip { margin-right: 0.25rem; vertical-align: middle; }
.partner-link-list { list-style: none; padding: 0; margin: 0; }
.partner-link-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.partner-link-list li:last-child { border-bottom: none; }
.map-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--accent, #2f6b5a); font-weight: 600; }

/* —— Gold case-study callout chips/cards (homepage + light reuse) —— */
.gold-callouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 0.35rem;
  max-width: var(--max-wide);
}
@media (max-width: 900px) {
  .gold-callouts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gold-callouts { grid-template-columns: 1fr; }
}
.gold-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.gold-chip:hover {
  border-color: #b9d0c8;
  box-shadow: 0 8px 24px rgba(47, 93, 80, 0.12);
  transform: translateY(-1px);
  color: inherit;
}
.gold-chip .gold-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-ink);
  font-family: var(--font);
}
.gold-chip h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}
.gold-chip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.gold-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.25rem;
}
.gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #c5d9cf;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
a.gold-pill:hover { background: #dceae3; color: var(--accent-hover); }
.section.gold-band {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.section.gold-band .wide { margin-bottom: 0.75rem; }
.feature-case .gold-pill { background: #fffdf9; }


/* DNA vendor how-to (flow upload) */
details.howto-dna {
  border: 1px solid rgba(47, 93, 80, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: rgba(47, 93, 80, 0.04);
}
details.howto-dna summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f5d50;
}
details.howto-dna ul {
  margin: 0.6rem 0 0.4rem 1.1rem;
  padding: 0;
}
details.howto-dna li {
  margin: 0.35rem 0;
}


/* Hosted / flow map — larger readable text + highlight / peptide / plan */
.map-block h3 { font-size: 1.45rem !important; }
.map-block .muted, .map-theme-card > summary + p { font-size: 1.05rem !important; line-height: 1.55; }
.map-theme-card > summary strong { font-size: 1.15rem; }
.map-theme-topics, .map-clinician-list { font-size: 1.02rem; line-height: 1.5; }
.map-flag-chip { font-size: 0.82rem !important; padding: 0.2rem 0.55rem !important; }
.map-clinician-callout { font-size: 1rem !important; }
.map-hero .eyebrow, .map-highlights .eyebrow, .map-peptide .eyebrow, .map-plan .eyebrow {
  font-size: 0.85rem !important;
}
.map-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.map-highlight-card {
  background: linear-gradient(165deg, #fff7ef, #fff);
  border: 2px solid #e2c4a8;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.map-highlight-card.high { border-color: #c47a5a; }
.map-highlight-card strong { display: block; font-size: 1.1rem; margin: 0.35rem 0; }
.map-highlight-card .muted { font-size: 0.98rem !important; margin: 0 0 0.5rem; }
.map-theme-highlighted { box-shadow: 0 0 0 2px rgba(196,122,90,.25); }
.map-peptide-card { border-left: 4px solid #c47a5a; }
.map-plan-phase, .map-plan-section {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.65rem 0;
  background: #faf8f4;
}
.map-plan-phase h4, .map-plan-section h4 { font-size: 1.15rem; }
.map-plan-steps { margin: 0.5rem 0 0 1.2rem; font-size: 1.02rem; line-height: 1.5; }
.map-plan-steps li { margin: 0.45rem 0; }
.map-plan-bullets { margin: 0.45rem 0 0.25rem 1.15rem; font-size: 1.02rem; line-height: 1.5; }
.map-plan-bullets li { margin: 0.4rem 0; }
.map-plan-peptide {
  border: 2px solid #c47a5a;
  background: linear-gradient(165deg, #fff7ef, #fff);
  box-shadow: 0 0 0 2px rgba(196,122,90,.18);
}
body.theme-zyvolab .map-plan-peptide {
  border-color: rgba(167, 139, 250, 0.75);
  background: linear-gradient(165deg, rgba(76, 29, 149, 0.45), rgba(24, 12, 52, 0.85));
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}


/* ============================================================
   Zyvolab restyle — dark lab aesthetic (production)
   Scoped via body.theme-zyvolab
   ============================================================ */
body.theme-zyvolab {
  --bg: #0a0618;
  --bg-deep: #120a28;
  --ink: #f4f0ff;
  --muted: #b7aed0;
  --card: rgba(28, 16, 58, 0.72);
  --line: rgba(168, 140, 255, 0.22);
  --line-soft: rgba(168, 140, 255, 0.12);
  --accent: #c4b5fd;
  --accent-hover: #e9e0ff;
  --accent-soft: rgba(124, 58, 237, 0.22);
  --accent-mid: #8b5cf6;
  --accent-ink: #0d0620;
  --warm: rgba(88, 28, 135, 0.35);
  --warm-ink: #f5d0fe;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 36px rgba(76, 29, 149, 0.28);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 28px 64px rgba(59, 7, 100, 0.45);
  --radius: 22px;
  --radius-sm: 999px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --serif: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 70% 0%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 30%, rgba(37, 99, 235, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(192, 38, 211, 0.15), transparent 55%),
    var(--bg);
  line-height: 1.6;
}
body.theme-zyvolab a { color: #ddd6fe; }
body.theme-zyvolab a:hover { color: #fff; }

body.theme-zyvolab .nav {
  background: rgba(10, 6, 24, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
body.theme-zyvolab .wordmark { color: #fff; }
body.theme-zyvolab .wordmark:hover { color: #fff; }
body.theme-zyvolab .wordmark-sub {
  font-family: var(--font);
  color: #c4b5fd;
  letter-spacing: 0.18em;
}
body.theme-zyvolab .nav nav a { color: #cfc6e8; }
body.theme-zyvolab .nav nav a:hover { color: #fff; }

body.theme-zyvolab h1,
body.theme-zyvolab h2,
body.theme-zyvolab h3 {
  font-family: var(--font);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
body.theme-zyvolab .eyebrow {
  color: #e9d5ff;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* Pill buttons — Zyvolab style */
body.theme-zyvolab .btn {
  border-radius: 999px;
  background: #f8f5ff;
  color: #14082c;
  box-shadow: 0 4px 18px rgba(192, 132, 252, 0.28);
  border: 1px solid transparent;
  font-weight: 700;
}
body.theme-zyvolab .btn:hover {
  background: #fff;
  color: #14082c;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(192, 132, 252, 0.4);
}
body.theme-zyvolab .btn-sm {
  padding: 0.48rem 1.05rem;
}
body.theme-zyvolab .btn-primary-light {
  background: #fff;
  color: #120824;
}
body.theme-zyvolab .btn-ghost,
body.theme-zyvolab .btn-outline {
  background: rgba(28, 16, 58, 0.55);
  color: #f5f0ff;
  border: 1.5px solid rgba(196, 181, 253, 0.55);
  box-shadow: none;
}
body.theme-zyvolab .btn-ghost:hover,
body.theme-zyvolab .btn-outline:hover {
  background: rgba(88, 28, 135, 0.45);
  color: #fff;
  border-color: #c4b5fd;
  transform: none;
  box-shadow: none;
}

/* Hero lab layout */
body.theme-zyvolab .hero.hero-lab {
  max-width: none;
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
body.theme-zyvolab .hero.hero-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(167, 139, 250, 0.28), transparent 42%),
    radial-gradient(circle at 20% 70%, rgba(59, 130, 246, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(76, 29, 149, 0.25) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body.theme-zyvolab .hero-lab-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}
body.theme-zyvolab .hero-lab-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  line-height: 1.08;
}
body.theme-zyvolab .hero-cta-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.9rem;
}
body.theme-zyvolab .hero-fine { margin-top: 0.35rem; max-width: 36rem; }

body.theme-zyvolab .hero-glass-card {
  background: rgba(22, 10, 48, 0.55);
  border: 1px solid rgba(196, 181, 253, 0.35);
  border-radius: 28px;
  padding: 1.6rem 1.55rem 1.7rem;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--shadow-lg);
}
body.theme-zyvolab .hero-glass-orb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 30% 30%, #f0abfc, transparent 55%),
    radial-gradient(circle at 70% 70%, #60a5fa, transparent 50%),
    radial-gradient(circle at 50% 50%, #8b5cf6, #4c1d95 70%);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.55);
}
body.theme-zyvolab .hero-glass-title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  color: #fff;
}
body.theme-zyvolab .hero-glass-body {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
body.theme-zyvolab .hero-glass-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
body.theme-zyvolab .hero-glass-list li {
  color: #e9e0ff;
  font-size: 0.9rem;
  font-weight: 600;
  padding-left: 1.15rem;
  position: relative;
}
body.theme-zyvolab .hero-glass-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 8px rgba(196, 181, 253, 0.8);
}

@media (max-width: 860px) {
  body.theme-zyvolab .hero-lab-inner { grid-template-columns: 1fr; }
  body.theme-zyvolab .hero-lab-copy h1 { max-width: none; }
}

/* Sections / cards / steps */
body.theme-zyvolab .alt {
  background: linear-gradient(180deg, rgba(18, 10, 40, 0.95), rgba(12, 6, 28, 0.98));
  border-block: 1px solid var(--line);
}
body.theme-zyvolab .steps li,
body.theme-zyvolab .card,
body.theme-zyvolab .flow-panel.card,
body.theme-zyvolab .compare-card {
  background: rgba(24, 12, 52, 0.75);
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
body.theme-zyvolab .step-n {
  border-radius: 12px;
  background: linear-gradient(145deg, #8b5cf6, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}
body.theme-zyvolab .intro-frame {
  background: #120a28;
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
}
body.theme-zyvolab .intro-caption { color: var(--muted); }

body.theme-zyvolab .gold-band {
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 60%),
    var(--bg-deep);
  border-block: 1px solid var(--line);
}
body.theme-zyvolab .gold-chip,
body.theme-zyvolab .gold-pill {
  background: rgba(28, 16, 58, 0.7);
  border: 1px solid rgba(196, 181, 253, 0.3);
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
body.theme-zyvolab .gold-chip:hover,
body.theme-zyvolab .gold-pill:hover {
  border-color: #c4b5fd;
  background: rgba(76, 29, 149, 0.45);
}
body.theme-zyvolab .gold-kicker { color: #e9d5ff; }
body.theme-zyvolab .gold-chip h3 { color: #fff; }
body.theme-zyvolab .gold-chip p { color: var(--muted); }
body.theme-zyvolab .gold-pill { color: #f5f0ff; padding: 0.45rem 0.95rem; border-radius: 999px; }

body.theme-zyvolab .compare-card.hit {
  border-color: rgba(167, 139, 250, 0.55);
  background: linear-gradient(180deg, rgba(76, 29, 149, 0.45) 0%, rgba(24, 12, 52, 0.85) 100%);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.3);
}
body.theme-zyvolab .compare-card.hit .compare-tag { color: #e9d5ff; }
body.theme-zyvolab .compare-tag { color: var(--muted); }

body.theme-zyvolab .footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
body.theme-zyvolab .footer .site-url { color: #c4b5fd; }

body.theme-zyvolab .bullets { color: var(--muted); }
body.theme-zyvolab .bullets strong { color: #fff; }
body.theme-zyvolab .muted { color: var(--muted); }
body.theme-zyvolab .fine { color: #9d93b8; }
body.theme-zyvolab .wide,
body.theme-zyvolab .lede { color: var(--muted); }

/* Form / flow pages sharing styles.css also benefit if they add theme class later */
body.theme-zyvolab .flow-form input[type="text"],
body.theme-zyvolab .flow-form input[type="email"],
body.theme-zyvolab .flow-form select,
body.theme-zyvolab .flow-form textarea,
body.theme-zyvolab .waitlist input {
  background: rgba(10, 6, 24, 0.65);
  border-color: var(--line);
  color: var(--ink);
}
body.theme-zyvolab .flow-progress li {
  background: rgba(24, 12, 52, 0.8);
  border-color: var(--line);
  color: var(--muted);
}
body.theme-zyvolab .flow-progress li.active {
  border-color: #c4b5fd;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.25);
}

/* High-contrast map chips + clinician banners on Zyvolab dark (no light-on-cream) */
body.theme-zyvolab .map-flag-chip {
  background: #1e1238;
  color: #f4f0ff;
  border: 1px solid rgba(196, 181, 253, 0.55);
}
body.theme-zyvolab .map-flag-chip-warn {
  background: #3b0f1e;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
}
body.theme-zyvolab .map-clinician-callout {
  background: #1a0f33;
  border: 1px solid rgba(196, 181, 253, 0.45);
  color: #f4f0ff;
}
body.theme-zyvolab .map-clinician-callout strong { color: #fff; }
body.theme-zyvolab .map-badge.demo {
  background: #1e1238;
  color: #e9d5ff;
  border: 1px solid rgba(196, 181, 253, 0.45);
}
body.theme-zyvolab .map-peptide-meta {
  display: grid;
  gap: 6px;
  margin: 0.5rem 0 0.75rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 6, 24, 0.55);
  border: 1px solid rgba(196, 181, 253, 0.28);
  color: #f4f0ff;
  font-size: 0.95rem;
  line-height: 1.45;
}
body.theme-zyvolab .map-peptide-meta strong {
  color: #c4b5fd;
  font-weight: 700;
  margin-right: 0.35rem;
}


/* Specific peptide ↔ DNA trait banners + high-contrast chips (Zyvolab) */
.map-link-banner {
  display: block; margin: 0.5rem 0; padding: 0.65rem 0.85rem; border-radius: 10px;
  background: #fef3c7; color: #78350f; border: 1px solid #f59e0b;
  font-size: 0.98rem; font-weight: 700; line-height: 1.45;
}
.map-link-banner .why { display: block; margin-top: 0.25rem; font-weight: 600; color: #92400e; font-size: 0.92rem; }
.map-flag-chip {
  background: #f5f3ff !important; color: #1e0b3a !important; border: 1px solid #c4b5fd !important;
  font-weight: 800 !important;
}
.map-flag-chip-warn {
  background: #7f1d1d !important; color: #fff7ed !important; border-color: #fecaca !important;
}
.map-peptide-card { border-left: 5px solid #fbbf24 !important; }
body.theme-zyvolab .map-peptide-card {
  background: #160a32 !important;
  border: 1px solid #c4b5fd !important;
  border-left: 5px solid #fbbf24 !important;
  color: #f5f3ff;
}
body.theme-zyvolab .map-peptide-card .muted { color: #e9d5ff !important; }
