:root {
  --bg: #fcf8f0;
  --surface: #ffffff;
  --ink: #111b28;
  --primary: #004a9c;
  --primary-2: #1f68bc;
  --accent: #f68c36;
  --accent-ink: #7a3c10;
  --text: #1a2029;
  --muted: #5d646f;
  --border: #dadee5;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-2); color: white; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; align-items: center; margin: 28px 0 14px; flex-wrap: wrap; }
.hero-note { font-size: 0.88rem; color: var(--muted); }

.hero-visual {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 32px 64px -32px rgba(17, 27, 40, 0.22);
  overflow: hidden;
}
.hero-visual-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; }
.bubble.visitor { align-self: flex-end; background: var(--primary); color: white; border-radius: 14px 14px 2px 14px; }
.bubble.agent { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 14px 14px 14px 2px; }
.bubble.handoff { align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); background: none; padding: 4px 2px; }
.bubble.handoff .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.output-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.output-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; font-size: 0.9rem; color: var(--muted); }
.output-card b { display: block; color: var(--ink); font-size: 0.85rem; margin-bottom: 6px; }

/* Problem */
.problem-body { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.pain-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pain-item svg { flex-shrink: 0; margin-top: 2px; }
.pain-item span { font-size: 0.95rem; color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: white; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 0.9rem; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, white); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.feature-tier { display: inline-block; margin-top: 10px; font-size: 0.72rem; font-weight: 700; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 18%, white); padding: 3px 9px; border-radius: 999px; }

/* Pricing */
.pricing-note { color: var(--muted); margin-bottom: 8px; }
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 12px 0 40px; }
.billing-opt { border: none; background: none; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--muted); }
.billing-opt.active { background: var(--primary); color: white; }
.save-badge { margin-left: 10px; font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 18%, white); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.price-card.recommended { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); position: relative; }
.price-badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: white; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-tier { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.price-amount span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-annual-note { font-size: 0.8rem; color: var(--muted); margin: 4px 0 20px; min-height: 1.2em; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex-grow: 1; }
.price-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.price-features svg { flex-shrink: 0; margin-top: 3px; }
.pricing-foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 0.85rem; }

/* annual price swap */
.annual .price-amount .m-price { display: none; }
.annual .price-amount .a-price { display: inline; }
.price-amount .a-price { display: none; }
.annual .price-annual-note { display: block; }
.price-annual-note { display: none; }

/* FAQ */
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-weight: 700; font-size: 0.97rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { transition: transform 0.15s ease; flex-shrink: 0; color: var(--muted); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-msg { font-size: 0.88rem; min-height: 1.2em; }
.form-msg.ok { color: #1a7a3f; }
.form-msg.err { color: #b3261e; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-item b { display: block; color: var(--ink); font-size: 0.92rem; }
.contact-info-item span { color: var(--muted); font-size: 0.88rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 9px; }
.footer-bottom { color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--border); padding-top: 20px; }

@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .output-cards, .pain-grid, .steps, .feature-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

/* Legal pages */
.legal-content { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal-note { background: color-mix(in srgb, var(--accent) 12%, white); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 10px; padding: 14px 16px; font-size: 0.9rem; color: var(--accent-ink); }
.legal-content h2 { font-size: 1.2rem; margin-top: 2em; }
.legal-content code { background: var(--surface); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
