/* =====================================================================
   BotClarify — marketing site
   Shares the application's tokens so the site and the product read as one
   thing; adds a larger type scale and more generous spacing, because a
   landing page is read at arm's length and a console is read up close.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --surface: #ffffff;
  --border: #e3e6eb;
  --border-strong: #d0d5dd;
  --text: #15181e;
  --text-2: #4a5160;
  --muted: #7a8291;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef2ff;
  --ink: #171b24;
  --success: #067a4e;
  --success-soft: #e6f6ee;
  --warn: #9a6200;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 6px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, .14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, #6366f1, #4338ca); color: #fff; font-weight: 700; font-size: 15px;
}
.brand-name { font-weight: 680; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; margin-left: 10px; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.head-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 7px 9px; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; display: block; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .12s;
}
.btn:hover { text-decoration: none; background: var(--bg-soft); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn.lg { font-size: 15.5px; padding: 14px 24px; border-radius: 11px; }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.18; margin: 0; color: var(--text); }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 720; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.012em; }
.lead { font-size: clamp(16.5px, 2vw, 19px); color: var(--text-2); line-height: 1.62; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
section { padding: 88px 0; }
section.tint { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { margin: 14px 0 0; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin: 0 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* ---------- Product mock ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #d8dce3; }
.mock-title { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.mock-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.mock-msg { display: flex; gap: 10px; align-items: flex-start; }
.mock-msg.me { flex-direction: row-reverse; }
.mock-av {
  width: 27px; height: 27px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 650; color: #fff;
}
.mock-msg.me .mock-av { background: var(--primary); }
.mock-msg.bot .mock-av { background: var(--ink); }
.mock-bubble {
  padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.6;
  max-width: 82%; border: 1px solid transparent;
}
.mock-msg.me .mock-bubble { background: var(--primary-soft); border-color: #dfe3fb; border-bottom-right-radius: 3px; }
.mock-msg.bot .mock-bubble { background: var(--bg-soft); border-color: var(--border); border-bottom-left-radius: 3px; }
/* A block, not inline-flex: inline, the chip wraps into the last line of the
   answer and the sentence breaks around it. */
.mock-cite {
  display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 10px;
  font-size: 11.5px; color: var(--text-2); background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px;
}
.mock-cite svg { width: 12px; height: 12px; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.8px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.card .ico svg { width: 19px; height: 19px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 680;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.8px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 650;
  padding: 4px 13px; border-radius: 20px; white-space: nowrap;
}
.plan h3 { font-size: 19px; }
.plan .blurb { color: var(--muted); font-size: 14px; margin: 7px 0 20px; min-height: 42px; }
.plan .price { font-size: 40px; font-weight: 720; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .trial-note { font-size: 13.5px; font-weight: 600; color: var(--warn); margin-top: 6px; }
.feats { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.feats svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--success); }
.feats li.off { color: var(--muted); }
.feats li.off svg { color: var(--border-strong); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--text-2); font-size: 15.3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #312e81, #4338ca 55%, #4f46e5);
  color: #fff; border-radius: var(--radius-lg); padding: 56px 44px; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #cdd0f5; font-size: 17px; margin: 0 auto 28px; max-width: 520px; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--primary-600); }
.cta-band .btn:hover { background: #eef2ff; border-color: #eef2ff; }
.cta-band .btn.outline { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.cta-band .btn.outline:hover { background: rgba(255,255,255,.12); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #aab2c2; padding: 56px 0 34px; font-size: 14.5px; }
.site-foot .brand-name { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: #aab2c2; }
.foot-grid a:hover { color: #fff; text-decoration: none; }
.foot-about { color: #8891a3; max-width: 300px; margin: 14px 0 0; font-size: 14px; line-height: 1.65; }
.foot-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid #2a3140;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8891a3; font-size: 13.5px;
}

/* ---------- Long-form pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 0 76px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; margin: 42px 0 12px; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc .note {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 8px; padding: 16px 18px; margin: 24px 0;
}
.doc .note p { margin: 0; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text); font-weight: 650; background: var(--bg-soft); }

/* ---------- Contact form ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.13);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero-grid, .grid.c3, .grid.c2, .steps, .plans, .foot-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .plan.featured { order: -1; }
  .nav, .head-cta { display: none; }
  .nav-toggle { display: block; }
  .site-head.open .nav {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; margin: 0;
  }
  .site-head.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-head.open .head-cta { display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 14px 24px 18px; border-bottom: 1px solid var(--border); }
  .site-head.open .head-cta .btn { flex: 1; }
  .cta-band { padding: 44px 24px; }
  .foot-grid { gap: 30px; }
}
