/* ═══════════════════════════════════════════════════════════════
   ChatFlow — Design System
   Inspired by Apple.com + ManyChat | Font: Inter (sans)
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── VARIABLES ────────────────────────────────────────────────── */
:root {
  /* Light palette (primary) */
  --bg:        #fbfbfd;
  --bg-alt:    #f5f5f7;
  --white:     #ffffff;
  --text:      #1d1d1f;
  --text-2:    #424245;
  --text-3:    #6e6e73;
  --text-4:    #86868b;
  --border:    rgba(0,0,0,0.08);
  --border-2:  rgba(0,0,0,0.14);

  /* Dark sections */
  --dark:      #0d0f1a;
  --dark-2:    #161929;
  --dark-3:    #1e2235;
  --dark-text: #f5f5f7;
  --dark-muted:#8b92a9;
  --dark-sub:  #c4c9d9;
  --dark-border: rgba(255,255,255,0.08);

  /* Brand */
  --blue:      #4f8ef7;
  --purple:    #7c5cfc;
  --green:     #00d2a0;
  --pink:      #c850c0;
  --orange:    #ff9933;

  /* Gradients */
  --g-brand:   linear-gradient(135deg, #4f8ef7 0%, #7c5cfc 100%);
  --g-wide:    linear-gradient(135deg, #4f8ef7 0%, #7c5cfc 55%, #c850c0 100%);
  --g-dark:    linear-gradient(135deg, #0d0f1a 0%, #161929 100%);

  /* Shadows */
  --s-xs: 0 1px 4px rgba(0,0,0,0.04);
  --s-sm: 0 2px 12px rgba(0,0,0,0.06);
  --s-md: 0 8px 32px rgba(0,0,0,0.08);
  --s-lg: 0 24px 64px rgba(0,0,0,0.10);
  --s-xl: 0 40px 100px rgba(0,0,0,0.14);

  /* Radius */
  --r-xs:  6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl:48px;

  /* Layout */
  --nav-h:  60px;
  --max-w:  1200px;
  --pad-x:  80px;
  --pad-x-md: 48px;
  --pad-x-sm: 24px;

  /* Transitions */
  --ease:   cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.3, 1);
}

/* ── BASE ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (max-width: 1024px) { .container { padding: 0 var(--pad-x-md); } }
@media (max-width: 768px)  { .container { padding: 0 var(--pad-x-sm); } }

/* ── TYPOGRAPHY SCALE ─────────────────────────────────────────── */
.t-display {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.t-headline {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.t-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.t-body-lg { font-size: 19px; line-height: 1.65; font-weight: 400; }
.t-body    { font-size: 17px; line-height: 1.65; font-weight: 400; }
.t-body-sm { font-size: 15px; line-height: 1.6;  font-weight: 400; }
.t-caption { font-size: 13px; line-height: 1.5;  font-weight: 500; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}
.eyebrow.white { color: rgba(255,255,255,0.6); }

/* Gradient text */
.gtext {
  background: var(--g-wide);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION SPACING ──────────────────────────────────────────── */
.section      { padding: 100px 0; }
.section-sm   { padding:  64px 0; }
.section-hero { padding: 112px 0 96px; }
.bg-light  { background: var(--bg-alt); }
.bg-dark   { background: var(--dark);   color: var(--dark-text); }
.bg-white  { background: var(--white); }

/* ── BADGE ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  color: var(--blue);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge.dark {
  background: rgba(79,142,247,0.15);
  border-color: rgba(79,142,247,0.3);
  color: #7eb8ff;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Sizes */
.btn-sm  { padding:  7px 16px; font-size: 13px; }
.btn-md  { padding: 12px 26px; font-size: 15px; border-radius: 12px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.btn-xl  { padding: 17px 40px; font-size: 17px; border-radius: 16px; }
.btn-full{ width: 100%; }

/* Styles */
.btn-dark {
  background: var(--text);
  color: var(--white);
}
.btn-dark:hover { background: var(--text-2); transform: translateY(-1px); box-shadow: var(--s-md); }

.btn-gradient {
  background: var(--g-brand);
  color: var(--white);
}
.btn-gradient:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,142,247,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.2); }

.btn-ghost-dark {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.btn-link {
  background: transparent;
  color: var(--blue);
  padding: 0;
}
.btn-link:hover { opacity: 0.7; }

/* ── NAVIGATION ───────────────────────────────────────────────── */
.nav {
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251,251,253,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 1024px) { .nav-inner { padding: 0 var(--pad-x-md); } }
@media (max-width: 768px)  { .nav-inner { padding: 0 var(--pad-x-sm); } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--g-brand);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  display: block;
  padding: 6px 13px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.nav-menu a.active { color: var(--text); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(251,251,253,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 28px;
  z-index: 999;
  animation: slideDown 0.25s var(--ease) both;
}
.nav-drawer.open { display: block; }
.nav-drawer .drawer-links { display: flex; flex-direction: column; gap: 2px; }
.nav-drawer .drawer-links a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-drawer .drawer-links a:hover { background: rgba(0,0,0,0.05); }
.nav-drawer .drawer-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 860px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ── CARDS ────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--s-md);
  border-color: var(--border-2);
}
.card-dark {
  background: var(--dark-2);
  border-color: var(--dark-border);
  color: var(--dark-text);
}
.card-dark:hover { border-color: rgba(255,255,255,0.14); }
.card-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--s-md);
  background: linear-gradient(145deg, #f7fafe, #ffffff);
}

/* ── ICON BOX ─────────────────────────────────────────────────── */
.ibox {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.ibox-sm { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
.ibox-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 30px; }
.ib-blue   { background: rgba(79,142,247,0.12); }
.ib-purple { background: rgba(124,92,252,0.12); }
.ib-green  { background: rgba(0,210,160,0.12); }
.ib-pink   { background: rgba(200,80,192,0.12); }
.ib-orange { background: rgba(255,153,51,0.12); }
.ib-teal   { background: rgba(0,210,220,0.12); }
.ib-red    { background: rgba(255,59,48,0.12); }

/* Dark variants */
.ib-blue-d   { background: rgba(79,142,247,0.18); }
.ib-purple-d { background: rgba(124,92,252,0.18); }
.ib-green-d  { background: rgba(0,210,160,0.18); }
.ib-pink-d   { background: rgba(200,80,192,0.18); }

/* ── GRID SYSTEM ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:  900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:  640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── FORM ─────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder { color: var(--text-4); }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.14);
}
.form-input.is-error { border-color: #ff3b30; }
.form-input.is-error:focus { box-shadow: 0 0 0 3px rgba(255,59,48,0.14); }

.form-error { font-size: 12px; color: #ff3b30; font-weight: 500; }
.form-hint  { font-size: 12px; color: var(--text-3); }

/* ── ALERT ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-error   { background: rgba(255,59,48,0.08);   color: #c0392b; border: 1px solid rgba(255,59,48,0.2);  }
.alert-success { background: rgba(52,199,89,0.08);   color: #1d8348; border: 1px solid rgba(52,199,89,0.2);  }
.alert-info    { background: rgba(79,142,247,0.08);  color: var(--blue); border: 1px solid rgba(79,142,247,0.2); }

/* ── DIVIDER ──────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-4);
  font-size: 13px;
  font-weight: 500;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

/* ── AVATAR ───────────────────────────────────────────────────── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g-brand);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }

/* ── STARS ────────────────────────────────────────────────────── */
.stars { color: #fbbf24; font-size: 15px; letter-spacing: 1px; }

/* ── PRICING TOGGLE ───────────────────────────────────────────── */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.toggle-track {
  position: relative;
  width: 48px; height: 28px;
  background: var(--border-2);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-track input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track input:checked + .toggle-thumb { transform: translateX(20px); }
.toggle-track:has(input:checked) { background: var(--blue); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--s-sm);
  transition: transform 0.3s var(--ease);
  pointer-events: none;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.35s var(--ease);
  color: var(--text-3);
  font-weight: 400;
  line-height: 1;
}
.faq-item.open .faq-icon { background: rgba(79,142,247,0.12); color: var(--blue); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding-bottom: 20px;
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ── FEATURE TABLE ────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 56px;
}
.compare-table th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-4);
  text-align: center;
  border-bottom: 2px solid var(--border-2);
}
.compare-table th:first-child { text-align: left; }
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.compare-table tr:hover td { background: rgba(0,0,0,0.015); }
.compare-table .chk { color: var(--green); font-size: 18px; }
.compare-table .x { color: var(--text-4); font-size: 18px; }
.compare-table .section-row td {
  padding: 24px 20px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  border-bottom: none;
  background: none;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (max-width: 1024px) { .footer-inner { padding: 0 var(--pad-x-md); } }
@media (max-width:  768px) { .footer-inner { padding: 0 var(--pad-x-sm); } }

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand p {
  font-size: 14px;
  color: var(--text-4);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 230px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-4);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col li a { font-size: 14px; color: var(--text-3); transition: color 0.2s; }
.footer-col li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-4);
}
@media (max-width: 540px) { .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } }

.social-row { display: flex; gap: 8px; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: border-color 0.2s, transform 0.18s;
}
.social-icon:hover { border-color: rgba(0,0,0,0.24); transform: translateY(-2px); }

/* ── DASHBOARD LAYOUT ─────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-alt);
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  padding: 12px;
  flex: 1;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 2px;
}
.sidebar-nav-item:hover { background: var(--bg-alt); color: var(--text); }
.sidebar-nav-item.active { background: rgba(79,142,247,0.1); color: var(--blue); font-weight: 600; }
.sidebar-nav-item .nav-icon { font-size: 18px; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }

.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 20px; }
}

/* ── STAT CARD ────────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.stat-card .stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 4px;
}
.stat-card .stat-change {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}
.stat-card .stat-label { font-size: 14px; color: var(--text-3); font-weight: 500; }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes bounce3 {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

.a-up-1 { animation: fadeUp 0.6s ease both; }
.a-up-2 { animation: fadeUp 0.6s 0.08s ease both; }
.a-up-3 { animation: fadeUp 0.6s 0.16s ease both; }
.a-up-4 { animation: fadeUp 0.6s 0.24s ease both; }
.a-up-5 { animation: fadeUp 0.6s 0.32s ease both; }

/* Scroll-triggered reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MISC UTILITIES ───────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-3); }
.text-muted2  { color: var(--text-4); }
.text-white   { color: var(--white); }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── CHAT BUBBLE COMPONENT ────────────────────────────────────── */
.chat-window {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--s-xl);
  overflow: hidden;
  font-size: 14px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chat-name   { font-weight: 700; font-size: 14px; color: var(--text); }
.chat-status { font-size: 12px; color: var(--green); font-weight: 500; }
.chat-body   { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow: hidden; }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 14px;
}
.msg-bot  {
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
}
.msg-user {
  background: var(--g-brand);
  color: white;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.quick-chip {
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-chip:hover { background: var(--blue); color: white; }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
  width: fit-content;
}
.typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-4);
  animation: bounce3 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
