/* Circle — marketing site. Single-theme (dark) by design: the page is
   the product's loud front door. Every color is a token; the app's own
   Apple-blue accent (#0071e3 family) is kept for trust, amber is spent only on
   the buy moments. No full-screen blur anywhere (perf rule). */
:root {
  --ink: #07090f; --ink-2: #0d1119; --ink-3: #131927; --ink-4: #1a2132;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f2f4f8; --text-2: #aab3c5; --text-3: #7c8699;
  --blue: #2f7cff; --blue-2: #0071e3; --cyan: #33d3ff; --hot: #ffb020; --hot-2: #ff7a1a;
  --green: #34d399; --amber: #fbbf24; --red: #ff5a5f; --chat: #2aabee;
  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px; --gut: 20px; --r: 14px; --r-lg: 22px;
  --nav-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.55 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 820px; }
.mono { font-family: var(--mono); font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hot); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ── Type ─────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--display); font-weight: 900; letter-spacing: -.045em; line-height: .94;
  font-size: clamp(2.6rem, 5.6vw, 5.1rem); margin: 0 0 .35em; text-wrap: balance;
}
.h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.9rem); margin: 0 0 .5em; text-wrap: balance; max-width: 22ch;
}
.kicker, .eyebrow {
  font-family: var(--mono); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 1.1em;
}
.eyebrow { color: var(--hot); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 58ch; margin: 0 0 1.6em; }
.p { color: var(--text-2); max-width: 62ch; font-size: 1.08rem; }
.note { color: var(--text-3); font-size: .92rem; max-width: 70ch; margin-top: 2rem; }
h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-hot { background: linear-gradient(120deg, var(--hot), var(--hot-2)); color: #140a00; box-shadow: 0 8px 30px rgba(255,150,32,.28); }
.btn-hot:hover { box-shadow: 0 12px 40px rgba(255,150,32,.42); }
.btn-line { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-line:hover { background: rgba(255,255,255,.09); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-xl { padding: 1em 1.7em; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7,9,15,.72); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,9,15,.86); }
.nav-row { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 1.12rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-weight: 900; color: var(--cyan); }
.brand span { white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: .98rem; gap: 8px; } .brand img { width: 28px; height: 28px; } .nav-cta { gap: 6px; } .nav-row { gap: 12px; } }
.nav-links { display: none; gap: 22px; margin-left: 16px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: .55em 1em; font-size: .9rem; min-height: 38px; }
.nav-cta .btn-ghost { display: none; }
.nav-cta .btn-signin { padding-inline: .9em; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang button { background: transparent; border: 0; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; color: var(--text-3); cursor: pointer; letter-spacing: .04em; }
.lang button.on { background: var(--text); color: var(--ink); }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-cta .btn-ghost { display: inline-flex; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 56px; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(47,124,255,.32), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(51,211,255,.16), transparent 60%),
    radial-gradient(30% 30% at 60% 70%, rgba(255,176,32,.12), transparent 60%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.proof li { font-size: .82rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.03); }
.hero-stage .stage { aspect-ratio: 4 / 3.3; }
@media (min-width: 1000px) {
  .hero { padding-top: calc(var(--nav-h) + 84px); padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .hero-stage .stage { aspect-ratio: 4 / 3.6; }
}

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding: 14px 0; }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text-2); white-space: nowrap; }
.marquee-track span::before { content: '●'; color: var(--hot); font-size: .55em; margin-right: 42px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-dark { background: #05070b; }
.section-hot { background: linear-gradient(180deg, #0a0d15, #120d05); border-top: 1px solid var(--line); }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

/* ── Steps (the flow) ─────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; margin-top: 12px; }
.step { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
.step-n { color: var(--cyan); font-size: 1.05rem; margin-bottom: 14px; }
.step h3 { font-size: 1.32rem; }
.step p { color: var(--text-2); margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ── Pain ─────────────────────────────────────────────────────────────── */
.pain-grid { display: grid; gap: 18px; }
.pain { padding: 26px; border-radius: var(--r-lg); background: var(--ink-3); border: 1px solid var(--line); }
.pain h3 { font-size: 1.35rem; color: var(--text); }
.pain p { margin: 0; color: var(--text-2); }
.pain p::before { content: '→ '; color: var(--hot); font-weight: 700; }
@media (min-width: 800px) { .pain-grid { grid-template-columns: 1fr 1fr; } }

/* ── Bento ────────────────────────────────────────────────────────────── */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cell { padding: 24px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cell-tag { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.cell h3 { font-size: 1.25rem; }
.cell p { margin: 0; color: var(--text-2); font-size: .98rem; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell-wide { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } .cell-wide { grid-column: span 2; } .cell-wide h3 { font-size: 1.5rem; } }

/* ── Theater ──────────────────────────────────────────────────────────── */
.theater { display: grid; gap: 18px; margin-top: 12px; }
.theater-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.theater-tabs::-webkit-scrollbar { display: none; }
.theater-tabs button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.theater-tabs button .mono { color: var(--text-3); font-size: .78rem; }
.theater-tabs button.on { color: var(--text); border-color: var(--cyan); background: rgba(51,211,255,.08); }
.theater-tabs button.on .mono { color: var(--cyan); }
.theater-stage .stage { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .theater { grid-template-columns: 260px 1fr; }
  .theater-tabs { flex-direction: column; overflow: visible; }
  .theater-tabs button { justify-content: flex-start; text-align: left; padding: 14px 16px; }
}
@media (max-width: 640px) { .theater-stage .stage { aspect-ratio: 4 / 5; } }

/* ── Stage + device frames (used by demos.js) ─────────────────────────── */
.stage {
  position: relative; container-type: inline-size; width: 100%; max-width: 100%;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 70% at 30% 20%, #16203a 0%, #0b0f18 60%, #07090f 100%);
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.stage-cap {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5; padding: 12px 16px;
  display: flex; align-items: baseline; gap: 12px; font-size: .92rem; font-weight: 600; color: var(--text);
  background: linear-gradient(180deg, rgba(7,9,15,.92), rgba(7,9,15,0));
  min-height: 56px;
}
.stage-cap .mono { color: var(--hot); font-size: .78rem; flex: 0 0 auto; }
.stage-cap span:last-child { transition: opacity .25s ease; }
.stage-cap.fade span:last-child { opacity: 0; }
.stage-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); z-index: 6; }
.stage-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stage-ctl { position: absolute; right: 10px; bottom: 10px; z-index: 6; display: flex; gap: 6px; }
.stage-ctl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(7,9,15,.7); color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: .9rem; }
.stage-ctl button:hover { background: rgba(255,255,255,.12); }

.dev-desk {
  position: absolute; left: 3%; top: 15%; width: 72%; height: 78%;
  background: #0f1420; border: 1px solid var(--line-2); border-radius: 1.4cqw; overflow: hidden;
  display: flex; flex-direction: column; font-size: 1.45cqw; line-height: 1.35;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); color: var(--text);
}
.dk-top { display: flex; align-items: center; gap: .5em; padding: .7em 1em; border-bottom: 1px solid var(--line); background: #0b0f17; font-size: .95em; color: var(--text-3); }
.dk-top i { width: .75em; height: .75em; border-radius: 50%; background: #3a4256; }
.dk-top i:first-child { background: #ff5f57; } .dk-top i:nth-child(2) { background: #febc2e; } .dk-top i:nth-child(3) { background: #28c840; }
.dk-top span { margin-left: .6em; }
.dk-body { display: flex; flex: 1; min-height: 0; }
.dk-side { width: 22%; border-right: 1px solid var(--line); padding: .8em .5em; display: flex; flex-direction: column; gap: .25em; background: #0c1119; }
.dk-side span { padding: .45em .7em; border-radius: .5em; color: var(--text-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-side span.on { background: rgba(47,124,255,.18); color: var(--text); }
.dk-main { flex: 1; min-width: 0; padding: 1em 1.1em; overflow: hidden; position: relative; }
.dk-h { font-family: var(--display); font-weight: 800; font-size: 1.35em; letter-spacing: -.02em; margin: 0 0 .6em; display: flex; align-items: center; gap: .6em; }
.dk-h small { font-weight: 500; font-size: .7em; color: var(--text-3); font-family: var(--body); }
.dk-list { display: flex; flex-direction: column; gap: .4em; }
.dk-row { display: grid; grid-template-columns: 1.15fr 1.5fr 1fr auto; gap: .8em; align-items: center; padding: .6em .8em; border-radius: .6em; background: rgba(255,255,255,.03); border: 1px solid transparent; transition: background .3s, border-color .3s, opacity .3s, transform .3s; }
.dk-row.new { border-color: var(--hot); background: rgba(255,176,32,.08); }
.dk-row.enter { animation: rowIn .45s ease both; }
.dk-row .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-row .lane { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-row .amt { font-family: var(--mono); text-align: right; }
.chip { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .78em; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.08); color: var(--text-2); transition: background .3s, color .3s; }
.chip.blue { background: rgba(47,124,255,.2); color: #8fb8ff; } .chip.green { background: rgba(52,211,153,.18); color: var(--green); }
.chip.amber { background: rgba(251,191,36,.18); color: var(--amber); } .chip.red { background: rgba(255,90,95,.18); color: var(--red); }
.chip.purple { background: rgba(167,139,250,.2); color: #c4b5fd; } .chip.grey { background: rgba(255,255,255,.08); color: var(--text-3); }
.dk-card { border: 1px solid var(--line-2); border-radius: .8em; padding: .8em .9em; background: rgba(255,255,255,.03); animation: rowIn .45s ease both; }
.dk-card.hot { border-color: var(--hot); box-shadow: 0 0 0 .25em rgba(255,176,32,.12); }
.dk-card .t { font-weight: 700; margin-bottom: .2em; }
.dk-card .s { color: var(--text-3); font-size: .9em; }
.dk-kv { display: grid; grid-template-columns: auto 1fr; gap: .25em .9em; margin-top: .6em; font-size: .95em; }
.dk-kv b { color: var(--text-3); font-weight: 500; }
.dk-kv span { font-family: var(--mono); opacity: 0; transform: translateX(-.3em); transition: opacity .3s, transform .3s; }
.dk-kv span.in { opacity: 1; transform: none; }
.dk-toast { position: absolute; left: 1em; right: 1em; bottom: .9em; padding: .7em .9em; border-radius: .7em; background: #16233a; border: 1px solid rgba(47,124,255,.5); font-weight: 600; animation: rowIn .35s ease both; display: flex; gap: .6em; align-items: center; }
.dk-toast::before { content: ''; width: .6em; height: .6em; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.dk-btn { display: inline-block; padding: .5em .9em; border-radius: .6em; background: var(--blue-2); color: #fff; font-weight: 700; font-size: .95em; position: relative; }
.dk-line { display: flex; justify-content: space-between; gap: 1em; padding: .35em 0; border-bottom: 1px dashed var(--line); font-size: .95em; }
.dk-line span:last-child { font-family: var(--mono); }
.dk-line.total { border-bottom: 0; font-weight: 700; font-size: 1.05em; padding-top: .6em; }
.dk-line.total span:last-child { color: var(--green); }
.hos { display: flex; flex-direction: column; gap: .55em; }
.hos-row { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: .7em; align-items: center; font-size: .95em; }
.hos-row .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hos-bar { height: .6em; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.hos-bar i { display: block; height: 100%; border-radius: 999px; background: var(--green); transition: width 1.2s ease, background .4s; }
.hos-bar i.amber { background: var(--amber); } .hos-bar i.red { background: var(--red); }
.hos-row .mono { font-size: .9em; }
.map { width: 100%; height: 100%; display: block; }
.map .rd { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.4; }
.map .rd.hi { stroke: rgba(47,124,255,.5); }
.map .truck { transition: transform 2.4s ease; }
.map .truck circle { fill: var(--cyan); stroke: #07090f; stroke-width: 1.2; }
.map .truck text { fill: var(--text); font: 600 6px var(--mono); }
.map .truck.alert circle { fill: var(--red); animation: pulse 1s ease infinite; }
.map .city { fill: var(--text-3); font: 500 5.5px var(--body); }
.map .dot { fill: rgba(255,255,255,.35); }
.assist { display: flex; flex-direction: column; gap: .6em; height: 100%; }
.assist .q, .assist .a { max-width: 88%; padding: .7em .9em; border-radius: .9em; animation: rowIn .3s ease both; }
.assist .q { align-self: flex-end; background: var(--blue-2); color: #fff; border-bottom-right-radius: .25em; }
.assist .a { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: .25em; }
.assist .a b { color: var(--cyan); }
.assist .typing::after { content: '▍'; animation: blink .8s steps(1) infinite; color: var(--cyan); }
.assist .dots span { display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: var(--text-3); margin-right: .25em; animation: bounce 1s ease infinite; }
.assist .dots span:nth-child(2) { animation-delay: .15s; } .assist .dots span:nth-child(3) { animation-delay: .3s; }
.assist-in { margin-top: auto; border: 1px solid var(--line-2); border-radius: .8em; padding: .6em .9em; color: var(--text-3); font-size: .95em; }

.dev-phone {
  position: absolute; right: 3%; bottom: 0; width: 30%; height: 82%;
  background: #0b0f16; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 2.4cqw 2.4cqw 0 0; overflow: hidden;
  display: flex; flex-direction: column; font-size: 1.5cqw; line-height: 1.35; color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 .35cqw #1a2132;
}
.ph-top { display: flex; align-items: center; gap: .6em; padding: .9em .9em .7em; background: #111722; border-bottom: 1px solid var(--line); }
.ph-top .av { width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #04101c; flex: 0 0 auto; }
.ph-top b { display: block; font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-top small { display: block; color: var(--text-3); font-size: .78em; }
.ph-body { flex: 1; min-height: 0; overflow: hidden; padding: .8em .7em; display: flex; flex-direction: column; gap: .5em; justify-content: flex-end; }
.ph-pin { font-size: .8em; color: var(--chat); border-bottom: 1px solid var(--line); padding-bottom: .4em; margin-bottom: .2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-msg { max-width: 92%; padding: .6em .75em; border-radius: .9em; background: #1c2430; animation: rowIn .35s ease both; font-size: .95em; }
.ph-msg.me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: .25em; }
.ph-msg.bot { border-bottom-left-radius: .25em; }
.ph-msg small { color: var(--text-3); font-size: .82em; display: block; margin-top: .15em; }
.ph-msg .doc { display: flex; align-items: center; gap: .5em; margin-top: .4em; padding: .45em .55em; border-radius: .5em; background: rgba(255,255,255,.06); }
.ph-msg .doc i { width: 1.6em; height: 1.9em; border-radius: .25em; background: var(--red); flex: 0 0 auto; display: grid; place-items: center; font-style: normal; font-size: .6em; font-weight: 800; }
.ph-kb { display: grid; grid-template-columns: 1fr 1fr; gap: .3em; margin-top: .5em; }
.ph-kb span { position: relative; text-align: center; padding: .45em .3em; border-radius: .5em; background: rgba(42,171,238,.18); color: #9ed7ff; font-weight: 600; font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .25s, color .25s; }
.ph-kb span.wide { grid-column: span 2; }
.ph-kb span.on { background: var(--chat); color: #fff; }
.ph-kb span.tap::after, .dk-btn.tap::after { content: ''; position: absolute; inset: -.2em; border-radius: inherit; border: .15em solid #fff; animation: tapRing .45s ease-out both; }
.ph-time { text-align: right; color: var(--text-3); font-size: .78em; }

@container (max-width: 560px) {
  .dev-desk { left: 2%; top: 14%; width: 96%; height: 54%; font-size: 2.2cqw; border-radius: 2.4cqw; }
  .dk-side { display: none; }
  .dev-phone { width: 50%; height: 50%; right: 3%; font-size: 2.6cqw; border-radius: 4cqw 4cqw 0 0; }
  .dk-row { grid-template-columns: 1fr 1.4fr auto; } .dk-row .amt { display: none; }
  .stage-cap { font-size: .84rem; min-height: 50px; }
}

/* ── Chat card (static, in the drivers section) ───────────────────────── */
.chat-card { border-radius: var(--r-lg); background: #0b0f16; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); max-width: 420px; justify-self: center; width: 100%; font-size: .95rem; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #111722; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #04101c; }
.chat-head small { display: block; color: var(--text-3); font-size: .8rem; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 90%; padding: 10px 12px; border-radius: 14px; background: #1c2430; line-height: 1.4; }
.chat-msg.chat-me { align-self: flex-end; background: #2b5278; }
.chat-msg small { color: var(--text-3); }
.chat-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.chat-kb span { text-align: center; padding: 8px; border-radius: 8px; background: rgba(42,171,238,.18); color: #9ed7ff; font-weight: 600; font-size: .9rem; }
.chat-kb span.on { background: var(--chat); color: #fff; }

/* ── Lists ────────────────────────────────────────────────────────────── */
.ticks { list-style: none; margin: 1.2em 0 0; padding: 0; display: flex; flex-direction: column; gap: .55em; color: var(--text-2); }
.ticks li { position: relative; padding-left: 1.7em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 1em; height: 1em; border-radius: 50%; background: rgba(52,211,153,.18); }
.ticks li::after { content: ''; position: absolute; left: .32em; top: .62em; width: .32em; height: .55em; border: solid var(--green); border-width: 0 .14em .14em 0; transform: rotate(45deg); }
.ticks-big { font-size: 1.1rem; gap: 1em; margin-top: .4em; }
.ticks a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ── Story + stats ────────────────────────────────────────────────────── */
.story .h2 { max-width: 26ch; }
.stats { display: grid; gap: 18px; margin-top: 44px; grid-template-columns: 1fr 1fr; }
.stat b { display: block; font-family: var(--display); font-weight: 900; letter-spacing: -.04em; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--text-3); margin-top: 8px; font-size: .95rem; max-width: 22ch; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ── Back office grid ─────────────────────────────────────────────────── */
#backoffice .p, #safety .p { margin-bottom: 34px; }
#safety .ctl { align-content: start; }
.control-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.ctl { padding: 20px 22px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 6px; transition: border-color .2s, transform .2s; }
.ctl:hover { border-color: rgba(255,176,32,.5); transform: translateY(-2px); }
.ctl b { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--text); }
.ctl b::before { content: '✓ '; color: var(--green); font-weight: 900; }
.ctl span { color: var(--text-2); font-size: .95rem; line-height: 1.45; }
@media (min-width: 640px) { .control-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .control-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Automations ──────────────────────────────────────────────────────── */
.h3-line { font-size: 1.05rem; font-family: var(--mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hot); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.auto-list { margin-top: 0; gap: .7em; font-size: .98rem; }
@media (min-width: 900px) { .auto-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: .7em; } }
@media (max-width: 560px) { 
/* ── Compare ──────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
.cmp { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .95rem; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp th { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; color: var(--text-2); font-size: 1rem; }
.cmp td:first-child { color: var(--text-3); font-weight: 500; }
.cmp .hl { background: rgba(51,211,255,.06); color: var(--text); font-weight: 600; }
.cmp th.hl { color: var(--cyan); }
.cmp tbody tr:last-child td { border-bottom: 0; }

/* ── Timeline (real sequence) ─────────────────────────────────────────── */
.timeline { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.timeline li { counter-increment: st; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: start; padding: 22px 22px 22px 18px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); }
.timeline li::before { content: counter(st, decimal-leading-zero); font-family: var(--mono); font-weight: 600; color: var(--hot); font-size: 1.3rem; line-height: 1.3; grid-column: 1; grid-row: 1 / span 2; }
.timeline b, .timeline span { grid-column: 2; }
.timeline b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 4px; }
.timeline span { color: var(--text-2); }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-weight: 400; font-size: 1.6rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--text-2); max-width: 66ch; }

/* ── Lead form ────────────────────────────────────────────────────────── */
.lead { display: grid; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: rgba(13,17,25,.9); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.4); position: relative; }
.lead label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text-2); }
.lead input, .lead select, .lead textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.lead textarea { resize: vertical; min-height: 84px; }
.lead select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(51,211,255,.18); }
.lead input.err, .lead select.err { border-color: var(--red); }
.f2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-fine { margin: 0; color: var(--text-3); font-size: .82rem; text-align: center; }
.lead-done, .lead-fallback { position: absolute; inset: 0; border-radius: inherit; background: var(--ink-2); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 32px; }
.lead-done b, .lead-fallback b { font-family: var(--display); font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.lead-done p, .lead-fallback p { margin: 0; color: var(--text-2); }
.lead-done b::before { content: '✓ '; color: var(--green); }
.lead .btn[disabled] { opacity: .7; cursor: progress; }
.lead-done[hidden], .lead-fallback[hidden] { display: none; }

/* ── Footer + sticky CTA ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: #05070b; color: var(--text-3); font-size: .9rem; }
.foot-row { display: grid; gap: 18px; }
.foot p { margin: 0; max-width: 48ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot nav a:hover { color: var(--text); }
@media (min-width: 900px) { .foot-row { grid-template-columns: auto 1fr auto; align-items: center; } }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(13,17,25,.92); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-weight: 600; font-size: .92rem; transform: translateY(120%); transition: transform .25s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { padding: .6em 1.1em; min-height: 40px; font-size: .9rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── Motion ───────────────────────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@keyframes rowIn { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes tapRing { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
@keyframes pulse { 0%, 100% { r: 3.2; } 50% { r: 4.6; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.25em); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .dk-row.enter, .dk-card, .ph-msg, .dk-toast, .assist .q, .assist .a { animation: none; }
  .map .truck { transition: none; }
}
