/* ==========================================================================
   PRISM — Shared building blocks for dedicated service landing pages
   (AI Voice Agent, AI Chatbot, Custom AI Agent). Each service page keeps its
   own hero + signature visual in its own stylesheet; everything below is the
   common "lead-funnel" scaffolding reused across all of them with the same
   look, different copy. Prefixed `svc-` where a homepage component of the
   same generic name already exists (svc-stat vs homepage's own .stat,
   svc-process-step vs homepage's own .process-step) to avoid collisions.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* FAQ CTA — on these service pages the FAQ section doubles as the         */
/* "#contact" scroll target for the shared header/mobile-nav/footer        */
/* "Book a Call" buttons, so it needs its own real, working CTA rather     */
/* than ending on a bare accordion.                                        */
/* ---------------------------------------------------------------------- */
.faq__cta { margin-top: var(--space-8); text-align: center; }
.faq__cta-text { font-size: var(--fs-lead); color: var(--ink-500); margin-bottom: var(--space-5); }

/* ---------------------------------------------------------------------- */
/* Stat strip — glass card housing counters, icons + column dividers       */
/* ---------------------------------------------------------------------- */
.svc-stats-card { padding: var(--space-6) var(--space-4); }
.svc-stats__grid { grid-template-columns: repeat(4, 1fr); text-align: center; gap: 0; }
.svc-stat {
  padding: var(--space-4);
  border-left: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base) var(--ease-out);
}
.svc-stat:first-child { border-left: none; }
.svc-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.svc-stat__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient-soft);
  color: var(--brand-indigo);
}
[data-theme="dark"] .svc-stat__icon { color: var(--brand-aqua); }
.svc-stat__icon svg { width: 22px; height: 22px; }
.svc-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-1);
  font-variant-numeric: tabular-nums;
}
.svc-stat__label { font-size: 0.8125rem; color: var(--ink-500); }
@media (max-width: 900px) {
  .svc-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-stat { border-top: 1px solid var(--border); }
  .svc-stat:nth-child(odd) { border-left: none; }
  .svc-stat:nth-child(-n+2) { border-top: none; }
}

/* ---------------------------------------------------------------------- */
/* Problem section — cards enter "stacked/fanned" instead of a plain rise  */
/* ---------------------------------------------------------------------- */
.problem-grid { grid-template-columns: repeat(4, 1fr); }
.problem-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) 1.125rem; }
.problem-card__icon { color: var(--brand-indigo); }
[data-theme="dark"] .problem-card__icon { color: var(--brand-aqua); }
.problem-card__icon svg { width: 30px; height: 30px; }
.problem-card__title { font-size: 0.9375rem; letter-spacing: -0.01em; white-space: nowrap; }
.problem-card__desc { color: var(--ink-500); font-size: 0.9375rem; }

.js .problem-card[data-reveal]:nth-child(1) { transform: translateY(24px) rotate(-5deg) translateX(14px); }
.js .problem-card[data-reveal]:nth-child(2) { transform: translateY(36px) rotate(3deg) translateX(-8px); }
.js .problem-card[data-reveal]:nth-child(3) { transform: translateY(24px) rotate(-3deg) translateX(-14px); }
.js .problem-card[data-reveal]:nth-child(4) { transform: translateY(36px) rotate(5deg) translateX(8px); }
.js .problem-card[data-reveal].is-visible { transform: none; }

.problem-callout {
  margin-top: var(--space-8);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--ink-700);
}
.problem-callout strong { color: var(--ink-900); }

@media (max-width: 1024px) { 
  .problem-grid { grid-template-columns: repeat(2, 1fr); } 
  .problem-card__title { white-space: normal; }
}
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Process — vertical timeline, each segment fills in as it's revealed     */
/* (named svc-process-step to avoid colliding with the homepage's own      */
/* card-based .process-step "How It Works" component)                     */
/* ---------------------------------------------------------------------- */
.svc-process__list { display: flex; flex-direction: column; max-width: 720px; margin-inline: auto; }
.svc-process-step { display: flex; gap: var(--space-6); padding-bottom: var(--space-8); }
.svc-process-step:last-child { padding-bottom: 0; }
.svc-process-step__rail { position: relative; flex-shrink: 0; width: 56px; display: flex; justify-content: center; }
.svc-process-step__dot {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6), rgba(255,255,255,0) 45%), var(--brand-gradient);
  box-shadow: 0 12px 24px -8px rgba(63,141,254,0.45);
}
.svc-process-step__track {
  position: absolute;
  top: 56px;
  bottom: calc(var(--space-8) * -1);
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border-strong);
  overflow: hidden;
}
.svc-process-step:last-child .svc-process-step__track { display: none; }
.svc-process-step__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--brand-gradient); transition: height var(--dur-slower) var(--ease-out); }
.svc-process-step.is-visible .svc-process-step__fill { height: 100%; }

.svc-process-step__body { padding-top: var(--space-2); }
.svc-process-step__num { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--brand-indigo); display: block; margin-bottom: var(--space-2); }
[data-theme="dark"] .svc-process-step__num { color: var(--brand-aqua); }
.svc-process-step__title {
  font-size: 20px !important;
  line-height: 1.4 !important;
  margin-bottom: var(--space-2);
}
.svc-process-step__desc { color: var(--ink-500); }

@media (max-width: 640px) {
  .svc-process-step { gap: var(--space-4); }
  .svc-process-step__rail { width: 44px; }
  .svc-process-step__dot { width: 44px; height: 44px; font-size: 0.9375rem; }
  .svc-process-step__track { top: 44px; }
}

/* ---------------------------------------------------------------------- */
/* Capabilities grid                                                       */
/* ---------------------------------------------------------------------- */
.capability-grid { grid-template-columns: repeat(3, 1fr); }
.capability-card { display: flex; flex-direction: column; }
.capability-card__icon { margin-bottom: var(--space-5); }
.capability-card__title {
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin-bottom: var(--space-3);
}
.capability-card__desc { color: var(--ink-500); font-size: 0.9375rem; }
@media (max-width: 1024px) { .capability-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .capability-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Live demo band — dark glass spotlight, same family as the stats band    */
/* ---------------------------------------------------------------------- */
.demo-band,
.channel-band,
.agent-log-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: #06101E;
  border: 1px solid rgba(161, 200, 243, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}
.demo-band::before,
.channel-band::before,
.agent-log-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
.demo-band::after,
.channel-band::after,
.agent-log-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 45%, rgba(63, 141, 254, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.demo-band {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}
.demo-band__inner,
.channel-band__inner,
.channel-band__grid,
.agent-log-band__inner,
.agent-log {
  position: relative;
  z-index: 1;
}
.demo-band__inner { max-width: 600px; margin-inline: auto; }
.demo-band__eyebrow { justify-content: center; color: rgba(255, 255, 255, 0.7); margin-bottom: var(--space-4); }
.demo-band__eyebrow::before { background: var(--brand-gradient); }
.demo-band__title { color: #fff; margin-bottom: var(--space-4); }
.demo-band__sub { color: rgba(255, 255, 255, 0.65); margin-bottom: var(--space-7); }
.demo-band .btn--primary { box-shadow: 0 14px 32px -10px rgba(63, 141, 254, 0.55); }

/* ---------------------------------------------------------------------- */
/* Industries marquee                                                      */
/* ---------------------------------------------------------------------- */
.industries-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.industries-marquee__track { display: flex; align-items: center; width: max-content; gap: var(--space-5); animation: trustScroll 30s linear infinite; }
.industries-marquee:hover .industries-marquee__track { animation-play-state: paused; }
.industries-marquee__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}
.industries-marquee__chip svg { width: 18px; height: 18px; color: var(--brand-indigo); flex-shrink: 0; }
[data-theme="dark"] .industries-marquee__chip svg { color: var(--brand-aqua); }
@media (prefers-reduced-motion: reduce) { .industries-marquee__track { animation: none; } }

/* ---------------------------------------------------------------------- */
/* Pricing                                                                 */
/* ---------------------------------------------------------------------- */
.svc-pricing__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    var(--brand-gradient) border-box;
  border: 2px solid transparent;
  transform: scale(1.03);
  box-shadow: var(--glass-shadow);
}
[data-theme="dark"] .price-card--featured { background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box, var(--brand-gradient) border-box; }
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(47, 122, 232);
  background-image: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px -6px rgba(47, 122, 232, 0.35);
  white-space: nowrap;
}
.price-card__name { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.price-card__delivery {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
/* Crossed-out price on its own line, sale price + badge on the next, the same on
   every card; columns stay equal so a long price can't widen one card. */
.price-card__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin-bottom: var(--space-1); }
.price-card__price-original { flex-basis: 100%; font-size: 1rem; color: var(--ink-300); text-decoration: line-through; }
.price-card__price-now { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-card__cur { font-size: 0.55em; font-weight: 600; margin-right: 0.05em; }
.price-card__discount { font-size: 0.75rem; font-weight: 700; color: #059669; background: rgba(5,150,105,0.12); padding: 0.2rem 0.55rem; border-radius: var(--radius-full); white-space: nowrap; }
[data-theme="dark"] .price-card__discount { color: #34D399; background: rgba(52,211,153,0.14); }
.price-card__note { font-size: 0.8125rem; color: var(--ink-300); margin-bottom: var(--space-6); }
.price-card__vat { font-size: 0.75rem; color: var(--ink-300); margin-bottom: var(--space-1); }

.price-card__features { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--space-6); flex-grow: 1; }
.price-card__features li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-700); }
.price-card__features li span { flex: 1; min-width: 0; }
.price-card__features li strong { color: #ffffff; }
.price-card__features svg { width: 18px; height: 18px; color: #22c55e; flex-shrink: 0; margin-top: 3px; }
[data-theme="dark"] .price-card__features svg { color: #22c55e; }
[data-theme="dark"] .price-card__features li { color: #d1d5db; }

@media (max-width: 1024px) {
  .svc-pricing__grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; }
  .price-card--featured { transform: none; order: -1; }
}

/* ---- Add-ons ---- */
.svc-addons { margin-top: var(--space-8); max-width: 860px; margin-inline: auto; }
.svc-addons__title { text-align: center; margin-bottom: var(--space-6); }
.svc-addons__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.addon-row__name { font-weight: 600; color: var(--ink-900); font-size: 0.9375rem; }
.addon-row__desc { font-size: 0.8125rem; color: var(--ink-500); margin-top: 2px; }
.addon-row__price { font-family: var(--font-display); font-weight: 700; color: var(--brand-indigo); white-space: nowrap; font-size: 0.9375rem; }
[data-theme="dark"] .addon-row__price { color: var(--brand-aqua); }
@media (max-width: 640px) { .svc-addons__grid { grid-template-columns: 1fr; } .addon-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); } }

/* ==========================================================================
   Services Hero Heading (H1) & Subheading (Paragraph)
   ========================================================================== */
.voice-hero__title,
.chat-hero__title,
.agent-hero__title {
  font-weight: 700 !important;
}

.voice-hero__title em,
.voice-hero__title span,
.chat-hero__title em,
.chat-hero__title span,
.agent-hero__title em,
.agent-hero__title span {
  font-weight: 700 !important;
}

.voice-hero__title .hero-line,
.chat-hero__title .hero-line,
.agent-hero__title .hero-line {
  display: inline;
}

/* ==========================================================================
   Services Hero Grid (2 Columns: ~55% content, ~45% visual, 52px gap)
   Strictly prevents any overlap between left text and right diagram/visual
   ========================================================================== */
@media (min-width: 1025px) {
  .voice-hero__grid,
  .chat-hero__grid,
  .agent-hero__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: 52px !important;
    align-items: center !important;
  }

  .voice-hero__content,
  .chat-hero__content,
  .agent-hero__content {
    max-width: 580px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .voice-hero__visual,
  .chat-hero__visual,
  .agent-hero__visual {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .voice-hero__title,
  .chat-hero__title,
  .agent-hero__title {
    font-size: 60px !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
  }

  .voice-hero__title .hero-line,
  .chat-hero__title .hero-line,
  .agent-hero__title .hero-line {
    display: block;
    white-space: nowrap;
  }

  .voice-hero__title .hero-line-break,
  .chat-hero__title .hero-line-break,
  .agent-hero__title .hero-line-break,
  .hero-line-break {
    display: none !important;
  }

  .voice-hero__title em,
  .chat-hero__title em,
  .agent-hero__title em {
    font-size: 60px !important;
    font-weight: 700 !important;
  }

  .voice-hero__sub,
  .chat-hero__sub,
  .agent-hero__sub {
    font-size: 22px !important;
    line-height: 1.6 !important;
    max-width: 560px !important;
    width: 100% !important;
    text-wrap: pretty !important;
  }
}

@media (max-width: 1024px) {
  .voice-hero__grid,
  .chat-hero__grid,
  .agent-hero__grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .voice-hero__content,
  .chat-hero__content,
  .agent-hero__content {
    max-width: 100% !important;
    width: 100% !important;
  }

  .voice-hero__sub,
  .chat-hero__sub,
  .agent-hero__sub {
    max-width: 100% !important;
    width: 100% !important;
    text-wrap: pretty !important;
  }
}

/* ==========================================================================
   Service Pages - Dark Mode Hero Top Spacing Match (Desktop, Tablet, Mobile)
   ========================================================================== */
html[data-theme="dark"] body.page-template-page-service .site-header,
html[data-theme="dark"]:has(.voice-hero, .chat-hero, .agent-hero) .site-header {
  margin-bottom: 0 !important;
}

html[data-theme="dark"] body.page-template-page-service .voice-hero,
html[data-theme="dark"] body.page-template-page-service .chat-hero,
html[data-theme="dark"] body.page-template-page-service .agent-hero,
html[data-theme="dark"] body.page-template-page-service #main-content > .voice-hero,
html[data-theme="dark"] body.page-template-page-service #main-content > .chat-hero,
html[data-theme="dark"] body.page-template-page-service #main-content > .agent-hero,
html[data-theme="dark"] body.page-template-page-service #main-content > section:first-child {
  margin-top: 0 !important;
  padding-top: clamp(2rem, 4vw, 4rem) !important;
}

@media (max-width: 768px) {
  html[data-theme="dark"] body.page-template-page-service .site-header,
  html[data-theme="dark"]:has(.voice-hero, .chat-hero, .agent-hero) .site-header {
    margin-bottom: 0 !important;
  }

  html[data-theme="dark"] body.page-template-page-service .voice-hero,
  html[data-theme="dark"] body.page-template-page-service .chat-hero,
  html[data-theme="dark"] body.page-template-page-service .agent-hero,
  html[data-theme="dark"] body.page-template-page-service #main-content > .voice-hero,
  html[data-theme="dark"] body.page-template-page-service #main-content > .chat-hero,
  html[data-theme="dark"] body.page-template-page-service #main-content > .agent-hero,
  html[data-theme="dark"] body.page-template-page-service #main-content > section:first-child {
    margin-top: 0 !important;
    padding-top: 60px !important;
  }
}

/* ==========================================================================
   Service Pages - FAQ Gap Reduction (36px)
   ========================================================================== */
.svc-faq .section__head {
  margin-bottom: 36px !important;
}

/* ==========================================================================
   Services Hero - Bullet Checklist to CTA Gap Reduction (28px Desktop / 24px Mobile)
   ========================================================================== */
.voice-hero .hero__list,
.chat-hero .hero__list,
.agent-hero .hero__list {
  margin-bottom: 28px !important;
}

@media (max-width: 768px) {
  .voice-hero .hero__list,
  .chat-hero .hero__list,
  .agent-hero .hero__list {
    margin-bottom: 24px !important;
  }
}

/* ==========================================================================
   Service Pages - Industries Section Heading (2 Lines)
   ========================================================================== */
.svc-industries .section__head--center,
.section:has(.industries-marquee) .section__head--center {
  max-width: 700px !important;
}

/* Text-only stats (count left empty in Studio): the label is the stat. */
.svc-stat__value.svc-stat__value--text {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.3;
  text-wrap: balance;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .svc-stat__value.svc-stat__value--text { font-size: 20px !important; line-height: 1.3 !important; margin-bottom: 0 !important; }
}

/* Note under the pricing cards: same type as the VAT note, centred. */
.svc-pricing__note { max-width: 760px; margin: var(--space-6) auto 0; text-align: center; line-height: 1.6; }
