/* ========================================
   SALES PAGE
   ======================================== */

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, #c084fc 50%, var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: var(--delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FIXED VIDEO BACKGROUND — covers entire page */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.fixed-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.fixed-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .fixed-bg video {
    width: auto;
    height: 100vh;
    min-width: 100vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* NAV BAR */
.sales-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 14px 36px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.nav-brand-tag {
  font-size: 10px;
  font-weight: 500;
  color: rgba(139, 92, 246, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  color: var(--white);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.nav-tab.active {
  color: var(--white);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), inset 0 0 12px rgba(139, 92, 246, 0.06);
}

/* HERO */
.sales-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.sales-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 24px;
}

.sales-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(139, 92, 246, 0.7);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sales-headline {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.2), 0 0 120px rgba(139, 92, 246, 0.1);
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.sales-sub {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.sales-cta {
  animation: fadeIn 0.8s ease-out 0.8s both;
}

/* SECTIONS — transparent so fixed bg shows through */
.sales-section {
  padding: 120px 24px;
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 15, 0.7);
}

.sales-section:nth-child(even) {
  background: rgba(10, 10, 15, 0.7);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

/* PROBLEM CARDS */
.problem-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.problem-card {
  flex: 1;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 32px 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.problem-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.problem-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.problem-line {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* STEPS */
.steps {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}

.step-num {
  font-size: 48px;
  font-weight: 700;
  color: rgba(139, 92, 246, 0.2);
  min-width: 80px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.step-line {
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--purple);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* WHO IT'S FOR */
.who-list {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.who-item {
  font-size: 18px;
  font-weight: 500;
  padding: 18px 0 18px 32px;
  text-indent: -32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.who-item:hover {
  color: var(--white);
  padding-left: 8px;
}

.who-arrow {
  color: var(--purple);
  margin-right: 12px;
}

/* COMPARISON TABLE */
.compare-table {
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.5);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-header {
  background: rgba(139, 92, 246, 0.08);
}

.compare-header div {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.compare-row div {
  padding: 16px 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.compare-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
}

.compare-ai.highlight {
  color: var(--purple) !important;
  font-weight: 600;
}

/* FINAL CTA */
.sales-final {
  text-align: center;
  padding-bottom: 100px;
  background: transparent !important;
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 768px) {
  .sales-nav {
    padding: 12px 16px;
    gap: 8px;
  }

  .nav-brand img {
    width: 28px;
  }

  .nav-brand-name {
    font-size: 13px;
  }

  .nav-brand-tag {
    font-size: 8px;
  }

  .nav-tabs {
    gap: 2px;
  }

  .nav-tab {
    padding: 6px 10px;
    font-size: 11px;
  }

  .sales-headline {
    font-size: 42px;
  }

  .sales-sub {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .sales-section {
    padding: 80px 20px;
  }

  .problem-cards {
    flex-direction: column;
    gap: 12px;
  }

  .problem-num {
    font-size: 32px;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step-num {
    font-size: 36px;
    min-width: auto;
  }

  .step-line {
    left: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .who-item {
    font-size: 16px;
  }

  .compare-row div {
    padding: 12px 12px;
    font-size: 13px;
  }

  .compare-row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* ========================================
   AI SALES AGENTS — audio-sample hero
   ======================================== */

.ais-hero,
.sales-final {
  background: transparent !important;
}

.ais-hero {
  /* min-height removed so the hero ends right after content + padding,
     instead of forcing a 100vh section with empty purple space below the CTA.
     padding-top gives generous clearance under the fixed nav (matching the
     other service pages like ai-influencers / receptionists). */
  padding: 160px 32px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.ais-hero-grid {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ais-hero-copy { text-align: left; }

.ais-hero-copy .sales-headline {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.ais-hero-copy .sales-sub {
  margin: 0;
  max-width: 540px;
}

.ais-hero-tip {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(167, 139, 250, 0.85);
  display: inline-block;
  padding-left: 2px;
}

/* Visual column wrapper */
.ais-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

/* Player card frame */
.ais-player {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 14, 38, 0.85) 0%, rgba(15, 10, 32, 0.92) 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow:
    0 25px 60px -25px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(167, 139, 250, 0.06) inset,
    0 0 80px -20px rgba(167, 139, 250, 0.35) inset;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  position: relative;
}

/* Caller-ID card */
.ais-caller-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.ais-caller-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.ais-caller-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ais-caller-side-right { align-items: flex-end; text-align: right; }

.ais-caller-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.75);
}

.ais-caller-name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ais-caller-sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ais-caller-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(167, 139, 250, 0.85);
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}

.ais-caller-arrow svg { width: 16px; height: 16px; }

.ais-caller-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 92, 246, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.ais-caller-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ais-caller-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px #a78bfa, 0 0 4px #c084fc;
  -webkit-animation: aisDotPulse 1.6s ease-in-out infinite;
          animation: aisDotPulse 1.6s ease-in-out infinite;
}

@-webkit-keyframes aisDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
@keyframes aisDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.ais-caller-time {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  font-weight: 600;
  color: rgba(192, 132, 252, 0.95);
  letter-spacing: 0.04em;
}

/* Pulse stage — canvas + play button overlay */
.ais-pulse-stage {
  position: relative;
  width: 100%;
  height: 150px;
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
}

.ais-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* PLAY BUTTON */
.ais-play-btn {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  background:
    radial-gradient(circle at 35% 35%, rgba(192, 132, 252, 0.42) 0%, rgba(139, 92, 246, 0.32) 60%, rgba(91, 33, 182, 0.18) 100%);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #f5e8ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px rgba(167, 139, 250, 0.55),
    0 0 60px rgba(139, 92, 246, 0.32),
    0 8px 28px rgba(91, 33, 182, 0.45);
  -webkit-transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.4s ease, box-shadow 0.4s ease, width 0.4s ease, height 0.4s ease;
          transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.4s ease, box-shadow 0.4s ease, width 0.4s ease, height 0.4s ease;
  -webkit-animation: aisPlayBreath 3.2s ease-in-out infinite;
          animation: aisPlayBreath 3.2s ease-in-out infinite;
}

.ais-play-btn:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  box-shadow:
    0 0 40px rgba(167, 139, 250, 0.7),
    0 0 80px rgba(139, 92, 246, 0.45),
    0 10px 36px rgba(91, 33, 182, 0.55);
}

.ais-play-btn:active {
  -webkit-transform: scale(0.97);
          transform: scale(0.97);
}

@-webkit-keyframes aisPlayBreath {
  0%, 100% { box-shadow: 0 0 30px rgba(167,139,250,0.55), 0 0 60px rgba(139,92,246,0.32), 0 8px 28px rgba(91,33,182,0.45); }
  50%      { box-shadow: 0 0 38px rgba(167,139,250,0.72), 0 0 78px rgba(139,92,246,0.42), 0 8px 32px rgba(91,33,182,0.55); }
}
@keyframes aisPlayBreath {
  0%, 100% { box-shadow: 0 0 30px rgba(167,139,250,0.55), 0 0 60px rgba(139,92,246,0.32), 0 8px 28px rgba(91,33,182,0.45); }
  50%      { box-shadow: 0 0 38px rgba(167,139,250,0.72), 0 0 78px rgba(139,92,246,0.42), 0 8px 32px rgba(91,33,182,0.55); }
}

/* Inner glow / decorative rings */
.ais-play-glow {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 232, 255, 0.28) 0%, rgba(167, 139, 250, 0.12) 40%, transparent 70%);
  pointer-events: none;
}

.ais-play-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.45);
  pointer-events: none;
  -webkit-animation: aisRingExpand 2.6s ease-out infinite;
          animation: aisRingExpand 2.6s ease-out infinite;
}

.ais-play-ring-2 {
  -webkit-animation-delay: 1.3s;
          animation-delay: 1.3s;
}

@-webkit-keyframes aisRingExpand {
  0%   { transform: scale(0.9); opacity: 0.7; }
  80%  { opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes aisRingExpand {
  0%   { transform: scale(0.9); opacity: 0.7; }
  80%  { opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Play / pause icons swap */
.ais-play-icon, .ais-pause-icon {
  width: 30px;
  height: 30px;
  position: absolute;
  -webkit-transition: opacity 0.25s ease, transform 0.3s ease;
          transition: opacity 0.25s ease, transform 0.3s ease;
}
.ais-play-icon  { opacity: 1; transform: translateX(2px); /* visual centering for triangle */ }
.ais-pause-icon { opacity: 0; transform: scale(0.85); }

.ais-play-btn.is-playing .ais-play-icon  { opacity: 0; transform: scale(0.7); }
.ais-play-btn.is-playing .ais-pause-icon { opacity: 1; transform: scale(1); }
.ais-play-btn.is-playing {
  width: 56px;
  height: 56px;
  -webkit-animation: none;
          animation: none;
  box-shadow:
    0 0 22px rgba(167, 139, 250, 0.45),
    0 6px 20px rgba(91, 33, 182, 0.35);
}
.ais-play-btn.is-playing .ais-play-ring,
.ais-play-btn.is-playing .ais-play-ring-2 {
  display: none;
}

/* Caption */
.ais-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.ais-caption.is-playing { color: rgba(192, 132, 252, 0.95); }

.ais-caption-text {
  display: inline-block;
  padding: 0 6px;
}

/* Transcript */
.ais-transcript {
  margin-top: 14px;
  padding: 10px 12px;
  max-height: 146px;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(10, 6, 22, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  scroll-behavior: smooth;
}

.ais-transcript:empty::before {
  content: 'Press play to hear the call';
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: 18px 0;
  letter-spacing: 0.02em;
}

.ais-transcript::-webkit-scrollbar { width: 4px; }
.ais-transcript::-webkit-scrollbar-track { background: transparent; }
.ais-transcript::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 2px; }

.ais-tline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateY(4px);
  -webkit-transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-left-color 0.3s ease;
          transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-left-color 0.3s ease;
}

.ais-tline.is-visible { opacity: 0.6; transform: translateY(0); }

.ais-tline.is-active {
  opacity: 1;
  background: rgba(139, 92, 246, 0.1);
  border-left-color: #a78bfa;
}

.ais-tline-speaker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.85);
}

.ais-tline-prospect .ais-tline-speaker { color: rgba(255, 255, 255, 0.55); }

.ais-tline-text {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.ais-tline-prospect .ais-tline-text { color: rgba(255, 255, 255, 0.78); }

/* Mobile / tablet */
@media (max-width: 960px) {
  .ais-hero { padding: 140px 20px 50px; }

  .ais-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ais-hero-copy { text-align: center; }
  .ais-hero-copy .sales-headline { font-size: 40px; }
  .ais-hero-copy .sales-sub { margin: 0 auto 26px; }
  .ais-hero-tip { display: block; }

  .ais-player { max-width: 100%; }

  .ais-pulse-stage { height: 130px; }

  .ais-play-btn { width: 70px; height: 70px; }
  .ais-play-btn.is-playing { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .ais-caller-name { font-size: 14px; }
  .ais-caller-sub { font-size: 11px; }
  .ais-pulse-stage { height: 120px; }
  .ais-transcript { max-height: 130px; }
}

/* ========================================
   AI SALES — REVISED slim tape-recorder layout (overrides above)
   ======================================== */

/* Typewriter header above player */
.ais-typewriter-header {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 22px;
  min-height: 44px;
  padding: 4px 8px;
  overflow: visible;
}

.ais-typewriter-header .gradient-text {
  font-weight: 600;
}

.ais-type-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--purple, #8b5cf6);
  font-weight: 400;
  -webkit-animation: aisCursorBlink 1s steps(2) infinite;
          animation: aisCursorBlink 1s steps(2) infinite;
}

@-webkit-keyframes aisCursorBlink {
  0%, 49.99% { opacity: 1; }
  50%, 100%  { opacity: 0; }
}
@keyframes aisCursorBlink {
  0%, 49.99% { opacity: 1; }
  50%, 100%  { opacity: 0; }
}

/* Slim transparent player — overrides */
.ais-player {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 14px;
  border-radius: 16px;
  background: rgba(15, 10, 32, 0.42);
  border: 1px solid rgba(139, 92, 246, 0.32);
  box-shadow:
    0 18px 48px -22px rgba(139, 92, 246, 0.6),
    0 0 0 1px rgba(167, 139, 250, 0.05) inset,
    0 0 60px -22px rgba(167, 139, 250, 0.36) inset;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.ais-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

/* Caller pill */
.ais-caller-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.26);
  font-size: 12px;
  white-space: nowrap;
}

.ais-caller-pill .ais-caller-dot { margin-right: 2px; }

.ais-caller-pill-from {
  font-weight: 600;
  color: rgba(245, 232, 255, 0.96);
  letter-spacing: 0.01em;
}

.ais-caller-pill-arrow {
  width: 12px;
  height: 12px;
  color: rgba(167, 139, 250, 0.78);
  flex-shrink: 0;
}

.ais-caller-pill-to {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.ais-caller-pill-tag {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
}

/* Recorder row */
.ais-recorder-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ais-recorder-stage {
  position: relative;
  flex: 1;
  height: 56px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.10) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  -webkit-transition: border-color 0.3s ease, background 0.3s ease;
          transition: border-color 0.3s ease, background 0.3s ease;
}

.ais-recorder-stage:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.06) 100%);
}

/* Override canvas — fill recorder stage */
.ais-recorder-stage .ais-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Idle prompt overlay */
.ais-recorder-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(245, 232, 255, 0.97);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  -webkit-transition: opacity 0.45s cubic-bezier(.2,.8,.2,1), transform 0.45s cubic-bezier(.2,.8,.2,1);
          transition: opacity 0.45s cubic-bezier(.2,.8,.2,1), transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.ais-recorder-prompt-text {
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.6), 0 0 4px rgba(192, 132, 252, 0.4);
}

.ais-recorder-arrow {
  display: inline-block;
  font-size: 16px;
  color: #c084fc;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.7);
  -webkit-animation: aisArrowBounce 1.4s ease-in-out infinite;
          animation: aisArrowBounce 1.4s ease-in-out infinite;
}

@-webkit-keyframes aisArrowBounce {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50%      { transform: translateX(5px); opacity: 1; }
}
@keyframes aisArrowBounce {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50%      { transform: translateX(5px); opacity: 1; }
}

.ais-player.is-playing .ais-recorder-prompt {
  opacity: 0;
  transform: translateX(-10px);
}

.ais-player.is-playing .ais-recorder-stage {
  cursor: default;
}

/* Override play button to slim inline size in the recorder row */
.ais-recorder-row .ais-play-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.ais-recorder-row .ais-play-btn.is-playing {
  width: 48px;
  height: 48px;
}

.ais-recorder-row .ais-play-icon,
.ais-recorder-row .ais-pause-icon {
  width: 22px;
  height: 22px;
}

/* CTA wrap */
.ais-cta-wrap {
  margin-top: 22px;
  text-align: center;
}

.ais-cta-wrap .cta-btn { display: inline-block; }

/* Visual column tightening */
.ais-visual { gap: 0; }

/* Transcript constrained to player width */
.ais-transcript {
  margin: 16px auto 0;
  max-width: 560px;
  width: 100%;
}

/* Mobile / tablet for revised layout */
@media (max-width: 960px) {
  .ais-typewriter-header { font-size: 22px; min-height: 36px; margin-bottom: 18px; }
  .ais-recorder-stage { height: 50px; }
  .ais-recorder-row .ais-play-btn { width: 50px; height: 50px; }
  .ais-recorder-row .ais-play-btn.is-playing { width: 44px; height: 44px; }
  .ais-recorder-row .ais-play-icon,
  .ais-recorder-row .ais-pause-icon { width: 18px; height: 18px; }
  .ais-recorder-prompt { font-size: 12px; gap: 6px; padding: 0 10px; }
  .ais-caller-pill { font-size: 11px; padding: 4px 9px; }
  .ais-caller-pill-tag { display: none; }
  .ais-cta-wrap { margin-top: 18px; }
}

@media (max-width: 480px) {
  .ais-typewriter-header { font-size: 18px; min-height: 28px; }
  .ais-player { padding: 10px 12px 12px; }
  .ais-recorder-row { gap: 10px; }
  .ais-recorder-prompt-text { font-size: 11.5px; }
}

/* ========================================
   AI SALES — TIGHTENED LAYOUT + SHIMMER HEADER + LISTEN PILL
   (final overrides, v=4)
   ======================================== */

/* Header: shimmer + fade-up entrance, no typewriter */
.ais-typewriter-header {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: center;
  margin: 0 0 12px;
  min-height: auto;
  padding: 4px 8px;
  opacity: 0;
  -webkit-animation: aisHeaderEnter 0.85s cubic-bezier(.2,.8,.2,1) 0.3s forwards;
          animation: aisHeaderEnter 0.85s cubic-bezier(.2,.8,.2,1) 0.3s forwards;
}

.ais-header-shimmer {
  background: linear-gradient(
    90deg,
    #a78bfa 0%,
    #d8b4fe 25%,
    #ffffff 50%,
    #d8b4fe 75%,
    #a78bfa 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  -webkit-animation: aisShimmer 5s linear infinite;
          animation: aisShimmer 5s linear infinite;
  -webkit-filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.32));
          filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.32));
}

@-webkit-keyframes aisHeaderEnter {
  0%   { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
  100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes aisHeaderEnter {
  0%   { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
  100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@-webkit-keyframes aisShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes aisShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Slim player margin tweaks (already tight, just confirm) */
.ais-player {
  margin: 0 auto;
}

/* LISTEN PILL — prominent centered CTA below player */
.ais-listen-wrap {
  margin-top: 14px;
  text-align: center;
  -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
          transition: opacity 0.4s ease, transform 0.4s ease;
}

.ais-listen-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: rgba(245, 232, 255, 0.95);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-shadow: 0 0 14px rgba(167, 139, 250, 0.55);
  -webkit-transition: opacity 0.3s ease, color 0.25s ease, -webkit-transform 0.25s ease;
          transition: opacity 0.3s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.ais-listen-pill:hover {
  color: #ffffff;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.ais-listen-pill:focus { outline: none; }
.ais-listen-pill:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.6);
  outline-offset: 4px;
  border-radius: 4px;
}

.ais-listen-pill-icon {
  width: 12px;
  height: 12px;
  color: #c084fc;
  -webkit-filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
          filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
  flex-shrink: 0;
}

.ais-listen-pill-arrow {
  display: inline-block;
  font-size: 14px;
  color: #c084fc;
  font-weight: 700;
  -webkit-animation: aisArrowBounce 1.4s ease-in-out infinite;
          animation: aisArrowBounce 1.4s ease-in-out infinite;
}

.ais-listen-pill.is-hidden {
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
}

/* aisListenPulse keyframes removed — pill is now text-only */

/* Tighten gaps around player */
.ais-transcript {
  margin: 10px auto 0;
  max-height: 120px;
  max-width: 560px;
  width: 100%;
}

.ais-cta-wrap {
  margin-top: 14px;
  text-align: center;
}

/* Mobile: shift further up + tighten more */
@media (max-width: 960px) {
  .ais-hero { padding: 130px 20px 20px; }
  .ais-typewriter-header { font-size: 22px; margin-bottom: 10px; }
  .ais-listen-pill { font-size: 12px; padding: 8px 14px; }
  .ais-listen-pill-text { white-space: normal; }
  .ais-transcript { margin-top: 8px; max-height: 110px; }
  .ais-cta-wrap { margin-top: 30px; }
  .ais-listen-wrap { margin-top: 12px; }
}

@media (max-width: 480px) {
  .ais-hero { padding: 110px 16px 16px; }
  .ais-typewriter-header { font-size: 18px; line-height: 1.3; }
  .ais-listen-pill { font-size: 11.5px; padding: 7px 12px; gap: 6px; }
}

/* ========================================
   AI SALES — v6: top-align hero, prominent badge
   ======================================== */

/* Top-align grid so badge stays at top of left column (right column is taller) */
.ais-hero-grid {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}

/* Make the AI Sales Agents badge clearly visible — pill style on hero only.
   margin-bottom is tuned to match the gap between nav and badge (set by
   .ais-hero padding-top minus nav height) so the badge has equal breathing
   room above and below. */
.ais-hero-copy .sales-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(245, 232, 255, 0.96);
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.42);
  border-radius: 999px;
  text-shadow: 0 0 14px rgba(167, 139, 250, 0.55);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .ais-hero-copy .sales-badge { margin-bottom: 30px; }
  .ais-hero-grid { gap: 28px; }
}

/* Form: schedule-time hidden field reveal */
.aiw-field.is-revealing {
  -webkit-animation: aisFieldReveal 0.35s ease-out both;
          animation: aisFieldReveal 0.35s ease-out both;
}

@-webkit-keyframes aisFieldReveal {
  0%   { opacity: 0; max-height: 0; -webkit-transform: translateY(-4px); transform: translateY(-4px); }
  100% { opacity: 1; max-height: 200px; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes aisFieldReveal {
  0%   { opacity: 0; max-height: 0; transform: translateY(-4px); }
  100% { opacity: 1; max-height: 200px; transform: translateY(0); }
}

/* Highlight "Right now" callback option */
.aiw-check input[name="callback_time"][value="Right now"] + span {
  font-weight: 700;
}
.aiw-check input[name="callback_time"][value="Right now"]:checked + span {
  color: #f5e8ff;
}

/* ========================================
   AI SALES — v8: tighten + even rhythm + collapsing transcript
   ======================================== */

/* Uniform rhythm throughout the right column. CTA gets extra breathing
   room above so it doesn't visually "stick" to the listen pill. */
.ais-typewriter-header { margin-bottom: 14px; }
.ais-listen-wrap       { margin-top: 14px; }
.ais-cta-wrap          { margin-top: 36px; }

/* Transcript collapses to 0 at idle so empty space disappears,
   expands smoothly when audio plays */
.ais-transcript {
  max-height: 0;
  margin: 0 auto;
  padding: 0 12px;
  border: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.45s cubic-bezier(.2,.8,.2,1),
                      margin 0.3s ease,
                      padding 0.3s ease,
                      border-color 0.3s ease,
                      border-width 0.3s ease;
          transition: max-height 0.45s cubic-bezier(.2,.8,.2,1),
                      margin 0.3s ease,
                      padding 0.3s ease,
                      border-color 0.3s ease,
                      border-width 0.3s ease;
}

.ais-player.is-playing ~ .ais-transcript {
  max-height: 130px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 92, 246, 0.18);
}

@media (max-width: 960px) {
  .ais-player.is-playing ~ .ais-transcript { max-height: 110px; }
}

