/* OkayPanda public site: quiet, dense, precise. Tokens match the app (app/src/styles.css). */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --hover: #efefec;
  --line: #e6e6e2;
  --line-2: #d6d6d1;
  --ink: #1b1b1a;
  --ink-2: #4a4a47;
  --ink-3: #6d6d69;
  --ink-4: #9a9a95;
  --bamboo: #4f8a3b;
  --green: #2f7a3a; --green-soft: #e3f1e5;
  --blue: #2f62a8; --blue-soft: #e4ecf7;
  --amber: #8a6618; --amber-soft: #f6edd8;
  --red: #b23a3a; --red-soft: #f8e2e1;
  --violet: #6a54a8; --violet-soft: #ece8f6;
  --gray-soft: #ececea;
  /* the demo HQ is a dark "app window" */
  --night: #16181d;
  --night-2: #1f222a;
  --night-rule: #2e323c;
  --night-ink: #e9e8e3;
  --night-muted: #8b8f99;
  /* department colours (also used by templates.js) */
  --exec: #c9a14a; --mkt: #c46a6a; --sales: #5f8fc4; --fin: #5f9a4a; --ops: #8a74c0; --sup: #4a9a94;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px #0000000a, 0 8px 24px -12px #0000001f;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* type scale */
  --t-xs: 12px; --t-sm: 13px; --t-base: 15px; --t-md: 17px; --t-lg: 20px;
  --t-xl: clamp(24px, 2.6vw, 30px); --t-2xl: clamp(30px, 3.8vw, 42px); --t-3xl: clamp(38px, 6vw, 64px);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.muted { color: var(--ink-3); }
.u { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.u:hover { text-decoration-color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #33332f; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-link { border-color: transparent; background: none; color: var(--ink-3); }
.btn-link:hover { background: var(--hover); color: var(--ink); }
.chip {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 18px;
  padding: 0 7px; border-radius: 4px; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--ink)) 13%, transparent);
  color: color-mix(in srgb, var(--c, var(--ink)) 72%, var(--ink));
}
.c-exec { --c: var(--exec); } .c-mkt { --c: var(--mkt); } .c-sales { --c: var(--sales); }
.c-fin { --c: var(--fin); } .c-ops { --c: var(--ops); } .c-sup { --c: var(--sup); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 20px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); white-space: nowrap; }
.badge-live { color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); background: var(--green-soft); }
.badge-soon { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); background: var(--amber-soft); }
.badge-plan { color: var(--ink-3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* status pills (light surfaces) */
.st { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; line-height: 18px; padding: 0 7px; border-radius: 4px; white-space: nowrap; }
.st-done { background: var(--green-soft); color: var(--green); }
.st-run { background: var(--blue-soft); color: var(--blue); }
.st-wait { background: var(--gray-soft); color: var(--ink-3); }
.st-you { background: var(--amber-soft); color: var(--amber); }
.st-fail { background: var(--red-soft); color: var(--red); }
.st-draft { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled, .nav.open { border-color: var(--line); }
.nav-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-word { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-word span { font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.nav-links a { padding: 6px 10px; border-radius: 6px; color: var(--ink-3); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--hover); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-links .nav-m { display: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 14px; color: var(--ink-3); padding: 6px 10px; border-radius: 6px; }
.nav-signin:hover { color: var(--ink); background: var(--hover); }
.nav-toggle { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); place-items: center; }
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-signin, .nav-end .btn { display: none; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px #0003; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 8px; font-size: 15px; border-radius: 6px; }
  .nav-links .nav-m { display: block; }
  .nav-links .nav-m.btn { display: flex; margin-top: 8px; height: 42px; color: #fff; }
  .nav-links .nav-m.btn:hover { background: #33332f; }
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 112px); }
.foot-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; font-size: 14px; }
.foot-brand p { color: var(--ink-3); margin-top: 10px; max-width: 30ch; font-size: 13px; }
.foot h4 { font-size: 12px; font-weight: 500; color: var(--ink-4); margin-bottom: 10px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.foot ul a { color: var(--ink-2); }
.foot ul a:hover { color: var(--ink); }
.foot-base { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter) 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-4); }
.foot-base a { color: var(--ink-3); }
.wm .lab { color: var(--ink-4); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Page structure ---------- */
.sec { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter) 0; scroll-margin-top: 56px; }
.sec-tight { padding-top: clamp(40px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
h1, h2, h3, h4 { letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: var(--t-3xl); line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: var(--t-md); line-height: 1.3; }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head p { margin-top: 12px; color: var(--ink-3); font-size: var(--t-md); }
.sec-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.split > div { max-width: 640px; }
.lede { font-size: var(--t-md); color: var(--ink-3); max-width: 62ch; }
.rule { height: 1px; background: var(--line); border: 0; }
.note { font-size: 13px; color: var(--ink-3); }
.note b { color: var(--ink-2); font-weight: 500; }

/* page header for inner pages */
.phead { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 0; }
.phead h1 { font-size: clamp(34px, 5vw, 54px); max-width: 18ch; }
.phead .lede { margin-top: 16px; }
.phead .actions { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.toc a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); }
.toc a:hover { border-color: var(--line-2); color: var(--ink); }

/* cards and grids */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-3); font-size: 14px; }
.card .chip, .card .badge { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head .chip, .card-head .badge { margin: 0; }
.ico { width: 32px; height: 32px; border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; color: var(--ink-2); }
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.list li { padding-left: 16px; position: relative; }
.list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 1.5px; background: var(--ink-4); }
.checks li::before { width: 8px; height: 4px; top: .5em; background: none; border: solid var(--green); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); padding-top: 1px; }
.kv dd { color: var(--ink-2); }

/* two-column feature row */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.feat + .feat { margin-top: clamp(48px, 7vw, 88px); }
.feat h2 { font-size: var(--t-xl); }
.feat .lede { margin-top: 12px; font-size: var(--t-base); }
@media (max-width: 860px) { .feat { grid-template-columns: minmax(0, 1fr); } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t thead th { font-size: 12px; font-weight: 500; color: var(--ink-4); background: var(--surface-2); white-space: nowrap; }
.t tbody tr:last-child td { border-bottom: 0; }
.t td:first-child { color: var(--ink); font-weight: 500; }
.t td { color: var(--ink-2); }

/* mock app windows (light) */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.win-bar b { color: var(--ink-2); font-weight: 500; }
.win-bar .sp { margin-left: auto; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.win-body { padding: 14px; }
.rows { display: flex; flex-direction: column; }
.rows > div { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows .who { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.rows .st { text-align: center; }
@media (max-width: 480px) { .rows > div { grid-template-columns: 1fr; gap: 4px; } .rows .st { justify-self: start; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-4); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink-3); max-width: 72ch; }

/* ---------- Home: hero ---------- */
.hero { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--ink-3); }
.hero .lede { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.hero-mascot { width: clamp(88px, 11vw, 132px); color: var(--ink); margin-bottom: 8px; }
.hero-facts { grid-column: 1 / -1; display: flex; gap: 6px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.hero-facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } .hero-mascot { display: none; } }

/* ---------- Home: demo ---------- */
.demo { max-width: calc(var(--max) + 2 * var(--gutter) + 80px); margin: 0 auto; padding: 32px var(--gutter) 0; scroll-margin-top: 56px; }
.demo-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--ink-3); }
.demo-label b { color: var(--ink); font-weight: 600; }

.pick { background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 16px 16px 12px; }
.pick-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.pick-head .step { font-size: 13px; font-weight: 500; }
.stepn { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 500; margin-right: 8px; vertical-align: 1px; }
.stepn.dark { background: var(--night-ink); color: var(--night); }
.search { flex: 1 1 320px; max-width: 480px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px #1b1b1a10; }
.search svg { width: 15px; height: 15px; color: var(--ink-4); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 14px; outline: none; }
.cats { display: flex; gap: 4px; margin: 12px 0 10px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid transparent; background: transparent; font-size: 12.5px; color: var(--ink-3); }
.cats button:hover { color: var(--ink); background: var(--hover); }
.cats button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line); color: var(--ink); font-weight: 500; }
.tpls { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tpl { flex: none; scroll-snap-align: start; text-align: left; min-width: 140px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s; }
.tpl:hover { border-color: var(--line-2); background: var(--surface-2); }
.tpl b { display: block; font-weight: 500; font-size: 13px; }
.tpl span { font-size: 11.5px; color: var(--ink-4); }
.tpl.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tpl.on span { color: #b9b8b2; }
.tpl-ai { border-style: dashed; border-color: var(--bamboo); background: color-mix(in srgb, var(--bamboo) 6%, #fff); }
.tpl-ai.loading { opacity: .6; pointer-events: none; }
.pick-note { font-size: 12.5px; color: var(--ink-3); min-height: 1.5em; margin-top: 2px; }

.hq { background: var(--night); color: var(--night-ink); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px #0005; }
.hq-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--night-rule); font-family: var(--mono); font-size: 12px; color: var(--night-muted); }
.hq-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.hq-title b { color: var(--night-ink); font-weight: 500; }
.hq-tag { padding: 0 6px; border-radius: 4px; border: 1px solid #e2bd6a66; color: #e2bd6a; font-size: 10.5px; line-height: 18px; }
.hq-right { display: flex; align-items: center; gap: 12px; flex: none; }
.hq-live { display: inline-flex; align-items: center; gap: 7px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #7fd26a; }
.pulse.on { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #7fd26a88; } 70% { box-shadow: 0 0 0 6px #7fd26a00; } 100% { box-shadow: 0 0 0 0 #7fd26a00; } }
.seg { display: inline-flex; padding: 2px; border-radius: 6px; background: #ffffff0d; border: 1px solid var(--night-rule); }
.seg button { height: 24px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--night-muted); font-family: var(--sans); font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); font-weight: 500; }

.hq-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 520px; }
.hq-stage { position: relative; min-width: 0; background: radial-gradient(ellipse at 50% 40%, #232733 0%, var(--night) 70%); }
.hq-stage.dash { background: var(--night); }
.hq-stage.dash { display: flex; flex-direction: column; }
#dash:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
#dash .dash-sum { margin-top: auto; }
#office { display: block; width: 100%; height: 100%; min-height: 420px; }
.hq-hint { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 11px; color: var(--night-muted); }

/* dashboard view */
.dash-wrap { padding: 4px 0; overflow-x: auto; }
table.dash { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--night-muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px 8px; border-bottom: 1px solid var(--night-rule); white-space: nowrap; }
.dash td { padding: 10px 12px; border-bottom: 1px solid var(--night-rule); vertical-align: middle; }
.dash tbody tr { cursor: pointer; transition: background .15s; }
.dash tbody tr:hover { background: #ffffff06; }
.dash tbody tr.sel { background: #ffffff0b; box-shadow: inset 2px 0 0 var(--c); }
.dash tbody tr:focus-visible { outline: 2px solid #8db6e6; outline-offset: -2px; }
.dash .d-name { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.dash .d-sw { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.dash .d-team { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--night-muted); }
.dash .d-team i { display: inline-flex; }
.dash .d-team i span { width: 8px; height: 8px; border-radius: 50%; background: var(--night-ink); margin-right: 2px; opacity: .85; }
.dash .d-team i span.off { background: transparent; box-shadow: inset 0 0 0 1px var(--night-rule); }
.dash .d-load { min-width: 96px; }
.dash .d-load .bar { margin-top: 0; }
.dash .d-load small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--night-muted); margin-top: 4px; }
.dash .d-load.hot small { color: #f09a8e; }
.dash .d-load.hot .bar i { background: #e5786a; }
.dash .d-now { max-width: 280px; }
.dash .d-now div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash .d-now span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dash .d-num { font-family: var(--mono); font-size: 12px; text-align: right; white-space: nowrap; }
.dash .d-you b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 4px; background: #e2bd6a; color: #1b1b1a; font-family: var(--mono); font-size: 11px; }
.dash .d-you span { color: var(--night-muted); }
.dash tr.got td { animation: got 1.2s var(--ease); }
@keyframes got { from { background: color-mix(in srgb, var(--c) 22%, transparent); } }
.dash td.finished .d-numv { animation: tick .8s var(--ease); display: inline-block; }
@keyframes tick { from { color: #8fc77a; transform: translateY(-3px); } }
.run-ring { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #8db6e655; border-top-color: #8db6e6; flex: none; animation: spin 1s linear infinite; }
.run-idle { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--night-rule); flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash-sum { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-rule); }
.dash-sum div { padding: 10px 14px; border-right: 1px solid var(--night-rule); }
.dash-sum div:last-child { border-right: 0; }
.dash-sum b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.dash-sum span { font-family: var(--mono); font-size: 10.5px; color: var(--night-muted); }
@media (max-width: 680px) {
  .dash thead { display: none; }
  .dash, .dash tbody, .dash tr, .dash td { display: block; }
  .dash tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name team" "now you" "load load"; gap: 6px 12px; padding: 10px 14px; border-bottom: 1px solid var(--night-rule); }
  .dash td { padding: 0; border: 0; min-width: 0; }
  .dash td:nth-child(1) { grid-area: name; } .dash td:nth-child(2) { grid-area: team; }
  .dash .d-now { grid-area: now; max-width: none; } .dash .d-you { grid-area: you; }
  .dash .d-load { grid-area: load; display: flex; align-items: center; gap: 10px; }
  .dash .d-load .bar { flex: 1; height: 3px; }
  .dash .d-load small { margin: 0; }
  .dash .d-numc, .dash .d-zero { display: none; }
  .dash-sum { grid-template-columns: repeat(2, 1fr); }
  .dash-sum div:nth-child(2) { border-right: 0; }
  .dash-sum div:nth-child(-n+2) { border-bottom: 1px solid var(--night-rule); }
}

.room { cursor: pointer; }
.room .top { transition: filter .25s; }
.room:hover .top, .room.sel .top { filter: brightness(1.18); }
.room.sel .outline { opacity: 1; }
.room .outline { opacity: 0; transition: opacity .25s; }
.room:focus { outline: none; }
.room:focus-visible .outline { opacity: 1; }
.room-label { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--night-ink); pointer-events: none; }
.room-meta { font-family: var(--mono); font-size: 9.5px; fill: var(--night-muted); }
.room-meta.hot { fill: #f09a8e; }
.label-bg { fill: #16181dd9; stroke: #ffffff14; }
.bubble text { font-family: var(--mono); font-size: 8.5px; fill: #1b1b1a; }
.flag.hot circle { animation: hot 1.2s ease-in-out infinite; }
@keyframes hot { 50% { opacity: .55; } }
.panda.hired { animation: drop .7s var(--ease) both; transform-box: fill-box; }
@keyframes drop { from { opacity: 0; translate: 0 -30px; } }
.walker { pointer-events: none; }

.hq-panel { border-left: 1px solid var(--night-rule); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--night-2); min-width: 0; }
.hq-panel .st-done { background: #5f9a4a26; color: #8fc77a; }
.hq-panel .st-run, .dash .st-run { background: #5f8fc426; color: #8db6e6; }
.hq-panel .st-wait, .dash .st-wait { background: #8b8f9926; color: #b3b6bf; }
.dash .st-you { background: #c9a14a2e; color: #e2bd6a; }
.p-head { display: flex; align-items: center; gap: 12px; }
.p-avatar { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, var(--night)); flex: none; }
.p-avatar svg { width: 28px; height: 28px; color: #111; }
.p-dept { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.p-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.p-role { font-size: 12.5px; color: var(--night-muted); }
.p-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: #ffffff0a; border: 1px solid var(--night-rule); }
.p-tabs button { flex: 1; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--night-muted); font-size: 12.5px; }
.p-tabs button[aria-selected="true"] { background: var(--night-ink); color: var(--night); font-weight: 500; }
.p-tabs b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 4px; background: #e2bd6a; color: #1b1b1a; font-size: 11px; }
.p-load { padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--night-rule); background: #ffffff06; font-size: 13px; }
.p-load-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--night-muted); }
.p-load-row b { color: var(--night-ink); font-weight: 500; }
.bar { height: 5px; border-radius: 99px; background: #ffffff12; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--c); transition: width .5s var(--ease); }
.p-load.hot { border-color: #e5786a77; background: #e5786a14; }
.p-load.hot .bar i { background: #e5786a; }
.p-load p { margin-top: 8px; color: #f3b3aa; }
.p-sec small { display: block; font-family: var(--mono); font-size: 10px; color: var(--night-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.p-staff { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.p-staff li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.p-staff b { font-weight: 500; }
.p-staff span:last-child { color: var(--night-muted); margin-left: auto; font-size: 12px; text-align: right; }
.mini { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, var(--night)); flex: none; }
.mini svg { width: 16px; height: 16px; color: #111; }
.hire { width: 100%; margin-top: 10px; height: 32px; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--night-ink); font-size: 12.5px; font-weight: 500; transition: background .15s; }
.hire:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }
.p-list { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.p-list li { display: flex; gap: 10px; align-items: flex-start; }
.p-list .st { flex: none; margin-top: 1px; }
.p-list .muted { color: var(--night-muted); }
.p-full, .p-more, .p-done { font-size: 12px; color: var(--night-muted); }
.p-full { margin-top: 8px; }
.p-done { margin-top: auto; font-family: var(--mono); font-size: 11px; }
.p-empty { padding: 16px; border-radius: var(--radius); border: 1px dashed var(--night-rule); font-size: 13px; color: var(--night-muted); }
.p-empty b { color: var(--night-ink); font-weight: 500; display: block; margin-bottom: 4px; }
.p-asks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.p-asks li { padding: 12px; border-radius: var(--radius); border: 1px solid #c9a14a55; background: #c9a14a12; font-size: 13px; }
.p-asks p { margin: 8px 0 10px; }
.p-asks div { display: flex; gap: 6px; }
.btn-mini { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--night-rule); background: transparent; color: var(--night-ink); font-size: 12px; }
.btn-mini.ok { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); font-weight: 500; }
.hq-panel .chip { background: color-mix(in srgb, var(--c) 25%, transparent); color: color-mix(in srgb, var(--c) 60%, #fff); }

.goal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--night-rule); background: #ffffff05; }
.goal input { flex: 1 1 260px; min-width: 0; height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--night-rule); background: var(--night); color: var(--night-ink); font-size: 14px; outline: none; transition: border-color .15s; }
.goal input:focus { border-color: var(--night-muted); }
.goal input::placeholder { color: var(--night-muted); }
.goal-send { height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--night-ink); background: var(--night-ink); color: var(--night); font-size: 13px; font-weight: 500; }
.goal-send:disabled { opacity: .6; }
.goal-chips { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; padding-left: 26px; }
.goal-chips button { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--night-rule); background: transparent; color: var(--night-muted); font-size: 12px; transition: color .15s, border-color .15s; }
.goal-chips button:hover { color: var(--night-ink); border-color: var(--night-muted); }
.hq-feed { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--night-rule); padding: 10px 16px; overflow: hidden; }
.feed-label { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--night-muted); text-transform: uppercase; letter-spacing: .08em; }
#feed { list-style: none; display: flex; flex-direction: column; height: 20px; overflow: hidden; font-size: 13px; flex: 1; min-width: 0; }
#feed li { height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .4s var(--ease); }
#feed li b { font-weight: 500; }
@keyframes feedIn { from { transform: translateY(100%); opacity: 0; } }
.demo-foot { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .hq-body { grid-template-columns: 1fr; }
  .hq-panel { border-left: 0; border-top: 1px solid var(--night-rule); }
  #office { min-height: 300px; }
}
@media (max-width: 560px) {
  .demo { padding-left: 0; padding-right: 0; }
  .demo-label, .demo-foot { padding: 0 var(--gutter); }
  .pick { border-radius: 0; border-left: 0; border-right: 0; padding: 14px 16px 10px; }
  .hq { border-radius: 0; }
  .hq-hint, .hq-live { display: none; }
  .goal-chips { padding-left: 0; }
  .goal .stepn { display: none; }
}

/* ---------- Home: workspace ---------- */
.ws { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ws-dept { border: 1px solid var(--line); border-top: 2px solid var(--c); border-radius: var(--radius); background: var(--surface); padding: 12px; font-size: 13px; }
.ws-dept b { display: block; font-weight: 600; margin-bottom: 4px; }
.ws-dept span { color: var(--ink-3); }
.ws-core { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ws-core div { background: var(--surface-2); padding: 10px 12px; font-size: 12.5px; }
.ws-core div b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-4); }
.ws-core .ws-title { grid-column: 1 / -1; background: var(--surface); font-weight: 500; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .ws { grid-template-columns: repeat(2, 1fr); } .ws-core { grid-template-columns: repeat(2, 1fr); } }
.handoffs { list-style: none; counter-reset: h; }
.handoffs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.handoffs li:last-child { border-bottom: 0; }
.handoffs li::before { counter-increment: h; content: counter(h); font-family: var(--mono); font-size: 11px; color: var(--ink-4); padding-top: 2px; }
.handoffs .chip { margin-right: 4px; }
.handoffs small { display: block; color: var(--ink-4); font-family: var(--mono); font-size: 11px; margin-top: 2px; }

/* ---------- Home: workforce ---------- */
.agent { display: flex; flex-direction: column; }
.agent-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.agent-av { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); flex: none; }
.agent-av svg { width: 15px; height: 15px; fill: none; stroke: color-mix(in srgb, var(--c) 75%, #000); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.agent-top h3 { margin: 0; font-size: 15px; }
.agent-top span { font-size: 12px; color: var(--ink-4); display: block; }
.agent h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); margin: 14px 0 6px; }
.agent .list { margin-top: 0; font-size: 13px; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; }
.tools span { font-size: 11.5px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); background: var(--surface-2); }
.tools span.soon { color: var(--ink-4); background: transparent; border-style: dashed; }
.done-ex { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.done-ex li { display: flex; gap: 8px; align-items: baseline; color: var(--ink-2); }
.done-ex .st { flex: none; }

/* ---------- Home: step-through ---------- */
.walk { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.walk-steps { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.walk-steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid transparent; background: none; font-size: 14px; color: var(--ink-3); }
.walk-steps button:hover { background: var(--hover); color: var(--ink); }
.walk-steps button[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.walk-steps .n { font-family: var(--mono); font-size: 11px; color: var(--ink-4); padding-top: 2px; }
.walk-steps b { display: block; font-weight: 500; }
.walk-steps small { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }
.walk-ctl { display: flex; gap: 6px; margin-top: 12px; padding-left: 12px; }
.walk-pane { min-height: 360px; }
.walk-pane .win-body { min-height: 320px; }
.req { padding: 10px 12px; border-radius: var(--radius); background: var(--ink); color: #fff; width: fit-content; max-width: 92%; margin-left: auto; font-size: 13.5px; }
.req-meta { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin: 6px 0 14px; }
.planbox { border: 1px solid var(--line); border-radius: var(--radius); }
.planbox > header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; }
.planbox > header b { font-weight: 600; }
.ptask { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ptask:last-child { border-bottom: 0; }
.ptask .id { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.ptask .t small { display: block; font-size: 11.5px; color: var(--ink-4); }
.ptask .r { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.ptask.arrive { animation: arrive .5s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } }
.verify { margin-top: 12px; border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); background: var(--green-soft); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }
.verify.fail { border-color: color-mix(in srgb, var(--red) 30%, transparent); background: var(--red-soft); }
.verify b { font-weight: 600; }
.verify ul { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.walk-cap { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) {
  .walk { grid-template-columns: minmax(0, 1fr); }
  .walk-steps { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .walk-steps li { flex: none; }
  .walk-steps button { grid-template-columns: auto; padding: 8px 10px; }
  .walk-steps small, .walk-steps .n { display: none; }
  .walk-ctl { padding-left: 0; }
  .ptask { grid-template-columns: 38px minmax(0, 1fr); }
  .ptask .r { grid-column: 2; justify-content: flex-start; }
}

/* ---------- Home: trust ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.trust .grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.trust .tcell { background: var(--surface); padding: 16px; }
.tcell h3 { font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tcell p { font-size: 13px; color: var(--ink-3); }
@media (max-width: 960px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.approval { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.ap-body { padding: 16px; }
.ap-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ap-time { font-family: var(--mono); font-size: 11px; color: var(--amber); }
.approval h4 { margin-top: 12px; font-size: 16px; }
.ap-amt { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 2px; }
.ap-amt span { font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.approval dl { margin-top: 12px; border-top: 1px solid var(--line); }
.approval dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.approval dt { font-family: var(--mono); font-size: 11px; color: var(--ink-4); padding-top: 2px; }
.ap-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ap-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); min-height: 1.5em; }

/* ---------- Home: principles, grow, library ---------- */
.principles .card p { font-size: 14px; }
.principles .pmark { width: 32px; height: 32px; margin-bottom: 14px; color: var(--ink); }
.grow-steps { list-style: none; }
.grow-steps li { padding: 16px; }
.grow-steps b { display: block; font-weight: 600; margin-top: 14px; font-size: 14px; }
.grow-steps p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.pandas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pandas i { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--ink); }
.pandas i svg { width: 66%; height: 66%; opacity: 0; }
.pandas i.on { border: 1px solid var(--line); background: var(--surface); }
.pandas i.on svg { opacity: 1; }
.lib { columns: 3 280px; column-gap: 12px; }
.lib-cat { break-inside: avoid; margin-bottom: 12px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.lib-cat h3 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); margin-bottom: 6px; }
.lib-cat ul { list-style: none; }
.lib-cat li + li { border-top: 1px solid var(--line); }
.lib-cat button { display: block; width: 100%; text-align: left; padding: 7px 0; border: 0; background: none; font-size: 14px; font-weight: 500; }
.lib-cat button span { display: block; font-size: 12px; font-weight: 400; color: var(--ink-4); margin-top: 1px; }
.lib-cat button:hover { color: var(--bamboo); }
.lib-any { background: var(--surface-2); }
.lib-any p { color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }

/* ---------- CTA band (every page) ---------- */
.cta { max-width: calc(var(--max) + 2 * var(--gutter)); margin: clamp(64px, 9vw, 112px) auto 0; padding: 0 var(--gutter); scroll-margin-top: 72px; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.cta-mark { width: 48px; height: 48px; margin-bottom: 18px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.cta-mark svg { width: 34px; height: 34px; color: var(--ink); }
.cta h2 { font-size: var(--t-xl); }
.cta p { color: #b9b8b2; margin-top: 10px; max-width: 46ch; }
.cta-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.cta .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn-primary:hover { background: #e9e8e3; }
.cta .btn-ghost-d { background: transparent; color: #fff; border-color: #3d3d3a; }
.cta .btn-ghost-d:hover { background: #2a2a28; }
.wait-box { background: #232321; border: 1px solid #33332f; border-radius: var(--radius-lg); padding: 18px; }
.wait-box h3 { font-size: 15px; }
.wait-box > p { font-size: 13px; margin: 4px 0 14px; }
.wait { display: flex; flex-direction: column; gap: 8px; }
.wait input { height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid #3a3a37; background: #1b1b1a; color: #fff; outline: none; font-size: 14px; }
.wait input::placeholder { color: #8f8e88; }
.wait input:focus { border-color: #8f8e88; }
.wait .btn { background: #fff; color: var(--ink); border-color: #fff; }
.wait .btn:hover { background: #e9e8e3; }
.wait-msg { min-height: 1.5em; margin-top: 10px; color: #d8d7d1; font-size: 13px; }
.wait-msg b { color: #fff; font-weight: 600; }
.cta .u { text-decoration-color: #66655f; }
@media (max-width: 820px) { .cta-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { display: flex; flex-direction: column; }
.plan.feature { border-color: var(--ink); box-shadow: var(--shadow); }
.plan .price { font-size: 32px; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .price span { font-size: 14px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan .for { font-size: 13px; color: var(--ink-3); min-height: 3em; }
.plan .list { margin: 16px 0 20px; flex: 1; }
.plan .btn { width: 100%; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent); background: var(--amber-soft); font-size: 13.5px; color: var(--ink-2); }
.callout b { color: var(--ink); font-weight: 600; }
.callout.info { border-color: var(--line); background: var(--surface-2); }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.docs-nav { position: sticky; top: 76px; font-size: 13.5px; }
.docs-nav h4 { font-size: 11px; font-weight: 500; color: var(--ink-4); margin: 16px 0 6px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 4px 8px; margin-left: -8px; border-radius: 6px; color: var(--ink-3); }
.docs-nav a:hover { background: var(--hover); color: var(--ink); }
.doc { max-width: 760px; }
.doc section { scroll-margin-top: 72px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: var(--t-xl); margin-bottom: 12px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ol.steps-n { list-style: none; counter-reset: s; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.doc ol.steps-n li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.doc ol.steps-n li::before { content: counter(s); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.doc .table-wrap { margin-top: 12px; }
.doc .list { margin-top: 8px; }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav h4 { display: none; }
  .docs-nav a { margin: 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 12.5px; }
}
.integ { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.integ .card { padding: 14px 16px; }
.integ h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.integ p { font-size: 13px; }
.integ .tools { margin-top: 8px; }
@media (max-width: 620px) { .integ { grid-template-columns: 1fr; } }

/* ---------- Use cases ---------- */
.uc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(48px, 7vw, 80px); margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.uc:first-of-type { border-top: 0; margin-top: 0; }
.uc h2 { font-size: var(--t-xl); }
.uc .lede { margin-top: 10px; font-size: var(--t-base); }
.uc .kv { margin-top: 16px; }
@media (max-width: 860px) { .uc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.nf { max-width: 560px; margin: 0 auto; padding: clamp(64px, 12vw, 140px) var(--gutter) 0; text-align: center; }
.nf img { width: 64px; height: 64px; margin: 0 auto 24px; }
.nf p { color: var(--ink-3); margin: 12px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
