/* AI Bot — clinical & calm landing page */
@import "./_fonts-generated.css";

:root {
  --bg: oklch(0.993 0.004 180);
  --surface: oklch(0.965 0.015 170);
  --surface2: oklch(0.98 0.01 175);
  --fg: oklch(0.22 0.012 220);
  --muted: oklch(0.48 0.012 215);
  --subtle: oklch(0.62 0.01 215);
  --border: oklch(0.915 0.012 200);
  --borderSoft: oklch(0.945 0.008 200);
  --accent: oklch(0.58 0.065 185);
  --accentSoft: oklch(0.93 0.03 180);
  --accentFg: oklch(0.32 0.06 190);

  --maxw: 1240px;
  --pad: 32px;
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────────────────────── */
.h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.h1-accent { color: var(--accent); }
.h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 12px 0 0;
  text-wrap: balance;
}
.h2 .muted { color: var(--subtle); font-weight: 400; }
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.18);
}
.eyebrow-accent { color: var(--accentFg); }
.muted { color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: oklch(from var(--fg) calc(l + 0.08) c h); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-nav {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--fg);
  color: var(--bg);
}
.btn-nav:hover { background: oklch(from var(--fg) calc(l + 0.08) c h); }
.btn-full { width: 100%; }

/* ── Layout primitives ──────────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--pad);
}
.section-surface {
  background: var(--surface);
  max-width: 100%;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.section-surface > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.sect-h { margin-bottom: 56px; max-width: 780px; }
.grid { display: grid; gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--bg) l c h / 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img {
  height: 40px;
  width: auto;
  max-width: min(100%, 280px);
  display: block;
  object-fit: contain;
}
@media (max-width: 640px) {
  .logo-img { height: 32px; }
}
.logo-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--surface);
  color: var(--accent);
  border: 0.5px solid var(--border);
}
.logo-text { font-weight: 600; font-size: 15px; line-height: 1.1; display: inline-flex; flex-direction: column; }
.logo-text em {
  font-style: normal; font-weight: 400; font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }
.nav-login { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-login:hover { color: var(--fg); }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: oklch(from var(--surface) l c h / 0.72);
}
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.language-switcher a:hover { color: var(--fg); }
.language-switcher a.is-active {
  background: var(--fg);
  color: var(--bg);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--borderSoft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--borderSoft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask: radial-gradient(ellipse at 70% 40%, black 0%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at 70% 40%, black 0%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-left {}
.cta-row { display: flex; gap: 12px; margin-bottom: 56px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
  max-width: 540px;
}
.hero-meta > div:not(.divider) { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-meta span {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
}
.hero-meta .divider { width: 1px; height: 32px; background: var(--border); }

/* Hero diagram */
.hero-right { position: relative; min-height: 440px; }
.diagram {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  color: var(--fg);
}
.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--muted);
  pointer-events: none;
}
.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  box-shadow: 0 1px 0 oklch(from var(--bg) calc(l - 0.02) c h);
  z-index: 2;
}
.node-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  background: var(--surface);
  color: var(--fg);
  border: 0.5px solid var(--border);
}
.node-avatar.ai {
  background: var(--accentSoft);
  color: var(--accentFg);
  border-color: var(--accent);
}
.node-avatar.op {
  background: oklch(0.96 0.02 50);
  color: oklch(0.45 0.08 45);
  border-color: oklch(0.9 0.02 50);
}
.node-label { display: flex; flex-direction: column; line-height: 1.15; }
.node-label span { font-size: 13px; font-weight: 600; }
.node-label em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.node-patient { top: 12%; left: 0%; }
.node-ai { top: 44%; left: 38%; }
.node-operator { top: 78%; right: 0%; }

.chat-card {
  position: absolute;
  bottom: -40px;
  right: -10px;
  width: 340px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px oklch(0.22 0.012 220 / 0.15), 0 8px 16px -8px oklch(0.22 0.012 220 / 0.08);
  overflow: hidden;
  z-index: 3;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface2);
  font-size: 12px;
}
.chat-head-l { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.chat-live {
  color: oklch(0.55 0.15 25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.chat-body {
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 260px;
  max-height: 320px;
  overflow: hidden;
}
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 85%; animation: slideIn .4s ease; }
.msg-l { align-self: flex-start; align-items: flex-start; }
.msg-r { align-self: flex-end; align-items: flex-end; }
.msg-role {
  font-size: 10px;
  color: var(--subtle);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.bubble-patient {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble-ai {
  background: var(--accentSoft);
  color: var(--accentFg);
  border: 0.5px solid oklch(from var(--accent) l c h / 0.2);
  border-bottom-right-radius: 4px;
}
.bubble-operator {
  background: oklch(0.96 0.02 50);
  color: oklch(0.3 0.05 45);
  border: 0.5px solid oklch(0.88 0.03 50);
  border-bottom-right-radius: 4px;
}
.msg-sys {
  align-self: center;
  font-size: 11px;
  color: var(--subtle);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.sys-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite;
}
.chat-typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: 10px 12px;
  background: var(--accentSoft);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accentFg); opacity: 0.4;
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes typing { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* ── Safety band ────────────────────────────────────────────────────────── */
.safety-band {
  background: var(--accentSoft);
  border-top: 0.5px solid oklch(from var(--accent) l c h / 0.3);
  border-bottom: 0.5px solid oklch(from var(--accent) l c h / 0.3);
  color: var(--accentFg);
}
.safety-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
}
.safety-inner p { margin: 0; font-size: 14px; line-height: 1.5; }
.safety-inner svg { flex-shrink: 0; }

/* ── Cards (benefits) ───────────────────────────────────────────────────── */
.card-benefit {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s;
}
.card-benefit:hover { background: var(--surface2); }
.card-icon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accentSoft);
  color: var(--accentFg);
  margin-bottom: 8px;
}
.card-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.card-body {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.how-steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  text-align: left;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 22px 0 22px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  border-top: 0.5px solid var(--border);
  position: relative;
  transition: padding .2s;
}
.step:last-child { border-bottom: 0.5px solid var(--border); }
.step-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--subtle);
  padding-top: 4px;
  transition: color .2s;
}
.step-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fg);
  transition: color .2s;
}
.step-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  max-width: 460px;
}
.step-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background .2s;
}
.step.is-active .step-bar { background: var(--accent); }
.step.is-active .step-n { color: var(--accentFg); }
.step.is-active .step-body h3 { color: var(--fg); }
.step:hover:not(.is-active) .step-bar { background: var(--border); }

.how-visual {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 420px;
  position: sticky;
  top: 80px;
}

/* Step visuals */
.sv { height: 100%; display: flex; flex-direction: column; gap: 16px; }
.sv-title {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.sv-inbox { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.inbox-row {
  background: var(--bg);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.inbox-ch { display: inline-flex; width: 28px; height: 28px; border-radius: 7px; background: var(--accentSoft); align-items: center; justify-content: center; }
.inbox-meta { min-width: 0; }
.inbox-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.inbox-prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-t { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; }
.inbox-badge {
  background: var(--accent);
  color: white;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}

.ai-bubble {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  font-size: 14px;
  align-items: flex-start;
}
.ai-bubble svg { margin-top: 2px; flex-shrink: 0; }
.ai-bubble-out {
  background: var(--accentSoft);
  color: var(--accentFg);
  border-color: oklch(from var(--accent) l c h / 0.25);
}
.ai-sources { display: flex; flex-direction: column; gap: 6px; padding-left: 8px; }
.ai-src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.ai-src .pin {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.ho-card { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ho-head { display: flex; align-items: center; gap: 12px; }
.ho-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface);
  border: 0.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.ho-head > div { line-height: 1.15; margin-right: auto; }
.ho-head strong { font-size: 14px; font-weight: 600; display: block; }
.ho-head em { font-style: normal; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.ho-tag {
  background: var(--accentSoft);
  color: var(--accentFg);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.ho-summary { background: var(--surface2); border: 0.5px solid var(--borderSoft); border-radius: 8px; padding: 12px 14px; }
.ho-s-label {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ho-summary ul { margin: 0; padding-left: 16px; }
.ho-summary li { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ho-assign { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 4px; border-top: 0.5px solid var(--borderSoft); padding-top: 12px; }
.ho-time { font-family: 'JetBrains Mono', monospace; color: var(--subtle); }

.sync-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 12px 0; }
.sync-side {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sync-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--accentSoft); color: var(--accentFg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.sync-side strong { font-size: 15px; font-weight: 600; }
.sync-side em { font-style: normal; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.sync-pipe { display: flex; flex-direction: column; gap: 8px; }
.pipe-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.pipe-row span { color: var(--accent); font-weight: 600; margin-right: 6px; }

/* ── Features ───────────────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-top: 0.5px solid var(--border);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-reverse { grid-template-columns: 1.15fr 1fr; }
.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-visual { order: 1; }
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accentSoft);
  color: var(--accentFg);
  border-radius: 999px;
  margin-bottom: 20px;
}
.feature-text h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 16px;
  text-wrap: balance;
}
.feature-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 460px;
}
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feat-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
.feat-list li svg { color: var(--accent); flex-shrink: 0; }

/* Mocks */
.mock {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px oklch(0.22 0.012 220 / 0.15);
}
.mock-bar {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border-bottom: 0.5px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Inbox mock */
.mock-inbox .mock-body { display: grid; grid-template-columns: 220px 1fr; min-height: 380px; }
.mock-side { border-right: 0.5px solid var(--border); display: flex; flex-direction: column; background: var(--surface2); }
.mock-side-h {
  padding: 14px 16px 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-side-row {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 0.5px solid var(--borderSoft);
}
.mock-side-row.is-on { background: var(--bg); }
.mock-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 0.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.mock-n { font-size: 13px; font-weight: 500; }
.mock-p { font-size: 11px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; }
.mock-badge { background: var(--accent); color: white; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; }

.mock-main { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-h { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; border-bottom: 0.5px solid var(--borderSoft); }
.mock-h strong { font-size: 14px; font-weight: 600; display: block; }
.mock-h em { font-style: normal; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.mock-tags { display: flex; gap: 6px; }
.tag {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 0.5px solid var(--border);
  letter-spacing: 0.02em;
}
.tag-accent { background: var(--accentSoft); color: var(--accentFg); border-color: transparent; }
.mock-chat { display: flex; flex-direction: column; gap: 8px; }
.mock-msg {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.45;
}
.mock-msg.in { align-self: flex-start; background: var(--surface); border: 0.5px solid var(--border); border-bottom-left-radius: 4px; }
.mock-msg.out { align-self: flex-end; background: oklch(0.96 0.02 50); color: oklch(0.3 0.05 45); border-bottom-right-radius: 4px; }
.mock-msg.ai { background: var(--accentSoft); color: var(--accentFg); display: inline-flex; align-items: center; gap: 6px; }
.ai-mark { display: inline-flex; }
.mock-sys { align-self: center; font-size: 11px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; }

/* KB mock */
.kb-body { padding: 18px 20px; }
.kb-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 0.5px solid var(--borderSoft); }
.kb-head h4 { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.kb-head > div > span { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.kb-add {
  height: 28px;
  padding: 0 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--fg);
}
.kb-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--borderSoft);
}
.kb-row:last-child { border-bottom: 0; }
.kb-type {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 5px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.kb-title { font-size: 13.5px; font-weight: 500; }
.kb-upd { font-size: 11px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; }
.kb-on { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }

/* Admin mock */
.adm-body { padding: 20px; }
.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.adm-stat {
  background: var(--surface2);
  border: 0.5px solid var(--borderSoft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.adm-k { font-size: 11px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.adm-stat strong { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.adm-d { position: absolute; top: 14px; right: 16px; font-size: 11px; font-family: 'JetBrains Mono', monospace; font-weight: 500; }

.adm-section { background: var(--surface2); border: 0.5px solid var(--borderSoft); border-radius: var(--radius-sm); overflow: hidden; }
.adm-sh { padding: 12px 16px; font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 0.5px solid var(--borderSoft); }
.adm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 0.5px solid var(--borderSoft); }
.adm-row:last-child { border-bottom: 0; }
.adm-row-n { font-size: 13px; }
.adm-row-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.dot-on { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.65 0.14 145); }

/* ── Integrations ───────────────────────────────────────────────────────── */
.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.int-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background .2s;
}
.int-card:hover { background: var(--surface2); }
.int-logo {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  margin-bottom: 10px;
}
.int-primary .int-logo { background: var(--accentSoft); border-color: oklch(from var(--accent) l c h / 0.3); }
.int-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.int-desc { font-size: 13.5px; color: var(--muted); }
.int-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.int-note { margin-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
.int-note a { color: var(--accentFg); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ── Use cases ──────────────────────────────────────────────────────────── */
.cases-sub {
  font-size: 16px;
  color: var(--muted);
  margin: -32px 0 48px;
  line-height: 1.5;
}
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s;
}
.case:hover { border-color: oklch(from var(--accent) l c h / 0.4); }
.case-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.case-icon { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.case-tag { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.case-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 10px; }
.case-body { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.case-metric { font-size: 15px; padding: 12px 16px; background: var(--accentSoft); color: var(--accentFg); border-radius: 10px; margin-bottom: 24px; font-weight: 500; letter-spacing: -0.005em; }
.case-photo { margin: 0 -28px; }
.placeholder-ph {
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface2) 10px 20px);
  display: flex; align-items: center; justify-content: center;
  border-top: 0.5px solid var(--borderSoft);
}
.placeholder-ph span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; max-width: 860px; }
.faq-row {
  appearance: none;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 0.5px solid var(--border);
  padding: 0;
  display: block;
  width: 100%;
}
.faq-row:last-child { border-bottom: 0.5px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq-toggle { color: var(--muted); transition: color .2s; }
.faq-row:hover .faq-toggle { color: var(--accent); }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-row.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
}
.faq-row.is-open .faq-a { padding-bottom: 24px; }

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card-simple { align-items: center; }
.cta-actions { display: flex; gap: 12px; margin-top: 28px; }
.cta-device { background: var(--bg); border: 0.5px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -24px oklch(0.22 0.012 220 / 0.18); }
.cta-device-h { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 0.5px solid var(--border); background: var(--surface2); }
.cta-device-url { margin-left: 12px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--muted); }
.cta-device-body { padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cta-dev-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--accentSoft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cta-dev-logo-img { display: block; object-fit: contain; }
.cta-dev-t { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cta-dev-s { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cta-dev-box { width: 100%; background: var(--surface2); border: 0.5px solid var(--borderSoft); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cta-dev-cap { font-size: 11px; color: var(--subtle); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.cta-dev-btn { background: var(--bg); border: 0.5px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--borderSoft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--borderSoft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask: radial-gradient(ellipse at 90% 0%, black 0%, transparent 60%);
  -webkit-mask: radial-gradient(ellipse at 90% 0%, black 0%, transparent 60%);
  opacity: .6;
  pointer-events: none;
}
.cta-copy { position: relative; }
.cta-h {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.cta-sub { font-size: 16px; color: var(--muted); max-width: 440px; line-height: 1.55; margin: 0 0 24px; }
.cta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cta-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.cta-list svg { color: var(--accent); }

.cta-form {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px -30px oklch(0.22 0.012 220 / 0.15);
}
.cta-form label { display: flex; flex-direction: column; gap: 6px; }
.cta-form label > span {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cta-form input, .cta-form select {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  outline: none;
  transition: border-color .15s, background .15s;
}
.cta-form input::placeholder { color: var(--subtle); }
.cta-form input:focus, .cta-form select:focus {
  border-color: var(--accent);
  background: var(--surface2);
}
.cta-fine { font-size: 11.5px; color: var(--subtle); text-align: center; margin: 4px 0 0; line-height: 1.5; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  margin-top: 40px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad) 48px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
}
.foot-brand p { font-size: 14px; color: var(--muted); max-width: 320px; margin: 14px 0 0; line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-cols h5 {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-cols a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; transition: color .15s; }
.foot-cols a:hover { color: var(--fg); }
.foot-bottom {
  border-top: 0.5px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--subtle);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { min-height: 520px; }
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-visual { position: static; min-height: 360px; }
  .feature, .feature-reverse { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .feature-reverse .feature-text { order: 0; }
  .feature-reverse .feature-visual { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; gap: 40px; }
  .foot-inner { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-inner { gap: 16px; }
  .nav-cta { gap: 8px; }
  .nav-login { display: none; }
  .btn-nav { display: none; }
  .adm-stats { grid-template-columns: 1fr; }
  .mock-inbox .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .int-grid { grid-template-columns: 1fr; }
  .sync-diagram { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 16px; }
  .hero-meta .divider { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}
