/* =====================================================
   AI-CHATBOTS.CSS — RankBoost Agency (2026)
   AI Solutions sub-page. Prefix: .acb-
   Inherits: rb-hero, rb-hero--grid, ais-hero-inner,
   ais-visual-panel, ais-flow-items/item, ais-card,
   ais-how-section, ais-step, ais-logo-chip,
   gs-results-bar, gs-metrics, rb-final-cta-box,
   section-heading, eyebrow, primary-cta, reveal-up/scale
   ===================================================== */

/* ─── PAGE HERO  ─── */
/* Reuses rb-hero + rb-hero--grid + ais-hero-inner from parent CSS.
   Only the h1 highlight colour (em) and breadcrumb path differ. */
.acb-hero-copy h1 {
  font-size: var(--fs-h1); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.032em;
  color: var(--ink); margin-top: var(--space-xs);
}
.acb-hero-copy h1 em { font-style: normal; color: var(--primary); }

/* Animated chat preview panel (dark card) */
.acb-panel {
  background: var(--ink);
  border-radius: var(--r-xl); padding: var(--card-pad);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  min-height: 380px;
}
.acb-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 80%, rgba(200,255,0,0.07), transparent 60%);
}
.acb-panel-header {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: var(--space-md); position: relative; z-index: 1;
}
.acb-panel-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.acb-panel-dot:nth-child(1) { background: #FF5F57; }
.acb-panel-dot:nth-child(2) { background: #FEBC2E; }
.acb-panel-dot:nth-child(3) { background: #28C840; }
.acb-panel-title {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.4);
}

/* Chat bubble stream */
.acb-chat { display: grid; gap: var(--space-sm); position: relative; z-index: 1; }
.acb-bubble {
  display: flex; align-items: flex-end; gap: var(--space-sm);
  animation: acbFadeIn 0.4s ease both;
}
.acb-bubble--bot  { justify-content: flex-start; }
.acb-bubble--user { justify-content: flex-end; flex-direction: row-reverse; }
@keyframes acbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.acb-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.acb-bubble--bot  .acb-avatar { background: rgba(91,71,224,0.25); }
.acb-bubble--user .acb-avatar { background: rgba(200,255,0,0.15); }
.acb-text {
  max-width: 82%; padding: 10px 14px;
  border-radius: 14px; font-size: 12.5px; font-weight: 600; line-height: 1.55;
}
.acb-bubble--bot  .acb-text { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.85); border-bottom-left-radius: 4px; }
.acb-bubble--user .acb-text { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.acb-typing {
  display: flex; align-items: center; gap: var(--space-xs);
  padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px;
  background: rgba(255,255,255,0.09);
}
.acb-typing span {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.45);
  animation: acbDot 1.2s ease-in-out infinite;
}
.acb-typing span:nth-child(2) { animation-delay: 0.2s; }
.acb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes acbDot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.45; }
  40% { transform: scale(1.4); opacity: 1; }
}
.acb-panel-stat {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-top: var(--space-md); padding: 12px 16px;
  background: rgba(200,255,0,0.08); border: 1px solid rgba(200,255,0,0.2);
  border-radius: var(--r-md); position: relative; z-index: 1;
}
.acb-panel-stat strong { font-size: 18px; font-weight: 900; color: var(--accent); line-height: 1; }
.acb-panel-stat span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); }

/* ─── WHAT ARE AI CHATBOTS ─── */
.acb-what-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
}
.acb-what-grid { display: grid; gap: var(--grid-gap-lg); align-items: center; }
@media (min-width: 1024px) { .acb-what-grid { grid-template-columns: 1fr 1fr; } }

.acb-what-visual {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  min-height: 440px; position: relative; background: var(--surface-2);
}
.acb-what-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.acb-what-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--space-sm);
}
.acb-what-badge-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; flex-shrink: 0;
}
.acb-what-badge strong { display: block; font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1; }
.acb-what-badge span   { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); margin-top: 3px; }

/* Traditional vs AI comparison */
.acb-compare {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-top: var(--space-lg); box-shadow: var(--shadow-sm);
}
.acb-compare-header {
  display: grid; grid-template-columns: 1fr 1fr;
}
.acb-compare-header > div {
  padding: 10px 16px; font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.09em;
  border-right: 1px solid var(--line);
}
.acb-compare-header > div:first-child { background: rgba(239,68,68,0.07); color: #b91c1c; }
.acb-compare-header > div:last-child  { background: rgba(91,71,224,0.07); color: var(--primary); border-right: none; }
.acb-compare-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.acb-compare-cell {
  padding: 11px 16px; font-size: 13px; font-weight: 700; color: var(--ink-muted);
  border-right: 1px solid var(--line); line-height: 1.4;
  display: flex; align-items: center; gap: var(--space-sm);
}
.acb-compare-cell:last-child { border-right: none; }
.acb-check { color: #16a34a; font-size: 13px; flex-shrink: 0; }
.acb-cross { color: #dc2626; font-size: 13px; flex-shrink: 0; }

/* Impact stats row */
.acb-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap-sm); margin-top: var(--space-lg);
}
.acb-stat-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 16px; text-align: center;
  transition: border-color 180ms, box-shadow 180ms;
}
.acb-stat-item:hover { border-color: rgba(91,71,224,0.22); box-shadow: var(--shadow-sm); }
.acb-stat-item strong { display: block; font-size: 26px; font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -0.03em; }
.acb-stat-item span   { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); margin-top: var(--space-xs); line-height: 1.4; }

/* ─── WHY BUSINESSES NEED AI CHATBOTS (dark band) ─── */
/* Reuses the .ais-how-section pattern (dark bg + lime eyebrow) */
.acb-why-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
  background: var(--ink); position: relative; overflow: hidden;
}
.acb-why-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 90% 20%, rgba(91,71,224,0.16), transparent 60%),
    radial-gradient(ellipse 35% 45% at 8%  80%, rgba(200,255,0,0.06),  transparent 60%);
  pointer-events: none;
}
.acb-why-section .eyebrow { color: var(--accent); }
.acb-why-section .eyebrow::before { background: var(--accent); }
.acb-why-section .section-heading h2 { color: #fff; }
.acb-why-section .section-heading p   { color: rgba(255,255,255,0.58); }
.acb-why-inner { position: relative; z-index: 1; }

.acb-why-grid {
  display: grid; gap: var(--space-md); margin-top: var(--heading-gap);
}
@media (min-width: 640px)  { .acb-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acb-why-grid { grid-template-columns: repeat(3, 1fr); } }

.acb-why-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg); padding: var(--card-pad);
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.acb-why-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(200,255,0,0.2); transform: translateY(-3px); }
.acb-why-icon { font-size: 26px; margin-bottom: var(--space-sm); display: block; }
.acb-why-card h3 { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.015em; margin-bottom: var(--space-sm); }
.acb-why-card p  { font-size: 13.5px; color: rgba(255,255,255,0.52); line-height: 1.72; margin: 0; }
.acb-why-stat    { display: inline-block; margin-top: var(--space-sm); font-size: 32px; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.acb-why-stat-l  { display: block; font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.4); margin-top: 3px; }

/* ─── SERVICES SECTION — reuses ais-section + ais-grid + ais-card ─── */
.acb-services-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
}
/* Featured card variant */
.acb-featured-card {
  grid-column: 1 / -1;
  border: 1.5px solid rgba(91,71,224,0.25);
  border-radius: var(--r-xl); background: var(--surface);
  overflow: hidden; display: grid;
  box-shadow: var(--shadow-md);
  transition: box-shadow 220ms, border-color 220ms;
  margin-bottom: var(--space-xs);
}
.acb-featured-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(91,71,224,0.35); }
@media (min-width: 1024px) { .acb-featured-card { grid-template-columns: 1fr 360px; } }
.acb-featured-body {
  padding: 40px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
}
.acb-featured-body h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.025em; margin: var(--space-sm) 0 14px; }
.acb-featured-body p  { font-size: 15px; color: var(--ink-muted); line-height: 1.75; margin-bottom: var(--space-md); flex: 1; }
.acb-featured-panel {
  background: var(--ink); position: relative; overflow: hidden; min-height: 240px; padding: var(--card-pad);
}
.acb-featured-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 80%, rgba(200,255,0,0.08), transparent 60%);
}
.acb-featured-flow { display: grid; gap: var(--space-sm); position: relative; z-index: 1; }
.acb-featured-flow-item {
  display: flex; align-items: center; gap: var(--grid-gap-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md); padding: 11px 14px;
  transition: background 200ms;
}
.acb-featured-flow-item:hover { background: rgba(255,255,255,0.1); }
.acb-featured-flow-icon {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: rgba(200,255,0,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.acb-featured-flow-label { flex: 1; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.8); }
.acb-featured-flow-badge {
  padding: 3px 8px; border-radius: 100px;
  background: rgba(200,255,0,0.12); color: var(--accent);
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ─── USE CASES ─── */
.acb-use-cases-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
  background: var(--surface-2);
}
.acb-use-cases-grid {
  display: grid; gap: var(--space-md); margin-top: var(--heading-gap);
}
@media (min-width: 640px)  { .acb-use-cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acb-use-cases-grid { grid-template-columns: repeat(4, 1fr); } }

.acb-use-case {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms, border-color 180ms, box-shadow 180ms;
  position: relative; overflow: hidden;
}
.acb-use-case::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-light); transition: background 200ms;
}
.acb-use-case:hover { transform: translateY(-3px); border-color: rgba(91,71,224,0.2); box-shadow: var(--shadow-md); }
.acb-use-case:hover::before { background: var(--primary); }
.acb-use-icon {
  font-size: 26px; margin-bottom: var(--space-sm); display: block;
}
.acb-use-case h3 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: var(--space-xs); color: var(--ink); }
.acb-use-case p  { font-size: 13px; color: var(--ink-muted); line-height: 1.68; margin: 0; }

/* ─── PLATFORMS & INTEGRATIONS — reuses .ais-logo-chip ─── */
/* Only wrapping section + layout */
.acb-platforms-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
}
.acb-platforms-grid {
  display: grid; gap: var(--grid-gap-sm); margin-top: var(--heading-gap);
}
@media (min-width: 640px)  { .acb-platforms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acb-platforms-grid { grid-template-columns: repeat(5, 1fr); } }

.acb-platform-chip {
  display: flex; align-items: center; gap: var(--grid-gap-sm);
  padding: 16px 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms, color 180ms, box-shadow 180ms, background 180ms;
  cursor: default;
}
.acb-platform-chip:hover {
  border-color: rgba(91,71,224,0.3); color: var(--primary);
  box-shadow: var(--shadow-md); background: var(--primary-light);
}
.acb-platform-chip-icon {
  font-size: 22px; flex-shrink: 0;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.acb-platform-chip h3 { font-size: 14px; font-weight: 800; color: var(--ink); }
.acb-platform-chip p  { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; margin-top: 2px; }

/* ─── PROCESS — reuses .ais-how-section + .ais-steps + .ais-step ─── */
/* Nothing new needed. Wrap in .acb-process-section, then use ais-* classes inside */
.acb-process-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
  background: var(--ink); position: relative; overflow: hidden;
}
.acb-process-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(91,71,224,0.15), transparent 60%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(200,255,0,0.06), transparent 60%);
  pointer-events: none;
}
.acb-process-section .eyebrow { color: var(--accent); }
.acb-process-section .eyebrow::before { background: var(--accent); }
.acb-process-section .section-heading h2 { color: #fff; }
.acb-process-section .section-heading p   { color: rgba(255,255,255,0.58); }
.acb-process-inner { position: relative; z-index: 1; }
.acb-steps {
  display: grid; gap: 0; margin-top: var(--heading-gap);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl); overflow: hidden;
  position: relative; z-index: 1;
}
@media (min-width: 768px) { .acb-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .acb-steps { grid-template-columns: repeat(4, 1fr); } }
/* Odd row  */
.acb-step {
  padding: var(--card-pad) 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: background 200ms;
}
.acb-step:hover { background: rgba(255,255,255,0.07); }
.acb-step-num {
  display: inline-flex; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(200,255,0,0.12);
  color: var(--accent); font-size: 14px; font-weight: 900;
  margin-bottom: var(--space-md); border: 1px solid rgba(200,255,0,0.2);
}
.acb-step h3 { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.015em; margin-bottom: var(--space-sm); }
.acb-step p  { font-size: 13.5px; color: rgba(255,255,255,0.52); line-height: 1.72; margin: 0; }

/* ─── WHY CHOOSE (light) ─── */
.acb-choose-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
}
.acb-choose-layout {
  display: grid; gap: var(--grid-gap-lg); align-items: center; margin-top: var(--heading-gap);
}
@media (min-width: 1024px) { .acb-choose-layout { grid-template-columns: 1fr 1fr; } }

.acb-choose-visual {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  min-height: 440px; position: relative; background: var(--surface-2);
}
.acb-choose-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.acb-choose-stats {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.acb-choose-stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px; text-align: center; box-shadow: var(--shadow-sm);
}
.acb-choose-stat strong { display: block; font-size: 20px; font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -0.025em; }
.acb-choose-stat span   { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-faint); margin-top: var(--space-xs); line-height: 1.3; }
.acb-choose-pillars { display: grid; gap: var(--grid-gap-sm); }
.acb-choose-pillar {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--space-md); align-items: start;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform 180ms, border-color 180ms, box-shadow 180ms;
}
.acb-choose-pillar:hover { transform: translateX(5px); border-color: rgba(91,71,224,0.22); box-shadow: var(--shadow-md); }
.acb-choose-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.acb-choose-pillar h3 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 5px; }
.acb-choose-pillar p  { font-size: 13px; color: var(--ink-muted); line-height: 1.65; margin: 0; }

/* ─── INDUSTRIES ─── */
.acb-industries-section {
  padding-top: var(--section-py); padding-bottom: var(--section-py);
  background: var(--surface-2);
}
.acb-industries-grid {
  display: grid; gap: var(--space-sm); margin-top: var(--heading-gap);
}
@media (min-width: 480px) { .acb-industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .acb-industries-grid { grid-template-columns: repeat(5, 1fr); } }
.acb-industry-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-sm); box-shadow: var(--shadow-sm);
  transition: transform 180ms, border-color 180ms, box-shadow 180ms, background 180ms;
}
.acb-industry-card:hover { transform: translateY(-3px); border-color: rgba(91,71,224,0.22); box-shadow: var(--shadow-md); background: var(--primary-light); }
.acb-industry-icon { font-size: 26px; }
.acb-industry-card h3 { font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }

/* ─── FAQ ─── */
.acb-faq-layout {
  display: grid; gap: var(--grid-gap-lg); align-items: start; margin-top: var(--heading-gap);
}
@media (min-width: 1024px) { .acb-faq-layout { grid-template-columns: 300px 1fr; } }
.acb-faq-sidebar {
  background: var(--primary-light); border: 1px solid rgba(91,71,224,0.15);
  border-radius: var(--r-xl); padding: var(--card-pad); position: sticky; top: 100px;
}
.acb-faq-sidebar h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin-bottom: var(--space-sm); }
.acb-faq-sidebar p  { font-size: 14px; color: var(--ink-muted); line-height: 1.72; margin-bottom: var(--space-md); }
.acb-faq-trust { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.acb-faq-trust-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--ink-muted);
}
.acb-faq-trust-row::before {
  content: '✓'; display: inline-flex; width: 20px; height: 20px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--accent); color: #000; font-size: 11px; font-weight: 900; flex-shrink: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .acb-stats-row  { grid-template-columns: 1fr; }
  .acb-choose-stats { grid-template-columns: 1fr 1fr; }
  .acb-steps { grid-template-columns: 1fr; }
  .acb-step { border-right: none; }
}
@media (max-width: 479px) {
  .acb-industries-grid  { grid-template-columns: 1fr 1fr; }
  .acb-platforms-grid   { grid-template-columns: 1fr; }
}
