/* ChatVeron marketing site. Design tokens are shared with legal.css. */
:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #526077;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-ink: #3730a3;
  --brand-soft: #eef0ff;
  --ok: #0f766e;
  --ok-soft: #e6f6f3;
  --no: #be123c;
  --dark: #111530;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px rgba(49, 46, 129, .14);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
address { font-style: normal; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { flex: none; border-radius: 25%; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-header .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .28); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd5e2; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { color: var(--brand-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, .14), transparent 70%),
  radial-gradient(700px 380px at -10% 10%, rgba(79, 70, 229, .12), transparent 70%),
  linear-gradient(#fbfbff, #ffffff); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.hero .eyebrow { background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; font-size: .7rem; letter-spacing: .06em; }
@media (min-width: 640px) { .hero .eyebrow { font-size: .8rem; letter-spacing: .08em; } }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.125rem; margin-top: 20px; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; font-size: .95rem; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { color: var(--ok); }
@media (min-width: 960px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* Hero illustration */
.mock { position: relative; display: grid; gap: 16px; max-width: 420px; width: 100%; margin: 0 auto; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lg); }
.mock-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); }
.mock-head .muted { font-size: .85rem; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .7rem; font-weight: 800; color: #fff; flex: none; }
.av-brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.av-user { background: #0f766e; }
.mock-media { margin: 12px 0; aspect-ratio: 16 / 10; border-radius: 14px; display: grid; place-items: center; padding: 20px; text-align: center; color: #fff; font-weight: 650; font-size: 1.05rem; line-height: 1.4;
  background: linear-gradient(135deg, #312e81, #6d28d9 60%, #9333ea); }
.mock-media strong { background: rgba(255, 255, 255, .2); padding: 1px 8px; border-radius: 6px; }
.mock-comment { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.mock-comment b { color: var(--ink); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.bubble { margin-top: 12px; background: var(--brand); color: #fff; padding: 12px 14px; border-radius: 16px 16px 16px 4px; font-size: .95rem; max-width: 92%; }
@media (min-width: 960px) {
  .mock { max-width: 440px; }
  .mock-dm { margin-left: 48px; margin-top: -8px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .muted { margin-top: 12px; font-size: 1.05rem; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin-top: 8px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* Features */
.f-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand-ink); }
.f-ic .ic { width: 22px; height: 22px; }
.who { border-top: 4px solid var(--brand); }

/* Safety */
.section-dark { background: radial-gradient(800px 400px at 100% 0%, rgba(124, 58, 237, .35), transparent 70%), var(--dark); color: #d6dbf5; }
.section-dark h2 { color: #fff; }
.eyebrow-light { color: #c4c8ff; }
.lead-light { margin-top: 16px; font-size: 1.08rem; max-width: 32em; }
.safety-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .safety-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.rules { display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #eef0ff; }
.rules .ic { margin-top: 2px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; }
.rules .ok { background: #14b8a6; color: #04201d; }
.rules .no { background: #fb7185; color: #3b0712; }

/* Requirements & data */
.two-col { display: grid; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.panel { padding: 28px; }
.panel h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.panel > .muted { margin-top: 10px; }
.checklist { display: grid; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--ok); margin-top: 3px; }
.panel .small { margin-top: 20px; }

/* Pricing */
.pricing { max-width: 880px; margin: 0 auto; }
#pricing .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan .checklist { margin-bottom: 28px; flex: 1; }
.plan-main { border: 2px solid var(--brand); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-top: 12px !important; }
.price-muted { font-size: 1.5rem; color: var(--muted); }
/* Pricing cards rendered by pricing.js from /api/plans */
.pricing-4 { max-width: 1160px; }
@media (min-width: 640px) { .pricing-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pricing-4 { grid-template-columns: repeat(4, 1fr); } }
.pricing-4 .plan { padding: 24px; }
.pricing-4 .price { font-size: 2rem; }
.pricing-4 .checklist { align-content: start; }
.pricing-fallback, .pricing-notes { text-align: center; grid-column: 1 / -1; }
.pricing-notes { max-width: 880px; margin: 20px auto 0; }
.price .price-unit { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price s, .price-annual s { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-annual { margin-top: 4px !important; }
.launch-badge { display: inline-block; align-self: flex-start; margin-top: 10px !important; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e7f8ef; color: #0b6b3a; }
.badge { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #fff4e5; color: #8a4b00; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { box-shadow: var(--shadow); border-color: #cfd3f6; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 18px; }

/* CTA band */
.cta-band { display: grid; gap: 24px; align-items: center; padding: 40px 28px; border-radius: 24px; color: #e8e9ff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 70%), linear-gradient(135deg, var(--brand-ink), var(--brand) 55%, var(--brand-2)); }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; max-width: 36em; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px; } }
#contact { padding-top: 0; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin-top: 12px; max-width: 30em; }
.brand-footer { font-size: 1.05rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink); font-weight: 600; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1.3fr .7fr; } }
