/* meet-otto — demo mini-site. Self-contained: no CDNs, no external fonts. */

:root {
  --accent: #6d4fc4;
  --accent-strong: #57389f;
  --accent-soft: #efeafd;
  --accent-line: #d8ccf5;
  --ink: #1d1a27;
  --dim: #575066;
  --faint: #8b8499;
  --bg: #faf9fc;
  --surface: #ffffff;
  --line: #e6e2ef;
  --good: #2c7a4b;
  --warn: #a05a1c;
  --bad: #b3392f;
  --band-ingress: #f5ecdd;
  --band-app: #e3ecf8;
  --band-data: #ece5f8;
  --band-pipe: #e2f0e6;
  --band-ai: #f3e6f4;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.2rem; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

/* ── Sticky nav ─────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.55rem 1.4rem;
  background: rgba(250, 249, 252, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; white-space: nowrap;
}
.site-nav .brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--accent-strong); font-size: 1.05rem; }
.site-nav .brand img { width: 22px; height: 22px; }
.site-nav a { color: var(--dim); text-decoration: none; font-size: 0.82rem; padding: 0.25rem 0.55rem; border-radius: 5px; }
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a.active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }

/* ── Sections ───────────────────────────────────────────────── */
section { max-width: 62rem; margin: 0 auto; padding: 3.6rem 1.4rem 1.2rem; }
section > h2 { font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
section > .kicker {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem;
}
section p { margin: 0.7rem 0; max-width: 48rem; }
section p.lede { font-size: 1.08rem; color: var(--dim); max-width: 52rem; }
section ul { margin: 0.7rem 0 0.7rem 1.3rem; max-width: 48rem; }
section li { margin: 0.35rem 0; }
strong { font-weight: 650; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { text-align: center; padding-top: 5rem; padding-bottom: 2rem; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; letter-spacing: -0.02em; max-width: 46rem; margin: 0.8rem auto 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .sub { font-size: 1.15rem; color: var(--dim); max-width: 42rem; margin: 1.1rem auto 0; }
.hero img.mark { width: 64px; height: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.6rem; }
.chip {
  font-size: 0.85rem; padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-strong);
}

/* ── Tables ─────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin: 1.2rem 0; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 0.92rem; background: var(--surface); }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; }
.tbl th { background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.tbl td.yes { color: var(--good); font-weight: 600; }
.tbl td.no { color: var(--bad); }

/* ── Diagram figure ─────────────────────────────────────────── */
figure.diagram { margin: 1.4rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; overflow-x: auto; }
figure.diagram svg { display: block; min-width: 900px; width: 100%; height: auto; }
figure.diagram figcaption { font-size: 0.85rem; color: var(--faint); margin-top: 0.6rem; }

/* ── Micro-diagrams ─────────────────────────────────────────── */
.stores-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1.3rem 0; }
.store-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 0.9rem; }
.store-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.store-card .role { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.store-card p { font-size: 0.85rem; color: var(--dim); margin: 0.35rem 0 0; }

.steps-strip { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin: 1.2rem 0; }
.step {
  display: flex; align-items: center; gap: 0.45rem;
  background: var(--surface); border: 1px solid var(--accent-line);
  border-radius: 7px; padding: 0.4rem 0.7rem; font-size: 0.82rem;
}
.step b { color: var(--accent-strong); font-family: var(--mono); font-size: 0.78rem; }
.step-arrow { color: var(--faint); font-size: 0.9rem; }

.tier-funnel { display: grid; gap: 0.55rem; margin: 1.2rem 0; max-width: 44rem; }
.tier { border-radius: 8px; padding: 0.75rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.tier h4 { font-size: 0.95rem; }
.tier p { font-size: 0.87rem; color: var(--dim); margin: 0.15rem 0 0; }
.tier.t1 { border-left: 5px solid var(--good); }
.tier.t2 { border-left: 5px solid var(--warn); width: 92%; }
.tier.t3 { border-left: 5px solid var(--bad); width: 84%; }

.route-flow { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1.2rem 0; font-size: 0.85rem; }
.route-node { background: var(--surface); border: 1px solid var(--accent-line); border-radius: 7px; padding: 0.45rem 0.8rem; }
.route-node small { display: block; color: var(--faint); font-size: 0.72rem; }

.channel-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.channel-chips .chip { font-size: 0.8rem; padding: 0.3rem 0.75rem; }

/* ── Cards, gaps table, callouts ────────────────────────────── */
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem; margin: 1.2rem 0; max-width: 48rem; }
.callout.honest { border-left-color: var(--warn); background: #fdf3e7; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.2rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; }
.card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.card p, .card li { font-size: 0.9rem; color: var(--dim); }
.card ul { margin-left: 1.1rem; }

/* ── Footer / contact ───────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 2.2rem 1.4rem 3rem; text-align: center; color: var(--dim); font-size: 0.9rem; }
footer a { color: var(--accent-strong); }

/* ── Presenter bar ──────────────────────────────────────────── */
#presenter-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; align-items: baseline; gap: 1rem;
  background: var(--ink); color: #f1eefa;
  padding: 0.55rem 1.2rem; font-size: 0.9rem;
}
body.presenting #presenter-bar { display: flex; }
#presenter-bar .pm-min { font-family: var(--mono); color: #b9a5f5; white-space: nowrap; }
#presenter-bar .pm-live { color: #ffd48a; font-weight: 700; white-space: nowrap; }
#presenter-bar .pm-cue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Demo-flow page ─────────────────────────────────────────── */
.flow-table td:first-child { font-family: var(--mono); white-space: nowrap; font-size: 0.82rem; }
.flow-table .live { background: #fff7ea; }
.checklist li { margin: 0.45rem 0; }
.checklist input { margin-right: 0.5rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.9rem; }
  .stores-row, .cards2 { grid-template-columns: 1fr; }
  .tier.t2, .tier.t3 { width: 100%; }
}

/* ── Print: the site is the leave-behind ────────────────────── */
@media print {
  .site-nav, #presenter-bar { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 1.2rem 0 0.3rem; max-width: none; page-break-inside: avoid; }
  .hero { padding-top: 1rem; }
  figure.diagram { border: none; padding: 0; overflow: visible; }
  figure.diagram svg { min-width: 0; }
  a { color: inherit; text-decoration: none; }
  .tbl-wrap { overflow: visible; }
}
