/* ===================================================
   AI SOLUTIONS PAGE — RankBoost Agency
   Brand: --primary-purple #7B5DFF | --accent-lime #D4FF12
   Base CTA buttons (.primary-cta, .secondary-cta) are in master.css.
   Global typography (.eyebrow, .section-heading) are in master.css.
   =================================================== */

/* .section-head — defined globally in master.css */
/* Override: ai-solutions left-aligns and uses 56px bottom margin (already the master default) */

.gs-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-purple);
  text-decoration: none;
  transition: gap 180ms ease;
}

.gs-service-link:hover {
  gap: 10px;
}

/* ===== HERO ===== */
.ais-hero {
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 96px;
  background:
    radial-gradient(ellipse 70% 60% at 5% 5%, rgba(123,93,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 98% 12%, rgba(212,255,18,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 100%, rgba(123,93,255,0.07) 0%, transparent 60%),
    linear-gradient(180deg,#ffffff 0%,#f8f8fc 100%);
}

.ais-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
}

.ais-hero-orb-purple {
  width: 340px; height: 340px;
  left: -80px; top: 8%;
  background: rgba(123,93,255,0.13);
  animation: ais-float 8s ease-in-out infinite;
}

.ais-hero-orb-lime {
  width: 240px; height: 240px;
  right: 2%; top: 6%;
  background: rgba(212,255,18,0.28);
  animation: ais-float 10s ease-in-out infinite reverse;
}

@keyframes ais-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.ais-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,93,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,93,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.ais-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .ais-hero-inner {
    grid-template-columns: 1fr 460px;
    gap: 64px;
  }
}

/* Breadcrumb — defined globally in master.css as .breadcrumb */

.ais-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ais-badge {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  background: var(--primary-purple);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.ais-hero-copy h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.05;
  color: #000;
  margin: 14px 0 20px;
  letter-spacing: -0.02em;
}

/* .hero-lede defined globally in master.css — override spacing for hero context */
.ais-hero-copy .hero-lede {
  max-width: 560px;
  margin-bottom: 36px;
}

.ais-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ais-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.ais-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
}

.ais-hero-trust-item::before {
  content: "✓";
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-lime);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ===== HERO VISUAL / DASHBOARD ===== */
.ais-hero-visual {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.06);
}

.ais-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ais-dash-dot {
  width: 11px; height: 11px;
  border-radius: 999px;
}
.ais-dash-dot.red    { background: #ff5f57; }
.ais-dash-dot.yellow { background: #ffbd2e; }
.ais-dash-dot.green  { background: #28ca41; }

.ais-dash-title {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.ais-dash-body {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ais-dash-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
}

.ais-dash-metric strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-lime);
  line-height: 1;
  margin-bottom: 4px;
}

.ais-dash-metric span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.ais-dash-change {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}

.ais-dash-change.up      { background: rgba(40,202,65,0.15); color: #28ca41; }
.ais-dash-change.neutral { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }

.ais-dash-pipeline {
  grid-column: 1 / -1;
  background: rgba(123,93,255,0.12);
  border: 1px solid rgba(123,93,255,0.2);
  border-radius: 12px;
  padding: 16px;
}

.ais-pipeline-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ais-pipeline-bar {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ais-pipeline-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-lime));
  border-radius: 99px;
  transition: width 1s ease;
}

.ais-pipeline-stages {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ais-pipeline-stages span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.ais-pipeline-stages strong {
  color: #fff;
  font-weight: 800;
}

.ais-dash-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.ais-live-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #28ca41;
  box-shadow: 0 0 6px #28ca41;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== INTRO BAND ===== */
.ais-intro-band {
  background: #000;
  padding: 52px 20px;
  text-align: center;
}

.ais-intro-band p {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.ais-intro-band strong {
  color: var(--accent-lime);
}

/* ===== SERVICES ===== */
.ais-services {
  padding: 96px 0;
}

.ais-service-block {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ais-service-block:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .ais-service-block {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .ais-service-block.reverse .ais-service-visual {
    order: -1;
  }
}

.ais-service-num {
  font-size: 64px;
  font-weight: 900;
  color: rgba(123,93,255,0.1);
  line-height: 1;
  margin-bottom: -12px;
  font-variant-numeric: tabular-nums;
}

.ais-service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(123,93,255,0.1);
  color: var(--primary-purple);
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ais-service-content h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: #000;
  margin: 0 0 16px;
}

.ais-service-lede {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(0,0,0,0.62);
  margin-bottom: 24px;
}

.ais-service-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.ais-service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
  line-height: 1.5;
}

.ais-service-bullets li::before {
  content: "✦";
  color: var(--primary-purple);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 3px;
}

.ais-service-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--soft-gray);
  border-radius: 12px;
  border-left: 3px solid var(--primary-purple);
}

.ais-service-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #000;
  line-height: 1;
  margin-bottom: 4px;
}

.ais-service-stat span {
  font-size: 12px;
  color: rgba(0,0,0,0.52);
  line-height: 1.4;
}

/* ===== SERVICE VISUALS ===== */
.ais-service-visual {
  border-radius: 16px;
  overflow: hidden;
}

/* --- Chatbot Visual --- */
.chat-window {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #000;
  color: #fff;
}

.chat-avatar {
  font-size: 22px;
}

.chat-header strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.online {
  font-size: 11px;
  color: #28ca41;
  font-style: normal;
  font-weight: 600;
}

.chat-messages {
  padding: 16px;
  display: grid;
  gap: 10px;
  background: #f7f7fa;
  min-height: 220px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.chat-msg.bot {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px 12px 12px 2px;
  align-self: start;
}

.chat-msg.user {
  background: var(--primary-purple);
  color: #fff;
  border-radius: 12px 12px 2px 12px;
  justify-self: end;
  margin-left: auto;
}

.chat-msg.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.chat-msg.typing span {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  animation: typing-dot 1.2s ease-in-out infinite;
}

.chat-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  font-size: 13px;
  color: rgba(0,0,0,0.38);
}

.chat-input-bar button {
  background: var(--primary-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

/* --- Lead Qualification Visual --- */
.leadq-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  padding: 24px;
  max-width: 360px;
  margin: 0 auto;
}

.leadq-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.leadq-icon { font-size: 24px; }

.leadq-header strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #000;
}

.leadq-time {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  font-style: normal;
}

.leadq-score-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
}

.leadq-score-ring svg {
  transform: scaleX(-1);
}

.ring-bg { stroke: rgba(0,0,0,0.08); }
.ring-fill {
  stroke: var(--primary-purple);
  stroke-dasharray: 240 264;
  transition: stroke-dasharray 1s ease;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ring-label strong {
  font-size: 28px;
  font-weight: 900;
  color: #000;
  line-height: 1;
}

.ring-label span {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

.leadq-criteria {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.leadq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.68);
}

.badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}

.badge.green { background: rgba(40,202,65,0.12); color: #16a34a; }
.badge.yellow { background: rgba(234,179,8,0.15); color: #b45309; }

.leadq-action {
  background: #000;
  color: var(--accent-lime);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* --- Workflow Visual --- */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  background: #f7f7fa;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  border: 1px solid rgba(0,0,0,0.09);
  background: #fff;
}

.flow-node span { font-size: 20px; }

.flow-node strong {
  font-size: 13px;
  font-weight: 800;
  color: #000;
}

.flow-node small {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
}

.flow-node.trigger {
  background: #000;
  border-color: transparent;
}

.flow-node.trigger strong,
.flow-node.trigger small { color: rgba(255,255,255,0.9); }

.flow-node.ai {
  background: rgba(123,93,255,0.08);
  border-color: rgba(123,93,255,0.2);
}

.flow-node.hot-action {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.2);
}

.flow-node.warm-action {
  background: rgba(212,255,18,0.15);
  border-color: rgba(180,220,0,0.3);
}

.flow-node.crm-action {
  background: rgba(40,202,65,0.07);
  border-color: rgba(40,202,65,0.2);
}

.flow-arrow {
  font-size: 18px;
  color: rgba(0,0,0,0.3);
  line-height: 1;
}

.flow-split {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* --- Reporting Visual --- */
.dash-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  font-weight: 700;
  color: #000;
}

.dash-live {
  font-size: 11px;
  color: #28ca41;
  font-weight: 700;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 20px 18px 12px;
  height: 120px;
}

.dash-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.dash-bar-track {
  flex: 1;
  width: 100%;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dash-bar-fill {
  width: 100%;
  background: rgba(123,93,255,0.3);
  border-radius: 4px;
  transition: height 1s ease;
}

.dash-bar-fill.highlight {
  background: var(--primary-purple);
}

.dash-bar-item span {
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  font-weight: 600;
}

.dash-metrics-row {
  display: flex;
  gap: 8px;
  padding: 0 18px 16px;
}

.dash-mini-metric {
  flex: 1;
  background: var(--soft-gray);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.dash-mini-metric strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #000;
  line-height: 1;
  margin-bottom: 2px;
}

.dash-mini-metric span {
  display: block;
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 4px;
}

.dash-mini-metric em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
}

.dash-ai-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px 16px;
  background: rgba(123,93,255,0.05);
  border-top: 1px solid rgba(123,93,255,0.1);
  margin: 0 18px 16px;
  border-radius: 10px;
}

.dash-ai-insight span { font-size: 16px; flex-shrink: 0; }

.dash-ai-insight p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
  font-weight: 500;
}

/* --- CRM Timeline Visual --- */
.crm-timeline {
  display: grid;
  gap: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  max-width: 380px;
  margin: 0 auto;
}

.crm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

.crm-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: -12px;
  width: 2px;
  background: rgba(0,0,0,0.08);
}

.crm-icon {
  width: 34px; height: 34px;
  border-radius: 99px;
  background: rgba(123,93,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(123,93,255,0.2);
}

.crm-step.active .crm-icon {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
}

.crm-detail strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #000;
  margin-bottom: 2px;
}

.crm-detail span {
  display: block;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 4px;
}

.crm-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  padding: 2px 8px;
  border-radius: 99px;
}

.crm-status.sent    { background: rgba(40,202,65,0.1); color: #16a34a; }
.crm-status.pending { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.5); }
.crm-status.won     { background: rgba(212,255,18,0.3); color: #5a7000; }

/* ===== PROCESS ===== */
.ais-process {
  padding: 96px 0;
  background: var(--soft-gray);
}

.ais-process-steps {
  display: grid;
  gap: 0;
}

.ais-process-step {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.ais-process-step:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.ais-process-step.accent {
  background: #fff;
  border-color: rgba(123,93,255,0.12);
  box-shadow: 0 4px 20px rgba(123,93,255,0.06);
}

.ais-process-num {
  font-size: 42px;
  font-weight: 900;
  color: rgba(123,93,255,0.2);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ais-process-step.accent .ais-process-num {
  color: var(--primary-purple);
}

.ais-process-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin: 0 0 10px;
}

.ais-process-body p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,0.6);
  margin: 0;
}

.ais-process-tag {
  background: rgba(123,93,255,0.1);
  color: var(--primary-purple);
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .ais-process-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ais-process-tag { width: fit-content; }
}

/* ===== BENEFITS ===== */
.ais-benefits {
  padding: 96px 0;
}

.ais-benefits-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ais-benefit-card {
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.ais-benefit-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: rgba(123,93,255,0.15);
  transform: translateY(-4px);
}

.ais-benefit-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 14px;
}

.ais-benefit-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #000;
  margin: 0 0 10px;
}

.ais-benefit-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.6);
  margin: 0;
}

/* ===== TESTIMONIALS ===== */
.ais-testimonials {
  padding: 96px 0;
  background: var(--soft-gray);
}

.ais-testimonials-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ais-testimonial-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: box-shadow 220ms ease, transform 200ms ease;
}

.ais-testimonial-card:hover {
  box-shadow: 0 16px 50px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}

.gs-testimonial-stars {
  color: #f59e0b;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.ais-testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0,0,0,0.68);
  font-style: italic;
}

.gs-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gs-testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(123,93,255,0.12);
  color: var(--primary-purple);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gs-testimonial-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #000;
}

.gs-testimonial-meta span {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}

.gs-testimonial-result {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212,255,18,0.25);
  color: #3a5000;
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
}

/* ===== FAQ (reuse growth-services style) ===== */
.ais-faq {
  padding: 96px 0;
}

.gs-faq-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .gs-faq-grid {
    grid-template-columns: 1fr 380px;
  }
}

.gs-faq-list {
  display: grid;
  gap: 0;
}

/* .gs-faq-list details, summary, chevron styles are in master.css */

.gs-faq-cta {
  background: #000;
  border-radius: 18px;
  padding: 36px 32px;
  color: #fff;
  position: sticky;
  top: 100px;
}

.gs-faq-cta h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
}

.gs-faq-cta p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px;
}

.gs-faq-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.gs-faq-metric {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.gs-faq-metric strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-lime);
  margin-bottom: 2px;
}

.gs-faq-metric span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ===== FINAL CTA ===== */
.ais-final-cta {
  padding: 96px 0;
  background: #000;
}

.ais-final-cta-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .ais-final-cta-inner {
    grid-template-columns: 1fr 400px;
    gap: 64px;
  }
}

.ais-final-cta-copy h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 10px 0 16px;
  letter-spacing: -0.01em;
}

.ais-final-cta-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  margin-bottom: 32px;
}

.ais-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ais-final-cta-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ais-cta-metric-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px;
}

.ais-cta-metric-box strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-lime);
  line-height: 1;
  margin-bottom: 6px;
}

.ais-cta-metric-box span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ===================================================
   RESPONSIVE — MOBILE SPACING FIXES
   Covers: horizontal overflow, padding, fixed widths
   =================================================== */

/* Prevent any child element from causing horizontal scroll */
.ais-hero,
.ais-services,
.ais-process,
.ais-benefits,
.ais-testimonials,
.ais-faq,
.ais-final-cta {
  overflow-x: hidden;
}

/* ── 767px and below (tablets + phones) ── */
@media (max-width: 767px) {

  /* Hero: hero orbs bleed — push them further off-screen */
  .ais-hero-orb-purple {
    left: -140px;
    width: 260px;
    height: 260px;
  }

  .ais-hero-orb-lime {
    right: -60px;
    width: 180px;
    height: 180px;
  }

  /* Hero padding: tighter top on phones */
  .ais-hero {
    padding-top: 110px;
    padding-bottom: 64px;
  }

  /* Dashboard hero visual: allow full width */
  .ais-hero-visual {
    width: 100%;
    max-width: 100%;
  }

  /* Dash body: 2-col on mobile is fine */
  .ais-dash-body {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
  }

  .ais-dash-metric strong {
    font-size: 22px;
  }

  /* Service blocks: stack and remove reverse ordering on mobile */
  .ais-service-block {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .ais-service-block.reverse .ais-service-visual {
    order: 0; /* reset — visual goes after content on mobile */
  }

  /* Service visuals: full width, no fixed max-width overflow */
  .chat-window,
  .leadq-card,
  .dash-card,
  .crm-timeline {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
  }

  /* Flow diagram: compact on mobile */
  .flow-diagram {
    padding: 16px 12px;
  }

  .flow-node {
    min-width: 0;      /* remove 140px min-width that causes overflow */
    width: 100%;
    max-width: 220px;
    padding: 12px 14px;
  }

  .flow-split {
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .flow-branch {
    flex: 1;
    max-width: 140px;
  }

  /* Stat row: wrap to single column */
  .ais-service-stat-row {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  /* Process steps: single column */
  .ais-process-step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 16px;
  }

  .ais-process-tag { width: fit-content; }

  /* Benefits grid: single column */
  .ais-benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials: single column */
  .ais-testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ grid: stack (no sidebar CTA beside FAQ list) */
  .gs-faq-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ CTA sidebar: remove sticky, normal flow */
  .gs-faq-cta {
    position: static;
    padding: 28px 20px;
  }

  /* Final CTA: stack */
  .ais-final-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Final CTA metrics: 2-col */
  .ais-final-cta-right {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ais-cta-metric-box {
    padding: 16px 12px;
  }

  .ais-cta-metric-box strong {
    font-size: 22px;
  }

  /* Testimonial cards: no horizontal scroll */
  .ais-testimonial-card {
    padding: 20px;
  }

  /* Pipeline stages: wrap text */
  .ais-pipeline-stages {
    flex-direction: column;
    gap: 4px;
  }
}
