@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --accent: #1a56db;
  --accent-light: #e8effc;
  --accent-hover: #1648b8;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --bg: #ffffff;
  --surface: #f8fafc;
  --panel: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --risk: #dc2626;
  --risk-bg: #fef2f2;
  --risk-border: #fecaca;
  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --ok-border: #bbf7d0;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);
  --radius: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; height: 100vh; height: 100dvh;
  color: var(--body);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body {
  display: flex; flex-direction: column;
}

h1,h2,h3,h4,p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Header ── */
.app-header {
  padding: .75rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--bg);
  flex-shrink: 0; z-index: 20;
}
.brand {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.app-header h1 {
  font-size: clamp(.95rem, 2vw, 1.1rem); font-weight: 600; color: var(--ink);
}
.header-r { display: flex; align-items: center; gap: .75rem; }
.header-meta { font-size: .75rem; color: var(--muted); }

/* ── Progress ── */
.progress-bar {
  padding: .55rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg);
  flex-shrink: 0;
}
.progress-label { font-size: .72rem; color: var(--muted); min-width: 4.5rem; }
.dots { display: flex; gap: .35rem; flex-wrap: wrap; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
  position: relative;
}
.dot::before {
  content: ""; position: absolute;
  top: -12px; left: -12px; right: -12px; bottom: -12px;
}
.dot:hover { background: var(--subtle); }
.dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
.dot.is-done { background: var(--ok); }

/* ── Viewport ── */
.viewport {
  position: relative;
  flex: 1 1 0%; min-height: 0;
  display: grid; align-content: center;
  padding: clamp(.75rem, 2.5vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  max-width: 960px; width: 100%;
  margin: 0 auto;
  overflow-y: hidden; overflow-x: hidden;
  overflow-anchor: none;
}

.slide {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s, visibility 0s .28s;
}
.slide.is-active {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .28s, visibility 0s;
  padding-bottom: .5rem;
}

/* ── Slide layout ── */
.slide-top { margin-bottom: 1rem; }
.slide-kicker {
  font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em;
  color: var(--accent);
}
.slide-title {
  margin-top: .25rem;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 700; color: var(--ink);
  letter-spacing: -.015em;
}
.slide-desc {
  margin-top: .35rem; font-size: .85rem; color: var(--muted); max-width: 55ch; line-height: 1.5;
}

/* ── App mock ── */
.app-mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock-toolbar {
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: var(--surface);
}
.mock-toolbar-title {
  font-size: .68rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-badge {
  font-size: .6rem; font-weight: 600; border-radius: 999px; padding: .12rem .45rem;
  background: var(--accent-light); color: var(--accent);
}
.mock-body { padding: .85rem; }

/* ── File rows ── */
.file-row {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem .6rem; border-radius: 8px;
  font-size: .78rem; color: var(--body);
  background: var(--surface);
  transition: background .15s;
}
.file-row + .file-row { margin-top: .3rem; }
.file-icon {
  width: 1.5rem; height: 1.5rem; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: .5rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.fi-pdf  { background: #dc2626; }
.fi-ts   { background: #2563eb; }
.fi-csv  { background: #16a34a; }
.fi-md   { background: #7c3aed; }
.fi-yml  { background: #ea580c; }
.fi-wiki { background: #6b7280; }
.fi-jira { background: #1d4ed8; }
.fi-sp   { background: #0d9488; }
.fi-conf { background: #2563eb; }

.file-name { flex: 1; min-width: 0; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .65rem; color: var(--subtle); }
.file-tag {
  font-size: .58rem; font-weight: 600; border-radius: 999px; padding: .1rem .4rem;
  background: var(--accent-light); color: var(--accent);
}

/* ── Ingest progress bars ── */
.ingest-bar {
  flex: 0 0 100%; height: 3px; border-radius: 2px;
  background: var(--border-light); overflow: hidden; margin-top: .2rem;
}
.ingest-fill {
  height: 100%; width: 0; border-radius: 2px;
  background: var(--accent);
  transition: width var(--dur, 2s) cubic-bezier(.4,0,.2,1);
}
.file-row.is-ingesting { flex-wrap: wrap; row-gap: 0; }
.file-row.is-ingesting .ingest-fill { width: 100%; }
.file-row.is-ingested .ingest-fill { background: var(--ok); width: 100%; }
.file-row .ingest-pct {
  font-size: .55rem; font-weight: 600; color: var(--subtle);
  margin-left: auto; min-width: 2rem; text-align: right;
  transition: color .3s;
}
.file-row.is-ingested .ingest-pct { color: var(--ok); }

/* ── Status pills ── */
.status {
  font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  border-radius: 999px; padding: .15rem .5rem; border: 1px solid transparent;
  white-space: nowrap; transition: all .3s;
}
.st-verified   { color: var(--ok);   background: var(--ok-bg);   border-color: var(--ok-border); }
.st-weak       { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }
.st-draft      { color: var(--accent); background: var(--accent-light); border-color: #bfdbfe; }
.st-unresolved { color: var(--risk); background: var(--risk-bg); border-color: var(--risk-border); }
.st-conflict   { color: var(--risk); background: var(--risk-bg); border-color: var(--risk-border); }
.st-gap        { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }
.st-pending    { color: var(--subtle); background: var(--surface); border-color: var(--border); }

/* ── Writer streaming ── */
.writer-stream {
  padding: .6rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .75rem; color: var(--body); line-height: 1.55;
  min-height: 4rem; max-height: 260px; overflow-y: auto;
  white-space: pre-wrap; position: relative;
}
.writer-cursor {
  display: inline-block; width: 2px; height: .85em;
  background: var(--accent); margin-left: 1px;
  animation: blink .6s step-end infinite;
  vertical-align: text-bottom;
}
.writer-cursor.is-hidden { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.writer-src-list {
  display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.writer-src-chip {
  font-size: .55rem; font-weight: 600; border-radius: 999px; padding: .12rem .4rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: background .3s, border-color .3s, color .3s;
}
.writer-src-chip.is-used {
  background: var(--accent-light); border-color: #bfdbfe; color: var(--accent);
}

/* ── Wiki block ── */
.wiki-block {
  padding: .6rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .78rem; color: var(--body); line-height: 1.5;
}
.wiki-block + .wiki-block { margin-top: .4rem; }
.wiki-block-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-bottom: .25rem;
}
.wiki-block b { color: var(--ink); font-weight: 600; }
.wiki-block .src { font-size: .62rem; color: var(--subtle); margin-top: .2rem; }

/* ── Conflict card ── */
.conflict-card {
  padding: .6rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--risk-border); background: var(--risk-bg);
  font-size: .78rem; color: var(--body);
}
.conflict-vals {
  display: flex; gap: .45rem; margin-top: .35rem; flex-wrap: wrap;
}
.cv {
  padding: .3rem .55rem; border-radius: 8px; text-align: center;
  border: 1px solid var(--border); background: var(--bg);
  font-size: .72rem;
}
.cv b { display: block; font-size: .88rem; color: var(--ink); }
.cv small { color: var(--subtle); font-size: .6rem; }

/* ── Gap card ── */
.gap-card {
  padding: .6rem .7rem; border-radius: var(--radius);
  border: 1px dashed var(--warn-border); background: var(--warn-bg);
  font-size: .78rem; color: var(--body);
}
.gap-card + .gap-card { margin-top: .35rem; }

/* ── Expert card ── */
.expert-card {
  padding: .65rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.expert-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.expert-card h4 { font-size: .82rem; color: var(--ink); font-weight: 600; }
.expert-role { font-size: .65rem; color: var(--subtle); margin-top: .1rem; }
.expert-badge {
  flex-shrink: 0; font-size: .58rem; font-weight: 600; border-radius: 999px;
  padding: .15rem .5rem; background: var(--accent-light); color: var(--accent);
}
.expert-q {
  margin-top: .5rem; padding: .5rem .6rem; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border-light);
  font-size: .75rem; color: var(--body); font-style: italic;
}

/* ── Phone mock ── */
.phone-frame {
  width: 230px; flex-shrink: 0;
  height: 360px;
  border-radius: 22px; border: 2px solid var(--border);
  background: var(--bg); box-shadow: var(--shadow-md);
  overflow: hidden; display: flex; flex-direction: column;
}
.phone-notch {
  width: 70px; height: 5px; background: var(--border);
  border-radius: 3px; margin: .35rem auto .15rem; flex-shrink: 0;
}
.phone-screen {
  padding: 0 .45rem .55rem;
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}
.phone-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .5rem; color: var(--muted); padding: .15rem 0 .3rem;
  border-bottom: 1px solid var(--border-light); margin-bottom: .35rem;
  flex-shrink: 0;
}

/* ── Phone chat bubbles ── */
.phone-chat { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.chat-bubble {
  max-width: 88%; padding: .3rem .4rem; border-radius: 10px;
  font-size: .58rem; line-height: 1.35; word-break: break-word;
}
.chat-in {
  align-self: flex-start; background: var(--surface); border: 1px solid var(--border-light);
  border-bottom-left-radius: 3px; color: var(--body);
}
.chat-out {
  align-self: flex-end; background: #dcfce7; border: 1px solid var(--ok-border);
  border-bottom-right-radius: 3px; color: var(--ink);
}
.chat-typing {
  align-self: flex-end; font-size: .5rem; color: var(--subtle);
  padding: .15rem .35rem;
}
.chat-typing-dots span {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--subtle); margin: 0 1px;
  animation: bounce-dot .9s infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce-dot {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}
.chat-status {
  align-self: center; margin-top: .2rem;
}
.chat-bubble[hidden], .chat-typing[hidden], .chat-status[hidden] { display: none; }

/* ── Verification layout ── */
.verify-layout { display: flex; gap: .85rem; align-items: flex-start; }
.verify-admin { flex: 1; min-width: 0; }

/* ── Procedure steps ── */
.proc-step {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .6rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .35s, background .35s;
}
.proc-step + .proc-step { margin-top: .3rem; }
.proc-num {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); font-size: .65rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border);
  transition: background .35s, color .35s, border-color .35s;
}
.proc-text { flex: 1; min-width: 0; font-size: .75rem; color: var(--body); }
.proc-text b { color: var(--ink); }
.proc-route {
  display: flex; gap: .15rem; align-items: center; flex-shrink: 0;
}
.proc-route .mini-av {
  width: 1rem; height: 1rem; border-radius: 50%; font-size: .35rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--border); opacity: 0;
  transition: opacity .3s, background .3s;
}
.proc-route .mini-av.is-routed { opacity: 1; background: var(--accent); }
.proc-route .mini-av.is-confirmed { background: var(--ok); }
.proc-step .status { transition: all .3s; }
.proc-step.is-partial { border-color: var(--warn-border); background: var(--warn-bg); }
.proc-step.is-partial .proc-num { background: var(--warn); color: #fff; border-color: var(--warn); }
.proc-step.is-done { border-color: var(--ok-border); background: var(--ok-bg); }
.proc-step.is-done .proc-num { background: var(--ok); color: #fff; border-color: var(--ok); }

/* ── Application cards ── */
.app-cards { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .app-cards { grid-template-columns: 1fr; } }
.acard {
  padding: .6rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.acard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.acard[hidden] { display: none; }
.acard h4 { font-size: .78rem; font-weight: 600; color: var(--ink); }
.acard p { margin-top: .15rem; font-size: .68rem; color: var(--muted); line-height: 1.4; }

/* ── Mini mock previews inside app cards ── */
.acard-mock {
  margin-top: .35rem; padding: .3rem .4rem; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border-light);
}
.amock-row {
  display: flex; align-items: center; gap: .3rem;
  padding: .12rem 0; font-size: .6rem;
}
.amock-row + .amock-row { border-top: 1px solid var(--border-light); }
.amock-icon { color: var(--accent); font-size: .55rem; flex-shrink: 0; }
.amock-title { flex: 1; color: var(--ink); font-weight: 500; font-size: .58rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amock-check { font-size: .6rem; color: var(--subtle); flex-shrink: 0; }
.amock-check.done { color: var(--ok); }
.amock-check.pending { color: var(--border); }
.amock-search {
  padding: .2rem .35rem; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--subtle); font-size: .55rem;
}
.amock-stat-row {
  display: flex; gap: .25rem; margin-top: .2rem;
  font-size: .52rem; color: var(--muted);
}
.amock-code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: .5rem; line-height: 1.55; color: var(--body);
}
.amock-code div + div { border-top: 1px solid var(--border-light); padding-top: .1rem; margin-top: .1rem; }
.amock-method { font-weight: 700; color: var(--accent); }
.amock-resp { color: var(--subtle); }

/* ── Company stats (slide 1) ── */
.co-grid { display: grid; gap: .45rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .co-grid { grid-template-columns: 1fr; } }
.co-stat {
  padding: .5rem .6rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border-light);
}
.co-stat b { display: block; font-size: 1rem; color: var(--ink); font-weight: 700; }
.co-stat span { font-size: .68rem; color: var(--muted); }

.co-pain {
  margin-top: .6rem; padding: .55rem .65rem; border-radius: var(--radius);
  border: 1px solid var(--risk-border); background: var(--risk-bg);
  font-size: .78rem; color: var(--body);
}
.co-pain b { color: var(--risk); font-weight: 600; }

.co-retire {
  margin-top: .45rem; padding: .45rem .6rem; border-radius: var(--radius);
  border: 1px solid var(--warn-border); background: var(--warn-bg);
  font-size: .78rem; color: var(--body);
  display: flex; align-items: center; gap: .4rem;
}
.co-retire b { color: var(--warn); font-weight: 600; }

/* ── Health rows ── */
.health-row {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .4rem .55rem; border-radius: 8px; background: var(--surface);
  font-size: .75rem; color: var(--body);
}
.health-row + .health-row { margin-top: .25rem; }
.health-val { font-weight: 600; color: var(--ink); }
.health-val-risk { color: var(--risk); }
.health-val-warn { color: var(--warn); }

.cov-meter {
  height: 6px; border-radius: 3px; background: var(--border-light);
  overflow: hidden; margin-top: .35rem;
}
.cov-fill {
  height: 100%; border-radius: 3px; background: var(--ok);
  width: 0; transition: width .8s ease;
}

/* ── Actions ── */
.actions { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.btn-go {
  border-radius: 999px; background: var(--accent); color: #fff;
  padding: .5rem 1.1rem; font-size: .8rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background .15s, box-shadow .15s;
}
.btn-go:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow); }
.btn-go:disabled { opacity: .45; cursor: not-allowed; }
.hint { font-size: .7rem; color: var(--subtle); }

/* ── Outcome ── */
.outcome {
  margin-top: .85rem; padding: .65rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .8rem; color: var(--body); line-height: 1.5;
  animation: rise .3s ease;
}
.outcome[hidden] { display: none; }
.outcome strong { color: var(--ink); font-weight: 600; }
.outcome-ok   { border-color: var(--ok-border); background: var(--ok-bg); }
.outcome-warn { border-color: var(--warn-border); background: var(--warn-bg); }
.outcome-risk { border-color: var(--risk-border); background: var(--risk-bg); }

@keyframes rise {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { animation: rise .3s ease; }

/* ── Confirmation block ── */
.confirmation {
  margin-top: .5rem; padding: .5rem .65rem; border-radius: var(--radius);
  border: 1px solid var(--ok-border); background: var(--ok-bg);
  font-size: .78rem; color: var(--body);
}
.confirmation b { color: var(--ok); font-weight: 600; }

/* ── Team roster ── */
.team-roster { margin-top: .6rem; }
.team-label {
  font-size: .62rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem;
}
.team-members { display: flex; gap: .35rem; flex-wrap: wrap; }
.tm {
  display: flex; align-items: center; gap: .3rem;
  padding: .2rem .45rem .2rem .2rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-light);
}
.tm-avatar {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .45rem; font-weight: 700; color: #fff; background: var(--accent);
  flex-shrink: 0;
}
.tm-avatar.tm-warn { background: var(--warn); }
.tm-avatar.tm-green { background: var(--ok); }
.tm-name { font-size: .65rem; color: var(--ink); font-weight: 500; white-space: nowrap; }
.tm-detail { font-size: .55rem; color: var(--subtle); white-space: nowrap; }

/* ── Company hero (slide 1) ── */
.co-hero {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .6rem;
}
.co-logo {
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  flex-shrink: 0;
}
.co-name { font-size: .95rem; font-weight: 700; color: var(--ink); }
.co-tagline { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.co-divider { border: 0; border-top: 1px solid var(--border); margin: .6rem 0; height: 0; }
.co-section-label {
  font-size: .65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--risk); margin-bottom: .4rem;
}

/* ── CTA hint ── */
.cta-hint {
  margin-top: 1rem; padding: .45rem .8rem;
  text-align: center; font-size: .78rem; color: var(--subtle);
}
.cta-hint strong { font-weight: 600; color: var(--accent); }

/* ── Contact card ── */
.contact-wrap { max-width: 480px; }
.contact-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .75rem;
}
.contact-line { font-size: .85rem; color: var(--body); line-height: 1.5; }
.contact-mailto {
  display: inline-flex; align-items: center; gap: .5rem;
  align-self: flex-start;
  padding: .55rem 1.2rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .88rem; font-weight: 600;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background .15s;
}
.contact-mailto:hover { background: var(--accent-hover); }
.mailto-icon { font-size: 1.1rem; line-height: 1; }
.contact-note { font-size: .65rem; color: var(--subtle); }

/* ── Footer nav ── */
.nav-footer {
  flex-shrink: 0; z-index: 20;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.nav-btn {
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--ink);
  padding: .4rem .9rem; font-size: .8rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s;
}
.nav-btn:hover:not(:disabled) { border-color: var(--subtle); background: var(--surface); }
.nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.nav-btn-next {
  border-color: var(--accent); background: var(--accent); color: #fff;
}
.nav-btn-next:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .app-header { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .header-meta { font-size: .65rem; }
  .progress-bar { gap: .5rem; }
  .dots { gap: .55rem; }
  .viewport { padding: .6rem .75rem; }
  .slide-desc { font-size: .8rem; }
  .mock-toolbar { padding: .4rem .55rem; }
  .mock-body { padding: .6rem; }
  .file-row { gap: .4rem; padding: .35rem .45rem; font-size: .72rem; }
  .file-icon { width: 1.3rem; height: 1.3rem; font-size: .45rem; }
  .file-tag { font-size: .52rem; padding: .08rem .3rem; }
  .file-meta { font-size: .58rem; }
  .co-retire { flex-wrap: wrap; }
  .wiki-block-head { flex-wrap: wrap; gap: .3rem; }
  .wiki-block { padding: .5rem; }
  .conflict-card { padding: .5rem; }
  .conflict-vals { gap: .3rem; }
  .cv { padding: .25rem .4rem; font-size: .65rem; }
  .cv b { font-size: .8rem; }
  .gap-card { padding: .5rem; }
  .expert-card { padding: .5rem; }
  .expert-head { flex-wrap: wrap; gap: .3rem; }
  .expert-q { padding: .4rem .45rem; font-size: .7rem; }
  .proc-step { gap: .4rem; padding: .4rem .45rem; }
  .proc-text { font-size: .7rem; }
  .btn-go { padding: .55rem 1rem; font-size: .78rem; }
  .nav-btn { padding: .5rem .8rem; }
  .outcome { padding: .55rem .65rem; font-size: .76rem; }
  .team-members { gap: .3rem; }
  .tm { padding: .18rem .35rem .18rem .18rem; }
  .tm-name { font-size: .6rem; }
  .tm-detail { font-size: .5rem; }
  .tm-avatar { width: 1.2rem; height: 1.2rem; font-size: .4rem; }
  .cta-hint { font-size: .72rem; padding: .4rem .5rem; }
  .co-hero { gap: .45rem; }
  .co-logo { width: 2.2rem; height: 2.2rem; font-size: .72rem; }
  .co-name { font-size: .85rem; }
  .co-tagline { font-size: .65rem; }
  .co-section-label { font-size: .58rem; }
  .verify-layout { flex-direction: column; align-items: center; }
  .phone-frame { width: 200px; height: 320px; }
}

@media (max-width: 380px) {
  .app-header h1 { font-size: .88rem; }
  .header-meta { font-size: .58rem; }
  .slide-kicker { font-size: .58rem; }
  .slide-title { font-size: 1.05rem; }
  .slide-desc { font-size: .75rem; }
  .file-row { flex-wrap: wrap; gap: .25rem; }
  .file-name { white-space: normal; }
  .file-meta { width: 100%; padding-left: 1.55rem; }
  .co-stat b { font-size: .9rem; }
  .co-stat span { font-size: .62rem; }
  .co-pain, .co-retire { font-size: .72rem; }
  .conflict-vals { flex-direction: column; }
  .proc-step { flex-wrap: wrap; }
  .proc-text { order: 1; width: calc(100% - 2.2rem); }
  .proc-step .status { order: 2; margin-left: 1.75rem; }
  .acard h4 { font-size: .72rem; }
  .acard p { font-size: .62rem; }
  .health-row { font-size: .68rem; }
  .nav-footer { padding: .5rem .75rem; }
  .nav-btn { padding: .45rem .65rem; font-size: .75rem; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
