/* OTAKOYI AI Automation · live demo. Brand: demo/brand/README.md (Eleven black, Bright Yellow, Montserrat on web). */
:root {
  color-scheme: light;
  --ink: #111111; --brand: #ffdd00; --text: #333333; --muted: #485770; --line: #d4d9dc;
  --bg: #f4f5f6; --card: #ffffff; --blue: #2e2cf9;
  --ok: #13795b; --ok-bg: #e5f4ed; --warn: #9a5b00; --warn-bg: #fff3dc; --bad: #b42318; --bad-bg: #fdecea;
  --run: #111111; --run-bg: #fff6b3; --idle: #485770; --idle-bg: #e9ebee;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  border-top: 6px solid var(--brand);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
mark { background: linear-gradient(transparent 55%, var(--brand) 55%); color: inherit; padding: 0 2px; }
kbd { font: 600 11px/1 Montserrat, sans-serif; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--muted); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.top-in, .tabs-wrap, main, footer { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 20px; width: auto; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.notes-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); font: 600 13px/1 Montserrat, sans-serif; cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.notes-btn:active { transform: scale(0.97); }
.notes-btn[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.tabs-wrap { position: relative; }
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: 0 0 auto; padding: 12px 14px 14px; border: 0; background: none; color: var(--muted); font: 600 14px/1 Montserrat, sans-serif; cursor: pointer; white-space: nowrap; transition: color 160ms ease; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.tab-ind { position: absolute; left: 0; bottom: 0; width: 1px; height: 3px; background: var(--ink); transform-origin: 0 0; transition: transform 260ms var(--ease-out); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"]:hover { color: var(--ink); } }

/* ---------- layout ---------- */
main { padding-top: 40px; padding-bottom: 56px; }
.panel { animation: panelIn 240ms var(--ease-out); }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.h1, .hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; max-width: 920px; }
.h2 { margin: 56px 0 8px; font-size: 24px; font-weight: 800; }
.lead { margin-top: 16px; max-width: 760px; color: var(--text); font-size: 17px; line-height: 1.6; }
.sub { color: var(--muted); max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.small { color: var(--muted); font-size: 12px; }
.label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--brand); font: 700 14px/1 Montserrat, sans-serif; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), opacity 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small-btn { padding: 9px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; cursor: default; transform: none; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- overview ---------- */
.hero { padding: 8px 0 8px; }
.hero-cta { margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { padding: 20px; }
.stat b { display: block; color: var(--ink); font-size: 34px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 13px/1 Montserrat, sans-serif; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.chip:active { transform: scale(0.97); }
.chip[aria-selected="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--brand); }
.dept-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.dept-item { padding: 16px 18px; animation: itemIn 260ms var(--ease-out) both; }
.dept-item h3 { font-size: 15px; font-weight: 700; }
.dept-item p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.dept-item .live { display: inline-flex; margin-top: 12px; gap: 6px; align-items: center; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.dept-item .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--ink); transform: scale(0.75); }
.dept-item.has-live { border-color: var(--ink); }
@keyframes itemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.shift { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; overflow: hidden; }
.shift > div { padding: 22px; border-right: 1px solid var(--line); }
.shift > div:last-child { border-right: 0; }
.shift > div.on { background: var(--ink); color: #e9ebee; }
.shift > div.on .label { color: var(--brand); }
.shift p { margin-top: 10px; font-size: 15px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.usp { padding: 20px; }
.usp .n { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.usp h3 { margin-top: 8px; font-size: 16px; font-weight: 800; }
.usp p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.growth { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.growth li { padding: 16px 18px; border-right: 1px solid var(--line); }
.growth li:last-child { border-right: 0; }
.growth li:first-child { background: var(--ink); }
.growth span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.growth b { display: block; margin-top: 6px; color: var(--ink); font-size: 15px; }
.growth li:first-child span { color: #c9ced6; }
.growth li:first-child b { color: var(--brand); }

/* ---------- how we work ---------- */
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); max-width: 640px; width: 100%; }
.seg button { padding: 12px 14px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; font: inherit; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.seg button:active { transform: scale(0.98); }
.seg button b { display: block; color: var(--ink); font-size: 14px; }
.seg button span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.seg button[aria-checked="true"] { background: var(--ink); }
.seg button[aria-checked="true"] b { color: var(--brand); }
.seg button[aria-checked="true"] span { color: #c9ced6; }
.phases { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 0; padding: 0; }
.phases li { display: flex; }
.nw { white-space: nowrap; }
.phase { position: relative; width: 100%; padding: 18px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 200ms ease; }
.phase:active { transform: scale(0.98); }
.phase[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--brand); }
.phase .n { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.phase h3 { margin-top: 8px; font-size: 17px; font-weight: 800; }
.phase .when { margin-top: 6px; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; margin-top: 12px; padding: 3px 9px; border-radius: 999px; background: var(--idle-bg); color: var(--ink); font-size: 11px; font-weight: 700; }
.tag.y { background: var(--brand); }
.phase-detail { margin-top: 12px; padding: 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.phase-detail .outcome { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--brand); background: #fffbe0; color: var(--ink); font-weight: 600; font-size: 14px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; animation: itemIn 240ms var(--ease-out) both; }
.steps-list .k { color: var(--muted); font-size: 12px; font-weight: 800; }
.steps-list b { display: block; color: var(--ink); font-size: 14px; }
.steps-list span { color: var(--muted); font-size: 12px; }

.sim-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sim-head h3 { font-size: 20px; font-weight: 800; }
.sim-head p { margin-top: 6px; color: var(--muted); max-width: 680px; }
.audit { margin-top: 16px; padding: 24px; }
.audit-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.audit-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 70px minmax(120px, 1.4fr) 110px; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; transition: border-color 200ms ease, background-color 200ms ease, opacity 200ms ease; }
.audit-row .name b { display: block; color: var(--ink); font-size: 14px; }
.audit-row .name span { color: var(--muted); font-size: 12px; }
.audit-row .hrs { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.bar { position: relative; height: 10px; border-radius: 99px; background: var(--idle-bg); overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--ink); border-radius: 99px; transform: scaleX(0); transform-origin: 0 0; transition: transform 700ms var(--ease-out); }
.audit-row .verdict { justify-self: end; }
.audit-row.pick { border-color: var(--ink); background: #fffbe0; }
.audit-row.pick .bar i { background: var(--ink); }
.audit-row.later { opacity: 0.55; }
.audit-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.audit-sum > div { padding: 16px; border-radius: 10px; background: var(--ink); color: #e9ebee; animation: itemIn 260ms var(--ease-out) both; }
.audit-sum b { display: block; color: var(--brand); font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.audit-sum span { display: block; margin-top: 6px; font-size: 13px; }

/* ---------- status badges ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--idle-bg); color: var(--idle); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.badge.run { background: var(--run-bg); color: var(--run); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.ink { background: var(--ink); color: var(--brand); }

/* ---------- scenarios ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.scen { margin-top: 16px; padding: 24px; }
.scen-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.scen-top h3 { font-size: 22px; font-weight: 800; max-width: 720px; }
.scen-top p { margin-top: 8px; color: var(--muted); max-width: 720px; }
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; counter-reset: s; }
.pipeline li { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.35; transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease; }
.pipeline li b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.pipeline li.on { border-color: var(--ink); background: var(--brand); color: var(--ink); }
.pipeline li.done { color: var(--ink); }
.pipeline li.done b::after { content: " ✓"; }
.scen-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-top: 16px; }
.inbox { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.inbox-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.inbox-h b { color: var(--ink); font-size: 13px; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color 200ms ease; }
.msg:last-child { border-bottom: 0; }
.msg.active { background: #fffbe0; box-shadow: inset 3px 0 0 var(--ink); }
.msg .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--idle-bg); color: var(--ink); font-size: 10px; font-weight: 800; }
.msg .t b { display: block; overflow: hidden; color: var(--ink); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.msg .t span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .msg:hover { background: #fafbfb; } .msg.active:hover { background: #fffbe0; } }
.detail { min-height: 300px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfb; }
.detail .empty { display: grid; place-items: center; min-height: 260px; color: var(--muted); text-align: center; font-size: 14px; }
.detail h4 { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.fields > * { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; animation: itemIn 220ms var(--ease-out) both; }
.fields > dt { color: var(--muted); font-weight: 600; }
.fields > dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fields > *:nth-last-child(-n + 2) { border-bottom: 0; }
.check { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; animation: itemIn 220ms var(--ease-out) both; }
.check.ok { background: var(--ok-bg); color: var(--ok); }
.check.warn { background: var(--warn-bg); color: var(--warn); }
.check.bad { background: var(--bad-bg); color: var(--bad); }
.check.info { background: var(--idle-bg); color: var(--ink); }
.trace { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trace span { padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--brand); font-size: 12px; font-weight: 700; animation: itemIn 220ms var(--ease-out) both; }
.draft { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 14px; line-height: 1.6; white-space: pre-line; animation: itemIn 220ms var(--ease-out) both; }
.draft .src { display: inline-block; margin: 0 2px; padding: 0 6px; border-radius: 4px; background: var(--ink); color: var(--brand); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tr { margin-top: 8px; color: var(--muted); font-size: 12px; font-style: italic; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.results > div { padding: 14px 16px; border-radius: 10px; animation: itemIn 260ms var(--ease-out) both; }
.results b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.results span { font-size: 13px; font-weight: 600; }
.results .ok { background: var(--ok-bg); color: var(--ok); }
.results .warn { background: var(--warn-bg); color: var(--warn); }
.results .bad { background: var(--bad-bg); color: var(--bad); }
.results .info { background: var(--idle-bg); color: var(--ink); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ba > div { padding: 16px; border-radius: 10px; border: 1px solid var(--line); }
.ba > div:last-child { border-color: var(--ink); }
.ba p { margin-top: 8px; font-size: 14px; color: var(--ink); }
.status-line { min-height: 22px; margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 380px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #e9ebee; font-size: 13px; box-shadow: 0 12px 32px rgba(17, 17, 17, 0.22); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.toast b { display: block; margin-bottom: 4px; color: var(--brand); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.toast.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
table.tests { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
table.tests th, table.tests td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.tests th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #fafbfb; }
table.tests td { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
table.tests tr { animation: itemIn 220ms var(--ease-out) both; }
table.tests tr:last-child td { border-bottom: 0; }

/* ---------- sizes ---------- */
.sizes { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; align-items: start; }
.q { padding: 18px; }
.q + .q { margin-top: 12px; }
.q h3 { font-size: 15px; font-weight: 700; }
.q p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.size-card { position: sticky; top: 120px; padding: 24px; background: var(--ink); color: #e9ebee; border-color: var(--ink); }
.size-card .label { color: #c9ced6; }
.size-letter { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; }
.size-letter b { color: var(--brand); font-size: 72px; line-height: 1; font-weight: 800; }
.size-letter span { color: #fff; font-size: 22px; font-weight: 800; }
.size-card p { margin-top: 14px; font-size: 14px; }
.size-card .why { margin-top: 14px; padding-top: 14px; border-top: 1px solid #333; color: #c9ced6; font-size: 13px; }
.size-card .ex { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #1d1d1d; font-size: 14px; }
.size-card .ex .label { display: block; margin-bottom: 6px; color: var(--brand); }
.size-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table th { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.size-table td { color: var(--ink); font-weight: 600; }
.size-table td.hl { background: #fffbe0; }
.size-table tr:last-child td { border-bottom: 0; }

/* ---------- proof ---------- */
.big-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 16px; }
.proof { padding: 20px; }
.proof .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.proof .meta span { padding: 3px 8px; border-radius: 6px; background: var(--idle-bg); color: var(--ink); font-size: 12px; font-weight: 600; }
.proof h3 { font-size: 16px; font-weight: 800; line-height: 1.35; }
.proof p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.proof .tags { margin-top: 12px; color: var(--muted); font-size: 12px; }
.proof.unit { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--brand); }
.quote { margin-top: 16px; padding: 24px; border-left: 4px solid var(--brand); }
.quote p { color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.5; }
.quote span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }

/* ---------- notes ---------- */
.notes { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(400px, 100vw); padding: 24px; overflow-y: auto; background: var(--ink); color: #e9ebee; box-shadow: -12px 0 32px rgba(17, 17, 17, 0.2); transform: translateX(0); transition: transform 280ms var(--ease-out); }
.notes.closed { transform: translateX(105%); }
.notes h2 { color: var(--brand); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.notes h3 { margin-top: 10px; color: #fff; font-size: 20px; }
.notes ul { margin: 16px 0 0; padding-left: 18px; }
.notes li { margin-top: 10px; font-size: 14px; line-height: 1.55; }
.notes .x { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border: 1px solid #444; border-radius: 8px; background: transparent; color: #e9ebee; font: 600 12px/1 Montserrat, sans-serif; cursor: pointer; }

footer { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p + p { margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stats, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .phase-detail { grid-template-columns: 1fr; }
  .scen-body, .sizes { grid-template-columns: 1fr; }
  .size-card { position: static; }
  .pipeline { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
}
@media (max-width: 640px) {
  .top-in, .tabs-wrap, main, footer { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 28px; }
  .brand span { display: none; }
  .notes-btn kbd { display: none; }
  .lead { font-size: 16px; }
  .stats, .shift, .audit-sum, .results, .ba, .big-num, .why-grid, .growth { grid-template-columns: 1fr; }
  .growth li { border-right: 0; border-bottom: 1px solid var(--line); }
  .growth li:last-child { border-bottom: 0; }
  .shift > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .phases { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .audit, .scen, .phase-detail { padding: 16px; }
  .audit-row { grid-template-columns: minmax(0, 1fr) auto; }
  .audit-row .bar { grid-column: 1 / -1; }
  .audit-row .hrs { justify-self: end; }
  .audit-row .verdict { grid-column: 1 / -1; justify-self: start; }
  .pipeline { display: flex; gap: 6px; overflow-x: auto; }
  .pipeline li { flex: 0 0 140px; }
  .proof-grid { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panel, .dept-item, .steps-list li, .fields > *, .check, .trace span, .draft, .results > div, .audit-sum > div, table.tests tr { animation: fade 160ms ease both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .tab-ind, .bar i, .notes, .toast { transition-duration: 0ms; }
  html { scroll-behavior: auto; }
}
