/* Clerkless — single-page demo deck. Hero → Problem → Solution → Live → Salesforce → Ask. */

* { box-sizing: border-box; }

:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-muted: #888;
  --accent: #2c5530;
  --accent-soft: #e8efe9;
  --warning: #b58900;
  --warning-soft: #fdf6e3;
  --border: #d8d5cc;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ───────────── header ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--ink); color: var(--bg);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em;
}
.brand-name { font-weight: 600; font-size: 17px; }
.site-nav {
  display: flex; gap: 18px;
  margin-left: auto; margin-right: 24px;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.status.mock .dot { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }

/* ───────────── hero ───────────── */
.hero {
  padding: 80px 32px 88px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(44, 85, 48, 0.10), transparent 70%),
    var(--bg);
  text-align: center;
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink-soft); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}
.chip-eyebrow {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-eyebrow em { font-style: italic; color: var(--accent); font-size: 14px; }
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px; line-height: 1.02;
  margin: 0 0 22px; letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 700;
}
.hero-sub {
  font-size: 20px; line-height: 1.55; max-width: 720px; margin: 0 auto 40px;
  color: var(--ink-soft);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* Timeline — the autobiographical moat, given visual centerpiece treatment */
.timeline {
  display: flex; align-items: stretch; justify-content: center;
  gap: 14px; margin: 0 auto 36px;
  flex-wrap: wrap;
  max-width: 1040px;
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px 22px;
  width: 300px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 14px 32px rgba(0,0,0,0.07); }
.tl-card-now {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 35%);
}
.tl-card-now::before {
  content: "NOW";
  position: absolute;
  top: -10px; right: 14px;
  background: var(--accent); color: white;
  padding: 2px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
}
.tl-date {
  font-family: Georgia, serif;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.tl-role {
  font-family: Georgia, serif;
  font-size: 19px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}
.tl-desc {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-soft);
}
.tl-desc strong { color: var(--ink); font-weight: 600; }
.tl-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--ink-muted);
  font-weight: 300;
}

/* Impact bar — the 50%-of-judging headline economics, above the fold */
.impact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--ink);
  border-radius: 12px;
  padding: 22px 16px;
  margin: 0 auto 32px;
  max-width: 1040px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 12px 30px rgba(0,0,0,0.08);
}
.impact-tile {
  text-align: center;
  padding: 4px 8px;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.impact-tile:last-child { border-right: none; }
.impact-num {
  font-family: Georgia, serif;
  font-size: 28px; font-weight: 700;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.impact-num .impact-arrow {
  color: #6dc26d;
  font-weight: 400;
  margin: 0 4px;
}
.impact-lab {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* CTA cluster — magnetic primary, secondary GitHub */
.hero-cta-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 8px 0 18px; flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 36px;
  background: var(--accent);
  background-image: linear-gradient(180deg, #36703c 0%, var(--accent) 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(44,85,48,0.32);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 10px 22px rgba(44,85,48,0.42);
}
.hero-cta-secondary {
  display: inline-flex; align-items: center;
  padding: 17px 24px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: background 0.15s;
  font-family: inherit;
  cursor: pointer;
}
.hero-cta-secondary:hover { background: var(--bg-alt); }
.hero-cta-auto {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 17px 22px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.hero-cta-auto:hover { transform: translateY(-1px); opacity: 0.92; }
.hero-cta-auto:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Math-near-hero — same scene-alt look but with a tighter top edge */
.math-near-hero { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--border); }

/* ROI calculator widget */
.roi-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.roi-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.roi-inputs label { display: flex; flex-direction: column; gap: 4px; }
.roi-lab { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; }
.roi-inputs input {
  font-family: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.roi-inputs input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: white; }
.roi-output { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.roi-out-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.roi-out-tile.roi-out-feature { background: var(--ink); border-color: var(--ink); color: white; }
.roi-out-num {
  font-family: Georgia, serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.roi-out-feature .roi-out-num { color: white; }
.roi-out-lab { font-size: 11px; color: var(--ink-soft); line-height: 1.35; }
.roi-out-feature .roi-out-lab { color: rgba(255,255,255,0.78); }
.roi-fineprint {
  grid-column: span 2;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--ink-soft);
  text-align: center;
}
.roi-fineprint strong { color: var(--ink); font-weight: 600; }

/* Auto-demo overlay banner */
.demo-overlay {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.demo-overlay.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.demo-overlay .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.demo-overlay .step-text { flex: 1; }
.demo-overlay-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cost-per-MCO tooltip */
.cost-chip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 12px;
  padding: 2px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* Pulse the stopwatch while running */
.stopwatch.running .stopwatch-value {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Attribution chip row */
.hero-attribution {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  margin: 18px 0 0;
  font-size: 12px; color: var(--ink-soft);
}
.attr-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
}
.attr-chip code {
  background: transparent; padding: 0;
  font-size: 11.5px; color: var(--accent);
  font-weight: 600;
}

/* ───────────── scene framing ───────────── */
.scene { padding: 88px 32px; }
.scene-alt { background: var(--bg-alt); }
.scene-demo { padding-bottom: 64px; }
.scene-inner { max-width: 920px; margin: 0 auto; }
.scene-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin: 0 0 12px; font-weight: 600;
}
.scene-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px; line-height: 1.15; letter-spacing: -0.005em;
  margin: 0 0 20px;
}
.scene-lede {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 28px; max-width: 760px;
}
.scene-lede strong { color: var(--ink); }
.scene-sub {
  font-family: Georgia, serif;
  font-size: 22px; line-height: 1.3; margin: 36px 0 14px;
  color: var(--ink);
}
.scene-sub code {
  background: var(--bg-alt); padding: 1px 6px; border-radius: 3px;
  font-size: 18px;
}

/* ───────────── stats ───────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 40px 0 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
}
.stat-num {
  font-family: Georgia, serif;
  font-size: 48px; line-height: 1;
  color: var(--accent); font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-lab { font-size: 13px; color: var(--ink-soft); }

/* ───────────── callouts ───────────── */
.callout {
  background: var(--warning-soft);
  border-left: 4px solid var(--warning);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-size: 16px;
}
.callout em { color: var(--ink-soft); }
.callout-accent {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.step-list {
  margin: 16px 0 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.65;
}
.step-list li { margin-bottom: 12px; }
.step-list em { color: var(--ink-soft); font-style: italic; }

.bullets { margin: 8px 0 0; padding-left: 24px; font-size: 16px; line-height: 1.65; }
.bullets li { margin-bottom: 8px; }

/* ───────────── pipeline ───────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.pipe-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 24px;
  position: relative;
}
.pipe-num {
  font-family: Georgia, serif;
  font-size: 13px; font-weight: 700;
  width: 28px; height: 28px;
  background: var(--accent); color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.pipe-step h4 {
  margin: 4px 0 8px;
  font-family: Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
}
.pipe-step p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ───────────── live demo wrapper ───────────── */
.demo-app {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sample-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.sample {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.5;
}
.sample strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 13px; }

/* ───────────── salesforce / diagram ───────────── */
.diagram, .code {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.55;
  background: #1c1c1c;
  color: #e8e6e0;
  padding: 22px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
}
.code { font-size: 12.5px; }

.object-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0 16px;
}
.obj {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}
.obj-name {
  font-family: "SFMono-Regular", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.obj-tag {
  margin-left: 10px;
  background: var(--accent);
  color: white;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: -apple-system, sans-serif;
  vertical-align: middle;
}
.obj-fields {
  font-size: 12px; color: var(--ink-soft);
  line-height: 1.65; margin-bottom: 8px;
}
.obj-fields code {
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  color: var(--ink);
}
.obj-note {
  font-size: 12.5px; color: var(--ink-soft);
  font-style: italic;
  border-top: 1px solid var(--border); padding-top: 8px;
  line-height: 1.5;
}
.obj-note em { color: var(--ink); font-weight: 500; font-style: normal; }
.obj-feature {
  grid-column: span 2;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}

.footnote {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 24px 0 0;
  line-height: 1.55;
}

/* ───────────── DL conflict cards ───────────── */
.conflict-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 8px;
}
.conflict {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.conflict-field {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 8px;
}
.conflict-rows { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.conflict-rows > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}
.conflict-rows .src {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); align-self: center;
}
.conflict-rows .val { font-family: "Menlo", monospace; font-size: 13px; color: var(--ink); }
.conflict-rows .diff { background: var(--warning-soft); border-left: 3px solid var(--warning); padding-left: 8px; }
.conflict-rows .diff .val { color: var(--ink); font-weight: 600; }
.conflict-note {
  font-size: 12.5px; color: var(--ink-soft);
  border-top: 1px solid var(--border); padding-top: 8px;
  line-height: 1.5;
}
.conflict-note em { color: var(--ink); font-weight: 500; font-style: normal; }

/* ───────────── admin preview cards ───────────── */
.admin-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 0;
}
.admin-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
}
.admin-preview-card h4 {
  font-family: Georgia, serif;
  margin: 0 0 12px;
  font-size: 19px;
  color: var(--accent);
}
.admin-preview-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 12px;
}
.admin-preview-card em { color: var(--ink); font-style: italic; }
.admin-preview-card .bullets { font-size: 13.5px; }

/* ───────────── math table ───────────── */
.math-table {
  margin: 24px 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.math-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.math-table th, .math-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.math-table th {
  background: #fafaf6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 600;
}
.math-table tbody tr:last-child td { border-bottom: none; }
.math-table td:first-child { color: var(--ink-soft); font-weight: 500; }
.math-table tr.emph td { background: var(--accent-soft); font-size: 16px; }
.math-table tr.emph td:last-child { color: var(--accent); }

/* ───────────── ask ───────────── */
.ask-inner { text-align: center; max-width: 740px; }
.ask-inner .scene-title {
  font-size: 88px;
  margin: 8px 0 24px;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.ask-inner .scene-lede {
  margin-left: auto; margin-right: auto;
  text-align: left;
}
.ask-cta {
  display: flex; gap: 12px; justify-content: center;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}

/* ───────────── existing demo cards (preserved) ───────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafaf6;
}
.card-header h2 { margin: 0; font-size: 15px; font-weight: 600; }
.card-meta { color: var(--ink-soft); font-size: 12px; }

.hidden { display: none !important; }

/* dropzone */
.drop-card { padding: 0; position: relative; }
.dropzone {
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 10px;
  margin: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.dropzone:hover, .dropzone.dragging {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.dropzone-prompt { text-align: center; padding: 24px; color: var(--ink-soft); }
.dropzone-icon { font-size: 32px; margin-bottom: 8px; }
.dropzone-headline { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.dropzone-sub { font-size: 13px; }
.dropzone-hint { margin-top: 16px; font-size: 12px; color: var(--ink-soft); }
.dropzone-hint code {
  background: #ececec; padding: 1px 5px; border-radius: 3px;
  font-size: 11px; font-family: "Menlo", monospace;
}
.dropzone-preview img { max-width: 100%; max-height: 320px; border-radius: 6px; }

.stopwatch {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #fafaf6;
  font-feature-settings: "tnum";
}
.stopwatch-label { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.stopwatch-value { font-size: 22px; font-weight: 600; font-family: "Menlo", monospace; }
.stopwatch.running .stopwatch-value { color: var(--accent); }
.stopwatch.done .stopwatch-value { color: var(--accent); }

/* field grid */
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.field-cell {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}
.field-cell:nth-child(2n) { border-right: none; }
.field-cell.full { grid-column: span 2; }
.field-cell.flagged { background: var(--warning-soft); }
.field-cell.needs-confirm { border-left: 3px solid var(--warning); padding-left: 17px; }
.needs-flag {
  display: inline-block;
  background: var(--warning); color: white;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 9px; font-weight: 600;
  margin-left: 6px; text-transform: none; letter-spacing: 0;
}
.conf-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.conf-chip-high      { background: var(--accent-soft); color: var(--accent); }
.conf-chip-ok        { background: #ececec; color: var(--ink-muted); }
.conf-chip-flagged   { background: var(--warning); color: white; }
.conf-chip-confirmed { background: var(--accent); color: white; }
.field-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.field-input {
  font-family: inherit; font-size: 14px;
  padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 4px;
  background: white; width: 100%;
}
.field-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.edit-actions { display: flex; gap: 8px; align-items: center; }
.btn-confirm {
  font-family: inherit; font-size: 12px;
  padding: 4px 12px;
  background: var(--accent); color: white;
  border: 1px solid var(--accent); border-radius: 4px;
  cursor: pointer; font-weight: 500;
}
.btn-confirm:hover { opacity: 0.9; }
.btn-link {
  font-family: inherit; font-size: 12px;
  background: none; border: none;
  color: var(--ink-soft);
  cursor: pointer; text-decoration: underline;
  padding: 4px 0;
}
.field-confidence.confirmed { color: var(--accent); font-weight: 600; }
.confidence-bar-fill.confirmed { background: var(--accent); }

.field-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); margin-bottom: 4px;
}
.field-value { font-size: 14px; font-weight: 500; }
.field-confidence {
  font-size: 11px; color: var(--ink-soft);
  margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
}
.field-confidence.flagged { color: var(--warning); font-weight: 600; }
.confidence-bar { flex: 1; height: 3px; background: #ececec; border-radius: 2px; overflow: hidden; }
.confidence-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.confidence-bar-fill.flagged { background: var(--warning); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

#customer-body { padding: 16px 20px; }
.customer-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.customer-meta { color: var(--ink-soft); font-size: 13px; }
.customer-meta-row { display: flex; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.customer-meta-row > div { font-size: 13px; }
.customer-meta-row strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; }
.no-customer {
  padding: 16px 20px;
  background: var(--warning-soft);
  border-left: 4px solid var(--warning);
  margin: 16px 20px;
}

.action-card { padding: 20px; text-align: center; }
.btn {
  font-family: inherit;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover:not(:disabled) { opacity: 0.9; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; background: #888; border-color: #888; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); padding: 12px 24px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--border); padding: 12px 24px; font-size: 15px; }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.action-note { color: var(--ink-soft); font-size: 13px; margin-top: 12px; max-width: 480px; margin-left: auto; margin-right: auto; }

.packet-card iframe {
  width: 100%; height: 700px;
  border: none; background: white;
}

.link {
  background: none; border: none; padding: 0;
  color: var(--accent); text-decoration: underline; cursor: pointer;
  font-family: inherit; font-size: inherit;
}
.link:hover { opacity: 0.8; }

footer {
  padding: 28px 32px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-soft);
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--ink-soft); }

.error-banner {
  padding: 12px 20px;
  background: #fce8e6;
  border-left: 4px solid #c5221f;
  color: #c5221f;
  font-size: 13px;
}

/* ───────────── responsive ───────────── */
@media (max-width: 920px) {
  .timeline { flex-direction: column; }
  .tl-arrow { transform: rotate(90deg); }
  .impact-bar { grid-template-columns: repeat(2, 1fr); }
  .impact-tile { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); padding-bottom: 14px; }
  .impact-tile:nth-last-child(-n+2) { border-bottom: none; }
  .roi-calc { grid-template-columns: 1fr; }
  .roi-inputs, .roi-output { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero-title { font-size: 44px; }
  .scene-title { font-size: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .object-grid { grid-template-columns: 1fr; }
  .obj-feature { grid-column: span 1; }
  .sample-row { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .ask-inner .scene-title { font-size: 56px; }
  .impact-bar { grid-template-columns: 1fr; }
  .impact-tile { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .impact-tile:last-child { border-bottom: none; }
  .hero-cta { padding: 14px 24px; font-size: 16px; }
}
