/* 1-Dash by Qelo — styles
   The page leads with a working dashboard. The hero and the contact band are
   deep ledger green, the dashboard window is a light sheet on that desk, and
   everything after the hero is read on pale ledger paper.
   One family (Archivo) at three widths: condensed for headings, normal for
   reading, wide for the wordmark. Figures are tabular wherever they line up.
   The red pencil is kept for the wordmark dash and for overdue money.
   Chart colours were run through the dataviz validator (light surface #FBFCFA):
   series blue / orange / green pass all-pairs; blue leads so the charts don't read as QuickBooks green; the overdue ramp passes ordinal.
   Motion: the hero charts draw once on arrival; after that only on request. */

:root {
  color-scheme: light;
  --desk: #10251C;
  --desk-2: #17322A;
  --on-desk: #E9F0EA;
  --on-desk-2: #A9BDB1;
  --desk-rule: #2B4A3E;

  --paper: #EFF3EC;
  --sheet: #FBFCFA;
  --rail: #F1F5F0;
  --ink: #13261E;
  --ink-2: #435349;
  --ink-3: #5F6E66;
  --rule: #D3DFD3;
  --rule-2: #B5C8B8;
  --grid: #E3EAE2;
  --green: #1E7A55;
  --green-deep: #144D38;
  --green-soft: #DDEBE0;
  --red: #C4362A;

  /* Chart roles */
  --s1: #2F6DB5;
  --s2: #C9731C;
  --s3: #1E7A55;
  --od1: #E39A86;
  --od2: #D6705A;
  --od3: #C4483A;
  --od4: #982F25;
  --good: #0CA30C;
  --warn: #FAB219;
  --crit: #D03B3B;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --narrow: 80%;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; }
.display, h2 { font-stretch: var(--narrow); text-wrap: balance; }
.display {
  font-size: clamp(3rem, 6.6vw, 6rem);
  font-weight: 760;
  line-height: .9;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 54ch; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  padding: 0.82rem 1.3rem;
  border-radius: 4px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); }
.btn-light { background: var(--on-desk); color: var(--desk); }
.btn-light:hover { background: #fff; }

/* ---------- nav (sits on the desk) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--desk) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--on-desk);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--desk-rule); }
.nav .bar { display: flex; align-items: center; height: 68px; }
.brand { text-decoration: none; }
.brand .word {
  display: inline-flex; align-items: center;
  font-size: 1.5rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1;
}
.brand .dash { display: inline-block; width: 0.42em; height: 0.13em; background: #E0503F; margin: 0 0.07em 0 0.05em; }
.nav .by { margin: 0 auto 0 0.9rem; padding-left: 0.9rem; border-left: 1px solid var(--desk-rule); font-size: 0.86rem; color: var(--on-desk-2); line-height: 1.4; }
.links { display: flex; gap: 1.5rem; font-size: 0.92rem; margin-right: 1.5rem; }
.links a { color: var(--on-desk-2); text-decoration: none; }
.links a:hover { color: var(--on-desk); text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: 0.55rem 1rem; font-size: 0.9rem; background: var(--on-desk); color: var(--desk); }
.nav .btn:hover { background: #fff; }
.nav :focus-visible, .hero :focus-visible > .btn, .contact :focus-visible { outline-color: var(--on-desk); }
@media (max-width: 1060px) { .links { display: none; } }
@media (max-width: 520px) {
  .nav .bar { height: 58px; }
  .brand .word { font-size: 1.3rem; }
  .nav .by { margin-left: 0.6rem; padding-left: 0.6rem; font-size: 0.8rem; }
}

/* ---------- sections ---------- */
section { padding: var(--sec) 0; }
.rule { border-top: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.head p { margin: 0; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- hero: the desk ---------- */
.hero {
  background: var(--desk);
  color: var(--on-desk);
  padding-top: clamp(36px, 6vw, 84px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero .lead { color: var(--on-desk-2); margin-bottom: 1.5rem; }
.app-cap { margin: 1rem 0 0; font-size: 0.9rem; color: var(--on-desk-2); max-width: 80ch; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } }

/* ---------- the dashboard window ---------- */
.app {
  margin: clamp(36px, 5vw, 64px) 0 0;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 90px -30px rgba(0,0,0,.6);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.app-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.app-co { font-weight: 650; font-size: 0.98rem; margin-right: auto; }
.app-sync { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: var(--ink-3); }
.live-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

.seg { display: inline-flex; padding: 3px; background: var(--rail); border: 1px solid var(--rule); border-radius: 6px; }
.seg button {
  border: 0; background: none; cursor: pointer;
  padding: 0.3rem 0.7rem; border-radius: 4px;
  font-size: 0.84rem; font-weight: 550; color: var(--ink-2);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule-2); }
.seg.is-off { opacity: .4; pointer-events: none; }

.app-body { display: grid; grid-template-columns: 204px minmax(0, 1fr); min-height: 560px; }
.app-rail { background: var(--rail); border-right: 1px solid var(--rule); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.app-rail button {
  display: flex; gap: 0.7rem; align-items: flex-start; text-align: left;
  border: 0; background: none; cursor: pointer;
  padding: 0.65rem 0.7rem; border-radius: 6px;
  color: var(--ink-2);
}
.app-rail button:hover { background: color-mix(in srgb, var(--green-soft) 60%, transparent); color: var(--ink); }
.app-rail button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(19,38,30,.06); }
.app-rail svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-rail button[aria-selected="true"] svg { stroke: var(--green); }
.app-rail b { display: block; font-weight: 650; font-size: 0.95rem; line-height: 1.25; }
.app-rail small { display: block; font-size: 0.8rem; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }

.app-view { padding: 1rem; min-width: 0; outline: none; }
.app-view.is-swapping { animation: viewIn .35s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.app-foot {
  padding: 0.7rem 1.25rem; border-top: 1px solid var(--rule);
  font-size: 0.86rem; color: var(--ink-2); background: var(--rail);
}
.app-foot b { color: var(--ink); font-weight: 650; }

@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 0.5rem; scrollbar-width: none; }
  .app-rail button { flex: none; padding: 0.5rem 0.75rem; align-items: center; }
  .app-rail small { display: none; }
  .app-sync { display: none; }
}
@media (max-width: 520px) {
  .app-bar { padding: 0.65rem 0.75rem; }
  .app-co { width: 100%; }
  .app-view { padding: 0.6rem; }
}

/* ---------- dashboard parts ---------- */
.dash { display: grid; gap: 0.75rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.panel {
  grid-column: span 12;
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}
.panel.w3 { grid-column: span 3; }
.panel.w4 { grid-column: span 4; }
.panel.w5 { grid-column: span 5; }
.panel.w6 { grid-column: span 6; }
.panel.w7 { grid-column: span 7; }
.panel.w8 { grid-column: span 8; }
@media (max-width: 1100px) {
  .panel.w7, .panel.w5, .panel.w8, .panel.w4 { grid-column: span 12; }
  .panel.w3 { grid-column: span 6; }
}

.p-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.p-title { font-size: 0.92rem; font-weight: 650; margin: 0; }
.p-sub { font-size: 0.8rem; color: var(--ink-3); }
.p-head .legend { margin-left: auto; }

/* Stat tile */
.tile { display: flex; flex-direction: column; gap: 0.2rem; }
.tile .t-label { font-size: 0.82rem; color: var(--ink-2); }
.tile .t-value { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: proportional-nums; }
.tile .t-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.35rem 0.5rem; min-height: 26px; margin-top: auto; }
.tile .t-delta { font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.tile .t-delta .up, .tile .t-delta .down { font-weight: 650; }
.tile .t-delta .up { color: #13723F; }
.tile .t-delta .down { color: #B2322A; }
.tile svg.spark { width: 84px; height: 26px; overflow: visible; margin-left: auto; }
.tile.is-hero .t-value { font-size: clamp(1.9rem, 3vw, 2.6rem); }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.legend i.line { height: 2px; width: 14px; border-radius: 1px; }
.legend button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--rule); background: #fff; border-radius: 999px; cursor: pointer;
  padding: 0.18rem 0.6rem 0.18rem 0.45rem; font-size: 0.8rem; color: var(--ink);
}
.legend button[aria-pressed="false"] { color: var(--ink-3); }
.legend button[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-2); }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--rule-2); stroke-width: 1; }
.chart .tick { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .dlabel { fill: var(--ink); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .1; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; opacity: 0; }
.chart .hot { opacity: 0; }
.chart.is-hover .cross, .chart.is-hover .hot { opacity: 1; }
.chart .bar { transition: opacity .15s; }
.chart.is-hover .bar:not(.is-on) { opacity: .45; }
.chart .hit { fill: transparent; cursor: crosshair; }

/* draw-in, once */
.draw .series-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.2s var(--ease) .2s forwards; }
.draw .area { animation: fadeArea .8s ease .9s both; }
.draw .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .7s var(--ease) both; animation-delay: calc(.15s + var(--i) * 40ms); }
.draw .hbar { transform-origin: 0 50%; animation: growX .7s var(--ease) both; animation-delay: calc(.2s + var(--i) * 60ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { from { opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }

/* Horizontal bar list */
.hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.hlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; font-size: 0.86rem; align-items: baseline; }
.hlist .h-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist .h-val { font-weight: 600; }
.hlist .h-track { grid-column: 1 / -1; height: 8px; border-radius: 0 4px 4px 0; }
.hlist .hbar { display: block; height: 100%; background: var(--c, var(--s1)); border-radius: 0 4px 4px 0; }

/* Aging strip */
.aging { display: flex; gap: 2px; height: 28px; margin: 0.4rem 0 0.8rem; }
.aging span { display: block; height: 100%; background: var(--c); min-width: 4px; cursor: default; }
.aging span:first-child { border-radius: 4px 0 0 4px; }
.aging span:last-child { border-radius: 0 4px 4px 0; }
.aging.is-hover span:not(.is-on) { opacity: .45; }
.aging-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; font-size: 0.78rem; color: var(--ink-2); }
.aging-key div { display: flex; flex-direction: column; gap: 0.1rem; }
.aging-key i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); display: inline-block; margin-right: 0.35rem; vertical-align: -1px; }
.aging-key b { font-weight: 650; color: var(--ink); font-size: 0.9rem; }
@media (max-width: 520px) { .aging-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Data table inside the window */
.dt-wrap { overflow-x: auto; margin: 0 -1rem -1rem; }
.dt { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.dt th, .dt td { padding: 0.6rem 1rem; text-align: left; border-top: 1px solid var(--grid); white-space: nowrap; }
.dt th { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); background: var(--rail); border-top-color: var(--rule); }
.dt th button { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 600; color: inherit; display: inline-flex; gap: 0.3rem; align-items: center; }
.dt th button::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--rule-2); margin-top: 4px; }
.dt th[aria-sort="descending"] button::after { border-top-color: var(--ink); }
.dt th[aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: var(--ink); margin-top: -4px; }
.dt .num { text-align: right; }
.dt th.num button { flex-direction: row-reverse; }
.dt tbody tr:hover { background: color-mix(in srgb, var(--green-soft) 35%, #fff); }
.dt .c-name { font-weight: 600; }
.dt .c-led { display: block; font-size: 0.76rem; color: var(--ink-3); }
.dt .muted { color: var(--ink-3); }
.mini { display: inline-block; vertical-align: middle; width: 44px; height: 6px; background: var(--grid); border-radius: 0 3px 3px 0; margin-left: 0.5rem; }
.mini i { display: block; height: 100%; background: var(--s1); border-radius: 0 3px 3px 0; }

/* Status: always icon + label, never colour alone */
.st { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 550; }
.st svg { width: 14px; height: 14px; flex: none; }
.st-good svg { color: var(--good); }
.st-warn svg { color: #C98A00; }
.st-crit svg { color: var(--crit); }

/* Meters (days of stock cover) */
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.meters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; font-size: 0.86rem; }
.meters .m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meters .m-sku { color: var(--ink-3); font-size: 0.78rem; margin-left: 0.35rem; }
.meters .m-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.meters .m-fill { display: block; height: 100%; border-radius: 4px; background: var(--fill); }

.chips-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.fx { font-size: 0.8rem; color: var(--ink-3); margin: 0.5rem 0 0; }

/* Tooltip */
.tip {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--desk); color: var(--on-desk);
  padding: 0.5rem 0.65rem; border-radius: 6px;
  font-size: 0.8rem; line-height: 1.45; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: 240px;
}
.tip b { display: block; font-weight: 650; margin-bottom: 0.15rem; }
.tip .row { display: flex; align-items: center; gap: 0.45rem; justify-content: space-between; }
.tip .row span { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--on-desk-2); }
.tip .row i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.tip .row em { font-style: normal; font-weight: 600; color: var(--on-desk); }

/* ---------- sources diagram ---------- */
.pipe { margin: 0 0 clamp(36px, 5vw, 56px); }
.pipe svg { width: 100%; height: auto; font-family: var(--sans); }
.pipe .src rect { fill: var(--sheet); stroke: var(--rule-2); }
.pipe .src text { fill: var(--ink); font-size: 16px; font-weight: 600; }
.pipe .wires path { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.pipe .mid rect { fill: var(--desk); }
.pipe .mid text { fill: var(--on-desk-2); font-size: 14px; }
.pipe .mid text.b { fill: var(--on-desk); font-size: 16px; font-weight: 650; }
.pipe .screen > rect:first-child { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.pipe .screen .tile { fill: #DCE6F3; }
.pipe .screen .line { fill: none; stroke: var(--s1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pipe .screen .axis { stroke: var(--rule-2); }
@media (max-width: 640px) { .pipe { display: none; } }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.points h3 { margin-bottom: 0.5rem; }
.points p, .points li { color: var(--ink-2); font-size: 1rem; }
.points ul { margin: 0 0 1em; padding-left: 1.1rem; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* ---------- delivered work ---------- */
.builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.build { background: var(--sheet); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; }
.build.is-lead { grid-column: 1 / -1; background: #fff; }
.build.is-lead h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-stretch: var(--narrow); letter-spacing: -0.02em; }
.build h3 { margin-bottom: 0.6rem; }
.build p { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.b-kind { font-size: 0.85rem; color: var(--green); font-weight: 600; margin-bottom: 0.4rem; }
.sys { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }
.chip { font-size: 0.8rem; padding: 0.2rem 0.6rem; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-2); background: #fff; }
.chip.ok { border-color: var(--green); color: var(--green); font-weight: 600; background: var(--green-soft); }
@media (max-width: 760px) { .builds { grid-template-columns: 1fr; } }

/* ---------- MCP ---------- */
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mcp-grid h2 { margin-bottom: 1.2rem; }
.mcp-points { display: grid; gap: 1.4rem; margin-top: 2rem; }
.mcp-points h3 { margin-bottom: 0.4rem; }
.mcp-points p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.chat { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 10px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; }
.msg { padding: 0.65rem 0.9rem; border-radius: 10px; max-width: 88%; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--desk); color: var(--on-desk); border-bottom-right-radius: 3px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--rule); border-bottom-left-radius: 3px; }
.call { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-2); padding-left: 0.2rem; }
.call .fn { font-weight: 650; color: var(--ink); }
.call .tag { padding: 0.05rem 0.45rem; border-radius: 4px; background: var(--rail); border: 1px solid var(--rule); }
.call .tag.w { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
.chat-note { font-size: 0.82rem; color: var(--ink-3); margin: 0.4rem 0 0; }
@media (max-width: 860px) { .mcp-grid { grid-template-columns: 1fr; } }

/* ---------- offers ---------- */
.offer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.og-title { font-size: 1rem; color: var(--green); margin-bottom: 0.4rem; }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { padding: 0.9rem 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.2rem; }
.o-name { font-weight: 650; }
.o-desc { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .offer-groups { grid-template-columns: 1fr; } }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps h3::before { content: counter(step) "  "; color: var(--green); font-variant-numeric: tabular-nums; white-space: pre; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- contact (back on the desk) ---------- */
.contact { background: var(--desk); color: var(--on-desk); }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.contact h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .95; }
.contact .lead { color: var(--on-desk-2); margin-bottom: 1.5rem; }
.contact .addr { margin: 1rem 0 0; font-size: 0.93rem; color: var(--on-desk-2); }
.contact .addr span { color: var(--on-desk); }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; } }

footer { background: var(--desk); color: var(--on-desk-2); border-top: 1px solid var(--desk-rule); padding: 1.6rem 0; font-size: 0.88rem; }
footer .wrap { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer .wrap span:last-child { margin-left: auto; }
footer a { color: var(--on-desk); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Phone: tiles two-up, no sparklines */
@media (max-width: 520px) {
  .dash { gap: 0.5rem; }
  .panel { padding: 0.75rem 0.8rem 0.85rem; }
  .tile svg.spark { display: none; }
  .tile .t-value, .tile.is-hero .t-value { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw .series-line { stroke-dashoffset: 0; }
}
