/* ============================================================
   Exportdesk — site styles (visual redesign 2026-06-10)
   Token source: colors_and_type.css. Light-first, blue-forward,
   coral = human moments, mono labels on every operation.
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
}

/* Chinese text never gets negative tracking */
[data-lang="zh"] :is(h1, h2, h3, h4, strong) { letter-spacing: 0; }
/* CJK headline density: slightly smaller scale so lines break at punctuation */
[data-lang="zh"] .hero h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.22; }
[data-lang="zh"] .section-heading h2, [data-lang="zh"] .offer-copy h2 { font-size: clamp(25px, 2.9vw, 38px); }

img, svg { display: block; max-width: 100%; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.mono.strong { font-weight: 700; color: var(--ink); }
.mono.muted { color: var(--fg-muted); font-weight: 400; }
.coral-text { color: #b8431f; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { top: 12px; color: var(--white); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--link-hover);
  font-weight: 700;
  margin: 0 0 var(--space-4);
}
.eyebrow-coral { color: var(--coral-primary); }
.eyebrow-light { color: #b9cdff; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.button:hover { text-decoration: none; }
.button-lg { padding: 14px 26px; font-size: var(--fs-md); }

.button-primary { background: var(--blue-primary); color: var(--white); }
.button-primary:hover { background: var(--link-hover); color: var(--white); }

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
}
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }

.button-ghost { background: transparent; color: var(--blue-primary); }
.button-ghost:hover { background: var(--blue-100); color: var(--link-hover); }

.button-inverse { background: var(--white); color: var(--blue-primary); }
.button-inverse:hover { background: #e7eeff; color: var(--link-hover); }

.button-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.button-outline-light:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ---------- State chips ---------- */
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  white-space: nowrap;
}
.state-chip span { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.state-chip b { font-weight: 700; }
.state-chip.blue { background: var(--blue-100); color: var(--link-hover); }
.state-chip.blue span { background: var(--blue-primary); }
.state-chip.coral { background: var(--coral-100); color: #b8431f; }
.state-chip.coral span { background: var(--coral-primary); }
.state-chip.ink { background: var(--grey-100); color: var(--ink); }
.state-chip.ink span { background: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: 0 clamp(20px, 4vw, 48px);
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; }
.wordmark {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--blue-primary);
  letter-spacing: 0;
  line-height: 1;
}

.site-nav { display: flex; gap: clamp(16px, 2.4vw, 30px); margin-inline: auto; }
.site-nav a {
  color: var(--fg-muted);
  font-size: var(--fs-base);
  font-weight: 500;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }

.language-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  background: var(--white);
}
.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  color: var(--grey-500);
}
.lang-button:hover { background: var(--grey-50); }
.lang-button.is-active { background: var(--blue-100); color: var(--blue-primary); }
.lang-icon { display: inline-flex; }
.lang-icon svg { width: 20px; height: 14px; }
.flag-cn svg rect { fill: #de2910; }
.flag-cn svg path { fill: #ffde00; }
.globe-icon svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.flag-ru {
  width: 20px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff 33%, #0039a6 33% 66%, #d52b1e 66%);
  border: 1px solid var(--border);
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, #dbe7ff 0%, rgba(219, 231, 255, 0) 62%),
    linear-gradient(180deg, #f2f6ff 0%, var(--white) 86%);
}

.hero-inner {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 8.5vw, 110px) 0 clamp(56px, 8vw, 104px);
}

.hero-copy .eyebrow { margin-bottom: var(--space-5); }

.hero h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-6);
  max-width: 15em;
}

.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 34em;
  margin: 0 0 var(--space-8);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-8); }

.hero-proof { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.proof-chip .icon { width: 14px; height: 14px; color: var(--blue-primary); }

/* Hero visual composition */
.hero-visual { position: relative; min-height: 480px; padding-bottom: 40px; }

.desk-demo {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin-right: clamp(0px, 4vw, 56px);
}

.demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.demo-chrome-left { display: flex; align-items: center; gap: var(--space-4); }

.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-100); }

.demo-rows {
  position: relative;
  height: 296px;
  margin: var(--space-4) 0;
  overflow: hidden;
}
.demo-row {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  height: 64px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transform: translateY(calc(var(--pos) * 76px));
  opacity: 1;
  transition: transform 0.62s var(--ease-out), opacity 0.4s var(--ease-out);
}
.demo-row:nth-child(1) { --pos: 0; }
.demo-row:nth-child(2) { --pos: 1; }
.demo-row:nth-child(3) { --pos: 2; }
.demo-row:nth-child(4) { --pos: 3; }
.demo-row:nth-child(5) { --pos: 4; }
.demo-row:nth-child(6) { --pos: 5; }
.demo-row.is-out { opacity: 0; }
.demo-row:nth-child(n+5):not(.is-in) { opacity: 0; }
.has-js .demo-row.is-in { opacity: 1; }

.demo-row strong { font-size: var(--fs-sm); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.demo-row.human-row { border-color: var(--coral-200); background: #fffaf8; }

.demo-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: var(--space-4) var(--space-5);
}
.float-tag { display: block; color: var(--link-hover); font-weight: 700; margin-bottom: var(--space-3); font-size: 10px; }

.float-chat {
  left: clamp(-22px, -2vw, -10px);
  bottom: -58px;
  width: min(290px, 78%);
  animation: float-soft 7s var(--ease-in-out) infinite;
}
.chat-bubble {
  margin: 0 0 var(--space-2);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  max-width: 100%;
}
.chat-bubble.buyer { background: var(--grey-50); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-bubble.ai { background: var(--blue-100); color: var(--ink); border-bottom-right-radius: 3px; }
.chat-typing { display: inline-flex; gap: 4px; padding: 2px 4px; }
.chat-typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-500);
  animation: typing-pulse 1.3s var(--ease-in-out) infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-typing i:nth-child(3) { animation-delay: 0.36s; }

.float-stat {
  right: clamp(-18px, -1.2vw, -8px);
  top: -38px;
  width: 188px;
  animation: float-soft 8s var(--ease-in-out) 1.2s infinite;
}
.stat-row { display: flex; align-items: baseline; gap: var(--space-3); }
.stat-value { font-size: 38px; font-weight: 700; line-height: 1; color: var(--ink); }
.stat-delta {
  display: inline-flex; align-items: center; gap: 3px;
  color: #187349;
  font-size: 11px; font-weight: 700;
}
.stat-delta .icon { width: 13px; height: 13px; }
.stat-bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; margin: var(--space-3) 0 var(--space-2); }
.stat-bars i {
  flex: 1;
  height: var(--h);
  background: var(--blue-200);
  border-radius: 2px;
}
.stat-bars i:last-child { background: var(--blue-primary); }
.stat-note { display: block; font-size: 10px; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes typing-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* ---------- Outcome rail ---------- */
.outcome-strip {
  border-block: 1px solid var(--border);
  background: var(--white);
}
.outcome-rail {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
}
.outcome-node { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.outcome-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-primary);
  margin-bottom: var(--space-2);
}
.outcome-node strong { font-size: var(--fs-base); font-weight: 600; }
.outcome-link {
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, var(--blue-200), var(--blue-primary));
  position: relative;
}
.outcome-link::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--blue-primary);
  border-right: 1.5px solid var(--blue-primary);
  transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-quiet { background: #eef3fe; }

.section-heading { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-heading h2 {
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.section-heading p:not(.eyebrow) { color: var(--fg-muted); font-size: var(--fs-md); }

/* ---------- Bento (systems) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.bento-card:hover { box-shadow: var(--shadow-2); }

.mini-visual {
  position: relative;
  height: 168px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef3fe 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bento-body { padding: var(--space-6); display: grid; gap: var(--space-2); }
.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-primary);
  margin-bottom: var(--space-1);
}
.bento-body h3 { font-size: var(--fs-lg); margin: 0; }
.bento-body p { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }

/* mini: localized web */
.mini-browser {
  width: 64%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: grid;
  gap: 8px;
}
.mini-browser-bar { display: flex; gap: 4px; margin-bottom: 2px; }
.mini-browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-100); }
.mini-line { height: 8px; border-radius: 3px; background: var(--blue-200); }
.mini-line.thin { height: 5px; background: var(--grey-100); }
.mini-line.w60 { width: 60%; }
.mini-line.w75 { width: 75%; }
.mini-line.w90 { width: 90%; }
.mini-cta { width: 36%; height: 12px; border-radius: 3px; background: var(--blue-primary); }
.mini-langs {
  position: absolute;
  right: 14px; bottom: 12px;
  padding: 4px 9px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--link-hover);
  font-weight: 700;
  font-size: 10px;
  box-shadow: var(--shadow-1);
}

/* mini: intake merge */
.mini-intake { gap: 8px; }
.mini-sources {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 7px;
}
.mini-chip {
  padding: 4px 9px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 9px;
  color: var(--fg-muted);
  font-weight: 700;
  width: max-content;
}
.mini-merge { position: absolute; inset: 0; margin: auto; width: 78%; height: 80%; }
.mini-merge path {
  fill: none;
  stroke: var(--blue-200);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  animation: dash-flow 2.8s linear infinite;
}
.mini-crm {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 14px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-2);
}
@keyframes dash-flow { to { stroke-dashoffset: -24; } }

/* mini: team */
.mini-team { gap: var(--space-4); }
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
  box-shadow: var(--shadow-1);
}
.team-chip .icon { width: 16px; height: 16px; }
.team-chip.ai { background: var(--blue-100); color: var(--blue-primary); }
.team-chip.human { background: var(--coral-100); color: #b8431f; }
.team-arrow { color: var(--grey-300); font-size: 20px; }

/* mini: report */
.report-bars { display: flex; align-items: flex-end; gap: 10px; height: 86px; width: 56%; }
.report-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--blue-200);
  transform-origin: bottom;
}
.report-bars i:nth-child(5) { background: var(--blue-primary); }
.has-js .reveal .report-bars i { transform: scaleY(0); }
.has-js .reveal.is-visible .report-bars i {
  transform: scaleY(1);
  transition: transform 0.7s var(--ease-out);
}
.has-js .reveal.is-visible .report-bars i:nth-child(2) { transition-delay: 0.08s; }
.has-js .reveal.is-visible .report-bars i:nth-child(3) { transition-delay: 0.16s; }
.has-js .reveal.is-visible .report-bars i:nth-child(4) { transition-delay: 0.24s; }
.has-js .reveal.is-visible .report-bars i:nth-child(5) { transition-delay: 0.32s; }
.has-js .reveal.is-visible .report-bars i:nth-child(6) { transition-delay: 0.4s; }
.report-tag {
  position: absolute;
  right: 16px; top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--status-ok);
  font-weight: 700;
  font-size: 10px;
  box-shadow: var(--shadow-1);
}
.report-tag .icon { width: 13px; height: 13px; }

/* ---------- Capture system ---------- */
.capture-system-section { background: var(--white); }

.capture-flow-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-6) var(--space-6) var(--space-8);
  margin-bottom: var(--space-10);
}
.capture-rule { margin-bottom: var(--space-5); color: var(--fg-muted); }

.demand-flow-visual {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  white-space: nowrap;
  flex: none;
}
.flow-node .icon { width: 15px; height: 15px; color: var(--blue-primary); }
.flow-node.source { background: var(--blue-100); border-color: var(--blue-200); color: var(--link-hover); font-weight: 700; }
.flow-node.human { background: var(--coral-100); border-color: var(--coral-200); color: #b8431f; font-weight: 700; }
.flow-node.human .icon { color: var(--coral-primary); }
.flow-node.report { background: var(--grey-50); }

.flow-rail {
  position: relative;
  flex: 1;
  height: 2px;
  min-width: 18px;
  background: var(--blue-100);
  border-radius: 1px;
  overflow: visible;
}
.flow-rail::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  animation: rail-dot 3.4s linear infinite;
  opacity: 0;
}
.demand-flow-visual .flow-rail:nth-child(2)::after { animation-delay: 0s; }
.demand-flow-visual .flow-rail:nth-child(4)::after { animation-delay: 0.65s; }
.demand-flow-visual .flow-rail:nth-child(6)::after { animation-delay: 1.3s; }
.demand-flow-visual .flow-rail:nth-child(8)::after { animation-delay: 1.95s; }
.demand-flow-visual .flow-rail:nth-child(10)::after { animation-delay: 2.6s; }
.flow-rail-soft { background: var(--grey-100); }

@keyframes rail-dot {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  18% { left: calc(100% - 6px); opacity: 1; }
  26%, 100% { left: calc(100% - 6px); opacity: 0; }
}

.capture-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.capture-board-column {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-6);
}
.capture-board-column h3 { font-size: var(--fs-lg); margin: var(--space-2) 0 var(--space-5); }
.column-label { display: block; }
.capture-board-column-strong {
  background: linear-gradient(180deg, #f0f5ff 0%, var(--white) 100%);
  border-color: var(--blue-200);
}

.channel-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--grey-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--fg);
}
.channel-chip .icon { width: 14px; height: 14px; color: var(--blue-primary); }

.capture-node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.entry-tile {
  display: grid;
  gap: 8px;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.entry-tile:hover { box-shadow: var(--shadow-2); border-color: var(--blue-200); }
.entry-tile .icon { color: var(--blue-primary); }

.capture-funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.capture-funnel li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 11px 0 11px 26px;
  font-size: var(--fs-sm);
}
.capture-funnel li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-primary);
}
.capture-funnel li::after {
  content: '';
  position: absolute;
  left: 9.5px;
  top: calc(50% + 8px);
  bottom: calc(-50% + 8px);
  width: 1px;
  background: var(--grey-100);
}
.capture-funnel li:last-child::after { display: none; }
.capture-funnel li.human::before { background: var(--coral-primary); }
.capture-funnel li.human span { color: #b8431f; font-weight: 600; }
.capture-funnel b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  padding: 3px 8px;
  background: var(--grey-50);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.deck-lesson {
  margin: 0 0 var(--space-10);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 5vw, 56px);
  background: #eef3fe;
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--space-2);
}
.deck-lesson strong {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.deck-lesson p { color: var(--fg-muted); margin: 0; max-width: 52em; }

.capture-market-map { margin-bottom: var(--space-10); }
.capture-market-map-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.capture-market-map-head strong { font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.01em; }

.market-factor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.market-factor-grid article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
  display: grid;
  gap: 6px;
  align-content: start;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.market-factor-grid article:hover { box-shadow: var(--shadow-2); }
.factor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-primary);
  margin-bottom: var(--space-1);
}
.factor-icon .icon { width: 15px; height: 15px; }
.market-factor-grid h4 { font-size: var(--fs-base); margin: 0; }
.market-factor-grid p { font-size: var(--fs-sm); color: var(--fg-muted); margin: 0; }

.capture-operating-loop { margin-bottom: var(--space-10); }
.capture-loop-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.capture-loop-head strong { font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.01em; }

.capture-workflow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}
.capture-workflow-rail::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--blue-200);
}
.capture-workflow-rail article { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 46px; }
.loop-num {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px; height: 33px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--blue-primary);
  color: var(--link-hover);
  font-weight: 700;
  font-size: 11px;
}
.capture-workflow-rail h4 { font-size: var(--fs-base); margin: 0; }
.capture-workflow-rail p { font-size: var(--fs-sm); color: var(--fg-muted); margin: 0; }

.capture-internal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-8) 0 0;
  padding-top: var(--space-5);
  border-top: 1px dashed var(--grey-100);
}

.capture-pilot-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  background: #fff4ef;
  border: 1px solid var(--coral-200);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.6vw, 40px) clamp(24px, 4vw, 48px);
}
.pilot-copy { display: grid; gap: var(--space-2); }
.pilot-copy > .mono { color: #b8431f; font-weight: 700; }
.pilot-copy strong { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; letter-spacing: -0.01em; }
.pilot-copy p { color: var(--fg-muted); margin: 0; font-size: var(--fs-sm); }

/* ---------- Sales desk ---------- */
.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.offer-copy h2 {
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.offer-copy > p { color: var(--fg-muted); font-size: var(--fs-md); margin: 0 0 var(--space-6); }

.offer-checklist {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.offer-checklist li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-base); font-weight: 500; }
.offer-checklist .icon {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-primary);
}

.offer-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.desk-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.desk-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--grey-50);
}
.desk-topbar .muted { margin-left: auto; }

.desk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.desk-stats > div {
  display: grid;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  border-right: 1px solid var(--border);
}
.desk-stats > div:last-child { border-right: 0; }
.desk-stats strong { font-size: 30px; font-weight: 700; line-height: 1.1; }

.desk-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
}
.desk-lanes article {
  background: var(--grey-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.desk-lanes header { margin-bottom: var(--space-3); padding: 0 var(--space-1); }

.rfq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-3) var(--space-4);
  display: grid;
  gap: 3px;
}
.rfq-card strong { font-size: var(--fs-sm); }
.rfq-card p { font-size: 12px; color: var(--fg-muted); margin: 0; }
.rfq-card.human { border-color: var(--coral-200); background: #fffaf8; }

.desk-foot {
  padding: 0 var(--space-5) var(--space-4);
  display: flex;
  justify-content: flex-end;
}

/* ---------- Boundary (dark) ---------- */
.section-dark {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    var(--ink);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.boundary-intro h2 {
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
}
.boundary-intro p { color: rgba(255, 255, 255, 0.72); }

.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.boundary-grid article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.boundary-grid h3 { font-size: var(--fs-md); margin: 0 0 var(--space-5); }
.boundary-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.boundary-grid li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.85); }
.boundary-grid .icon { width: 18px; height: 18px; margin-top: 1px; }
.boundary-grid .icon.check { color: #5ad19a; }
.boundary-grid .icon.cross { color: var(--coral-400); }

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.roadmap-lane {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-6);
}
.lane-header { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); justify-items: start; }
.lane-header strong { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.roadmap-lane ul { list-style: none; margin: 0; padding: 0; display: grid; }
.roadmap-lane li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 11px 0;
  border-top: 1px solid var(--grey-50);
  font-size: var(--fs-sm);
}
.roadmap-lane li:first-child { border-top: 0; }
.roadmap-lane b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  background: var(--blue-100);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ---------- CTA band ---------- */
.cta-band-section { padding: 0 0 clamp(64px, 9vw, 120px); background: #eef3fe; }
.cta-band-section .container { padding-top: clamp(64px, 9vw, 120px); }
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(640px 320px at 90% -20%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    var(--blue-primary);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px);
  color: var(--white);
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
.cta-band p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: var(--fs-md); }
.cta-actions { display: grid; gap: var(--space-3); justify-items: stretch; }

/* ---------- Contact fallback (hidden section) ---------- */
.contact-section { background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
.contact-copy h2 { font-size: clamp(25px, 2.8vw, 36px); margin: 0 0 var(--space-4); }
.contact-copy p { color: var(--fg-muted); }

.contact-form { display: grid; gap: var(--space-4); }
.contact-form label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: var(--ring);
}
.form-note { font-size: var(--fs-sm); color: var(--fg-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 72px) 0 var(--space-10);
}
.footer-inner { display: grid; gap: var(--space-6); justify-items: start; }

.trust-surface {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
  margin-bottom: var(--space-4);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
a.trust-item:hover { box-shadow: var(--shadow-2); text-decoration: none; color: var(--ink); }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-primary);
  flex: none;
}
.trust-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.trust-item > div > div:first-child { font-weight: 600; font-size: var(--fs-sm); }
.trust-label { font-size: 12px; color: var(--fg-muted); }

.footer-brand .wordmark { font-size: 24px; }
.site-footer > .container > p, .footer-inner p { color: var(--fg-muted); margin: 0; font-size: var(--fs-sm); }

/* ---------- Split-text hero reveal (React Bits SplitText pattern, vanilla port) ---------- */
.has-js .st-unit {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: st-rise 0.68s var(--ease-out) forwards;
  animation-delay: calc(var(--st-i) * 36ms);
}
@keyframes st-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Outcome rail links draw in as their nodes reveal */
.has-js .outcome-link {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out) 0.15s;
}
.has-js .outcome-node.is-visible + .outcome-link { transform: scaleX(1); }

/* ---------- Reveal & stagger ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out) var(--reveal-delay, 0ms),
              transform 0.55s var(--ease-out) var(--reveal-delay, 0ms);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 0; margin-top: var(--space-4); }
  .desk-demo { margin-right: 0; }
  .float-stat { top: -26px; right: 4px; }
  .float-chat { bottom: -28px; left: 4px; }
  .capture-board { grid-template-columns: 1fr; }
  .capture-workflow-rail { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-4); }
  .capture-workflow-rail::before { display: none; }
  .market-factor-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-layout { grid-template-columns: 1fr; }
  .boundary-layout { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { display: flex; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    z-index: 90;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    padding: var(--space-3) clamp(20px, 4vw, 48px) var(--space-5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 2px; border-bottom: 1px solid var(--grey-50); font-size: var(--fs-md); }
  .site-nav a:last-child { border-bottom: 0; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
  }
  .menu-bars {
    position: relative;
    width: 16px; height: 2px;
    background: var(--ink);
    border-radius: 1px;
  }
  .menu-bars::before, .menu-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px; height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform var(--dur-base) var(--ease-out);
  }
  .menu-bars::before { top: -5px; }
  .menu-bars::after { top: 5px; }
  .nav-open .menu-bars { background: transparent; }
  .nav-open .menu-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-open .menu-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .nav-action { display: none; }

  .outcome-rail { flex-wrap: wrap; gap: var(--space-5); }
  .outcome-link { display: none; }
  .outcome-rail { display: grid; grid-template-columns: 1fr 1fr; }

  .bento-grid { grid-template-columns: 1fr; }
  .demand-flow-visual { flex-wrap: wrap; row-gap: var(--space-3); }
  .flow-rail { min-width: 14px; }
  .capture-pilot-strip { grid-template-columns: 1fr; justify-items: start; }
  .trust-surface { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .hero-actions .button { flex: 1 1 100%; }
  .demo-row { grid-template-columns: 72px 1fr; }
  .demo-row em { display: none; }
  .float-stat { display: none; }
  .float-chat { position: static; width: 100%; margin-top: var(--space-4); animation: none; }
  .hero-visual { display: grid; }
  .market-factor-grid { grid-template-columns: 1fr; }
  .capture-workflow-rail { grid-template-columns: 1fr; }
  .capture-node-grid { grid-template-columns: 1fr 1fr; }
  .desk-lanes { grid-template-columns: 1fr; }
  .desk-stats strong { font-size: 24px; }
  .outcome-rail { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
  .has-js .reveal .report-bars i { transform: none; }
  .float-chat, .float-stat { animation: none; }
  .flow-rail::after { display: none; }
  .chat-typing { display: none; }
  .has-js .st-unit { opacity: 1; transform: none; animation: none; }
  .has-js .outcome-link { transform: none; transition: none; }
}

/* ============================================================
   Assistant widget styles (unchanged contract block)
   ============================================================ */
.assistant-shell {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: var(--font-sans);
}

.assistant-launcher {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--blue-primary, #0354ff);
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--blue-primary, #0354ff);
  box-shadow: 0 18px 45px rgba(3, 84, 255, 0.24);
  font-weight: 700;
  cursor: pointer;
}

.assistant-shell.is-open .assistant-launcher {
  display: none;
}

.assistant-launcher:focus-visible,
.assistant-close:focus-visible,
.assistant-panel .button:focus-visible,
.assistant-composer textarea:focus-visible {
  outline: 3px solid rgba(255, 109, 69, 0.45);
  outline-offset: 3px;
}

.assistant-launcher-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

@media (min-width: 641px) and (max-width: 1500px) {
  .assistant-launcher {
    justify-content: center;
    width: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
  }

  .assistant-launcher [data-assistant-ui="launcher"] {
    display: none;
  }

  .assistant-launcher-mark {
    width: 16px;
    height: 16px;
  }
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 112px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(3, 84, 255, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(8, 17, 31, 0.2);
}

.assistant-shell.is-open .assistant-panel {
  display: grid;
  bottom: 0;
  grid-template-rows: auto minmax(150px, 1fr) auto;
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(8, 17, 31, 0.08);
  background: #f8fbff;
}

.assistant-kicker {
  margin: 0 0 5px;
  color: var(--blue-primary, #0354ff);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.assistant-header h2 {
  margin: 0;
  color: var(--ink, #08111f);
  font-size: 1rem;
  line-height: 1.2;
}

.assistant-header [data-assistant-ui="subtitle"] {
  margin: 6px 0 0;
  color: rgba(8, 17, 31, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.assistant-provider {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0 0;
  border: 1px solid rgba(3, 84, 255, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue-primary, #0354ff);
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.assistant-close {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid rgba(8, 17, 31, 0.12);
  border-radius: 8px;
  color: var(--ink, #08111f);
  background: #ffffff;
  font-size: 0;
  cursor: pointer;
}

.assistant-close::before,
.assistant-close::after {
  content: "";
  position: absolute;
}

.assistant-close {
  position: relative;
}

.assistant-close::before,
.assistant-close::after {
  top: 19px;
  left: 12px;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.assistant-close::before {
  transform: rotate(45deg);
}

.assistant-close::after {
  transform: rotate(-45deg);
}

.assistant-messages {
  min-height: 180px;
  overflow-y: auto;
  padding: 16px;
  background: #ffffff;
}

.assistant-message {
  display: flex;
  margin: 0 0 10px;
}

.assistant-message p {
  max-width: 92%;
  margin: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.assistant-message-assistant {
  justify-content: flex-start;
}

.assistant-message-assistant p {
  color: var(--ink, #08111f);
  background: #eef4ff;
}

.assistant-message-visitor {
  justify-content: flex-end;
}

.assistant-message-visitor p {
  color: #ffffff;
  background: var(--blue-primary, #0354ff);
}

.assistant-workspace {
  border-top: 1px solid rgba(8, 17, 31, 0.08);
  padding: 16px;
  background: #f8fbff;
  overflow-y: auto;
  max-height: min(380px, 48vh);
}

.assistant-composer,
.assistant-review,
.assistant-saved {
  display: grid;
  gap: 12px;
}

.assistant-question {
  margin: 0;
  color: var(--ink, #08111f);
  font-weight: 700;
}

.assistant-composer label {
  display: grid;
  gap: 8px;
  color: var(--ink, #08111f);
  font-weight: 700;
}

.assistant-composer label span {
  font-size: 0.78rem;
  color: rgba(8, 17, 31, 0.58);
}

.assistant-composer textarea {
  min-height: 92px;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(8, 17, 31, 0.16);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink, #08111f);
  background: #ffffff;
  font: inherit;
  line-height: 1.45;
}

.assistant-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assistant-review h3 {
  margin: 0;
  color: var(--ink, #08111f);
  font-size: 1rem;
}

.assistant-review p {
  margin: 0;
  color: rgba(8, 17, 31, 0.68);
  font-size: 0.88rem;
  line-height: 1.45;
}

.assistant-review-grid {
  display: grid;
  gap: 8px;
}

.assistant-review-grid div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(8, 17, 31, 0.08);
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
}

.assistant-review-grid span {
  color: rgba(8, 17, 31, 0.58);
  font-size: 0.78rem;
}

.assistant-review-grid strong {
  color: var(--ink, #08111f);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.assistant-consent,
.assistant-status,
.assistant-saved p {
  margin: 0;
  color: rgba(8, 17, 31, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.assistant-status {
  color: var(--coral-primary, #ff6d45);
  font-weight: 700;
}

@media (max-width: 640px) {
  .assistant-shell {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .assistant-launcher {
    width: 100%;
    justify-content: center;
  }

  .assistant-panel {
    right: 0;
    bottom: 62px;
    width: 100%;
    max-height: calc(100vh - 92px);
    border-radius: 14px;
  }

  .assistant-action-row .button {
    flex: 1 1 100%;
  }
}
