/* Public website. Classic and credible: parchment, oxblood and brass; Playfair Display headings, Inter text (both self-hosted, OFL). See docs/brand.md. */
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900;
  font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/static/fonts/playfair-700.woff2") format("woff2"); font-weight: 700;
  font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f8f4ec; --band: #f0e8db; --card: #fffdf8; --ink: #2a2622; --ink-2: #4f4842; --muted: #6e655e;
  --line: #e4dccf; --accent: #6b1f2a; --accent-ink: #ffffff; --accent-2: #7a5c30;
  --dark: #3b1219; --dark-ink: #f8f4ec; --dark-ink-2: #e3cfc4; --radius: 14px;
  --good: #11704a; --good-bg: #e6f4ec; --bad: #b8322a; --bad-bg: #fbe9e7; --note: #fff4c2; --note-ink: #4d3f00;
  --hub: #6b1f2a; --push: #f6f1e9; --push-ink: #2a2622; --push-ink-2: #4f4842;
  --accent-soft: #f3e6e2; --grey-bar: #d8cbbb; --shadow: 0 10px 30px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141011; --band: #1c1617; --card: #221b1c; --ink: #f3ece2; --ink-2: #d2c6ba; --muted: #a3968b;
    --line: #352b2c; --accent: #e3a7ae; --accent-ink: #2a0d12; --accent-2: #d1b17a; --dark: #2a0d12;
    --good: #4fd18f; --good-bg: #12301f; --bad: #ff7a6e; --bad-bg: #3a1a17; --note: #3b3415; --note-ink: #f3e3a0;
    --hub: #8a2a37; --push: #2a2223; --push-ink: #f3ece2; --push-ink-2: #c9bcb0;
    --accent-soft: #2c1a1d; --grey-bar: #574a44; --shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: "Playfair", Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.012em; max-width: 18ch; }
h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 700; letter-spacing: -0.008em; margin-top: 0; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
p { text-wrap: pretty; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
section { padding: 104px 0; }
/* Two plain sections in a row share one gap instead of two. */
section:not([class]) + section:not([class]) { padding-top: 0; }
.band { background: var(--band); }

.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { display: block; height: 42px; width: auto; }
.foot-brand .logo img { height: 48px; }
.site-head nav { display: flex; gap: 4px; flex: 1; }
.site-head nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); background: var(--band); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1; height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12); transition: filter .15s, background .15s;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--band); filter: none; }
.btn.ghost.light { color: var(--dark-ink); border-color: rgba(255,255,255,.35); }
.btn.ghost.light:hover { background: rgba(255,255,255,.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.cta-row.center { justify-content: center; }

.hero { padding: 88px 0 104px; }
.hero.slim { padding: 80px 0 16px; }
.hero .lead, .lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; font-weight: 650; color: var(--accent-2); margin-bottom: 14px; }
.sec-head { margin-bottom: 56px; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-bottom: 14px; } .sec-head .lead { margin-bottom: 0; }
.fine { font-size: 13px; color: var(--muted); margin: 28px 0 0; }



.offer { background: var(--dark); color: var(--dark-ink); }
.offer { padding: 96px 0; }
.offer h2 { color: var(--dark-ink); margin-top: 0; } .offer .lead { color: var(--dark-ink-2); margin-left: auto; margin-right: auto; }
.offer .eyebrow { color: #e0c58f; }
.offer .btn:not(.ghost) { background: #fff; color: var(--dark); }
.offer .btn.ghost.light { background: transparent; }

.checks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--accent-2); font-weight: 800; }
.prose { max-width: 720px; } .prose p { color: var(--ink-2); } .prose p strong { color: var(--ink); }
.hero.slim + section { padding-top: 40px; }
.hero.slim.with-cta { padding-bottom: 56px; border-bottom: 1px solid var(--line); } .hero.slim.with-cta + section { padding-top: 88px; }
.prose h2 { margin-top: 1.6em; } .narrow h2 { margin-top: 1.4em; } .narrow h2:first-child { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; align-content: start; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; min-width: 0; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.req { color: var(--bad); } .field-err { color: var(--bad); font-size: 14px; font-weight: 500; }
.form-err { grid-column: 1 / -1; background: var(--bad-bg); color: var(--bad); padding: 10px 14px; border-radius: 10px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side h2 { font-family: inherit; font-size: 18px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; margin: 1.4em 0 .4em; } .contact-side h2:first-child { margin-top: 0; }
.contact-side ol { padding-left: 20px; color: var(--ink-2); margin: 0; } .contact-side li { margin-bottom: 6px; }

.site-foot { border-top: 1px solid var(--line); padding: 64px 0 32px; color: var(--ink-2); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; }
.foot-grid .foot-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-grid a { color: var(--ink-2); text-decoration: none; } .foot-grid a:hover { color: var(--ink); }
.foot-grid a.logo { color: var(--ink); }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-bottom a { color: var(--muted); text-decoration: none; } .foot-bottom a:hover { color: var(--ink); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; } .hero { padding: 48px 0 64px; } .offer { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; } .foot-grid { grid-template-columns: 1fr; gap: 28px; } .foot-bottom { margin-top: 32px; }
  .site-head .wrap { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 6px; }
  .site-head nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -8px; }
  .site-head { position: static; }
  .site-head .btn.small { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .btn { width: 100%; } .cta-row .btn { flex: 1 1 100%; } .site-head .btn.small { width: auto; }
}


/* ---------- graphics ---------- */
.center { text-align: center; }
.ico { width: 20px; height: 20px; flex: none; }

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid h1 { font-size: clamp(36px, 4.3vw, 54px); max-width: 17ch; }
.hero-grid .lead { max-width: 52ch; }
.hero-visual { min-width: 0; }
.hub-diagram { width: 100%; height: auto; display: block; overflow: visible; }
.d-wire { fill: none; stroke: var(--line); stroke-width: 2; }
.d-flow { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 3 14; stroke-linecap: round; animation: flow 1.8s linear infinite; }
.d-flow.out { stroke: var(--accent-2); }
.d-flow.d1 { animation-delay: -.3s; } .d-flow.d2 { animation-delay: -.6s; } .d-flow.d3 { animation-delay: -.9s; }
.d-flow.d4 { animation-delay: -1.2s; } .d-flow.d5 { animation-delay: -1.5s; }
@keyframes flow { to { stroke-dashoffset: -34; } }
.d-pill { fill: var(--card); stroke: var(--line); stroke-width: 1.2; filter: drop-shadow(0 2px 4px rgba(16,24,40,.06)); }
.d-pill.out { stroke: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.d-ico { color: var(--accent); } .d-ico.out { color: var(--accent-2); } .d-ico.hub { color: #fff; }
.d-label { font: 600 14.5px "Inter", system-ui, sans-serif; fill: var(--ink); }
.d-col { font: 700 11px "Inter", system-ui, sans-serif; letter-spacing: .1em; fill: var(--muted); }
.d-hub { fill: var(--hub); }
.d-halo { fill: var(--hub); opacity: .12; transform-origin: 310px 222px; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .04; transform: scale(1.12); } }
.d-hub-label { font: 750 14px "Inter", system-ui, sans-serif; fill: #fff; }
.d-hub-sub { font: 500 12px "Inter", system-ui, sans-serif; fill: rgba(255,255,255,.8); }
.hub-diagram.tall { display: none; max-width: 420px; margin: 0 auto; }
.d-halo.tall { transform-origin: 180px 268px; }
.d-tag { fill: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips.left { justify-content: flex-start; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip .ico { width: 17px; height: 17px; color: var(--accent); }
.chip.sm { font-size: 12.5px; padding: 5px 10px; } .chip.sm .ico { width: 15px; height: 15px; }

/* app-window mock */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
  font-size: 13px; line-height: 1.45; color: var(--ink); text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--band); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar span { margin-left: 8px; font-weight: 650; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 14px; }
.mock-foot { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

/* before / after */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 0; align-items: stretch; }
.ba-col { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.ba-tag { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px; margin-bottom: 20px; align-self: flex-start; }
.before .ba-tag { background: var(--bad-bg); color: var(--bad); } .after .ba-tag { background: var(--good-bg); color: var(--good); }
.ba-stage { position: relative; min-height: 236px; margin-bottom: 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.before .mock { transform: rotate(-1.5deg); max-width: 330px; }
.mini-sheet { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.mini-sheet td { border: 1px solid var(--line); padding: 4px 7px; font-size: 12px; text-align: right; color: var(--ink-2); }
.mini-sheet tr:first-child td, .mini-sheet td:first-child { background: var(--band); font-weight: 600; text-align: left; }
.mini-sheet td.bad { color: var(--bad); background: var(--bad-bg); font-weight: 700; }
.note { position: absolute; background: var(--note); color: var(--note-ink); padding: 10px 12px; border-radius: 4px; font-size: 12.5px;
  width: 120px; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.note b { display: block; font-size: 20px; }
.note.n1 { right: 6px; top: 64px; transform: rotate(4deg); } .note.n2 { right: 46px; top: 140px; transform: rotate(-3deg); }
.ba-list { list-style: none; padding: 24px 0 0; margin: auto 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.ba-list li { display: flex; gap: 12px; align-items: center; font-weight: 550; font-size: 15.5px; }
.ba-list .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; box-sizing: content-box; }
.before .ba-list .ico { color: var(--bad); background: var(--bad-bg); } .after .ba-list .ico { color: var(--good); background: var(--good-bg); }
.ba-arrow { align-self: center; display: grid; place-items: center; }
.ba-arrow span { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.ba-arrow .ico { width: 24px; height: 24px; }
.notif { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.notif .ico { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); box-sizing: border-box; }
.notif strong { display: block; font-size: 14px; } .notif span { font-size: 12.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--good); }
.kpi em::before { content: "▲ "; }

/* gallery */
.show-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.show-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 26px; display: flex; flex-direction: column; }
.show-visual { background: var(--band); border-radius: 10px; padding: 20px; height: 300px; display: grid; align-items: center; margin-bottom: 22px; overflow: hidden; }
.show-card > h3, .show-card > p { padding: 0 12px; }
.show-visual > .mock { box-shadow: 0 6px 18px rgba(16,24,40,.07); }
.show-card > h3 { margin-bottom: 4px; } .show-card > p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

.found { display: grid; gap: 10px; }
.found-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.found-flow { display: flex; justify-content: center; gap: 6px; }
.found-flow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
.found-flow i:nth-child(2) { animation-delay: .2s; } .found-flow i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.found-db { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--accent-soft); }
.found-db .ico { width: 30px; height: 30px; color: var(--accent); }
.found-db strong { display: block; font-size: 14px; }
.live { font-size: 11.5px; color: var(--good); font-weight: 600; } .live::before { content: "● "; }
.def { font-size: 12px; color: var(--ink-2); border-left: 3px solid var(--accent-2); padding: 2px 0 2px 9px; }
.def em { display: block; font-style: normal; color: var(--muted); font-size: 11px; }

.mini-score { width: 100%; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.mini-score th { font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: right; white-space: nowrap; }
.mini-score tbody th { text-align: left; color: var(--ink); font-size: 11.5px; width: 20%; white-space: normal; line-height: 1.2; }
.mini-score td { font-size: 11.5px; font-weight: 700; text-align: right; padding: 5px 3px; border-radius: 4px; white-space: nowrap; }
.mini-score td.hit { color: var(--good); background: var(--good-bg); } .mini-score td.miss { color: var(--bad); background: var(--bad-bg); }
.mini-score td.miss::before { content: "×"; font-weight: 600; margin-right: 1px; }

.dash { position: relative; }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.legend .la::before { background: var(--accent); } .legend .lb::before { background: var(--grey-bar); }
.mini-chart { width: 100%; height: auto; display: block; }
.grid-l { stroke: var(--line); stroke-width: 1; }
.bar-a { fill: var(--accent); } .bar-a.hl { fill: var(--accent-2); } .bar-b { fill: var(--grey-bar); }
.axis text { font: 500 9px "Inter", system-ui, sans-serif; fill: var(--muted); }
.tip { position: absolute; right: 2px; top: 14px; display: flex; gap: 6px; align-items: flex-start; background: var(--ink); color: var(--bg);
  border-radius: 8px; padding: 7px 10px; font-size: 11.5px; box-shadow: var(--shadow); }
.tip .ico { width: 15px; height: 15px; margin-top: 1px; } .tip strong { display: block; } .tip span { opacity: .75; }

.old-file { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.old-file .ico { width: 15px; height: 15px; color: var(--good); }
.mini-tool { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-tool td { padding: 6px 2px; border-bottom: 1px solid var(--line); }
.mini-tool .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sel { display: inline-block; padding: 1px 18px 1px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; position: relative; color: var(--ink-2); }
.sel::after { content: "▾"; position: absolute; right: 5px; top: 0; color: var(--muted); }
.tool-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 11.5px; }
.tool-foot span { display: flex; align-items: center; gap: 4px; color: var(--good); font-weight: 600; } .tool-foot .ico { width: 14px; height: 14px; }
.tool-foot strong { font-size: 16px; }

.phone-mock { width: 230px; margin: 0 auto; border-radius: 26px; padding: 12px 10px 14px; background: #121417; border: 1px solid var(--line); }
.phone-notch { width: 70px; height: 16px; border-radius: 10px; background: #000; margin: 0 auto 12px; opacity: .6; }
.push-stack { display: grid; gap: 7px; }
.push { display: flex; gap: 8px; align-items: flex-start; background: var(--push); color: var(--push-ink);
  border-radius: 12px; padding: 8px 9px; font-size: 11px; line-height: 1.3; }
.push .ico { width: 24px; height: 24px; padding: 4px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); box-sizing: border-box; }
.push.p1 .ico { background: var(--bad); } .push.p2 .ico { background: var(--accent-2); }
.push div { flex: 1; min-width: 0; } .push strong { display: block; font-size: 11.5px; } .push span { color: var(--push-ink-2); }
.push time { font-size: 10px; color: var(--muted); }
.push.p0 { animation: drop .6s ease-out both; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

.chat { display: grid; gap: 10px; }
.bubble { border-radius: 14px; padding: 9px 12px; font-size: 12.5px; max-width: 92%; }
.bubble.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bubble.ai { display: flex; gap: 8px; background: var(--band); border-bottom-left-radius: 4px; }
.bubble.ai > .ico { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.bubble p { margin: 0 0 6px; }
.cite { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); } .cite .ico { width: 13px; height: 13px; }

/* agents */
.agents-band { background: linear-gradient(180deg, var(--accent-soft), var(--bg) 85%); padding-bottom: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split + .sys-title { margin-top: 72px; }
.agent-list { display: grid; gap: 4px; }
.agent-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.agent-row:last-child { border-bottom: 0; }
.agent-row > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--accent); box-sizing: border-box; }
.agent-row h3 { font-size: 16.5px; margin-bottom: 2px; } .agent-row p { margin: 0; color: var(--ink-2); font-size: 15px; text-wrap: wrap; }
.split p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
.split h2 + p { margin-top: 4px; }
.split.even { align-items: start; }
.approve-note { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 40px 0 0; font-weight: 550; font-size: 15px; color: var(--ink-2); }
.approve-note .ico { color: var(--accent-2); }
.brief ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.brief-hi { font-weight: 650; margin-bottom: 8px; }
.agent-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; box-shadow: 0 1px 2px rgba(16,24,40,.04); display: flex; flex-direction: column; }
.agent-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.agent-card h3 { font-size: 17px; margin-bottom: 4px; } .agent-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; flex: 1; }
.agent-btns { display: flex; gap: 6px; }
.agent-btns span { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 8px; }
.b-ok { background: var(--accent); color: var(--accent-ink); } .b-edit { border: 1px solid var(--line); color: var(--ink-2); }
.b-done { background: var(--good-bg); color: var(--good); }

/* steps */
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; text-align: center; }
.flow-steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 2px dashed var(--line); }
.flow-steps li { position: relative; }
.step-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 14px; position: relative; }
.step-ico .ico { width: 28px; height: 28px; }
.flow-steps small { display: block; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.flow-steps h3 { margin: 2px 0 4px; } .flow-steps p { color: var(--ink-2); font-size: 15px; margin: 0 auto; max-width: 24ch; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.why > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); box-sizing: border-box; margin-bottom: 18px; }
.why h3 { font-size: 17px; margin-bottom: 6px; } .why p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }

/* what-we-build page */
.sys-title { margin-bottom: 20px; }
.sys-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sys { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.sys .ico { width: 26px; height: 26px; color: var(--accent); }
.host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.host { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.host .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 6px; }
.host h3 { font-size: 17px; margin-bottom: 2px; } .host p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

@media (max-width: 1000px) {
  .show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hub-diagram.wide { display: none; } .hub-diagram.tall { display: block; }
  .ba { grid-template-columns: 1fr; } .ba-arrow span { transform: rotate(90deg); }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .flow-steps::before { display: none; }
}
@media (max-width: 760px) {
  .show-grid, .why-grid, .host-grid { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .show-visual { height: auto; min-height: 0; padding: 16px; }
  .ba-col { padding: 18px; } .before .ba-stage { justify-content: flex-start; padding-bottom: 84px; }
  .before .mini-sheet td { padding: 4px 5px; font-size: 11.5px; }
  .note { width: 112px; font-size: 11.5px; } .note b { font-size: 17px; }
  .note.n1 { top: auto; right: auto; left: 18px; bottom: 6px; } .note.n2 { top: auto; right: 18px; bottom: 0; }
  .approve-note { border-radius: 14px; align-items: flex-start; }
}
@media (max-width: 760px) {
  .why { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 22px; }
  .why > .ico { grid-row: span 2; margin: 0; }
  .why h3 { margin: 2px 0 4px; }
  .eyebrow { text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  .d-flow, .d-halo, .found-flow i, .push.p0 { animation: none; }
}


/* ---------- refinement pass ---------- */
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .ico { width: 16px; height: 16px; color: var(--good); }
.who { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.who-row { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.who-label { margin: 0; font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.who-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.who-note { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1 1 260px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 20px; color: var(--ink-2); max-width: 64ch; }
.offer { position: relative; overflow: hidden; }
.offer::after { content: ""; position: absolute; width: 440px; height: 440px; right: -110px; bottom: -150px; opacity: .07;
  background: url("/static/brand/seal-reversed.svg") center / contain no-repeat; pointer-events: none; }
.offer .wrap { position: relative; z-index: 1; }
.factors { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.factors li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.factors .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); box-sizing: border-box; }
.about-split { align-items: center; }
.about-seal { display: grid; place-items: center; }
.about-seal img { width: min(280px, 70vw); height: auto; }
@media (max-width: 900px) { .about-seal img { width: 160px; } }
@media (max-width: 760px) {
  .who-row { gap: 10px; } .offer::after { width: 300px; height: 300px; right: -120px; bottom: -120px; }
}

/* Demo picker */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.demo-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.demo-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.demo-card > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  box-sizing: border-box; margin-bottom: 14px; }
.demo-card .eyebrow { margin: 0 0 4px; }
.demo-card h3 { margin: 0 0 8px; font-size: 20px; }
.demo-card p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 12px; }
.demo-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.demo-card li { margin: 3px 0; }
.demo-go { margin-top: auto; font-weight: 600; color: var(--accent); }

/* A demo shown inside the site */
.wrap.wide { max-width: 1440px; }
.demo-stage { padding: 20px 0 40px; }
.demo-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.demo-tabs a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
  text-decoration: none; font-size: 15px; background: var(--card); }
.demo-tabs a:hover { border-color: var(--accent); color: var(--ink); }
.demo-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.demo-bar h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 4px; }
.demo-bar p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.demo-bar-actions { display: flex; align-items: center; gap: 16px; }
.demo-full { color: var(--ink-2); font-size: 15px; }
.demo-frame { display: block; width: 100%; height: calc(100vh - 210px); min-height: 640px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 30px rgba(16, 24, 40, .08); }
@media (max-width: 760px) {
  .demo-stage { padding: 10px 0 24px; }
  .demo-tabs { margin-bottom: 10px; }
  .demo-tabs a { padding: 6px 12px; font-size: 14px; }
  .demo-bar { margin-bottom: 10px; flex-wrap: nowrap; gap: 12px; }
  .demo-bar h1 { font-size: 20px; margin: 0; }
  .demo-bar p { display: none; }
  .demo-bar-actions .btn.small { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .demo-frame { height: calc(100vh - 120px); min-height: 520px; border-radius: 10px; }
}



/* Explainer video: wide cut, or the tall cut on phones; a still instead for reduced motion. */
.explainer { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #f5efe4; }
.explainer-video, .explainer-still img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #f5efe4; }
.explainer-video.tall, .explainer-still { display: none; }
@media (max-width: 640px) {
  .explainer-video.wide { display: none; }
  .explainer-video.tall { display: block; }
  .explainer-video.tall, .explainer-still img { aspect-ratio: 2 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .explainer-video.wide, .explainer-video.tall { display: none; }
  .explainer-still { display: block; }
}

/* Short pages: the footer sits at the bottom of the screen. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
.not-found .lead { margin-bottom: 20px; }
.nf-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nf-links a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); font-weight: 600; text-decoration: none; }
.nf-links a:hover { border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }

/* Keyboard users: a skip link and a clear focus ring everywhere. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer :focus-visible { outline-color: var(--dark-ink); }
/* Bigger tap targets for small text links. */
.foot-bottom a, .contact-form .small a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.fine.spaced { margin-top: 28px; }
img.seen { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
h1 { overflow-wrap: anywhere; }
@media (max-width: 340px) { .before .mini-sheet td { padding: 3px; font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Overview video (What we build): plays on request; the tall cut on phones. */
.overview { max-width: 1040px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #f4efe3; }
.overview-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #f4efe3; }
.overview-video.tall { display: none; aspect-ratio: 2 / 3; }
@media (max-width: 640px) { .overview-video.wide { display: none; } .overview-video.tall { display: block; } }
.overview + .fine { margin-top: 14px; }
.split .chips + p { margin-top: 16px; }

/* three services on one foundation (home), What you receive (What we build) */
.show-card.service .eyebrow { margin: 4px 0 2px; }
.show-card.service .checks { margin: 10px 0 0; font-size: 15px; }
.show-card.service .checks li { padding: 6px 0 6px 28px; } .show-card.service .checks li::before { top: 6px; }
.foundation-bar { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--line); }
.foundation-bar .ico { width: 30px; height: 30px; flex: none; color: var(--accent); }
.foundation-bar p { margin: 0; color: var(--ink-2); }
.receive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scope-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.scope-cols > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.scope-cols h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 6px; }
.scope-cols h3 .ico { width: 20px; height: 20px; color: var(--accent); }
.scope-cols p { margin: 0; color: var(--ink-2); }
.sys-grid + .fine { margin-top: 18px; }
@media (max-width: 900px) { .receive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .receive-grid, .scope-cols { grid-template-columns: 1fr; } }
.contact-form details.more { border-top: 1px solid var(--line); padding-top: 12px; }
.contact-form details.more summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--accent); padding: 6px 0; }
.contact-form .more-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 12px; }
@media (max-width: 640px) { .contact-form .more-fields { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .explainer-video, :root:not([data-theme="light"]) .explainer-still img,
  :root:not([data-theme="light"]) .overview-video { filter: brightness(.88); }
}
