/* Qittari public site. Light design with framed sections and dark feature bands. */
:root {
  --bg: #ffffff;
  --text: #1a1919;
  --muted: #8a8478;
  --soft: #f6f5f2;
  --line: #e8e6e1;
  --dark: #151413;
  --dark-line: #2c2a27;
  --ok: #16a34a;
  --warn: #b4441b;
  --art: #efe9dc;
  --art-line: #d9cfba;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.08; margin-bottom: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; line-height: 1.5; }
.mono-label { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }

/* logo mark */
.mark {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: -0.04em;
  margin-right: 0.5rem;
}
.mark.big { width: 3rem; height: 3rem; font-size: 1.1rem; border-radius: 12px; margin: 0 auto 0.75rem; }
.mark.light { background: #f3efe6; color: var(--dark); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 0.7rem max(1rem, 3vw); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -0.02em; }
.menu { display: flex; gap: 1.5rem; flex: 1; }
.menu a, .quiet { text-decoration: none; color: #4b4842; font-size: 0.9rem; }
.menu a:hover, .quiet:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 760px) { .menu { display: none; } .top-inner { justify-content: space-between; } }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--text); border-radius: 8px; background: #fff; color: var(--text); font: 500 0.9rem/1 var(--sans); padding: 0.7rem 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.dark { background: var(--text); color: #fff; }
.btn.small { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
.btn:disabled, .btn.disabled { opacity: 0.55; cursor: default; }

/* page frame: vertical rules with + marks where sections meet */
.frame { max-width: 1180px; margin: 0 auto; border-inline: 1px solid var(--line); }
.block { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.block::before, .block::after { content: "+"; position: absolute; top: -0.72rem; font: 300 1rem/1 var(--mono); color: #b8b3a8; background: var(--bg); }
.block::before { left: -0.33rem; }
.block::after { right: -0.33rem; }

/* hero */
.hero { text-align: center; padding: clamp(3.5rem, 9vw, 6rem) 1rem 2.5rem; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; -webkit-mask-image: none; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(255 255 255 / 0.95) 35%, rgb(255 255 255 / 0.7) 70%, #fff 100%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.badge { display: inline-flex; gap: 0.6rem; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.25rem 0.75rem 0.25rem 0.3rem; font-size: 0.8rem; text-decoration: none; margin-bottom: 1.6rem; }
.badge span:first-child { background: var(--text); color: #fff; border-radius: 999px; padding: 0.15rem 0.5rem; font: 500 0.62rem/1.4 var(--mono); letter-spacing: 0.08em; }
.hero-sub { color: #5e5a52; font-size: 1.1rem; margin: 1.2rem 0 2rem; }

.waitlist { max-width: 460px; margin: 0 auto; text-align: left; }
.field-row { display: flex; gap: 0.4rem; border: 1px solid var(--line); border-radius: 10px; padding: 0.3rem; background: #fff; box-shadow: 0 6px 24px -14px rgb(0 0 0 / 0.25); }
.field-row input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 0.55rem 0.7rem; background: transparent; color: var(--text); outline: none; }
.field-row:focus-within { border-color: #b8b3a8; }
.consent { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; text-align: center; }
.consent input { margin: 0 0.4rem 0 0; vertical-align: -2px; }
.form-msg { margin: 0.5rem 0 0; font-size: 0.85rem; min-height: 1.2em; text-align: center; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--warn); }

.hero .mono-label { margin-top: 2.6rem; }
.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; max-width: 760px; }
.chips li { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 0.3rem 0.6rem; font-size: 0.82rem; color: var(--muted); }
.chips li.live { color: var(--text); }
.chips i, .comp-list i, .row-item i, .agent-tiles i { width: 0.55rem; height: 0.55rem; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }
.chips li:not(.live) i { opacity: 0.45; }

/* product mock */
.mock-wrap { padding: 0 clamp(0.75rem, 4vw, 3.5rem) 4rem; }
.app { border: 1px solid #d8d4cb; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.45); font-size: 0.8rem; }
.app-bar { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; background: var(--dark); color: #d8d4cb; padding: 0.55rem 0.9rem; font-size: 0.74rem; }
.app-bar b { color: #fff; font-weight: 500; }
.proj { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; border: 1px solid var(--dark-line); border-radius: 6px; padding: 0.15rem 0.5rem; }
.sq { width: 0.6rem; height: 0.6rem; background: #6d8cff; border-radius: 2px; }
.live-dot::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; background: #22c55e; border-radius: 50%; margin-right: 0.35rem; }
.sample { margin-left: auto; font: 0.62rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8a8478; }
.app-body { display: grid; grid-template-columns: 1fr 1.6fr 1fr; min-height: 360px; }
.pane { padding: 1rem; border-right: 1px solid var(--line); }
.pane:last-child { border-right: 0; }
.pane-title { font-weight: 600; margin: 0.2rem 0 0.5rem; display: flex; justify-content: space-between; }
.pane-title span { color: var(--muted); font-weight: 400; }
.pane .small { margin: 0 0 1.1rem; color: #5e5a52; }
.doc-list, .comp-list { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.doc-list li { padding: 0.28rem 0 0.28rem 1.1rem; position: relative; color: #4b4842; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.55rem; height: 0.7rem; border: 1px solid #b8b3a8; border-radius: 2px; }
.comp-list li { display: flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0; color: #4b4842; }
.welcome { font: 600 1rem var(--display); margin: 0.1rem 0 0.15rem; letter-spacing: -0.02em; }
.today { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem; margin: 0.9rem 0 1rem; }
.today-head { display: flex; justify-content: space-between; margin: 0 0 0.5rem; }
.row-item { display: flex; align-items: center; gap: 0.45rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.55rem; margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; }
.row-item .act { margin-left: auto; background: var(--text); color: #fff; border-radius: 5px; padding: 0.1rem 0.5rem; font-size: 0.72rem; }
.row-item .act.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.agent-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.agent-tiles span { border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.72rem; }
.agent-tiles small { color: var(--muted); font-size: 0.66rem; }
.agent-tiles .off { opacity: 0.55; }
.chat-pane { display: flex; flex-direction: column; background: #fcfbf9; }
.soon { font: 0.6rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem 0; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
.suggest span { border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.7rem; background: #fff; }
.ask { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem; color: var(--muted); background: #fff; }
@media (max-width: 860px) { .app-body { grid-template-columns: 1fr; } .pane { border-right: 0; border-bottom: 1px solid var(--line); } .chat-pane { display: none; } .agent-tiles { grid-template-columns: repeat(3, 1fr); } }

/* sections */
.step { display: flex; align-items: center; gap: 0.5rem; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.4rem; }
.step span { width: 0.4rem; height: 0.4rem; background: currentColor; }
.lede { color: #5e5a52; font-size: 1.02rem; max-width: 440px; margin: 0 0 2rem; }
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two.center { align-items: center; }
.head-row { align-items: end; margin-bottom: 3rem; }
.head-row .lede { margin: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 6rem; }
@media (max-width: 860px) { .sticky-col { position: static; } }

.tabs { list-style: none; padding: 0; margin: 3rem 0 0; border-top: 1px solid var(--line); }
.tabs li { border-bottom: 1px solid var(--line); }
.tabs button { all: unset; display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.95rem 0; color: var(--muted); cursor: pointer; font-size: 0.95rem; }
.tabs button::before { content: ""; width: 0.6rem; height: 0.75rem; border: 1px solid currentColor; border-radius: 2px; }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: 500; }
.tabs button:focus-visible, .accordion button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* "art" panels: our own hatch + ruler pattern */
.art {
  position: relative;
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(160 140 100 / 0.13) 14px 15px),
    radial-gradient(circle at 85% 15%, #e4d9c2 0 18%, transparent 19%),
    radial-gradient(circle at 10% 90%, #e8dfcc 0 22%, transparent 23%),
    var(--art);
  overflow: hidden;
}
.art::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.6rem; border-right: 1px solid var(--art-line); background: repeating-linear-gradient(180deg, var(--art-line) 0 1px, transparent 1px 8px); background-size: 40% 100%; background-repeat: no-repeat; }
.paper { position: relative; background: #fff; border-radius: 10px; box-shadow: 0 30px 60px -35px rgb(60 45 20 / 0.5); padding: 1.6rem 1.8rem; min-height: 420px; }
.paper h3 { font-size: 1.5rem; margin: 1.2rem 0 0.3rem; }
.crumb { display: flex; gap: 0.3rem; font-size: 0.75rem; color: var(--muted); margin: 0; flex-wrap: wrap; }
.crumb b { color: var(--text); font-weight: 500; }
.ok { margin-left: auto; color: var(--ok); font-size: 0.72rem; }
.ok::before { content: "● "; }
.sec { margin-top: 1.3rem; }
.sec b { display: block; font-size: 0.85rem; margin-bottom: 0.45rem; }
.bar { height: 0.45rem; border-radius: 3px; background: #efedea; margin: 0.4rem 0; }
.paper-foot { position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1rem; display: flex; justify-content: space-between; color: #b8b3a8; font-size: 0.7rem; margin: 0; }

.handoff { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.handoff p { font: 500 1.35rem/1.3 var(--display); letter-spacing: -0.02em; margin: 0; }
.files { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.files li { border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.6rem; font: 0.75rem var(--mono); }
@media (max-width: 860px) { .handoff { grid-template-columns: 1fr; } }

/* agent accordion */
.accordion { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.accordion li { border-bottom: 1px solid var(--line); }
.accordion button { all: unset; display: flex; align-items: center; gap: 0.9rem; width: 100%; padding: 0.95rem 0; cursor: pointer; color: var(--muted); font-size: 1rem; }
.accordion .n { font: 0.7rem var(--mono); color: #b8b3a8; width: 1.4rem; }
.accordion li.open button { color: var(--text); font-weight: 500; }
.accordion p { display: none; margin: -0.3rem 0 1rem 2.3rem; color: #5e5a52; font-size: 0.9rem; max-width: 380px; }
.accordion li.open p { display: block; }
.tag { margin-left: auto; font: 0.62rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.5rem; color: var(--muted); }
.tag.live { color: var(--ok); border-color: #bfe5cc; background: #f0faf3; }

.preview { min-height: 440px; }
.pv-head { display: flex; gap: 0.6rem; align-items: center; font-size: 0.82rem; }
.pv-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--c, #ddd); }
.pv-body { font-size: 0.92rem; line-height: 1.6; margin: 1rem 0; white-space: pre-line; }
.pv-actions { display: flex; gap: 0.4rem; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.pv-actions span { border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.pv-actions span.solid { background: var(--text); color: #fff; border-color: var(--text); }
.pv-soon { display: grid; place-items: center; text-align: center; min-height: 360px; color: var(--muted); }
.pv-soon b { display: block; color: var(--text); font: 600 1.1rem var(--display); margin-bottom: 0.4rem; }

/* dark publish band */
.dark { background: var(--dark); color: #f3efe6; border-top-color: var(--dark); }
.dark::before, .dark::after { background: var(--bg); }
.dark .lede, .dark .step { color: #a9a397; }
.flow { display: grid; grid-template-columns: 200px 1fr 120px 1fr 230px; align-items: stretch; min-height: 440px; }
.flow-col { display: flex; flex-direction: column; justify-content: space-around; gap: 0.3rem; }
.flow-col .mono-label { color: #8a8478; margin: 0; }
.node { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--dark-line); background: #1d1c1a; border-radius: 7px; padding: 0.45rem 0.65rem; font-size: 0.82rem; color: #f3efe6; }
.node em { font: 0.6rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #7a7468; font-style: normal; }
.node.live { border-color: #3d3a35; }
.node.live::after { content: "●"; color: #22c55e; font-size: 0.6rem; }
.wires { width: 100%; height: 100%; }
.wires path { fill: none; stroke: #4a4640; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.hub { display: grid; place-content: center; text-align: center; }
.hub .mono-label { color: #8a8478; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; gap: 1.5rem; } .wires { display: none; } .hub { order: -1; } }

/* assistant */
.link-box { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; border: 1px solid var(--line); border-radius: 10px; padding: 0.35rem 0.35rem 0.35rem 0.8rem; max-width: 440px; }
.link-box code { font: 0.8rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card { background: var(--dark); color: #f3efe6; border-radius: 16px; padding: 1.2rem; box-shadow: 0 40px 80px -45px rgb(0 0 0 / 0.6); font-size: 0.85rem; }
.chat-top { display: flex; justify-content: space-between; margin: 0 0 1rem; }
.chat-top .ok { margin: 0; border: 1px solid var(--dark-line); border-radius: 999px; padding: 0.15rem 0.6rem; color: #86efac; }
.bubble.you { margin: 0 0 1rem auto; background: #2a2825; border-radius: 12px; padding: 0.55rem 0.8rem; width: fit-content; max-width: 85%; }
.used { color: #8a8478; font-size: 0.78rem; margin: 0 0 0.7rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--dark-line); border-radius: 10px; }
.kpis div { padding: 0.7rem; border-right: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 0.15rem; }
.kpis div:last-child { border-right: 0; }
.kpis small { color: #8a8478; font-size: 0.7rem; }
.kpis b { font: 600 1.4rem var(--display); }
.kpis em { font-style: normal; color: #86efac; font-size: 0.7rem; }
.answer { line-height: 1.6; margin: 1rem 0 0.6rem; }
.illus { font: 0.6rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #6d675d; text-align: right; margin: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: #5e5a52; margin: 0.7rem 0 0; }

/* final CTA */
.final { text-align: center; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.final::before, .final::after { background: var(--bg); }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); background: #fff; display: inline-block; padding: 0 0.5rem; }
.final .lede { margin: 0 auto 2rem; background: #fff; display: table; padding: 0 0.5rem; }
.final .consent, .final .form-msg { background: #fff; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem clamp(1rem, 5vw, 4.5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 0.85rem; }
.foot nav { display: flex; gap: 1.2rem; }
.foot nav a { text-decoration: none; color: #4b4842; }

/* simple pages: login, privacy */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(1rem, 4vw); }
.page { max-width: 560px; padding-block: 4rem; }
.page h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.15rem; margin: 2rem 0 0.4rem; letter-spacing: -0.02em; }
.page p, .page li { color: #4b4842; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; box-shadow: 0 20px 50px -35px rgb(0 0 0 / 0.35); }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; }
.field input { width: 100%; font: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--text); }
.page .form-msg { text-align: left; }

/* flow labels sit above their column so the nodes space evenly and line up with the wires */
.flow-col { position: relative; }
.flow-col > .mono-label { position: absolute; top: -1.6rem; left: 0; }
@media (max-width: 960px) { .flow-col > .mono-label { position: static; } }

/* ===================== Lavender palette ===================== */
:root {
  --lav-50: #f6f4ff;
  --lav-100: #eeeafe;
  --lav-200: #ddd5fc;
  --lav-300: #c3b6f7;
  --lav-500: #8c7bef;
  --lav-600: #6c58d8;
  --lav-700: #5845bd;
  --lav-900: #1c1736;
  --lav-850: #251f45;
  --lav-800: #342c5f;
  --line: #e9e5f5;
  --muted: #847d99;
  --soft: var(--lav-50);
  --dark: var(--lav-900);
  --dark-line: var(--lav-800);
  --art: var(--lav-100);
  --art-line: var(--lav-300);
}
.btn.dark, .badge span:first-child, .mark { background: var(--lav-600); border-color: var(--lav-600); color: #fff; }
.btn.dark:hover { background: var(--lav-700); border-color: var(--lav-700); }
.mark.light { background: var(--lav-100); color: var(--lav-700); }
.step span { background: var(--lav-500); }
.step { color: var(--lav-600); }
.dark .step { color: var(--lav-300); }
.hero, .final { background-image: linear-gradient(var(--lav-100) 1px, transparent 1px), linear-gradient(90deg, var(--lav-100) 1px, transparent 1px); }
.hero::after { background: radial-gradient(ellipse at center, rgb(255 255 255 / 0.96) 35%, rgb(255 255 255 / 0.72) 70%, #fff 100%); }
.badge { border-color: var(--lav-200); background: var(--lav-50); }
.field-row { border-color: var(--lav-200); box-shadow: 0 8px 28px -16px rgb(108 88 216 / 0.45); }
.field-row:focus-within { border-color: var(--lav-500); }
.chips li { border-color: var(--lav-200); }
.app { border-color: var(--lav-200); box-shadow: 0 40px 90px -50px rgb(70 50 160 / 0.55); }
.app-bar .sample { color: var(--lav-300); }
.row-item .act, .pv-actions span.solid { background: var(--lav-600); border-color: var(--lav-600); }
.chat-pane { background: var(--lav-50); }
.art {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(108 88 216 / 0.1) 14px 15px),
    radial-gradient(circle at 85% 15%, var(--lav-200) 0 18%, transparent 19%),
    radial-gradient(circle at 10% 90%, #e6e0fd 0 22%, transparent 23%),
    var(--art);
}
.paper { box-shadow: 0 30px 60px -35px rgb(70 50 160 / 0.45); }
.tabs button[aria-selected="true"] { color: var(--lav-700); }
.accordion li.open .n { color: var(--lav-600); }
.tag.live { color: var(--lav-700); border-color: var(--lav-200); background: var(--lav-50); }
.ok { color: var(--lav-600); }
.files li { border-color: var(--lav-200); background: var(--lav-50); }
.dark .lede { color: #b4acd0; }
.node { background: var(--lav-850); border-color: var(--lav-800); }
.node em, .flow-col .mono-label, .hub .mono-label { color: #8f86b3; }
.node.live::after { color: var(--lav-300); }
.wires path { stroke: #5b4f96; }
.chat-card { background: var(--lav-900); }
.bubble.you { background: var(--lav-600); color: #fff; }
.chat-top .ok { color: var(--lav-300); border-color: var(--lav-800); }
.kpis em { color: var(--lav-300); }
.faq summary::after { color: var(--lav-600); }
.tabs button:focus-visible, .accordion button:focus-visible { outline-color: var(--lav-600); }
.form-msg.ok { color: var(--lav-700); }

/* ===================== Motion ===================== */
:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Scroll reveal (applied by site.js only when motion is allowed) */
.motion .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.motion .rv.in-view { opacity: 1; transform: none; }

/* Skeleton bars fill in */
@keyframes sk-fill { from { width: 0; } }
.motion .bar { animation: sk-fill 0.55s var(--ease) both; animation-delay: var(--d, 0s); }

/* Preview content slides in when it changes */
@keyframes story-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.motion .swap { animation: story-in 0.5s ease-out both; }

/* Auto-advance progress line on the active tab / agent */
@keyframes fill-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tabs li, .accordion li { position: relative; }
.tabs li.running::after, .accordion li.running::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--lav-500);
  transform-origin: left;
  animation: fill-line var(--cycle, 6s) linear forwards;
}

/* Wires flow toward the hub, then out to the outputs */
@keyframes wire-flow { to { stroke-dashoffset: -14; } }
.motion .wires path { stroke-dasharray: 3 4; animation: wire-flow 1.1s linear infinite; }

/* Live dots pulse */
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.live-dot { position: relative; }
.motion .live-dot::after { content: ""; position: absolute; left: 0; top: 50%; width: 0.45rem; height: 0.45rem; margin-top: -0.225rem; border-radius: 50%; background: #22c55e; animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Today rows get approved one by one in the hero mock */
.row-item { transition: background 0.4s ease, opacity 0.4s ease; }
.row-item.done { background: var(--lav-50); }
.row-item.done .act { background: #fff; color: var(--lav-700); border: 1px solid var(--lav-200); }

/* Chat mock types itself out */
.motion .chat-card .stage { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.motion .chat-card .stage.shown { opacity: 1; transform: none; }
.caret::after { content: "▍"; color: var(--lav-300); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* FAQ answers ease open */
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.motion .faq details[open] p { animation: faq-open 0.25s ease-out; }

/* Chips drift gently */
@keyframes float { 50% { transform: translateY(-3px); } }
.motion .chips li { animation: float 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.45s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hero headline in bold violet (solid fallback, gradient where supported) */
.hero h1 { color: var(--lav-700); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background: linear-gradient(100deg, #4b32c3 0%, #6c58d8 45%, #9a6cf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
