/* ============================================================
   Memco Memory Reliability Lab — page styles
   Inherits tokens from colors_and_type.css (Memco design system).
   ============================================================ */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg1); color: var(--fg1); font-family: var(--font-sans); }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 54px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 25%, var(--border) 75%, transparent);
}
.nav .container { max-width: 1240px; padding-left: 22px; padding-right: 22px; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wordmark {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 24px; letter-spacing: -0.02em;
  color: var(--foreground);
  display: inline-flex; align-items: center;
}
.wordmark img { display: block; width: auto; height: 20px; }
.footer .wordmark img { height: 22px; }
.nav-sub {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; line-height: 1.25; text-transform: uppercase;
  color: var(--muted-foreground);
  padding-left: 14px; border-left: 1px solid var(--border);
  white-space: nowrap;
}
.nav-links { display: none; gap: 0; margin-left: 2px; }
@media (min-width: 1200px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--muted-foreground);
  font-size: 12px; line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
  border-radius: 8px; transition: color .15s var(--ease-memco), background .15s var(--ease-memco);
}
.nav-links a:hover { color: var(--foreground); background: rgba(0,0,0,0.04); }
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-ghost {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--muted-foreground);
  padding: 8px 14px; border-radius: 8px; font-family: inherit;
}
.btn-ghost:hover { color: var(--foreground); background: rgba(0,0,0,0.04); }
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px;
  transition: opacity .15s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary .arr { transition: transform .15s; }
.btn-primary:hover .arr { transform: translateX(2px); }
.nav .btn-ghost {
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}
.nav .btn-primary {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  padding: 8px 14px;
  gap: 7px;
  white-space: nowrap;
}

.btn-outline {
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 17px; border-radius: 999px;
  color: var(--foreground);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--foreground); }

/* ============================================================
   SECTION CHROME
   ============================================================ */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
@media (min-width: 640px) { section { padding: 96px 0; } }
.eyebrow {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-foreground);
  margin: 0 0 14px;
}
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  font-feature-settings: "ss02" on, "ss03" on, "ss04" on;
  text-wrap: balance;
}
.section-head p {
  color: var(--muted-foreground); font-size: 15px; line-height: 1.6;
  margin: 0; max-width: 580px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 132px; padding-bottom: 88px; border-top: none; }
@media (min-width: 980px) { .hero { padding-top: 152px; padding-bottom: 112px; } }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; }
}
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 14px 5px 11px; border-radius: 999px;
  font-size: 12px; color: var(--foreground);
  margin-bottom: 28px;
}
.hero-status .dot {
  width: 7px; height: 7px; background: var(--success-emerald);
  border-radius: 999px; box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.7vw, 3.5rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-feature-settings: "ss02" on, "ss03" on, "ss04" on;
  text-wrap: balance;
}
.hero .hero-lede {
  font-size: 17px; color: var(--muted-foreground); line-height: 1.6;
  max-width: 540px; margin: 0 0 36px;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 22px;
}
.trust-strip {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--muted-foreground);
  padding-top: 4px;
  flex-wrap: wrap;
}
.trust-strip .pip {
  width: 4px; height: 4px; background: var(--c-gray-200);
  border-radius: 999px;
}

/* hero scorecard */
.scorecard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.sc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,250,0.6);
}
.sc-head .title {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.sc-head .meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 7px;
}
.sc-head .meta .ldot { width: 6px; height: 6px; border-radius: 999px; background: var(--success-emerald); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.sc-body { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 520px) { .sc-body { grid-template-columns: 220px 1fr; } }

/* gauge */
.gauge-cell {
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(250,250,250,0.4) 0%, transparent 100%);
}
@media (min-width: 520px) { .gauge-cell { border-bottom: none; border-right: 1px solid var(--border); } }
.gauge-svg { width: 168px; height: 92px; }
.gauge-num {
  font-family: var(--font-sans);
  font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  margin-top: -32px;
  font-feature-settings: "ss02" on, "ss03" on;
  font-variant-numeric: tabular-nums;
}
.gauge-num .of {
  font-size: 14px; color: var(--muted-foreground);
  font-weight: 500; letter-spacing: 0;
  margin-left: 2px;
}
.gauge-band {
  margin-top: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.gauge-band .accent { color: var(--brand-orange); }

/* dimension bars */
.sc-bars {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.sc-row {
  display: grid; grid-template-columns: 1fr 78px 30px;
  align-items: center; gap: 12px;
}
.sc-row .lbl {
  font-size: 12px; color: var(--foreground);
  letter-spacing: -0.005em;
}
.sc-row .track {
  height: 4px; background: var(--c-gray-50);
  border-radius: 2px; overflow: hidden;
}
.sc-row .fill {
  height: 100%; background: var(--foreground);
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.10, 0.25, 1.00);
}
.sc-row .val {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted-foreground); text-align: right;
  font-variant-numeric: tabular-nums;
}

/* learning leak pipeline (mini, in scorecard footer) */
.sc-leak {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  background: rgba(250,250,250,0.4);
  flex-wrap: wrap;
  font-size: 11px;
}
.sc-leak .node {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--foreground);
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.sc-leak .node.broken { color: var(--destructive); border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.06); position: relative; }
.sc-leak .node.broken::after {
  content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px;
  background: var(--destructive); transform: translateX(-50%) rotate(20deg);
  opacity: 0.5;
}
.sc-leak .arr { color: var(--c-gray-200); font-size: 12px; }
.sc-leak .arr.broken { color: var(--destructive); opacity: 0.55; }

/* ============================================================
   WHY THIS MATTERS — split diagram
   ============================================================ */
.split-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: 36px;
}
@media (min-width: 880px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
.split-card {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
  padding: 28px 26px 30px;
  position: relative;
}
.split-card.muted { background: var(--cream); }
.split-card .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.split-card .lbl .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--muted-foreground); }
.split-card.good .lbl .pip { background: var(--success-emerald); }
.split-card.bad .lbl .pip { background: var(--destructive); }
.split-card h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.pipeline { display: flex; flex-direction: column; gap: 0; }
.pipe-node {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 13px;
}
.pipe-node .marker {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.bad .pipe-node .marker { color: var(--muted-foreground); }
.bad .pipe-node.lost .marker { border-color: var(--destructive); color: var(--destructive); background: rgba(239,68,68,0.05); }
.bad .pipe-node.lost::after {
  content: 'lost'; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--destructive); margin-left: auto;
}
.good .pipe-node .marker { color: var(--foreground); border-color: var(--foreground); }
.pipe-rail {
  width: 1px; height: 18px;
  background: var(--border);
  margin-left: 11px;
}
.bad .pipe-rail.broken { background: repeating-linear-gradient(to bottom, var(--destructive) 0 2px, transparent 2px 5px); opacity: 0.5; }

.callout-line {
  margin-top: 40px; padding: 22px 26px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--foreground);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.45;
  color: var(--foreground);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.callout-line em { color: var(--muted-foreground); font-style: normal; }

/* ============================================================
   WHAT THE DIAGNOSTIC MEASURES — 6 dimension cards
   ============================================================ */
.dim-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .dim-grid { grid-template-columns: repeat(3, 1fr); } }
.dim-card {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
  padding: 24px;
  position: relative;
  transition: border-color .15s, transform .15s;
}
.dim-card:hover { border-color: var(--foreground); }
.dim-card .num {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; color: var(--muted-foreground);
  margin-bottom: 14px;
}
.dim-card h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.dim-card p {
  color: var(--muted-foreground); font-size: 13px; line-height: 1.6;
  margin: 0;
}
.dim-card .weight {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--c-gray-200); letter-spacing: 0.05em;
}

/* ============================================================
   PRIVACY GUARANTEE — boundary diagram
   ============================================================ */
.privacy-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  align-items: stretch;
  margin-top: 8px;
}
@media (min-width: 940px) { .privacy-grid { grid-template-columns: 1.05fr 0.95fr; gap: 36px; } }

.privacy-bullets ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.privacy-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.55; color: var(--foreground);
}
.privacy-bullets .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--foreground); color: var(--background);
  flex-shrink: 0; margin-top: 3px;
}
.privacy-bullets .check svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.boundary {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
  padding: 26px;
  display: grid; grid-template-rows: auto auto auto; gap: 20px;
}
.boundary-zone {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 16px 18px 18px;
  position: relative;
  background: var(--cream);
}
.boundary-zone.private { border-color: var(--c-gray-200); }
.boundary-zone .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.boundary-zone .lbl .lock { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.boundary-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.b-tag {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--foreground);
}
.boundary-zone.private .b-tag {
  color: var(--muted-foreground);
  text-decoration: line-through;
  text-decoration-color: var(--c-gray-200);
}

.boundary-arrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted-foreground);
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0 4px;
}
.boundary-arrow::before,
.boundary-arrow::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
   SAMPLE RESULT — preview
   ============================================================ */
.sample {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.sample-head {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .sample-head { grid-template-columns: 260px 1fr; } }
.sample-score {
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(250,250,250,0.5), transparent);
}
@media (min-width: 720px) { .sample-score { border-bottom: none; border-right: 1px solid var(--border); } }
.sample-score .big {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 84px; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--foreground);
}
.sample-score .big .of {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  font-size: 26px; color: var(--muted-foreground);
  margin-left: 4px;
}
.sample-score .band-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-orange);
  margin-top: 6px;
}
.sample-score .band-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-orange); }
.sample-score .confidence {
  font-size: 12px; color: var(--muted-foreground);
  margin-top: 4px;
}
.sample-verdict {
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.sample-verdict h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0;
}
.sample-verdict p {
  margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.65;
}

.sample-body {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 720px) { .sample-body { grid-template-columns: 1fr 1fr; } }
.sample-col {
  padding: 28px 30px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .sample-col:first-child { border-right: 1px solid var(--border); border-bottom: none; }
}
.sample-col h4 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 16px;
}
.sample-col ol {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
}
.sample-col ol li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.sample-col ol li .n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-foreground);
  padding-top: 2px;
}
.sample-col ol li h5 {
  font-size: 14px; font-weight: 600; margin: 0 0 3px;
  letter-spacing: -0.005em;
}
.sample-col ol li p {
  font-size: 13px; line-height: 1.5; color: var(--muted-foreground); margin: 0;
}
.sample-col .pilot {
  font-size: 14px; line-height: 1.65; color: var(--foreground);
}
.sample-col .pilot p { margin: 0 0 10px; }
.sample-col .pilot p:last-child { margin-bottom: 0; }
.sample-col .pilot strong { font-weight: 600; }

/* ============================================================
   FAILURE MODES — small cards
   ============================================================ */
.fm-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 640px) { .fm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .fm-grid { grid-template-columns: repeat(3, 1fr); } }
.fm-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 22px;
  background: var(--card);
}
.fm-card .id {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted-foreground); letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.fm-card h3 {
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.fm-card p {
  font-size: 13px; line-height: 1.55; color: var(--muted-foreground); margin: 0;
}

/* ============================================================
   HOW MEMCO FIXES THE LOOP — before/after loop diagram
   ============================================================ */
.loop-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  margin-top: 8px;
}
@media (min-width: 880px) { .loop-grid { grid-template-columns: 1fr 1fr; } }
.loop-card {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
  padding: 28px;
}
.loop-card.fixed { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.loop-card.fixed .lbl { color: rgba(255,255,255,0.55); }
.loop-card .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}
.loop-card h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.loop-flow {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.loop-step {
  font-size: 12.5px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card); color: var(--foreground);
}
.loop-card.fixed .loop-step { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--background); }
.loop-card.fixed .loop-step.accent { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--background); }
.loop-step.end {
  color: var(--destructive); border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.05);
}
.loop-arr { color: var(--c-gray-200); font-size: 12px; }
.loop-card.fixed .loop-arr { color: rgba(255,255,255,0.4); }
.loop-cap {
  margin-top: 22px;
  font-size: 13px; line-height: 1.6;
  color: var(--muted-foreground);
}
.loop-card.fixed .loop-cap { color: rgba(255,255,255,0.72); }

.loop-caption {
  margin-top: 28px;
  font-size: 14px; line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 720px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  background: var(--cream);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 96px 0 100px;
}
.final h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  margin: 0 auto 18px;
  max-width: 720px;
  font-feature-settings: "ss02" on, "ss03" on, "ss04" on;
  text-wrap: balance;
}
.final p {
  color: var(--muted-foreground); font-size: 15px;
  margin: 0 auto 36px; max-width: 540px; line-height: 1.6;
}
.final .row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.final .trust {
  margin-top: 26px;
  font-size: 12.5px; color: var(--muted-foreground);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 60px 0 32px; border-top: 1px solid var(--border); }
.footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 720px) { .footer .grid { grid-template-columns: 1fr 1fr; } }
.footer .brand p { font-size: 13px; color: var(--muted-foreground); line-height: 1.65; margin-top: 14px; max-width: 280px; }
.footer h4 { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { font-size: 13px; color: var(--foreground); }
.footer a:hover { color: var(--muted-foreground); }
.f-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted-foreground);
}

/* ============================================================
   DIAGNOSTIC OVERLAY (full-screen modal experience)
   ============================================================ */
.lab {
  position: fixed; inset: 0;
  background: var(--background);
  z-index: 100;
  display: none;
  overflow-y: auto;
}
.lab.open { display: block; }
body.lab-open { overflow: hidden; }

.lab-chrome {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.lab-chrome-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
@media (min-width: 768px) { .lab-chrome-inner { padding: 14px 40px; } }
.lab-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted-foreground);
}
.lab-brand .wm {
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: var(--foreground);
  display: inline-flex; align-items: center;
}
.lab-brand .wm img { display: block; width: auto; height: 18px; }
.lab-brand .div { width: 1px; height: 14px; background: var(--border); }
.lab-brand .name { letter-spacing: -0.005em; }
.lab-step {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-left: auto;
}
.lab-close {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--muted-foreground);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  transition: all .15s;
}
.lab-close:hover { color: var(--foreground); border-color: var(--foreground); }

.progress {
  height: 2px; background: var(--c-gray-50);
  position: relative; overflow: hidden;
}
.progress .bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--foreground);
  width: 0%;
  transition: width .35s var(--ease-memco);
}

.progress-dots {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
@media (min-width: 768px) { .progress-dots { padding: 0 40px; } }
.progress-dots .pd {
  flex: 1; height: 28px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-gray-200);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.progress-dots .pd .nub {
  width: 5px; height: 5px; border-radius: 999px; background: var(--c-gray-200);
  flex-shrink: 0;
}
.progress-dots .pd.done { color: var(--muted-foreground); }
.progress-dots .pd.done .nub { background: var(--muted-foreground); }
.progress-dots .pd.cur { color: var(--foreground); border-bottom-color: var(--foreground); }
.progress-dots .pd.cur .nub { background: var(--foreground); }
.progress-dots .pd .label { display: none; }
@media (min-width: 880px) { .progress-dots .pd .label { display: inline; } }

.lab-body {
  max-width: 1180px; margin: 0 auto;
  padding: 56px 24px 120px;
  display: grid; grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 980px) {
  .lab-body { grid-template-columns: minmax(0, 1fr) 320px; padding: 72px 40px 140px; gap: 64px; }
}
/* Results page uses full width — no right rail */
.lab-body.is-result { grid-template-columns: 1fr !important; }
.lab-body.is-result > .lab-rail { display: none !important; }
/* Hide diagnostic chrome on results — replace with a calmer header */
.lab.is-result .progress,
.lab.is-result .progress-dots,
.lab.is-result .lab-nav { display: none !important; }
.lab.is-result .lab-body { padding-bottom: 80px; }
.lab.is-result .lab-step { color: var(--foreground); font-weight: 500; }

.lab-stage {
  display: flex; flex-direction: column; gap: 40px;
}
.q-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}
.q-block:last-child { border-bottom: none; padding-bottom: 0; }
.q-block .qid {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.q-block h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.25;
  margin: 0 0 8px;
  font-feature-settings: "ss02" on, "ss03" on;
  text-wrap: balance;
}
.q-block .help {
  font-size: 13.5px; line-height: 1.55;
  color: var(--muted-foreground);
  margin: 0 0 22px;
  max-width: 560px;
}
.q-block .help.privacy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted-foreground);
  margin: 0 0 18px;
}
.q-block .help.privacy .lock { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }

.stage-title {
  font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand-orange);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.stage-title .num {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: 24px; letter-spacing: -0.02em;
  color: var(--brand-orange); text-transform: none;
}

/* answer controls */
.opts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.opt {
  cursor: pointer; user-select: none;
  font-size: 13px; padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color .12s, background .12s, color .12s;
}
.opt:hover { border-color: var(--foreground); }
.opt.on {
  background: var(--foreground); color: var(--background); border-color: var(--foreground);
}

.opts.stacked { flex-direction: column; align-items: stretch; }
.opts.stacked .opt {
  border-radius: 8px; text-align: left;
  padding: 12px 16px; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.opts.stacked .opt::after {
  content: ''; width: 14px; height: 14px;
  border-radius: 50%; border: 1.5px solid var(--c-gray-200);
  flex-shrink: 0;
  transition: border-color .12s, background .12s;
}
.opts.stacked .opt.on::after {
  border-color: var(--background); background: var(--background);
  box-shadow: inset 0 0 0 3px var(--foreground);
}

.q-block textarea {
  width: 100%; resize: vertical; min-height: 80px;
  font-family: inherit; font-size: 14px; color: var(--foreground);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.55;
  outline: none;
  transition: border-color .15s;
}
.q-block textarea:focus { border-color: var(--foreground); }

.acknowledge {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  font-size: 13.5px; line-height: 1.5;
  user-select: none;
}
.acknowledge input { display: none; }
.acknowledge .box {
  width: 16px; height: 16px; border: 1.5px solid var(--c-gray-200);
  border-radius: 4px; flex-shrink: 0; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.acknowledge.on .box {
  background: var(--foreground); border-color: var(--foreground); color: var(--background);
}
.acknowledge .box svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.acknowledge.on .box svg { opacity: 1; }

/* right rail */
.lab-rail {
  display: none; flex-direction: column; gap: 18px;
  position: sticky; top: 78px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
@media (min-width: 980px) { .lab-rail { display: flex; } }
.rail-card {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
  padding: 18px 20px;
}
.rail-card .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.rail-card .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted-foreground);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.rail-card .live .d { width: 5px; height: 5px; border-radius: 999px; background: var(--success-emerald); animation: livepulse 2s ease-in-out infinite; }
.rail-card .score-prev {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 36px; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.rail-card .score-prev .of { font-size: 14px; color: var(--muted-foreground); font-weight: 500; }
.rail-card .band-prev {
  font-size: 12px; color: var(--muted-foreground);
  margin-bottom: 14px;
}
.rail-card .mini-bars { display: flex; flex-direction: column; gap: 8px; }
.rail-card .mini-bars .row {
  display: grid; grid-template-columns: 1fr 50px; gap: 10px; align-items: center;
}
.rail-card .mini-bars .row .nm {
  font-size: 11.5px; color: var(--foreground);
}
.rail-card .mini-bars .row .tr {
  height: 3px; background: var(--c-gray-50); border-radius: 2px; overflow: hidden;
}
.rail-card .mini-bars .row .tr .fl {
  height: 100%; background: var(--foreground); transition: width .8s var(--ease-memco);
}

.insight {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--cream);
  padding: 16px 18px;
}
.insight .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 8px;
}
.insight p {
  font-size: 13px; line-height: 1.5;
  color: var(--foreground); margin: 0;
  letter-spacing: -0.005em;
}

/* nav bar bottom */
.lab-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
}
@media (min-width: 768px) { .lab-nav { padding: 16px 40px; } }
.lab-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.lab-nav .left {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground);
  display: flex; align-items: center; gap: 12px;
}
.lab-nav .right { display: flex; gap: 10px; align-items: center; }
.lab-nav .right .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.lab-nav .right .btn-primary:disabled:hover { opacity: 0.4; }

/* ============================================================
   RESULTS SCREEN
   ============================================================ */
.result {
  max-width: 1180px; margin: 0 auto;
  padding: 56px 24px 120px;
  display: flex; flex-direction: column; gap: 32px;
}
@media (min-width: 768px) { .result { padding: 72px 40px 140px; } }

.result-head {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.result-top {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .result-top { grid-template-columns: 300px 1fr; } }
.result-big {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(250,250,250,0.5), transparent);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .result-big { border-bottom: none; border-right: 1px solid var(--border); } }
.result-big .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.result-big .num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 104px; line-height: 0.9; letter-spacing: -0.045em;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss02" on;
}
.result-big .num .of {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  font-size: 28px; color: var(--muted-foreground);
  margin-left: 4px;
}
.result-big .band {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-orange);
  margin-top: 16px;
}
.result-big .band .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-orange); }
.result-big .confidence {
  font-size: 12px; color: var(--muted-foreground);
  margin-top: 6px;
}

.result-verdict {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.result-verdict h2 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.result-verdict p {
  margin: 0; color: var(--muted-foreground); font-size: 14.5px; line-height: 1.65;
}
.result-verdict .badges {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.result-verdict .badges .b {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
}

.result-breakdown {
  padding: 28px 36px 32px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 720px) { .result-breakdown { grid-template-columns: 1fr 1fr; gap: 14px 56px; } }
.rb-row {
  display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 16px;
}
.rb-row .nm { font-size: 13px; color: var(--foreground); }
.rb-row .tr { height: 5px; background: var(--c-gray-50); border-radius: 3px; overflow: hidden; position: relative; }
.rb-row .fl { position: absolute; left: 0; top: 0; bottom: 0; background: var(--foreground); transition: width 1.2s var(--ease-memco); }
.rb-row .v { font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); text-align: right; font-variant-numeric: tabular-nums; }

/* result modules */
.result-mod {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card);
  padding: 32px 36px;
}
.result-mod > .lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.result-mod > h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.2;
  margin: 0 0 24px;
  text-wrap: balance;
}

/* judge panel */
.judges {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 720px) { .judges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .judges { grid-template-columns: repeat(5, 1fr); } }
.judge {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card);
  min-height: 200px;
}
.judge .who {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.judge .verdict {
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.35;
}
.judge .fix {
  margin-top: auto;
  font-size: 12.5px; line-height: 1.5;
  color: var(--muted-foreground);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.judge .risk {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.judge .risk .d { width: 6px; height: 6px; border-radius: 999px; }
.judge .risk.high { color: var(--destructive); }
.judge .risk.high .d { background: var(--destructive); }
.judge .risk.med  { color: var(--brand-orange); }
.judge .risk.med .d { background: var(--brand-orange); }
.judge .risk.low  { color: var(--success-emerald); }
.judge .risk.low .d { background: var(--success-emerald); }

/* top failure modes */
.fm-ranked {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) { .fm-ranked { grid-template-columns: repeat(3, 1fr); } }
.fm-ranked .fm {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 22px;
  background: var(--card);
}
.fm-ranked .fm .r {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--brand-orange);
  margin-bottom: 6px;
}
.fm-ranked .fm h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; margin: 0 0 6px; }
.fm-ranked .fm p { font-size: 13px; line-height: 1.55; color: var(--muted-foreground); margin: 0; }

/* leak map */
.leak-map {
  border-radius: 10px; padding: 28px 24px;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.leak-flow {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; row-gap: 16px; justify-content: center;
}
.leak-node {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  min-width: 130px;
  text-align: center;
}
.leak-node .who {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.leak-node .what {
  font-size: 12.5px; font-weight: 500; line-height: 1.3;
}
.leak-node.brk {
  border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.04);
}
.leak-node.brk .who { color: var(--destructive); }
.leak-arr { color: var(--c-gray-200); font-size: 14px; flex-shrink: 0; }
.leak-arr.brk { color: var(--destructive); opacity: 0.5; }

.leak-tag {
  margin-top: 24px;
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-size: 12.5px; color: var(--muted-foreground);
}
.leak-tag .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--destructive); }

/* pilot card */
.pilot-card {
  background: var(--foreground); color: var(--background);
  border-radius: 14px;
  padding: 36px;
}
.pilot-card .lbl { color: rgba(255,255,255,0.55); }
.pilot-card h2 { color: var(--background); margin-bottom: 16px; }
.pilot-card p { color: rgba(255,255,255,0.78); font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; max-width: 580px; }
.pilot-card ol { padding-left: 18px; margin: 0 0 26px; }
.pilot-card ol li { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.65; margin-bottom: 6px; }
.pilot-card ol li::marker { color: var(--brand-orange); font-family: var(--font-mono); font-size: 12px; }
.pilot-card .row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px;
}
.pilot-card .btn-primary {
  background: var(--background); color: var(--foreground);
}
.pilot-card .btn-outline {
  border-color: rgba(255,255,255,0.32); color: rgba(255,255,255,0.92);
  background: transparent;
}
.pilot-card .btn-outline:hover { border-color: var(--background); }

/* readout (LLM-generated paragraph) */
.readout {
  border: 1px solid var(--border); border-radius: 14px; padding: 32px 36px;
  background: var(--card);
}
.readout .lbl { color: var(--muted-foreground); margin-bottom: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.readout .body { font-size: 15.5px; line-height: 1.7; color: var(--foreground); letter-spacing: -0.005em; max-width: 740px; text-wrap: pretty; }
.readout .body p { margin: 0 0 1em; }
.readout .body p:last-child { margin: 0; }
.readout .body em { color: var(--muted-foreground); font-style: italic; }
.readout .body .placeholder { color: var(--muted-foreground); font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.readout .body .placeholder .dots {
  display: inline-flex; gap: 3px;
}
.readout .body .placeholder .dots span {
  width: 4px; height: 4px; border-radius: 999px; background: var(--muted-foreground);
  animation: bd 1.2s infinite;
}
.readout .body .placeholder .dots span:nth-child(2) { animation-delay: 0.15s; }
.readout .body .placeholder .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bd { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* utility */
.spacer-2 { height: 8px; } .spacer-4 { height: 16px; } .spacer-8 { height: 32px; }
.no-mb { margin-bottom: 0 !important; }

/* print */
@media print {
  .nav, .footer, .lab-nav, .lab-chrome { display: none !important; }
}

/* ============================================================
   EMAIL CAPTURE (on result page)
   ============================================================ */
.capture {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card);
  padding: 36px;
  scroll-margin-top: 80px;
}
.capture.done { background: var(--cream); }
.capture > .lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.capture > h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}
.capture > p, .capture .capture-sub {
  color: var(--muted-foreground);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 620px;
}
.capture-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 720px) { .capture-grid { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 500;
}
.cf-field input,
.cf-field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  line-height: 1.4;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cf-field input::placeholder { color: var(--c-gray-400); }
.cf-field input:focus,
.cf-field select:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgba(23,23,23,0.06);
}
.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
                    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.capture-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--cream);
  font-size: 13.5px; line-height: 1.5;
  color: var(--foreground);
  cursor: pointer;
  user-select: none;
  margin-bottom: 22px;
  max-width: 620px;
}
.capture-check input { display: none; }
.capture-check .cc-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--c-gray-200);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.capture-check .cc-box svg {
  width: 10px; height: 10px;
  stroke: var(--background); fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
}
.capture-check.on .cc-box,
.capture-check input:checked ~ .cc-box {
  background: var(--foreground);
  border-color: var(--foreground);
}
.capture-check.on .cc-box svg,
.capture-check input:checked ~ .cc-box svg {
  opacity: 1;
}
.capture-check .cc-text {
  color: var(--foreground);
}

.capture-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.capture-trust {
  font-size: 12px; color: var(--muted-foreground); line-height: 1.5;
  max-width: 360px;
}
.capture-trust a {
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color .15s;
}
.capture-trust a:hover { border-color: var(--foreground); }

.capture-error {
  margin-top: 12px;
  font-size: 12.5px; color: var(--destructive);
  font-family: var(--font-sans);
}
.capture-error:empty { display: none; }
