/* ============================================================
   Hania marketing site — shared styles
   Dark-editorial · amber accent · same DNA as the admin
   ============================================================ */

:root {
  --accent-h: 38;
  --accent-c: 0.14;
  --accent-l: 0.74;

  --accent: oklch(var(--accent-l) var(--accent-c) var(--accent-h));
  --accent-soft: oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.16);
  --accent-line: oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.30);
  --accent-ink: oklch(0.18 0.04 var(--accent-h));
  --accent-bright: oklch(calc(var(--accent-l) + 0.04) var(--accent-c) var(--accent-h));

  --bg:       oklch(0.135 0.012 60);
  --bg-2:     oklch(0.170 0.012 60);
  --bg-3:     oklch(0.210 0.012 60);
  --bg-hover: oklch(0.250 0.012 60);
  --line:     oklch(0.275 0.010 60);
  --line-2:   oklch(0.345 0.010 60);

  --fg:       oklch(0.970 0.008 80);
  --fg-2:     oklch(0.845 0.010 70);
  --fg-3:     oklch(0.665 0.012 70);
  --fg-4:     oklch(0.500 0.012 70);

  --good: oklch(0.78 0.13 155);
  --warn: oklch(0.78 0.14 70);
  --bad:  oklch(0.72 0.16 25);
  --info: oklch(0.78 0.10 230);

  --radius:    10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --container-narrow: 920px;
  --container-prose: 720px;
}

[data-theme="light"] {
  --bg:       oklch(0.990 0.005 80);
  --bg-2:     oklch(0.970 0.006 80);
  --bg-3:     oklch(0.945 0.006 80);
  --bg-hover: oklch(0.918 0.006 80);
  --line:     oklch(0.895 0.006 80);
  --line-2:   oklch(0.825 0.008 80);

  --fg:       oklch(0.180 0.012 60);
  --fg-2:     oklch(0.330 0.012 60);
  --fg-3:     oklch(0.510 0.012 60);
  --fg-4:     oklch(0.640 0.010 60);

  --accent-ink: oklch(0.99 0.02 var(--accent-h));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--accent-soft); color: var(--fg); }

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: var(--container-narrow); }
.container-prose  { max-width: var(--container-prose); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  background: oklch(from var(--accent) l c h / 0.08);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-family: var(--font-mono);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 oklch(from var(--accent) l c h / 0.6);
  animation: m-pulse 2s infinite;
}
@keyframes m-pulse {
  0% { box-shadow: 0 0 0 0 oklch(from var(--accent) l c h / 0.6); }
  70% { box-shadow: 0 0 0 6px oklch(from var(--accent) l c h / 0); }
  100% { box-shadow: 0 0 0 0 oklch(from var(--accent) l c h / 0); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 600px;
  text-wrap: pretty;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 14px;
}

.text-muted { color: var(--fg-3); }
.text-mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 550;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg);
  transition: background 140ms, border-color 140ms, transform 80ms;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-3); border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--fg); border-color: transparent; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-outline { background: transparent; }

.btn-arrow { transition: transform 200ms; }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--bg) l c h / 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 17px;
  margin-right: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--fg-2);
  border-radius: 6px;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--fg); background: var(--bg-2); }
.nav-link.active { color: var(--fg); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-spacer { flex: 1; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropdown */
.nav-menu {
  position: relative;
}
.nav-trigger { cursor: pointer; }
.nav-trigger .chev { transition: transform 200ms; opacity: 0.6; }
.nav-menu:hover .nav-trigger .chev,
.nav-menu.open .nav-trigger .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  margin-top: 14px;
  min-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 32px 80px -24px oklch(0 0 0 / 0.7);
  transition: opacity 160ms, transform 160ms;
}
.nav-menu:hover .nav-dropdown,
.nav-menu.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-dropdown-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  align-items: flex-start;
}
.nav-dropdown-item:hover { background: var(--bg-3); }
.nav-dropdown-item .ic {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--accent);
  display: grid; place-items: center;
  margin-top: 1px;
}
.nav-dropdown-item:hover .ic { background: var(--accent-soft); }
.nav-dropdown-item h5 { margin: 0; font-size: 13.5px; font-weight: 550; color: var(--fg); }
.nav-dropdown-item p  { margin: 2px 0 0; font-size: 12px; color: var(--fg-3); line-height: 1.45; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--fg);
  align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--fg-2);
  border-radius: 8px;
}
.mobile-menu a:hover { background: var(--bg-2); }
.mobile-menu .mobile-cta { margin-top: 12px; display: flex; gap: 8px; padding: 0 14px; }
.mobile-menu .mobile-cta .btn { flex: 1; justify-content: center; }

/* ---------- Brand mark (matches admin) ---------- */
.brand-mark { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-sm { padding: 56px 0; }
.section-xl { padding: 140px 0; }
.section + .section { padding-top: 64px; }
.section-divider { border-top: 1px solid var(--line); }
.section-alt { background: oklch(from var(--bg) calc(l - 0.005) c h); }

.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--fg-3); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin-top: 20px; margin-bottom: 22px; }
.hero .lede { font-size: clamp(17px, 1.5vw, 21px); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--fg-3);
  flex-wrap: wrap;
}
.hero-meta .dot { color: var(--accent); margin-right: 6px; }

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, oklch(from var(--accent) l c h / 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Voice device (hero visual) ---------- */
.voice-device {
  position: relative;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 32px 80px -24px oklch(0 0 0 / 0.6),
    0 1px 0 oklch(1 0 0 / 0.05) inset;
}
.voice-device::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, oklch(from var(--accent) l c h / 0.12), transparent 70%);
  border-radius: inherit;
  pointer-events: none;
}
.voice-device-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.voice-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), oklch(from var(--accent) calc(l - 0.1) c h));
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.voice-meta { flex: 1; min-width: 0; }
.voice-meta .name { font-size: 14px; font-weight: 600; }
.voice-meta .sub {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.voice-meta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 0 oklch(0.78 0.13 155 / 0.6);
  animation: m-pulse 1.6s infinite;
}
.voice-timer {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100px;
  padding: 24px 0;
  position: relative;
}
.voice-wave .bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: m-wave 1.4s ease-in-out infinite;
}
@keyframes m-wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}
.voice-transcript {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.transcript-row {
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  animation: m-fade-in 700ms forwards;
}
.transcript-row .who {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-4);
  margin-right: 8px;
}
.transcript-row.bot .who { color: var(--accent); }
.transcript-row.user .who { color: var(--fg-3); }
@keyframes m-fade-in { to { opacity: 1; transform: translateY(0); } }
.voice-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.voice-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--fg-2);
}
.voice-btn:hover { background: var(--bg-hover); color: var(--fg); }
.voice-btn.primary {
  width: 48px; height: 48px;
  background: var(--bad);
  border-color: var(--bad);
  color: white;
}

/* ---------- Logo strip ---------- */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: oklch(from var(--bg) calc(l - 0.005) c h);
}
.logos-head {
  text-align: center;
  font-size: 12px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) {
  .logos-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.logo-item {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg-3);
  text-align: center;
  font-family: var(--font-display);
  opacity: 0.7;
  transition: opacity 200ms, color 200ms;
}
.logo-item:hover { opacity: 1; color: var(--fg); }

/* ---------- Feature grids ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .feature-grid, .feature-grid-2 { grid-template-columns: 1fr; }
}
.feature-card {
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 160ms, transform 200ms;
}
.feature-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature-card .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--fg-3); font-size: 14.5px; line-height: 1.6; }

/* Big feature row (alternating image + text) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse > :first-child { order: 0; }
}
.feature-row h2 { margin-bottom: 18px; }
.feature-row p { font-size: 17px; color: var(--fg-3); margin: 0 0 22px; }
.feature-row ul.checks {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-row ul.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.55;
}
.feature-row ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px; height: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%23ffd082' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 5l2 2 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Code block ---------- */
.code-card {
  background: oklch(from var(--bg) calc(l - 0.01) c h);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px -16px oklch(0 0 0 / 0.6);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.code-tabs { display: flex; gap: 2px; }
.code-tab {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  cursor: pointer;
}
.code-tab.active { background: oklch(from var(--bg) calc(l - 0.01) c h); color: var(--fg); border: 1px solid var(--line); }
.code-traffic {
  display: flex; gap: 6px; margin-right: 6px;
}
.code-traffic span { width: 10px; height: 10px; border-radius: 999px; background: var(--bg-3); }
.code-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-2);
  overflow-x: auto;
}
.code-body .k { color: oklch(0.78 0.10 280); }
.code-body .s { color: oklch(0.78 0.12 145); }
.code-body .n { color: oklch(0.78 0.10 230); }
.code-body .c { color: var(--fg-4); font-style: italic; }
.code-body .p { color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  position: relative;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing-card.featured {
  background: oklch(from var(--accent) l c h / 0.06);
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.pricing-card .tier {
  display: flex; align-items: center; justify-content: space-between;
}
.pricing-card .tier-name { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); color: var(--fg-3); }
.pricing-card.featured .tier-name { color: var(--accent); }
.pricing-card .tier-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-card .price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-card .price .currency { font-size: 22px; color: var(--fg-3); }
.pricing-card .price .period { font-size: 14px; color: var(--fg-3); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.pricing-card .desc { color: var(--fg-3); font-size: 14px; }
.pricing-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pricing-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-card ul li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23ffd082' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8l3 3 7-7'/></svg>");
}

/* ---------- Testimonial ---------- */
.quote-card {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.quote-card .quote-text {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.quote-card .quote-by {
  display: flex; align-items: center; gap: 14px;
}
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: oklch(0.55 0.13 280);
  display: grid; place-items: center;
  color: white; font-weight: 600;
  font-size: 13px;
}

/* ---------- Stat ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-block .v {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.stat-block .v .accent { color: var(--accent); }
.stat-block .l {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.5;
}

/* ---------- Integrations grid ---------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .integrations-grid { grid-template-columns: repeat(2, 1fr); } }
.integration-tile {
  padding: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 140ms;
}
.integration-tile:hover { border-color: var(--line-2); }
.integration-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.integration-tile .n { font-size: 14px; font-weight: 550; }
.integration-tile .c { font-size: 11.5px; color: var(--fg-4); font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: oklch(from var(--bg) calc(l - 0.01) c h);
  padding: 72px 0 32px;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand .lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand p { color: var(--fg-3); font-size: 13.5px; line-height: 1.55; margin: 0 0 18px; max-width: 320px; }
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--fg-3);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.footer-status .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--good);
  box-shadow: 0 0 0 4px oklch(0.78 0.13 155 / 0.18);
}
.footer-col h6 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--fg-2);
  font-size: 13.5px;
}
.footer-col a:hover { color: var(--fg); }
.footer-bot {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--fg-4);
}
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-3);
  display: grid; place-items: center;
}
.footer-social a:hover { background: var(--bg-2); color: var(--fg); }

/* ---------- Legal / Prose pages ---------- */
.legal {
  padding: 56px 0 96px;
}
.legal-head {
  margin-bottom: 40px;
}
.legal-head h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.legal-head .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 12px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static !important; max-height: none; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
}
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 13px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-toc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fg-3);
  border-left: 2px solid transparent;
}
.legal-toc a:hover { color: var(--fg); background: var(--bg-2); }
.legal-toc a.active {
  color: var(--fg);
  border-left-color: var(--accent);
  background: var(--bg-2);
}
.prose {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 720px;
}
.prose h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.015em;
  margin: 48px 0 14px;
  color: var(--fg);
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: var(--fg); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--fg); }
.prose code {
  font-family: var(--font-mono); font-size: 13.5px;
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}

/* ---------- Tag chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-2);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, oklch(from var(--accent) l c h / 0.16), oklch(from var(--accent) l c h / 0.04));
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 20% 0%, oklch(from var(--accent) l c h / 0.18), transparent),
    radial-gradient(40% 60% at 80% 100%, oklch(from var(--accent) l c h / 0.10), transparent);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { font-size: 17px; color: var(--fg-2); margin: 0 auto 28px; max-width: 540px; }

/* ---------- Customer case card ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.case-card .logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.case-card .stat {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent);
  line-height: 1;
  margin-top: auto;
}
.case-card .stat-label { font-size: 13px; color: var(--fg-3); margin-top: 6px; }
.case-card p { color: var(--fg-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, oklch(0.55 0.13 280), oklch(0.55 0.13 320));
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 18px;
  margin-bottom: 12px;
}
.team-card h4 { margin: 0; font-size: 15px; font-weight: 600; }
.team-card .role { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; font-family: var(--font-mono); }
.team-card p { font-size: 13px; color: var(--fg-2); margin: 10px 0 0; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 550;
  color: var(--fg);
}
.faq-q .marker {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--fg-3);
  flex-shrink: 0;
  transition: transform 200ms, color 200ms;
}
.faq-item.open .marker { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  display: none;
  padding: 0 0 22px;
  color: var(--fg-3);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 760px;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
}
.step h3 { font-size: 18px; margin-bottom: 8px; padding-right: 60px; }
.step p { color: var(--fg-3); font-size: 14.5px; margin: 0; }

/* ---------- Tool builder visual ---------- */
.builder {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 16px 48px -16px oklch(0 0 0 / 0.5);
}
.builder-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.builder-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}
.builder-num {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.builder-num.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.builder-row { font-size: 13.5px; }
.builder-row .l { color: var(--fg-3); }
.builder-row .v { color: var(--fg); font-weight: 500; }
.builder-row .v.mono { font-family: var(--font-mono); font-size: 12.5px; }
.builder-input {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  display: inline-block;
  color: var(--fg);
  font-family: var(--font-mono);
}

/* ---------- Customer logo bar small (in body sections) ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
@media (max-width: 900px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.kpi:last-child, .kpi:nth-child(4) { border-right: 0; }
@media (max-width: 900px) {
  .kpi:nth-child(2) { border-right: 0; }
  .kpi { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(3), .kpi:nth-child(4) { border-bottom: 0; }
}
.kpi .v {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.kpi .l { margin-top: 6px; font-size: 13px; color: var(--fg-3); }

/* ---------- Mobile nav crowding (very narrow phones) ----------
   Below 480px the right-side cluster (theme toggle + Request access
   + hamburger) is wider than the room the nav has, causing a hairline
   horizontal scroll. The drawer already exposes both controls, so we
   drop them from the top bar at narrow widths and keep just the logo
   and hamburger. */
@media (max-width: 480px) {
  .nav-cta .btn-primary,
  .nav-cta .theme-toggle { display: none; }
}

/* ---------- Long URLs / mono strings ----------
   Force the builder-input to wrap so an unbreakable URL doesn't push
   its grid column past the viewport on phones. */
.builder-input { overflow-wrap: anywhere; }

/* ---------- Grid item min-width reset ----------
   CSS Grid items default to `min-width: min-content`, which lets a
   single wide child (long word, fixed-width tile, etc.) blow out the
   column and force the whole grid wider than the viewport. Resetting
   to 0 lets columns shrink to fit on phones. Safe across all our grids
   because text wraps and tiles use flex internally. */
.feature-row > *,
.feature-grid > *,
.integrations-grid > *,
.case-grid > *,
.pricing-grid > *,
.stat-row > *,
.steps > *,
.footer-top > *,
.stack-on-mobile > * { min-width: 0; }

/* ---------- Utility: stack a grid into one column on mobile ----------
   For inline `display:grid; grid-template-columns: <multi>` blocks
   that need to collapse on phones. Uses !important to defeat the
   inline grid-template-columns declaration. */
@media (max-width: 720px) {
  .stack-on-mobile {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ---------- Scrollbar ---------- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-2); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Theme toggle button (nav) ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.theme-toggle:hover {
  background: var(--bg-2);
  color: var(--fg);
}
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------- Light-mode adjustments for non-tokenised colors ---------- */
[data-theme="light"] .voice-device {
  box-shadow:
    0 24px 60px -28px oklch(0 0 0 / 0.18),
    0 1px 0 oklch(1 0 0 / 0.8) inset;
}
[data-theme="light"] .code-body .k { color: oklch(0.45 0.18 280); }
[data-theme="light"] .code-body .s { color: oklch(0.42 0.16 145); }
[data-theme="light"] .code-body .n { color: oklch(0.45 0.16 230); }
