/* AcquiScope click-through prototype — InnovateXperts design tokens 2026-05-13.
 * Static HTML only. No framework, no data layer, no network calls.
 */

:root {
  --ink: #1e1b4b;
  --ink-deep: #0e0c2a;
  --ink-soft: #312e81;
  --muted: #64748b;

  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --accent-light: #a855f7;
  --accent-bright: #8b5cf6;

  --hl-warm: #f5b945;
  --hl-pink: #ff7da3;

  --success: #15803d;
  --danger: #b91c1c;

  --bg: #f7f6fc;
  --bg-tint: #f5f3ff;
  --panel: #ffffff;
  --cream: #f4f1ea;
  --paper: #ecead2;
  --border: #e5e7eb;
  --border-soft: #ede9fe;

  --shadow: 0 20px 50px rgba(30, 27, 75, 0.14);
  --shadow-soft: 0 4px 12px rgba(30, 27, 75, 0.06);

  --gradient: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 0.15s;
  --dur-med: 0.25s;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-family: var(--ui); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }

/* ---------- prototype banner ---------- */

.proto-banner {
  background: repeating-linear-gradient(135deg, #fff7e6, #fff7e6 12px, #fdf0d0 12px, #fdf0d0 24px);
  border-bottom: 1px solid rgba(245, 185, 69, .55);
  color: #7a5410;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 20px;
  text-align: center;
}

/* ---------- chrome ---------- */

.topbar {
  background: var(--ink-deep);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: #fff; }
.brand-name .x { color: var(--accent-light); }
.brand-tagline {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* Simplified vector mark: head in profile with the record knocked out of it.
   Four shapes and no hairline detail, so it holds from 16px to hero size. */
.brand-mark { height: 26px; width: auto; display: block; flex: none; }
.hero-logo { width: 84px; height: auto; flex: none; margin: 2px 22px 0 0; }
.cover-logo { width: 64px; height: auto; display: block; margin: 0 0 18px; }
@media (max-width: 720px) { .hero-logo { width: 60px; margin-right: 14px; } }

.topnav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.topnav a {
  color: rgba(255, 255, 255, .74);
  font-size: .84rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.topnav a:hover { background: rgba(255, 255, 255, .10); color: #fff; text-decoration: none; }
.topnav a.is-active { background: var(--accent); color: #fff; }

.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 90px); }

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
}
.side-group { margin-bottom: 18px; }
.side-group > p {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px 10px;
}
.sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
}
.sidebar a:hover { background: var(--bg-tint); text-decoration: none; }
.sidebar a.is-active { background: var(--accent); color: #fff; font-weight: 600; }

.main { padding: 24px 26px 60px; max-width: 1500px; min-width: 0; }
.main.wide { max-width: none; }

.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .grow { flex: 1 1 320px; }
.lede { color: var(--muted); margin: 0; max-width: 78ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- surfaces ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  margin-bottom: 18px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .grow { flex: 1; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.stat { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px; }
.stat .k {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.stat .v { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin: 4px 0 2px; }
.stat .sub { font-size: .8rem; color: var(--muted); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); max-width: 100%; }
.table-wrap.wide table { min-width: 1680px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
thead th {
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-tint); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: .82rem; }
tfoot td { padding: 10px 12px; font-weight: 700; background: var(--bg-tint); }
tbody tr.row-total td { background: var(--bg-tint); font-weight: 700; border-top: 2px solid var(--border); }
tbody tr.row-total:hover td { background: var(--bg-tint); }

/* ---------- badges + provenance ---------- */

.badge {
  display: inline-block;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge.green { background: rgba(21, 128, 61, .10); border-color: rgba(21, 128, 61, .35); color: var(--success); }
.badge.amber { background: rgba(245, 185, 69, .14); border-color: rgba(245, 185, 69, .5); color: #8a5a06; }
.badge.red { background: rgba(185, 28, 28, .08); border-color: rgba(185, 28, 28, .35); color: var(--danger); }
.badge.purple { background: rgba(124, 58, 237, .10); border-color: rgba(124, 58, 237, .35); color: var(--accent-dark); }
.badge.muted { background: var(--bg-tint); border-color: var(--border); color: var(--muted); }
.badge.dark { background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); }

/* Provenance tags — one per material figure. Section 5.13. */
.prov {
  display: inline-block;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  vertical-align: middle;
}
.prov-verified { background: rgba(21, 128, 61, .12); color: #0f5c2c; }
.prov-seller { background: rgba(245, 185, 69, .18); color: #7a5410; }
.prov-broker { background: rgba(245, 185, 69, .18); color: #7a5410; }
.prov-mi { background: rgba(255, 125, 163, .16); color: #9b2c4b; }
.prov-calc { background: rgba(124, 58, 237, .12); color: var(--accent-dark); }
.prov-estimate { background: rgba(100, 116, 139, .16); color: #475569; }
.prov-forecast { background: rgba(49, 46, 129, .12); color: var(--ink-soft); }
.prov-missing { background: rgba(185, 28, 28, .10); color: var(--danger); }

.fig { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.fig .n { font-family: var(--mono); font-weight: 600; }

/* ---------- buttons + form ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  font-family: var(--ui);
  font-size: .88rem;
  font-weight: 700;
  padding: 9px 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-tint); }
.btn-approve { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { font-size: .78rem; padding: 6px 11px; }
.btn[disabled], .btn.is-disabled { opacity: .6; cursor: not-allowed; transform: none; }

label.field { display: block; margin-bottom: 12px; }
label.field > span {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  font-family: var(--ui);
  font-size: .9rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

a:focus-visible, .btn:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.topbar a:focus-visible, .footer a:focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
  color: #fff;
}
.hint { font-size: .78rem; color: var(--muted); margin: 3px 0 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border-soft); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .lbl { font-size: .88rem; font-weight: 600; }

/* ---------- notices ---------- */

.notice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .86rem;
  margin-bottom: 16px;
  border: 1px solid;
}
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin-bottom: 0; }
.notice.info { background: var(--bg-tint); border-color: var(--border-soft); color: var(--ink-soft); }
.notice.warn { background: rgba(245, 185, 69, .10); border-color: rgba(245, 185, 69, .45); color: #7a5410; }
.notice.stop { background: rgba(185, 28, 28, .06); border-color: rgba(185, 28, 28, .3); color: #7f1d1d; }
.notice.ok { background: rgba(21, 128, 61, .07); border-color: rgba(21, 128, 61, .3); color: #14532d; }

.gap-note {
  border-left: 3px solid var(--hl-warm);
  background: rgba(245, 185, 69, .07);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
}
.gap-note .q { display: block; margin-top: 5px; font-style: italic; color: var(--ink-soft); }

/* ---------- score ring ---------- */

.ring { width: 76px; height: 76px; }
.ring .ring-track { fill: none; stroke: var(--border-soft); stroke-width: 5; }
.ring .ring-fill { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring .ring-fill.green { stroke: var(--success); }
.ring .ring-fill.amber { stroke: var(--hl-warm); }
.ring .ring-fill.red { stroke: var(--danger); }
.ring .ring-num { font-family: var(--mono); font-weight: 800; font-size: 12px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }

/* ---------- bars ---------- */

.bar { height: 7px; border-radius: 999px; background: var(--border-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar > i.green { background: var(--success); }
.bar > i.amber { background: var(--hl-warm); }
.bar > i.red { background: var(--danger); }
.bar > i.purple { background: var(--accent); }

/* ---------- bridge (waterfall) ---------- */

.bridge { display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; padding: 10px 0 4px; }
.bridge .col { min-width: 108px; flex: 1 1 108px; text-align: center; }
.bridge .col .amt { font-family: var(--mono); font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.bridge .col .blk { border-radius: 7px 7px 0 0; background: var(--accent); }
.bridge .col.start .blk { background: var(--ink-soft); }
.bridge .col.down .blk { background: var(--danger); }
.bridge .col.up .blk { background: var(--success); }
.bridge .col.end .blk { background: var(--accent-dark); }
.bridge .col .lbl { font-size: .7rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }

/* ---------- slides / report ---------- */

.slide {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slide .slide-no {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.slide h3 { font-family: var(--serif); font-size: 1.15rem; margin: 6px 0 10px; }
.slide .body { flex: 1; font-size: .78rem; overflow: hidden; }
.slide.cover { background: var(--gradient); color: #fff; justify-content: center; }
.slide.cover h3, .slide.cover .slide-no { color: #fff; }

.toc { columns: 2; column-gap: 26px; font-size: .86rem; }
.toc a { display: block; padding: 3px 0; break-inside: avoid; }

.section-block { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.section-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.section-block > h3 { display: flex; align-items: baseline; gap: 8px; }
.section-block > h3 .num { font-family: var(--mono); font-size: .74rem; color: var(--accent); }

/* Paper surface for the PDF preview. */
.paper-page {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(820px, 100%);
  margin: 0 auto 22px;
  padding: 46px 52px;
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.paper-page .running {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
  display: flex;
  justify-content: space-between;
}
.paper-page .foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 7px;
  font-size: .6rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ---------- misc ---------- */

.kv { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 6px 14px; font-size: .87rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

.mono { font-family: var(--mono); }
.small { font-size: .8rem; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.disclaimer {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 14px;
  font-size: .76rem;
  color: var(--muted);
  max-width: 92ch;
}

.footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .7);
  padding: 20px;
  font-size: .78rem;
  text-align: center;
}
.footer a { color: var(--accent-light); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 13px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.is-active { color: var(--accent-dark); border-bottom-color: var(--accent); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .toc { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  @page { margin: 16mm; }
  html, body { background: #fff; color: #000; }
  .proto-banner, .topbar, .sidebar, .tabs, .footer, .btn, button { display: none !important; }
  .layout { display: block; min-height: 0; }
  .main, .main.wide { padding: 0; max-width: none; }
  .card {
    border: 1px solid #999;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .table-wrap { overflow: visible; border: 1px solid #999; background: #fff; }
  .table-wrap.wide table { min-width: 0; }
  table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .badge, .prov { border: 1px solid #999; background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
