/* ChatBuilder AI — all-black sales site, violet accent, clean SaaS look. */
:root {
  --ink: #17122b;
  --ink-2: #241b45;
  --violet: #6d28d9;
  --violet-2: #9d8bff;
  --violet-bright: #8b5cf6;
  --lavender: #e9e4ff;
  --bg: #f6f5fb;
  --card: #ffffff;
  --muted: #6b6486;
  --line: #e6e2f5;
  --good: #1f9d63;
  --bad: #c0392b;
  --radius: 16px;
  /* Sales-page (black theme) tokens */
  --black: #000000;
  --dark-card: #111111;
  --dark-card-2: #1a1a1a;
  --grey-text: #a1a1aa;
  --grey-text-2: #d4d4d8;
  --dark-line: rgba(255, 255, 255, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: var(--black);
  line-height: 1.55;
}
a { color: #a78bfa; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--grey-text); }
.small { font-size: 13px; }
.loading { text-align: center; padding: 80px 20px; color: var(--grey-text); }

/* Announcement + nav */
.announcement { background: var(--violet); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
#nav { background: var(--black); color: #fff; border-bottom: 1px solid var(--dark-line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.logo { font-weight: 800; font-size: 19px; color: #fff; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--violet); color: #fff; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; justify-self: center; }
.nav-links a { color: var(--grey-text-2); font-size: 14px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-right { display: flex; gap: 16px; align-items: center; justify-self: end; }
.nav-admin { color: var(--grey-text) !important; font-size: 13px; }
.nav-admin:hover { color: #fff !important; text-decoration: none; }
.nav-login { background: none; border: 0; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.nav-login:hover { opacity: .8; }
.nav-user { font-size: 13px; color: #cfc8ee; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-actions { display: flex; gap: 16px; align-items: center; }
/* Header icon buttons (theme toggle + hamburger) — rounded square, subtle
   border, dark-card background, centred icon. */
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--dark-line);
  background: var(--dark-card); color: #e5e5e5; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; display: block; }
/* Hamburger is mobile-only; the theme toggle shows on all screen sizes. */
.menu-toggle { display: none; }
/* Mobile dropdown panel — never shows on desktop, even if unhidden. */
.mobile-menu { display: none; border-top: 1px solid var(--dark-line); background: var(--black); padding: 8px 20px 18px; }
.mobile-links { display: flex; flex-direction: column; }
.mobile-links a { color: var(--grey-text-2); font-size: 15px; font-weight: 600; padding: 11px 4px; display: block; }
.mobile-links a:hover { color: #fff; text-decoration: none; }
.mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--dark-line); }
.mobile-actions .btn { width: 100%; }
.mobile-actions .nav-login { text-align: left; padding: 10px 4px; font-size: 15px; }
.mobile-actions .nav-admin { display: block; padding: 10px 4px; font-size: 15px; }
.mobile-actions .nav-user { padding: 6px 4px; max-width: none; }

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px; font-size: 15px; font-weight: 700; background: var(--violet);
  color: #fff; text-align: center;
}
.btn:hover { background: #5b21b6; text-decoration: none; }
.btn-arrow { margin-left: 10px; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #4a3f7a; }
.btn.ghost:hover { border-color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn.outline:hover { border-color: #fff; }
.btn.danger { background: var(--bad); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn.plan-outline { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn.plan-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Sales page shell — pure black throughout */
.sales { background: var(--black); color: #fff; }
.sales .wrap { max-width: 1200px; }
.sales .muted { color: var(--grey-text); }

/* Hero */
.hero { background: var(--black); color: #fff; padding: 64px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--violet-2); text-transform: uppercase; }
.sales .eyebrow { color: var(--grey-text); }
.green-dot { color: #22c55e; font-size: 9px; margin-right: 6px; vertical-align: 2px; }
.hero h1 { font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 16px; }
.hero h1 em { color: var(--violet-bright); font-style: normal; }
.hero p.lede { font-size: 17px; color: var(--grey-text); margin: 0 0 22px; max-width: 420px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-link { color: #fff; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 9px; }
.hero-link:hover { text-decoration: none; opacity: .85; }
.play-circle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%; font-size: 9px; padding-left: 2px; flex-shrink: 0; }
.hero-social { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.hero-social-text strong, .hero-social-text span { display: block; }
.hero-social-text strong { font-size: 14px; color: var(--grey-text-2); font-weight: 600; }
.hero-social-text span { font-size: 13px; color: var(--grey-text); }
.avatar-stack { display: flex; flex-shrink: 0; }
.avatar-stack span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #1f2937; border: 1px solid rgba(255, 255, 255, .5); margin-left: -6px; }
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack .av-j { background: #fdba74; }
.avatar-stack .av-m { background: #d8b4fe; }
.avatar-stack .av-a { background: #a7f3d0; }
.avatar-stack span.plus { background: #c4b5fd; }

/* Hero channels strip — bottom of the hero, above a thin divider */
.hero-channels { margin-top: 44px; padding: 20px 0; border-bottom: 1px solid var(--dark-line); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-channels-label { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-text-2); }
.hero-channel { color: var(--grey-text-2); font-size: 14px; font-weight: 500; }
.hero-chan-dot { color: #a1a1aa; font-size: 12px; margin-right: 7px; }

/* Chat preview illustration — tilted white cards over a purple circle */
.illus { position: relative; height: 500px; overflow: hidden; }
.illus-circle-purple { position: absolute; width: 420px; height: 420px; border-radius: 50%; right: 0; top: 10px; background: radial-gradient(circle at 35% 30%, #b79bff, #8b5cf6 45%, #6d28d9 100%); }
.illus-circle-grey { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: #d4d4d8; left: 290px; top: 0; }
.illus-ring { position: absolute; width: 580px; height: 330px; border: 1.5px solid rgba(209, 213, 219, .8); border-radius: 50%; left: -80px; top: 90px; transform: rotate(-16deg); z-index: 1; }
.sparkle { position: absolute; color: var(--violet-bright); z-index: 4; }
.sparkle.s1 { font-size: 24px; right: 6px; top: 34px; }
.sparkle.s2 { font-size: 14px; left: 12px; top: 402px; }
.leo-card { position: absolute; top: 10px; right: 28px; width: 252px; background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 16px; padding: 14px 16px 18px; transform: rotate(4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); z-index: 2; }
.sofia-card { position: absolute; top: 152px; left: 8px; width: 302px; background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; transform: rotate(-2deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); z-index: 3; }
.mini-head { display: flex; gap: 10px; align-items: flex-start; }
.mini-head strong, .mini-head span { display: block; }
.mini-head strong { font-size: 14px; }
.mini-head span { font-size: 12px; color: var(--muted); }
.mini-head .mini-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.mini-head .dots { color: #9ca3af; font-size: 16px; font-weight: 800; letter-spacing: 1px; margin-left: auto; }
.ph-line { height: 8px; background: #e5e7eb; border-radius: 4px; margin-top: 10px; }
.ph-line.w80 { width: 80%; }
.ph-line.w60 { width: 60%; }
.ph-line.w70 { width: 70%; }
.bubble { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px 12px; font-size: 14px; margin-top: 12px; line-height: 1.45; }
.bubble.ai { background: #efeaff; border-color: #ddd3ff; }
.ready-line { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; font-size: 13px; font-weight: 700; color: #16683f; display: flex; gap: 8px; align-items: center; }
.ready-dots { color: #22c55e; letter-spacing: 2px; font-size: 9px; }
.mock-badge { position: absolute; left: 248px; top: 432px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); z-index: 4; }
.sofia-dot { position: absolute; top: 12px; right: 14px; color: #22c55e; font-size: 10px; }
.mock-badge-star { color: var(--violet); font-size: 20px; }
.mock-badge strong, .mock-badge span { display: block; }
.mock-badge strong { font-size: 14px; }
.mock-badge span { font-size: 12px; color: var(--muted); }

/* Sections (sales page — all black) */
.section { padding: 56px 0; background: var(--black); }
.section.alt { background: var(--black); }
.section h2 { font-size: 36px; line-height: 1.15; margin: 6px 0 10px; color: #fff; }
.section .lede { color: var(--grey-text); max-width: 640px; font-size: 16px; }
.section-center { text-align: center; }
/* Match the reference's two-line section headings. */
#features h2, #plans h2 { max-width: 480px; margin-left: auto; margin-right: auto; }
.section-center .lede { margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; text-align: left; }
.card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 22px; color: #fff; }
.sales .card { background: var(--dark-card); border-color: var(--dark-line); color: #fff; position: relative; padding: 22px; }
.card h3 { margin: 6px 0 8px; font-size: 18px; color: #fff; }
.sales .card h3 { color: #fff; }
.card p { color: var(--grey-text); font-size: 14px; margin: 0; }
.sales .card p { color: var(--grey-text); }
.card .num { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--violet); }
.sales .card .num { color: var(--grey-text-2); font-size: 12px; }
.card-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--violet-bright); }
.source-rows { margin-top: 20px; display: grid; gap: 12px; position: relative; }
.source-row { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sales .source-row { background: var(--dark-card-2); border-color: var(--dark-line); width: 88%; margin-left: auto; }
.sales .source-row:nth-child(1) { transform: rotate(-4deg); }
.sales .source-row:nth-child(2) { transform: rotate(4deg); margin-top: 4px; margin-right: 4px; }
.source-row strong, .source-row span { display: block; }
.source-row strong { font-size: 13px; }
.sales .source-row strong { color: #fff; }
.source-row span { font-size: 12px; color: var(--muted); }
.sales .source-row span { color: var(--grey-text); }
.source-kind { font-size: 10px; font-weight: 800; letter-spacing: .06em; background: var(--lavender); color: var(--ink); border-radius: 6px; padding: 4px 7px; flex-shrink: 0; }
.sales .source-kind { background: #262626; color: #e5e5e5; }
.sales .source-kind.kind-pdf { background: #e9d5ff; color: #6b21a8; }
.sales .source-kind.kind-web { background: #d1fae5; color: #065f46; }
.card-star { position: absolute; top: auto; bottom: -12px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--violet); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); z-index: 2; }
.network { width: 100%; height: auto; margin: 12px 0 6px; display: block; }
.network line { stroke: #525252; stroke-width: 1.5; stroke-dasharray: 3 4; }
.network .node rect { stroke: none; }
.network .node text { fill: #71717a; font-size: 12px; text-anchor: middle; }
.network .hub { fill: var(--violet); }
.network .hub-glyph { fill: #fff; font-size: 22px; text-anchor: middle; }
.stat-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.sales .stat-label { color: var(--grey-text); }
.stat { font-size: 38px; font-weight: 800; line-height: 1.1; color: #fff; }
.stat-up { color: var(--good); font-size: 14px; font-weight: 700; }
.sales .stat-up { color: #22c55e; }
.chart-panel { background: #0a0a0a; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px 14px 12px; margin: 14px 0 16px; }
.chart { background: transparent; border: 0; padding: 0; display: flex; align-items: flex-end; gap: 5px; height: 62px; margin: 10px 0 0; }
.chart .bar { flex: 1; background: linear-gradient(180deg, #a78bfa, #6d28d9); border-radius: 3px 3px 0 0; min-height: 6px; }
.steps-section { background: #161616; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; text-align: left; }
.step { border-top: 1px solid var(--dark-line); padding-top: 18px; }
.step h3 { margin: 8px 0 6px; font-size: 18px; color: #fff; }
.step p { color: var(--grey-text); font-size: 14px; margin: 0; }
.step-num { color: var(--violet-bright); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.steps-cta { text-align: center; margin-top: 28px; }

/* Pricing (sales page — black section, dark cards) */
/* Wider wrap so the Business tagline fits on one line and prices stay aligned. */
#plans .wrap { max-width: 1280px; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; align-items: stretch; text-align: left; }
@media (max-width: 1080px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; position: relative; color: #fff; }
.plan.popular { border: 2px solid var(--violet); background: #14101f; }
.plan .tag { position: absolute; top: 14px; right: 14px; background: #3b2a5d; color: #ddd6fe; border: 1px solid rgba(221, 214, 254, .25); font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.plan-name { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-text); }
.plan h3 { margin: 8px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.price-was { color: var(--grey-text); font-size: 15px; margin: 10px 0 0; }
.price-was s { text-decoration-color: rgba(255, 255, 255, .55); }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; color: #fff; }
.price-was + .price { margin-top: 2px; }
.plan-desc { color: var(--grey-text); font-size: 14px; margin: 8px 0 0; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--grey-text); }
.plan ul { list-style: none; padding: 0; margin: 14px 0; flex: 1; }
.plan li { padding: 4px 0 4px 24px; position: relative; font-size: 14px; color: var(--grey-text-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #22c55e; font-weight: 800; }
.plan .btn { width: 100%; padding: 14px 20px; font-size: 15px; }

/* Pricing note + CTA */
.pricing-note { margin: 20px auto 0; max-width: 720px; text-align: center; }

/* Free demo section (sales page) */
.demo-section { background: #0a0a0a; }
.demo-wrap { max-width: 640px; margin: 28px auto 0; text-align: left; background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px; }
.demo-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.demo-head strong, .demo-head span { display: block; }
.demo-head strong { font-size: 15px; color: #fff; }
.demo-head span { font-size: 12px; color: var(--grey-text); }
.demo-head .pill { margin-left: auto; }
.demo-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.demo-chat-box { height: 280px; }
.demo-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.demo-chip { background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line); color: var(--grey-text-2); border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; font-family: inherit; }
.demo-chip:hover { border-color: var(--violet-bright); color: #fff; }
.demo-note { margin-top: 12px; }
.demo-personality { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.demo-chip.selected { border-color: var(--violet-bright); color: #fff; background: rgba(109, 40, 217, .28); }

/* Trust strip (under the hero) */
.trust-strip { border-bottom: 1px solid var(--dark-line); padding: 15px 0; }
.trust-strip-inner { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: center; }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--grey-text-2); }
.trust-icon { flex-shrink: 0; color: var(--violet-bright); }

/* Compare: generic chatbot vs your assistant */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; text-align: left; }
.compare-card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px; }
.compare-card.yours { border: 2px solid var(--violet); background: #14101f; }
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.compare-head strong { color: #fff; font-size: 15px; }
.compare-card .bubble { margin-top: 14px; }
.compare-note { color: var(--grey-text); font-size: 14px; line-height: 1.55; margin: 14px 0 0; }

/* Make it yours: control list + editor mock */
.yours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; text-align: left; align-items: start; }
.yours-item { border-top: 1px solid var(--dark-line); padding: 12px 0; }
.yours-item strong { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }
.yours-item span { display: block; color: var(--grey-text); font-size: 13.5px; line-height: 1.5; }
.yours-mock { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px; }
.yours-mock-head { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.yours-mock-head strong, .yours-mock-head span { display: block; }
.yours-mock-head strong { font-size: 15px; color: #fff; }
.yours-mock-head span { font-size: 12px; color: var(--grey-text); }
.mock-field { margin-bottom: 12px; }
.mock-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 6px; }
.mock-input { background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #fff; }
.mock-input.tall { line-height: 1.5; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: #fff; padding-top: 2px; }
.mock-switch { width: 40px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; flex-shrink: 0; }
.mock-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.mock-switch.on { background: var(--violet); }
.mock-switch.on::after { left: 21px; }

/* Checkout trust box + order summary */
.trust-box { margin-top: 16px; border: 1px solid var(--dark-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; text-align: left; }
.trust-box p { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--grey-text-2); }
.trust-box p .trust-icon { margin-top: 1px; }
.trust-summary { margin-top: 0; margin-bottom: 4px; }
.trust-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--dark-line); font-size: 14px; }
.trust-row span { color: var(--grey-text); flex-shrink: 0; }
.trust-row strong { color: #fff; text-align: right; }

/* Legal pages */
.legal-page h2 { font-size: 20px; margin: 26px 0 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #cfc8ee; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 10px; font-size: 12.5px; color: #8f88b8; }

/* Benefits (4 cards) + who-it's-for strip */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.whofor-section { padding-top: 8px; }
.whofor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; text-align: left; }
.whofor-item { border-top: 1px solid var(--dark-line); padding-top: 14px; }
.whofor-item strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.whofor-item span { font-size: 13px; color: var(--grey-text); line-height: 1.5; display: block; }

/* Blog (sales section + standalone pages) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; text-align: left; }
.blog-card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 22px; cursor: pointer; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--violet-bright); }
.blog-card h3 { margin: 8px 0; font-size: 18px; line-height: 1.3; color: #fff; }
.blog-card p { color: var(--grey-text); font-size: 14px; margin: 0; flex: 1; }
.blog-card .card-link { margin-top: 14px; }
.blog-meta { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-text); }
.blog-article { max-width: 720px; }
.blog-article h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.01em; margin: 10px 0 12px; }
.blog-article .lede { font-size: 17px; color: var(--grey-text-2); margin: 0 0 24px; }
.blog-article h2 { font-size: 21px; margin: 28px 0 8px; }
.blog-article p { color: var(--grey-text-2); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.blog-article ul { color: var(--grey-text-2); font-size: 16px; line-height: 1.7; padding-left: 22px; margin: 0 0 14px; }
.blog-article li { margin-bottom: 6px; }
.blog-more { margin-top: 40px; }
.blog-more h3 { margin: 0 0 4px; font-size: 20px; }

/* FAQ (sales page, dark) */
.faq-list { max-width: 720px; margin: 28px auto 0; text-align: left; }
.faq-item { border-bottom: 1px solid var(--dark-line); padding: 16px 4px; }
.faq-item:first-child { border-top: 1px solid var(--dark-line); }
.faq-item summary { cursor: pointer; font-size: 17px; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--violet-bright); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--grey-text); font-size: 15px; line-height: 1.65; margin: 10px 0 4px; max-width: 640px; }
.cta-band { background: radial-gradient(340px 340px at 50% 46%, rgba(124, 92, 255, .22), rgba(124, 92, 255, 0) 70%), var(--black); color: #fff; text-align: center; padding: 64px 20px 72px; }
.cta-band h2 { font-size: 42px; line-height: 1.08; margin: 10px 0 24px; }

/* Forms / auth — dark, same palette as the homepage */
.auth-wrap { max-width: 480px; margin: 48px auto; background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 30px; }
.auth-wrap h2 { margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.field input, .field select, .field textarea,
.chat-input input, table select {
  width: 100%; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #1a1a1a; color: #fff;
}
.field input::placeholder, .field textarea::placeholder, .chat-input input::placeholder { color: #71717a; }
.field select option, table select option { background: #1a1a1a; color: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .chat-input input:focus { outline: 2px solid var(--violet-2); border-color: var(--violet); }
.plan-pick { display: grid; gap: 10px; }
.plan-option { border: 1px solid var(--dark-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-option.selected { border-color: var(--violet-bright); background: rgba(109, 40, 217, .22); }
.plan-option strong { display: block; }
.error { background: #2b1215; color: #fda4af; border: 1px solid #7f1d1d; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.notice { background: #0f1e33; color: #93c5fd; border: 1px solid #1e3a5f; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.success { background: #0c2418; color: #86efac; border: 1px solid #14532d; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

/* Dashboard */
.page { padding: 40px 0 64px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h2 { margin: 0; font-size: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 18px; }
.stat-card .label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-text); }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 4px; color: #fff; }
.bot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bot-card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px; cursor: pointer; }
.bot-card:hover { border-color: var(--violet-bright); }
.bot-card h3 { margin: 0 0 4px; color: #fff; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.pill.live { background: rgba(34, 197, 94, .16); color: #4ade80; }
.pill.draft { background: rgba(255, 255, 255, .08); color: var(--grey-text); }
.pill.demo { background: rgba(245, 158, 11, .16); color: #fbbf24; }

/* Editor */
.editor-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.panel { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin: 0 0 14px; color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { border: 1px solid var(--dark-line); background: var(--dark-card); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--grey-text-2); }
.tab.active { background: var(--violet); color: #fff; border-color: var(--violet); }
.chat-box { border: 1px solid var(--dark-line); border-radius: 12px; height: 320px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #0a0a0a; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #1f1f1f; border: 1px solid var(--dark-line); border-bottom-left-radius: 4px; color: #fff; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input { flex: 1; }
.code-box { background: #0a0a0a; color: #d9d2ff; border: 1px solid var(--dark-line); border-radius: 12px; padding: 14px; font-family: ui-monospace, monospace; font-size: 12.5px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--dark-line); vertical-align: top; color: #fff; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-text); }
.table-wrap { overflow-x: auto; }

/* Admin console extras */
.tab-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; margin-left: 4px; text-align: center; }
.tab.active .tab-badge { background: #fff; color: var(--ink); }
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover { border-color: var(--violet-bright); }
.pill.warn { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.admin-filters .field { margin-bottom: 0; flex: 1 1 150px; }
.admin-filters .field.search { flex: 2 1 220px; }
.usage-bar { height: 8px; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; margin-top: 6px; min-width: 120px; }
.usage-fill { height: 100%; background: var(--violet-bright); border-radius: 999px; }
.usage-fill.warn { background: #e67e22; }
.usage-fill.over { background: var(--bad); }
tr.row-warn td { background: rgba(230, 126, 34, .12); }
.issue-section { margin-bottom: 22px; }
.issue-section:last-child { margin-bottom: 0; }
.issue-section h3 .count { color: var(--grey-text); font-weight: 600; }
.issue-row { cursor: pointer; }
.issue-row:hover td { background: #1a1a1a; }

.site-footer { background: var(--ink); color: #cfc8ee; padding: 26px 0; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

@media (max-width: 820px) {
  .hero-grid, .editor-grid { grid-template-columns: 1fr; }
  .cards, .cards.four, .steps, .pricing, .bot-grid, .blog-grid, .whofor, .compare-grid, .yours-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 44px; }
  .hero p.lede { max-width: none; }
  .illus { height: 500px; margin-top: 8px; }
  .illus-circle-purple { width: 340px; height: 340px; }
  .illus-ring { width: 420px; height: 300px; left: -50px; top: 40px; }
  .leo-card { right: 0; width: 230px; }
  .sofia-card { left: 0; width: 280px; top: 140px; }
  .mock-badge { left: auto; right: 0; top: 420px; }
  .hero-channels { margin-top: 32px; gap: 14px; }
  .section h2 { font-size: 30px; }
  .cta-band h2 { font-size: 32px; }
  .nav-links { display: none; }
  /* Mobile header row is logo + theme toggle + hamburger; the desktop
     actions move into the dropdown panel. */
  .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: block; }
}

/* Light theme — opt-in via html[data-theme="light"]. Dark (no attribute)
   is the default and is untouched above, so it stays pixel-identical. */
html[data-theme="light"] {
  --black: #ffffff;
  --dark-card: #ffffff;
  --dark-card-2: #f6f5fb;
  --grey-text: #6b6486;
  --grey-text-2: #3f3a56;
  --dark-line: #e6e2f5;
}
/* Body + links */
html[data-theme="light"] body { color: #17122b; background: #ffffff; }
html[data-theme="light"] a { color: var(--violet); }
html[data-theme="light"] .eyebrow { color: var(--violet); }
/* Nav + header buttons */
html[data-theme="light"] #nav { color: #17122b; }
html[data-theme="light"] .logo { color: #17122b; }
html[data-theme="light"] .nav-links a:hover { color: #17122b; }
html[data-theme="light"] .nav-login { color: #17122b; }
html[data-theme="light"] .nav-user { color: #6b6486; }
html[data-theme="light"] .nav-admin:hover { color: #17122b !important; }
html[data-theme="light"] .icon-btn { background: #ffffff; border-color: #e6e2f5; color: #3f3a56; }
html[data-theme="light"] .icon-btn:hover { border-color: #c4b5fd; color: #17122b; }
html[data-theme="light"] .mobile-links a:hover { color: #17122b; }
/* Buttons */
html[data-theme="light"] .btn.ghost { color: #17122b; border-color: #d9d2f5; }
html[data-theme="light"] .btn.ghost:hover { border-color: #17122b; }
html[data-theme="light"] .btn.outline { color: #17122b; border-color: #d9d2f5; }
html[data-theme="light"] .btn.outline:hover { border-color: #17122b; }
html[data-theme="light"] .btn.plan-outline { background: #f6f5fb; border-color: #e6e2f5; color: #17122b; }
html[data-theme="light"] .btn.plan-outline:hover { border-color: #6d28d9; background: #efeaff; }
/* Hero */
html[data-theme="light"] .sales { color: #17122b; }
html[data-theme="light"] .hero { color: #17122b; }
html[data-theme="light"] .hero-link { color: #17122b; }
html[data-theme="light"] .play-circle { border-color: #d9d2f5; }
html[data-theme="light"] .avatar-stack span { border-color: #e6e2f5; }
/* Sections + cards */
html[data-theme="light"] .section h2 { color: #17122b; }
html[data-theme="light"] .card, html[data-theme="light"] .sales .card { color: #17122b; }
html[data-theme="light"] .card h3, html[data-theme="light"] .sales .card h3 { color: #17122b; }
html[data-theme="light"] .sales .source-row strong { color: #17122b; }
html[data-theme="light"] .sales .source-kind { background: var(--lavender); color: var(--ink); }
html[data-theme="light"] .chart-panel { background: #f6f5fb; border-color: #e6e2f5; }
html[data-theme="light"] .steps-section { background: #f6f5fb; }
html[data-theme="light"] .step h3 { color: #17122b; }
html[data-theme="light"] .stat { color: #17122b; }
/* Pricing */
html[data-theme="light"] .plan { color: #17122b; }
html[data-theme="light"] .plan.popular { background: #f3efff; }
html[data-theme="light"] .plan h3 { color: #17122b; }
html[data-theme="light"] .price-was s { text-decoration-color: rgba(0, 0, 0, .4); }
html[data-theme="light"] .plan .price { color: #17122b; }
/* Free demo section */
html[data-theme="light"] .demo-section { background: #f6f5fb; }
html[data-theme="light"] .demo-head strong { color: #17122b; }
html[data-theme="light"] .demo-chip { background: #f6f5fb; color: #3f3a56; }
html[data-theme="light"] .demo-chip:hover { color: #17122b; }
html[data-theme="light"] .demo-chip.selected { background: rgba(109, 40, 217, .14); color: #17122b; }
/* Compare + make-it-yours + trust */
html[data-theme="light"] .compare-card.yours { background: #f3efff; }
html[data-theme="light"] .compare-head strong { color: #17122b; }
html[data-theme="light"] .yours-item strong { color: #17122b; }
html[data-theme="light"] .yours-mock-head strong { color: #17122b; }
html[data-theme="light"] .mock-input { background: #f6f5fb; color: #17122b; }
html[data-theme="light"] .mock-toggle { color: #17122b; }
html[data-theme="light"] .mock-switch { background: rgba(0, 0, 0, .18); }
html[data-theme="light"] .mock-switch.on { background: var(--violet); }
html[data-theme="light"] .trust-row strong { color: #17122b; }
html[data-theme="light"] .trust-box p { color: #3f3a56; }
/* Benefits + who-it's-for */
html[data-theme="light"] .whofor-item strong { color: #17122b; }
/* Blog */
html[data-theme="light"] .blog-card h3 { color: #17122b; }
/* FAQ + CTA band */
html[data-theme="light"] .faq-item summary { color: #17122b; }
html[data-theme="light"] .cta-band { color: #17122b; }
/* Forms / auth */
html[data-theme="light"] .field label { color: #17122b; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea,
html[data-theme="light"] .chat-input input, html[data-theme="light"] table select {
  background: #ffffff; color: #17122b; border-color: #d9d2f5;
}
html[data-theme="light"] .field select option, html[data-theme="light"] table select option { background: #ffffff; color: #17122b; }
html[data-theme="light"] .error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
html[data-theme="light"] .notice { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
html[data-theme="light"] .success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
/* Dashboard */
html[data-theme="light"] .stat-card .value { color: #17122b; }
html[data-theme="light"] .bot-card h3 { color: #17122b; }
html[data-theme="light"] .pill.live { color: #15803d; }
html[data-theme="light"] .pill.draft { background: #f6f5fb; color: #6b6486; }
html[data-theme="light"] .pill.demo { color: #b45309; }
html[data-theme="light"] .pill.warn { color: #b45309; }
/* Editor + chat box */
html[data-theme="light"] .panel h3 { color: #17122b; }
html[data-theme="light"] .chat-box { background: #f6f5fb; }
html[data-theme="light"] .msg.bot { background: #ffffff; border-color: #e6e2f5; color: #17122b; }
/* Tables */
html[data-theme="light"] th, html[data-theme="light"] td { color: #17122b; }
/* Admin console */
html[data-theme="light"] .usage-bar { background: rgba(0, 0, 0, .08); }
html[data-theme="light"] .issue-row:hover td { background: #f6f5fb; }
/* Footer stays dark in both themes (dark code box too, by design). */
html[data-theme="light"] .site-footer .logo { color: #ffffff; }
html[data-theme="light"] .site-footer .muted { color: #cfc8ee; }

/* ================================================================
   Batch #2 additions (items 11, 12, 15, 17)
   ================================================================ */

/* Item 11 — hero card channel labels: small inline brand icon +
   channel name inside the tilted hero cards. */
.mini-head .mini-chan { display: inline-flex; align-items: center; gap: 5px; }
.mini-chan svg { flex: none; }
.mini-head .chan-messenger { color: #0084ff; }
.mini-head .chan-instagram { color: #c13584; }

/* Item 15 — comparison-section bubbles. The shared .bubble style
   has a pale background and no text colour of its own, so inside
   the dark compare cards the text inherited near-white and was
   unreadable (white on near-white). Scoped to this section only —
   the hero cards keep their pale bubbles on white cards. */
.compare-card .bubble { background: #26262b; color: #f4f4f5; border-color: #3a3a42; }
.compare-card .bubble.q { background: #1b1b1f; color: #d4d4d8; }
.compare-card.good .bubble.ai { background: #2e1065; color: #ede9fe; border-color: #4c1d95; }
[data-theme="light"] .compare-card .bubble { background: #f3f4f6; color: var(--text); border-color: var(--border); }
[data-theme="light"] .compare-card .bubble.q { background: #e9e9ee; color: var(--text); }
[data-theme="light"] .compare-card.good .bubble.ai { background: #ede9fe; color: var(--text); border-color: #ddd6fe; }

/* Item 12 — dashboard plan picker: shown to accounts that have not
   picked a plan yet; picking one starts the free trial. */
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.picker-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); position: relative; }
.picker-card.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
[data-theme="light"] .picker-card.selected { background: #f5f3ff; }
.picker-card .btn { margin-top: auto; }
.picker-price { font-size: 22px; font-weight: 800; }
.picker-price span { font-size: 12px; font-weight: 500; color: var(--muted); }
.picker-tag { position: absolute; top: -10px; left: 14px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
@media (max-width: 1080px) { .picker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .picker-grid { grid-template-columns: 1fr; } }

/* Item 17 — background: Option C aurora waves, SOFT touch.
   Pure CSS gradients, no image assets. A very faint violet wash
   sits fixed behind the page (visible on app/auth screens and at
   section edges); the hero, pricing and CTA sections carry their
   own gentle edge glows. The middle of the page stays calm and
   dark, and every glow sits behind the content, so text contrast
   is unchanged. Light theme gets an equally subtle pale-lavender
   version. The drift animation is extremely slow and only runs
   when the visitor has not asked for reduced motion. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 38% at 12% -4%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(50% 34% at 88% -2%, rgba(99, 102, 241, .10), transparent 70%),
    radial-gradient(60% 40% at 50% 108%, rgba(124, 58, 237, .10), transparent 70%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(55% 38% at 12% -4%, rgba(167, 139, 250, .20), transparent 70%),
    radial-gradient(50% 34% at 88% -2%, rgba(165, 180, 252, .16), transparent 70%),
    radial-gradient(60% 40% at 50% 108%, rgba(167, 139, 250, .16), transparent 70%);
}
.hero {
  background-color: var(--black);
  background-image:
    radial-gradient(46% 60% at 6% 0%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(42% 55% at 96% 6%, rgba(99, 102, 241, .12), transparent 70%);
}
#plans {
  background-image:
    radial-gradient(52% 62% at 50% -6%, rgba(124, 58, 237, .13), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(99, 102, 241, .08), transparent 70%);
}
.cta-band {
  background-image:
    radial-gradient(45% 90% at 88% 120%, rgba(167, 139, 250, .20), transparent 70%),
    radial-gradient(60% 120% at 50% 0%, rgba(255, 255, 255, .16), transparent 60%);
}
[data-theme="light"] .hero {
  background-image:
    radial-gradient(46% 60% at 6% 0%, rgba(167, 139, 250, .22), transparent 70%),
    radial-gradient(42% 55% at 96% 6%, rgba(165, 180, 252, .18), transparent 70%);
}
[data-theme="light"] #plans {
  background-image:
    radial-gradient(52% 62% at 50% -6%, rgba(167, 139, 250, .18), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(165, 180, 252, .12), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes cbai-aurora-drift {
    from { transform: translate3d(-1.5%, 0, 0) scale(1.03); }
    to { transform: translate3d(1.5%, 1%, 0) scale(1.06); }
  }
  body::before { animation: cbai-aurora-drift 36s ease-in-out infinite alternate; }
}
