/* nexChat by Exira Labs — shared styles */

:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;
  --success: #047857;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(30, 27, 75, 0.18);

  --max: 1140px;
  --gutter: 24px;
  --header-h: 68px;

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

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; letter-spacing: -0.015em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled,
.site-header.is-solid { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name span { color: var(--accent); }
.brand-by {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; }
  .brand-by { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.section-lead { font-size: 1.1rem; color: var(--text-muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px -100px auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }

/* Product mockup */
.mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.mockup-title { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.mockup-body { display: grid; grid-template-columns: 1fr 190px; }
.chat { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700;
  background: #fde68a; color: #78350f;
  flex: none;
}
.chat-head strong { display: block; font-size: 0.88rem; color: var(--text); line-height: 1.2; }
.chat-head small { font-size: 0.75rem; color: var(--text-muted); }
.bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.bubble.in { background: var(--bg-alt); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble-tag { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.8; margin-bottom: 2px; letter-spacing: 0.02em; }
.product-card {
  align-self: flex-end;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 85%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.product-thumb {
  width: 44px; height: 44px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
  display: grid; place-items: center;
}
.product-thumb svg { width: 22px; height: 22px; color: var(--accent); }
.product-card strong { display: block; font-size: 0.82rem; color: var(--text); line-height: 1.3; }
.product-card small { font-size: 0.75rem; color: var(--text-muted); }
.chat-actions { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-end; justify-content: flex-end; }
.chip {
  font-size: 0.72rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--accent-border);
  color: var(--accent); background: var(--accent-soft);
}
.side {
  border-left: 1px solid var(--border);
  background: #fbfcfe;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.side-card .row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.76rem; color: var(--text-body); }
.side-card .row + .row { margin-top: 4px; }
.side-card .row b { color: var(--text); font-weight: 600; }
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--success); background: var(--success-soft); }
.status.wait { color: var(--warning); background: var(--warning-soft); }
.status.info { color: var(--accent); background: var(--accent-soft); }
.mockup-caption { margin-top: 14px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .chat > * { animation: rise .5s ease both; }
  .chat > *:nth-child(2) { animation-delay: .15s; }
  .chat > *:nth-child(3) { animation-delay: .45s; }
  .chat > *:nth-child(4) { animation-delay: .75s; }
  .chat > *:nth-child(5) { animation-delay: 1.05s; }
  .chat > *:nth-child(6) { animation-delay: 1.35s; }
  .side > * { animation: rise .5s ease both; animation-delay: 1.5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Problem / solution ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare-card.after { border-color: var(--accent-border); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.compare-card h3 { font-size: 1.15rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.compare-list { list-style: none; display: grid; gap: 14px; }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; }
.compare-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.compare-card.before svg { color: var(--text-muted); }
.compare-card.after svg { color: var(--accent); }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--accent-border); box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-box {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.icon-box svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-muted); }
.step-example {
  margin-top: 16px;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-body);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.5;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -15px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  transform: rotate(45deg);
  z-index: 1;
}

/* ---------- Audience ---------- */

.audience { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.audience-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.audience-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.audience-item .icon-box { width: 36px; height: 36px; margin: 0; flex: none; }
.audience-item .icon-box svg { width: 18px; height: 18px; }
.audience-item strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 2px; }
.audience-item span { font-size: 0.87rem; color: var(--text-muted); }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Integrations ---------- */

.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.integration {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.integration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.integration h3 { font-size: 1.02rem; }
.integration p { font-size: 0.92rem; color: var(--text-muted); }
.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid;
}
.pill.dev { color: var(--warning); background: var(--warning-soft); border-color: #fde68a; }
.pill.planned { color: var(--text-muted); background: var(--bg-alt); border-color: var(--border); }
.pill.core { color: var(--success); background: var(--success-soft); border-color: #a7f3d0; }
.fine-print { margin-top: 24px; font-size: 0.87rem; color: var(--text-muted); max-width: 760px; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about p + p { margin-top: 14px; }
.principles { display: grid; gap: 16px; }
.principle {
  display: flex; gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.principle h3 { font-size: 1rem; margin-bottom: 4px; }
.principle p { font-size: 0.92rem; color: var(--text-muted); }
.principle .icon-box { margin: 0; flex: none; }

/* ---------- Contact ---------- */

.contact-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--text);
  color: #cbd5e1;
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(129, 140, 248, 0.35), rgba(129, 140, 248, 0));
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.contact-card .eyebrow { color: #a5b4fc; }
.contact-options { display: grid; gap: 12px; }
.contact-option {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
a.contact-option:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.contact-option svg { width: 22px; height: 22px; color: #a5b4fc; flex: none; }
.contact-option small { display: block; color: #94a3b8; font-size: 0.8rem; }
.contact-option strong { font-weight: 600; font-size: 0.97rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-about p { color: var(--text-muted); margin-top: 14px; max-width: 340px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-body); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-muted); }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 750; letter-spacing: -0.025em; margin-bottom: 12px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--text-muted); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal-tabs a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-body);
  background: var(--surface);
}
.legal-tabs a:hover { border-color: var(--border-strong); color: var(--text); }
.legal-tabs a[aria-current="page"] { background: var(--text); color: #fff; border-color: var(--text); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.prose { max-width: 760px; }
.prose > section { padding-top: 8px; }
.prose > section + section { margin-top: 40px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.prose h3 { font-size: 1.05rem; font-weight: 650; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  color: var(--text-body);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: #312e81; }

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.summary-box h2 { font-size: 1.05rem; margin-bottom: 12px; }
.summary-box ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--surface); }
.prose th, .prose td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-alt); color: var(--text); font-weight: 600; font-size: 0.85rem; }
.prose tr:last-child td { border-bottom: 0; }

.steps-list { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px; }
.steps-list > li {
  counter-increment: s;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
}
.steps-list > li::before {
  content: counter(s);
  position: absolute;
  left: 20px; top: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid; place-items: center;
}
.steps-list > li p:last-child, .steps-list > li ul:last-child { margin-bottom: 0; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 24px; }
.option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.option h3 { margin-top: 0; }
.option p:last-child { margin-bottom: 0; }

.email-template {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  background: var(--text);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .audience, .about, .contact-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .audience, .about { gap: 40px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; padding-bottom: 72px; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .compare, .features, .steps, .integrations, .audience-list, .option-grid { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .compare-card { padding: 24px; }
  .contact-card { padding: 32px 22px; border-radius: 18px; gap: 28px; }
  .mockup-body { grid-template-columns: 1fr; }
  .side { border-left: 0; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; }
  .side-label { width: 100%; }
  .side-card { flex: 1 1 140px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-list > li { padding: 18px 18px 18px 58px; }
  .steps-list > li::before { left: 16px; }
}

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

@media print {
  .site-header, .site-footer, .toc, .legal-tabs, .skip-link { display: none !important; }
  body { background: #fff; }
  .legal-layout { display: block; padding: 0; }
}
