/* ---------------------------------------------------------------------------
   Storytelling sections (story-text, story-split, icon-cards, social-proof)
   + hero-aurora page treatment. Shared ✓ tick-line language.
   Loaded on demand by the section components (see @once <link> in each);
   not part of the global bundle. Plain CSS — no Tailwind @apply here.
--------------------------------------------------------------------------- */

/* Hero (reuses the global hero section, opt-in via class="hero-aurora") */
.hero-aurora {
  background:
    radial-gradient(52rem 30rem at 82% 0%, rgba(21, 92, 228, 0.10), transparent 65%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(21, 92, 228, 0.06), transparent 60%);
}
.hero-aurora h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-aurora img {
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.6),
    0 25px 50px -12px rgba(21, 92, 228, 0.15);
}
.hero-aurora .hero-badges {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: center;
  color: #6b7280;
}
.hero-aurora .hero-badges > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-aurora .hero-badges svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
@media screen and (min-width: 998px) {
  .hero-aurora .hero-badges {
    align-items: flex-start;
  }
}

/* Shared title measure — every section heading wraps at the same width
   regardless of its container, so line lengths stay consistent page-wide */
.section-story-text h2,
.section-story-split h2,
.section-icon-cards h2,
.section-social-proof h2,
.section-signup-card h2 {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.015em;
}

/* Narrative / chat / earnings / support text blocks */
.section-story-text .story-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: #fff;
  color: var(--color-primary);
  box-shadow:
    0 10px 15px -3px rgba(21, 92, 228, 0.12),
    0 4px 6px -4px rgba(21, 92, 228, 0.12);
}
.section-story-text .story-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}
.section-story-text .highlight-panel {
  background: var(--color-primary-light);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
}
.section-story-text .highlight-panel p {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.4;
  margin-bottom: 0;
}
.section-story-text .highlight-panel p + p {
  margin-top: 0.35rem;
}

/* Incoming customer messages — scattered floating bubbles with depth,
   not a two-party conversation. Rotation/offset via transform, float via
   the separate `translate` property so they don't fight each other. */
.section-story-text .chat-bubbles {
  position: relative;
}
/* Ghost bubbles at the edges — hints of more messages arriving */
.section-story-text .chat-bubbles::before,
.section-story-text .chat-bubbles::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 1.5rem;
  background: var(--color-primary-light);
  opacity: 0.6;
  filter: blur(1.5px);
}
.section-story-text .chat-bubbles::before {
  width: 5.5rem;
  height: 2.6rem;
  top: -1.2rem;
  right: 4%;
  border-bottom-left-radius: 0.4rem;
  transform: rotate(5deg);
}
.section-story-text .chat-bubbles::after {
  width: 7rem;
  height: 3rem;
  bottom: -1.4rem;
  left: 2%;
  border-bottom-left-radius: 0.4rem;
  transform: rotate(-5deg);
}
.section-story-text .chat-bubble {
  width: fit-content;
  max-width: 80%;
  border-radius: 1.5rem;
  border-bottom-left-radius: 0.375rem;
  background: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 0 0 1px #e5e7eb;
  animation: bubble-float 5s ease-in-out infinite;
}
/* Typing indicator — one more message on its way */
.section-story-text .chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  margin-left: 14%;
  margin-top: 0.6rem;
  animation-delay: -2.2s;
}
.section-story-text .chat-typing i {
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #9ca3af;
  animation: typing-blink 1.2s ease-in-out infinite;
}
.section-story-text .chat-typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.section-story-text .chat-typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing-blink {
  0%,
  80%,
  100% {
    opacity: 0.35;
    translate: 0 0;
  }
  40% {
    opacity: 1;
    translate: 0 -2px;
  }
}
.section-story-text .chat-bubble:nth-child(4n + 1) {
  box-shadow:
    0 0 0 1px #e5e7eb,
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
}
.section-story-text .chat-bubble:nth-child(4n + 2) {
  padding: 0.875rem 1.5rem;
  font-size: 1.25rem;
  box-shadow:
    0 0 0 1px #e5e7eb,
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-right: 2%;
  margin-top: 0.6rem;
  transform: rotate(1.5deg);
  animation-delay: -1.6s;
}
.section-story-text .chat-bubble:nth-child(4n + 3) {
  font-size: 1rem;
  line-height: 1.5rem;
  opacity: 0.75;
  box-shadow:
    0 0 0 1px #e5e7eb,
    0 1px 2px 0 rgba(0, 0, 0, 0.05);
  align-self: center;
  margin-left: -10%;
  margin-top: 0.8rem;
  transform: rotate(-1deg) scale(0.94);
  animation-delay: -3.1s;
}
.section-story-text .chat-bubble:nth-child(4n + 4) {
  box-shadow:
    0 0 0 1px #e5e7eb,
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  margin-left: 55%;
  margin-top: 0.6rem;
  transform: rotate(2deg);
  animation-delay: -4.4s;
}
@keyframes bubble-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* Split media sections */
.section-story-split {
  /* section wrapper's py-10 reads tighter here — the media backing plate
     bleeds 0.75rem below the image, so give the bottom extra room */
  padding-bottom: 4rem;
}
.section-story-split .story-media {
  position: relative;
}
.section-story-split .story-media::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border-radius: 2rem;
  background: var(--color-primary-light);
  transform: rotate(-2deg);
  z-index: -1;
}
.section-story-split .story-media img {
  border-radius: 1.5rem;
  box-shadow:
    0 20px 25px -5px rgba(21, 92, 228, 0.1),
    0 8px 10px -6px rgba(21, 92, 228, 0.1);
}
.section-story-split .story-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}
.section-story-split .story-item-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Feature card stack */
.section-icon-cards .icon-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media screen and (min-width: 768px) {
  .section-icon-cards .icon-card {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.section-icon-cards .icon-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(21, 92, 228, 0.1),
    0 8px 10px -6px rgba(21, 92, 228, 0.1);
  border-color: rgba(21, 92, 228, 0.3);
  transform: translateY(-3px);
}
.section-icon-cards .icon-card-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}
.section-icon-cards .icon-card-tile svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Proof: case-study cards */
.section-social-proof .proof-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.section-social-proof .proof-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(21, 92, 228, 0.1),
    0 8px 10px -6px rgba(21, 92, 228, 0.1);
  transform: translateY(-3px);
}
.section-social-proof .proof-card img {
  transition: transform 0.4s ease;
}
.section-social-proof .proof-card:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .section-story-text .chat-bubble,
  .section-story-text .chat-typing i {
    animation: none;
  }
  .section-icon-cards .icon-card,
  .section-social-proof .proof-card,
  .section-social-proof .proof-card img {
    transition: none;
  }
  .section-icon-cards .icon-card:hover,
  .section-social-proof .proof-card:hover {
    transform: none;
  }
  .section-social-proof .proof-card:hover img {
    transform: none;
  }
}
