/* Homepage pricing teaser — flagship CTA to /pricing/ */

@property --eyebrow-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.pricing--teaser {
  padding-block: clamp(5.5rem, 12vw, 8.5rem) clamp(4rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.pricing--teaser.section-panel--auto {
  padding-block-start: clamp(8rem, 18vh, 12rem);
}

.pricing--teaser .section-panel__inner {
  max-width: min(72rem, 100%);
}

.pricing--teaser::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(34, 211, 238, 0.12), transparent 55%);
  pointer-events: none;
}

.pricing-teaser__panel {
  position: relative;
  z-index: 1;
  padding: clamp(0.35rem, 1vw, 0.5rem);
  border-radius: calc(var(--radius-xl, 1.25rem) + 4px);
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.55) 0%,
    rgba(34, 211, 238, 0.35) 35%,
    rgba(124, 58, 237, 0.45) 70%,
    rgba(34, 211, 238, 0.4) 100%
  );
  box-shadow:
    0 0 0 1px rgba(167, 243, 208, 0.08),
    0 24px 80px rgba(124, 58, 237, 0.28),
    0 8px 32px rgba(0, 0, 0, 0.45);
}

.pricing-teaser__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-xl, 1.25rem);
  background:
    linear-gradient(165deg, rgba(12, 16, 28, 0.97) 0%, rgba(8, 12, 22, 0.99) 55%, rgba(10, 18, 32, 0.98) 100%);
  overflow: hidden;
  isolation: isolate;
}

.pricing-teaser__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124, 58, 237, 0.2), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.pricing-teaser__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 55% 45%, #000 20%, transparent 72%);
  animation: pricing-teaser-mesh 24s linear infinite;
  pointer-events: none;
}

.pricing-teaser__hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  align-items: center;
}

.pricing-teaser__copy {
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
}

.pricing-teaser__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 1.25rem;
  padding: 0.45rem 1.1rem 0.45rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9d5ff;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(12, 10, 24, 0.72);
  transform: rotate(-1.5deg);
  animation: pricing-teaser-eyebrow-float 4s ease-in-out infinite;
  isolation: isolate;
}

.pricing-teaser__eyebrow::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--eyebrow-border-angle, 0deg),
    #22d3ee,
    #a78bfa,
    #f472b6,
    #22d3ee
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pricing-teaser-eyebrow-border 5s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.pricing-teaser__eyebrow-text {
  background: linear-gradient(90deg, #f0abfc, #e9d5ff, #22d3ee, #e9d5ff, #f0abfc);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pricing-teaser-eyebrow-text 4s ease-in-out infinite;
}

.pricing-teaser__eyebrow-spark {
  font-size: 0.65rem;
  line-height: 1;
  color: #22d3ee;
  opacity: 0.85;
  animation: pricing-teaser-eyebrow-spark 2.4s ease-in-out infinite;
}

.pricing-teaser__eyebrow-spark--2 {
  color: #f0abfc;
  animation-delay: 1.2s;
}

.pricing-teaser__eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #22d3ee, #f472b6);
  background-size: 200% 200%;
  color: #0a0a0f;
  animation:
    pricing-teaser-icon-wiggle 2.8s ease-in-out infinite,
    pricing-teaser-icon-gradient 6s ease infinite;
}

.pricing-teaser__eyebrow-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

.pricing-teaser__title.section-head__title {
  font-size: clamp(2.35rem, 6.5vw, 3.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pricing-teaser__title .gradient-text {
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #22d3ee);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pricing-teaser-title-flow 5s linear infinite;
}

.pricing-teaser__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  margin-bottom: 0;
  color: rgba(226, 232, 240, 0.88);
}

.pricing-teaser__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.pricing-teaser__cta-primary,
.pricing-teaser__cta-secondary {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.pricing-teaser__cta-secondary {
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.pricing-teaser__cta-secondary:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: #fff;
}

/* Live estimate preview (mirrors /pricing/ cfg-summary) */
.pricing-teaser__preview {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
  perspective: 900px;
}

.pricing-teaser__preview-orbit {
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
}

.pricing-teaser__orbit-dot {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.65);
  left: 50%;
  top: 50%;
  animation: pricing-teaser-orbit 12s linear infinite;
  animation-delay: calc(var(--orbit-i, 0) * -3s);
  opacity: 0.7;
}

.pricing-teaser__preview-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.96), rgba(42, 24, 72, 0.88));
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(124, 58, 237, 0.15);
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.5s var(--ease-out, ease-out), box-shadow 0.5s var(--ease-out, ease-out);
  animation: pricing-teaser-card-float 5s ease-in-out infinite;
}

.pricing-teaser__preview:hover .pricing-teaser__preview-card,
.pricing-teaser__preview:focus-within .pricing-teaser__preview-card {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(34, 211, 238, 0.2);
}

.pricing-teaser__preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: pricing-teaser-card-sheen 4s ease-in-out infinite;
  pointer-events: none;
}

.pricing-teaser__preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.6rem;
  margin-bottom: 0.85rem;
}

.pricing-teaser__preview-chip {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.03);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    background 0.35s ease;
}

.pricing-teaser__preview-chip.is-on {
  border-color: rgba(34, 211, 238, 0.45);
  color: #a7f3d0;
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.15);
}

.pricing-teaser__preview-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-muted, #94a3b8);
}

.pricing-teaser__preview-total {
  margin: 0;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s ease;
}

.pricing-teaser__preview-total.is-ticking {
  filter: brightness(1.15);
}

.pricing-teaser__preview-billing {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.75);
}

.pricing-teaser__preview-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 4.5rem;
}

.pricing-teaser__preview-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--color-text-muted, #94a3b8);
  animation: pricing-teaser-line-in 0.45s var(--ease-out, ease-out) both;
}

.pricing-teaser__preview-lines li span:last-child {
  color: #e2e8f0;
  white-space: nowrap;
}

.pricing-teaser__preview-progress {
  margin-top: 0.85rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.pricing-teaser__preview-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  transition: width 0.55s var(--ease-out, ease-out);
}

@keyframes pricing-teaser-mesh {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 32px 32px, 32px 32px;
  }
}

@keyframes pricing-teaser-eyebrow-float {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.22);
  }
  50% {
    transform: rotate(1.5deg) translateY(-4px);
    box-shadow: 0 14px 36px rgba(34, 211, 238, 0.28);
  }
}

@keyframes pricing-teaser-eyebrow-border {
  to {
    --eyebrow-border-angle: 360deg;
  }
}

@keyframes pricing-teaser-eyebrow-text {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes pricing-teaser-eyebrow-spark {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
}

@keyframes pricing-teaser-icon-wiggle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-12deg) scale(1.08);
  }
  75% {
    transform: rotate(12deg) scale(1.08);
  }
}

@keyframes pricing-teaser-icon-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pricing-teaser-title-flow {
  to {
    background-position: 200% center;
  }
}

@keyframes pricing-teaser-card-float {
  0%,
  100% {
    transform: rotateY(-6deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
  }
}

@keyframes pricing-teaser-card-sheen {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -100% 0;
  }
}

@keyframes pricing-teaser-orbit {
  from {
    transform: rotate(0deg) translateX(7.5rem) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(7.5rem) rotate(-360deg);
  }
}

@keyframes pricing-teaser-line-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 960px) {
  .pricing-teaser__hero {
    grid-template-columns: 1.05fr minmax(16rem, 0.95fr);
    grid-template-rows: auto auto;
    gap: clamp(2rem, 4vw, 3rem);
    text-align: left;
    align-items: start;
  }

  .pricing-teaser__copy {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    margin-inline: 0;
    max-width: none;
  }

  .pricing-teaser__eyebrow {
    margin-inline: 0;
    transform: none;
  }

  .pricing-teaser__actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .pricing-teaser__preview {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-inline: 0 auto 0 0;
    justify-self: end;
    align-self: center;
    width: min(100%, 24rem);
  }
}

@media (max-width: 540px) {
  .pricing-teaser__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-teaser__cta-primary,
  .pricing-teaser__cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .pricing-teaser__preview-card {
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-teaser__mesh,
  .pricing-teaser__eyebrow,
  .pricing-teaser__eyebrow::before,
  .pricing-teaser__eyebrow-text,
  .pricing-teaser__eyebrow-spark,
  .pricing-teaser__eyebrow-icon,
  .pricing-teaser__title .gradient-text,
  .pricing-teaser__preview-card,
  .pricing-teaser__preview-card::after,
  .pricing-teaser__orbit-dot {
    animation: none;
  }

  .pricing-teaser__preview-card {
    transform: none;
  }
}
