/* Voice-first hero experience */

.voice-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  box-sizing: border-box;
  box-shadow: 0 2rem 4rem -1.25rem rgba(5, 8, 20, 0.62);
  overflow: hidden;
}

.voice-hero__background {
  position: absolute;
  inset: 0;
  background:
    var(--voice-hero-poster, url("../assets/horz-mountain-over-clouds-poster.jpg")) center / cover no-repeat,
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.2), transparent 40rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-ink) 100%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.voice-hero__background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(12, 9, 20, 0.42), rgba(12, 9, 20, 0.68)),
    radial-gradient(circle at 50% 20%, rgba(217, 168, 255, 0.18), transparent 24rem);
  z-index: 2;
}

.voice-hero__background-poster,
.voice-hero__background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-hero__background-poster {
  z-index: 0;
}

.voice-hero__background-video {
  display: block;
  z-index: 1;
}

.voice-hero__background-video.is-hidden {
  display: none;
}

.voice-hero__background-poster.is-hidden {
  display: none;
}

.voice-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.25rem);
}

/* Brand section */
.voice-hero__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  text-align: center;
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
}

.voice-hero:not(.voice-hero--playing) {
  justify-content: center;
  min-height: 100svh;
  padding:
    var(--header-h)
    var(--pad-x)
    max(var(--header-h), env(safe-area-inset-bottom));
}

.voice-hero--layout-measure {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.voice-hero--playing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  min-height: max(100svh, var(--voice-hero-playback-min-height, 100svh));
  height: auto;
  overflow: visible;
  background-color: var(--bg-ink);
  --voice-hero-inline-pad: var(--pad-x);
  --voice-hero-playing-top-inset: clamp(0.875rem, 2vw, 1.25rem);
  --voice-hero-playing-bottom-inset: max(1.25rem, env(safe-area-inset-bottom, 0px));
  --voice-hero-viewport-content-height: calc(
    100svh
    - var(--header-h)
    - var(--voice-hero-playing-top-inset)
    - var(--voice-hero-playing-bottom-inset)
  );
  padding:
    calc(var(--header-h) + var(--voice-hero-playing-top-inset))
    var(--voice-hero-inline-pad)
    var(--voice-hero-playing-bottom-inset);
}

.voice-hero--playing > .voice-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-ink);
  background-image:
    var(--voice-hero-poster, url("../assets/horz-mountain-over-clouds-poster.jpg")),
    linear-gradient(180deg, #1a1428 0%, #120e1e 40%, var(--bg-ink) 100%),
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.2), transparent 40rem);
  background-size: cover, auto, auto;
  background-position: center center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.voice-hero--playing .voice-hero__background-video,
.voice-hero--playing .voice-hero__background-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.voice-hero--playing .voice-hero__background::after {
  position: absolute;
  inset: 0;
  height: auto;
  max-height: none;
}

.voice-hero--playing > .voice-hero__content {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-content: start;
  gap: 1.25rem;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.voice-hero--playing .voice-hero__audio-section.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 0 auto;
  height: var(--voice-hero-viewport-content-height);
  min-height: 0;
  overflow: hidden;
  gap: clamp(1rem, 2vw, 1.25rem);
}

.voice-hero--playing .voice-hero__audio-header {
  flex: 0 0 auto;
  order: 1;
}

.voice-hero--playing .voice-hero__bubbles {
  flex: 1 1 auto;
  height: var(--voice-hero-bubbles-min-height, 120px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  justify-content: flex-start;
  margin-bottom: clamp(0.5rem, 1.25vw, 0.875rem);
  -webkit-overflow-scrolling: touch;
  order: 2;
}

.voice-hero--playing .voice-hero__bubbles::before {
  content: "";
  flex: 0 0 0;
  margin-top: auto;
}

.voice-hero--playing .voice-hero__waitlist-cta {
  flex: 0 0 auto;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  order: 3;
}

.voice-hero--playing .voice-hero__progress {
  display: block;
  flex: 0 0 auto;
  order: 4;
}

.voice-hero--playing .voice-hero__controls {
  order: 5;
}

.voice-hero--playing .voice-hero__progress--hidden {
  visibility: hidden;
  pointer-events: none;
}

.voice-hero--playing .voice-hero__audio-section,
.voice-hero--playing .voice-hero__bubbles {
  width: min(680px, calc(100vw - (2 * var(--voice-hero-inline-pad))));
  max-width: 680px;
  margin-inline: auto;
}

.voice-hero--playing .voice-hero__brand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.75rem);
  pointer-events: none;
}

.voice-hero__mark {
  width: clamp(84px, 10vw, 150px);
  height: clamp(84px, 10vw, 150px);
  color: #f0b8ff;
  opacity: 1;
  filter:
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.95))
    drop-shadow(0 5px 8px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 14px rgba(240, 184, 255, 0.72))
    drop-shadow(0 0 30px rgba(236, 72, 153, 0.38));
}

/* Add glow directly on ring strokes so it reads as inner-edge light. */
.voice-hero__mark circle {
  stroke: rgba(255, 236, 255, 0.8);
  filter:
    drop-shadow(0 0 0.9px rgba(255, 255, 255, 0.45))
    drop-shadow(0 0 1.8px rgba(236, 72, 153, 0.22));
}

.voice-hero__wordmark {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(4.25rem, 10vw, 8.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-shadow:
    0 2px 1px rgba(0, 0, 0, 0.95),
    0 5px 8px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(255, 255, 255, 0.47),
    0 0 34px rgba(217, 168, 255, 0.52),
    0 0 64px rgba(106, 231, 255, 0.31),
    0 0 92px rgba(236, 72, 153, 0.22);
  filter:
    drop-shadow(0 0 18px rgba(217, 168, 255, 0.38))
    drop-shadow(0 0 42px rgba(106, 231, 255, 0.16));
}

.voice-hero__subtitle {
  font-size: clamp(1.65rem, 3.1vw, 2.75rem);
  color: var(--text-soft);
  margin: 0;
  max-width: 760px;
  text-shadow:
    0 2px 1px rgba(0, 0, 0, 0.95),
    0 4px 7px rgba(0, 0, 0, 0.9);
}

/* Input section */
.voice-hero__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.4vw, 2rem);
  align-items: center;
  justify-content: center;
}

.voice-hero__input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.voice-hero__error {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgb(239, 68, 68);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 14px 32px rgba(127, 29, 29, 0.3);
  pointer-events: none;
}

.voice-hero__input {
  flex: 1;
  min-width: 240px;
  max-width: 520px;
  padding: 1.125rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(217, 168, 255, 0.42);
  border-radius: 8px;
  color: var(--text);
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  text-shadow: 0 2px 10px rgba(5, 8, 20, 0.72);
  transition: all 0.3s ease;
}

.voice-hero__input::placeholder {
  color: var(--muted);
  text-shadow:
    0 1px 3px rgba(5, 8, 20, 0.88),
    0 3px 14px rgba(5, 8, 20, 0.62);
}

.voice-hero__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(217, 168, 255, 0.1);
}

/* CTA Button - press and hold */
.voice-hero__cta {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: clamp(64px, 5vw, 76px);
  padding: 0;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.56) 45%, transparent 56% 100%),
    radial-gradient(circle at 22% 0%, rgba(139, 231, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #4c1d95 0%, #a21caf 58%, #4a174f 100%);
  background-position: 160% 0, center, center;
  background-size: 220% 100%, 100% 100%, 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 12px;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 30px rgba(236, 72, 153, 0.36),
    0 0 36px rgba(217, 168, 255, 0.38);
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition:
    background-position 0.9s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
  animation: waitlistCtaGlow 2.8s ease-in-out infinite;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.voice-hero__cta * {
  -webkit-user-select: none;
  user-select: none;
}

.voice-hero__cta:hover:not(.voice-hero__cta--loading) {
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.72) 45%, transparent 56% 100%),
    radial-gradient(circle at 22% 0%, rgba(139, 231, 255, 0.42), transparent 38%),
    linear-gradient(135deg, #7c3aed 0%, #ec4899 52%, #f6c6ff 100%);
  background-position: 160% 0, center, center;
  background-size: 220% 100%, 100% 100%, 100% 100%;
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 24px 42px rgba(236, 72, 153, 0.46),
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 44px rgba(217, 168, 255, 0.48);
}

.voice-hero__cta:active:not(.voice-hero__cta--loading) {
  transform: translateY(0);
}

/* Press and hold fill animation */
.voice-hero__cta-fill {
  position: absolute;
  inset: 0;
  background: var(--lavender);
  border-radius: 12px;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 0;
}

.voice-hero__cta-fill.active {
  will-change: transform;
}

.voice-hero__cta-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  letter-spacing: 0.15em;
}

.voice-hero__cta-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-hero__cta--loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.voice-hero__cta--loading .voice-hero__cta-fill {
  animation: none;
  transform: scaleX(1);
  background: var(--lavender);
  opacity: 0.6;
}

/* CTA Hint */
.voice-hero__cta-hint {
  font-size: clamp(1.12rem, 1.25vw, 1.3rem);
  color: var(--muted);
  margin: 0;
  margin-top: -0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.voice-hero__cta-hint--emphasis {
  transform-origin: center;
  animation: voiceHeroCtaHintPulse 1.6s ease-out both;
}

@keyframes voiceHeroCtaHintPulse {
  0% {
    color: var(--muted);
    transform: scale(1);
    text-shadow: none;
  }

  18%,
  62% {
    color: #ffb4b4;
    transform: scale(1.05);
    text-shadow:
      0 0 12px rgba(255, 76, 76, 0.72),
      0 0 28px rgba(239, 68, 68, 0.42);
  }

  100% {
    color: var(--muted);
    transform: scale(1);
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-hero__cta-hint--emphasis {
    animation: none;
    color: #ffb4b4;
    text-shadow: 0 0 14px rgba(239, 68, 68, 0.42);
  }
}

.voice-hero__sound-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow:
    0 2px 1px rgba(0, 0, 0, 0.85),
    0 5px 12px rgba(0, 0, 0, 0.72);
}

.voice-hero__sound-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
  flex-shrink: 0;
}

.voice-hero__sound-tip-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.voice-hero__sound-tip-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.voice-hero__sound-tip-subcopy {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Spinner */
.spinner {
  display: inline-flex;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text);
  border-radius: 50%;
  transform: translateZ(0) rotate(0deg);
  will-change: transform;
}

/* Audio playback section */
.voice-hero__audio-section {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  align-self: stretch;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  align-items: stretch;
  justify-content: center;
  scroll-margin-block-start: calc(var(--header-h) + env(safe-area-inset-top) + 1.25rem);
}

.voice-hero__audio-section.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  width: 100%;
  max-width: none;
}

.voice-hero__audio-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.voice-hero__greeting {
  max-width: calc(100% - 6.5rem);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lavender);
  text-align: center;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.85);
}

.voice-hero__sound-toggle {
  position: absolute;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(217, 168, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.voice-hero__sound-toggle:hover {
  background: rgba(217, 168, 255, 0.15);
  border-color: var(--lavender);
}

.voice-hero__sound-toggle svg {
  width: 20px;
  height: 20px;
}

/* Chat bubbles */
.voice-hero__bubbles {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 120px;
  scroll-margin-block-end: max(2rem, env(safe-area-inset-bottom));
}

.voice-hero__message-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: min(100%, 280px);
  padding: 1rem 1.35rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow:
    0 14px 36px rgba(7, 6, 18, 0.46),
    0 0 28px rgba(217, 168, 255, 0.24);
  color: var(--text);
  cursor: pointer;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 1;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.voice-hero__message-play:hover,
.voice-hero__message-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow:
    0 18px 44px rgba(7, 6, 18, 0.52),
    0 0 34px rgba(217, 168, 255, 0.34);
}

.voice-hero__message-play:focus-visible {
  outline: 3px solid rgba(217, 168, 255, 0.55);
  outline-offset: 4px;
}

.voice-hero__message-play.is-hiding {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

.voice-hero__message-play svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.voice-hero__bubble {
  display: none;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.38);
  border-radius: 8px;
  color: var(--text);
  font-size: clamp(1.02rem, 1.18vw, 1.14rem);
  line-height: 1.5;
  opacity: 1;
  transition: all 0.3s ease;
  scroll-margin-block-end: max(5rem, calc(env(safe-area-inset-bottom) + 3rem));
}

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

.voice-hero__bubble.active,
.voice-hero__bubble.played {
  display: block;
}

.voice-hero__bubble.active {
  background: rgba(64, 36, 112, 0.66);
  border-color: rgba(124, 58, 237, 0.78);
  animation: bubbleIn 0.4s ease-out forwards;
}

.voice-hero__bubble.active::after {
  display: inline-block;
  width: 0.08em;
  height: 1.1em;
  margin-left: 0.12em;
  background: currentColor;
  content: "";
  vertical-align: -0.16em;
  animation: voiceHeroTypingCursor 0.8s steps(1, end) infinite;
}

@keyframes voiceHeroTypingCursor {
  50% {
    opacity: 0;
  }
}

.voice-hero__bubble.played {
  background: rgba(42, 30, 74, 0.46);
  border-color: rgba(124, 58, 237, 0.42);
  opacity: 0.7;
}

/* Progress bar */
.voice-hero__progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  display: none;
}

.voice-hero__progress:not(.voice-hero__progress--hidden) {
  display: block;
}

.voice-hero__progress-bar {
  height: 100%;
  background: var(--lavender);
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Controls */
.voice-hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.voice-hero__control-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(217, 168, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.voice-hero__control-btn:hover {
  background: rgba(217, 168, 255, 0.15);
  border-color: var(--lavender);
  transform: scale(1.05);
}

.voice-hero__control-btn svg {
  width: 24px;
  height: 24px;
}

/* Time display */
.voice-hero__time {
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Hidden state for progress bar + controls after monologue ends */
.voice-hero__progress--hidden,
.voice-hero__controls--hidden {
  display: none;
}

/* Waitlist CTA — visible during playback, then brightens after the monologue */
.voice-hero__waitlist-cta {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 400px;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 0;
  padding: 0.875rem 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.14) 44%, transparent 54% 100%),
    linear-gradient(135deg, rgba(32, 31, 35, 0.92), rgba(18, 17, 22, 0.94));
  background-position: -180% 0, center;
  background-size: 220% 100%, 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(5, 8, 20, 0.28);
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 0.82;
  transition:
    background-position 0.9s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
  animation: waitlistCtaSubtleReflect 9s ease-in-out infinite;
}

.voice-hero__waitlist-cta.active {
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.56) 45%, transparent 56% 100%),
    radial-gradient(circle at 22% 0%, rgba(139, 231, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #4c1d95 0%, #a21caf 58%, #4a174f 100%);
  background-position: 160% 0, center, center;
  background-size: 220% 100%, 100% 100%, 100% 100%;
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 30px rgba(236, 72, 153, 0.36),
    0 0 36px rgba(217, 168, 255, 0.38);
  color: var(--text);
  opacity: 1;
  animation:
    waitlistCtaActivate 0.75s ease-out forwards,
    waitlistCtaBrightSweep 1.05s ease-out forwards,
    waitlistCtaGlow 2.8s ease-in-out 0.75s infinite;
}

.voice-hero__waitlist-cta:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--text);
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 22px 38px rgba(5, 8, 20, 0.44),
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(217, 168, 255, 0.2);
}

.voice-hero__waitlist-cta.active:hover {
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.72) 45%, transparent 56% 100%),
    radial-gradient(circle at 22% 0%, rgba(139, 231, 255, 0.42), transparent 38%),
    linear-gradient(135deg, #7c3aed 0%, #ec4899 52%, #f6c6ff 100%);
  background-position: 160% 0, center, center;
  background-size: 220% 100%, 100% 100%, 100% 100%;
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 24px 42px rgba(236, 72, 153, 0.46),
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 44px rgba(217, 168, 255, 0.48);
}

@keyframes waitlistCtaSubtleReflect {
  0%,
  56%,
  100% {
    background-position: -180% 0, center;
  }
  72% {
    background-position: 140% 0, center;
  }
}

@keyframes waitlistCtaActivate {
  from {
    transform: translateY(8px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes waitlistCtaBrightSweep {
  from {
    background-position: -160% 0, center, center;
  }
  to {
    background-position: 160% 0, center, center;
  }
}

@keyframes waitlistCtaGlow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 14px 30px rgba(236, 72, 153, 0.34),
      0 0 32px rgba(217, 168, 255, 0.34);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.62),
      0 18px 38px rgba(236, 72, 153, 0.48),
      0 0 48px rgba(217, 168, 255, 0.5);
  }
}

/* Responsive design (mobile overrides) */
@media (max-width: 640px) {
  .voice-hero:not(.voice-hero--playing) {
    padding:
      var(--header-h)
      1rem
      max(var(--header-h), env(safe-area-inset-bottom));
  }

  .voice-hero--playing {
    --voice-hero-inline-pad: 1rem;
    --voice-hero-playing-top-inset: calc(env(safe-area-inset-top, 0px) + 1rem);
    --voice-hero-playing-bottom-inset: max(0.75rem, env(safe-area-inset-bottom, 0px));
    --voice-hero-viewport-content-height: calc(
      100svh
      - var(--header-h)
      - var(--voice-hero-playing-top-inset)
      - var(--voice-hero-playing-bottom-inset)
    );
    padding:
      calc(var(--header-h) + var(--voice-hero-playing-top-inset))
      var(--voice-hero-inline-pad)
      var(--voice-hero-playing-bottom-inset);
  }

  .voice-hero__background {
    background:
      var(--voice-hero-poster, url("../assets/vert-sunset-clouds-poster.jpg")) center / cover no-repeat,
      radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.2), transparent 40rem),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-ink) 100%);
  }

  .voice-hero--playing > .voice-hero__background {
    background-image:
      var(--voice-hero-poster, url("../assets/vert-sunset-clouds-poster.jpg")),
      linear-gradient(180deg, #1a1428 0%, #120e1e 40%, var(--bg-ink) 100%),
      radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.2), transparent 40rem);
  }

  .voice-hero__background::after {
    background:
      linear-gradient(180deg, rgba(12, 9, 20, 0.48), rgba(12, 9, 20, 0.72)),
      radial-gradient(circle at 50% 20%, rgba(217, 168, 255, 0.2), transparent 18rem);
  }

  .voice-hero__content {
    gap: 1.45rem;
  }

  .voice-hero--playing .voice-hero__content {
    gap: 1rem;
  }

  .voice-hero__mark {
    width: 76px;
    height: 76px;
  }

  .voice-hero__title {
    font-size: 1.5rem;
  }

  .voice-hero__wordmark {
    font-size: clamp(2.5rem, 13.5vw, 4rem);
  }

  .voice-hero__subtitle {
    font-size: clamp(1.25rem, 5.2vw, 1.55rem);
  }

  .voice-hero__input {
    min-width: 100%;
    padding: 0.875rem 1.25rem;
    border-width: 1px;
    font-size: 1rem;
  }

  .voice-hero__cta {
    max-width: 100%;
    height: 56px;
    font-size: 1rem;
  }

  .voice-hero__cta-hint {
    font-size: 0.875rem;
  }

  .voice-hero__input-group {
    flex-direction: column;
  }

  .voice-hero__bubbles {
    min-height: auto;
    padding: 1rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .voice-hero__cta-fill.active {
    transform: scaleX(1);
  }

  .voice-hero__bubble.active::after {
    animation: none;
    opacity: 0;
  }
}
