/*
 * Pricing page (partials/pricing-page), design "AudioEnhancer Pricing Page.html".
 * Layout and colours are inline in the markup (copied from the design); this
 * file holds what inline styles can't: hover states, the demo tabs, FAQ open
 * state, the yearly slider and the small-screen layout.
 */
/* page background (this page only, body gets .ae-pricing-bg): the artwork
   replaces the section's flat colour */
body.ae-pricing-bg {
  background-color: #fff;
  /* a white wash over the artwork (not the old flat lilac) keeps the headings
     and the table readable on top of the photos */
  background-image:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
    url('/assets/uploads/2026/04/AI-Audio-Enhancer-1-2048x596.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}
body.ae-pricing-bg .ae-pp { background: transparent !important; }
@media (max-width: 760px) {
  /* fixed backgrounds stutter on phones */
  body.ae-pricing-bg { background-attachment: scroll, scroll; }
}

.ae-pp, .ae-pp * { box-sizing: border-box; }
/* The design uses the browser default line height; the site theme sets 1.7. */
.ae-pp { line-height: normal; }
.ae-pp h1, .ae-pp h2 { color: inherit; line-height: normal; }
.ae-pp [hidden] { display: none !important; }
.ae-pp button { font: inherit; }
.ae-pp .ae-pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* hover states (the design's style-hover values) */
.ae-pp .pp-h-lift:hover { transform: translateY(-2px) !important; }
.ae-pp .pp-h-bright:hover { filter: brightness(1.07) !important; }
.ae-pp .pp-h-bright5:hover { filter: brightness(1.05) !important; }
.ae-pp .pp-h-bright8:hover { filter: brightness(1.08) !important; }
.ae-pp .pp-h-dim:hover { filter: brightness(.96) !important; }
.ae-pp .pp-h-border:hover { border-color: #7A3BE8 !important; }
.ae-pp a.ae-pp-btn:hover, .ae-pp a.pp-h-lift:hover { color: inherit; }
.ae-pp .ae-pp-btn.is-disabled { cursor: default; opacity: .6; }
.ae-pp .ae-pp-btn.is-disabled.ae-pp-btn--trial { opacity: 1; }

/* yearly slider: 5px track, 17px gold thumb with a white ring */
.ae-pp-range input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 14px; margin: 0; padding: 0; border: 0; cursor: pointer;
  background: transparent;
}
.ae-pp-range input[type=range]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #FBC901, #D09700) 0 0 / var(--fill, 50%) 100% no-repeat, rgba(255, 255, 255, .22);
}
.ae-pp-range input[type=range]::-moz-range-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #FBC901, #D09700) 0 0 / var(--fill, 50%) 100% no-repeat, rgba(255, 255, 255, .22);
}
.ae-pp-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; margin-top: -6px;
  border-radius: 50%; background: #FBC901; border: 3px solid #fff; box-sizing: border-box;
}
.ae-pp-range input[type=range]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; background: #FBC901; border: 3px solid #fff; box-sizing: border-box;
}
.ae-pp-range input[type=range]:focus-visible { outline: 2px solid #FBC901; outline-offset: 4px; border-radius: 999px; }
.ae-pp .ae-pp-step { opacity: .6; cursor: pointer; }
.ae-pp .ae-pp-step.on { opacity: 1; color: #FBC901; font-weight: 600; }

/* demo tabs */
.ae-pp .pp-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid #DDD6EA; border-radius: 999px; padding: 9px 20px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 12.5px; line-height: 1.5; color: #55506A; cursor: pointer;
}
.ae-pp .pp-tab:hover { border-color: #7A3BE8; color: #6A2ED6; }
.ae-pp .pp-tab.is-active, .ae-pp .pp-tab.is-active:hover {
  background: linear-gradient(180deg, #8B4FF0, #6A2ED6); border: 0; color: #fff;
}
.ae-pp .pp-play .pp-ico-pause { display: none; }
.ae-pp .pp-play.is-playing .pp-ico-play { display: none; }
.ae-pp .pp-play.is-playing .pp-ico-pause { display: block; }
.ae-pp .pp-bars > div { transform-origin: center; }
.ae-pp .pp-bars.is-playing > div { animation: pp-breathe 1.1s ease-in-out infinite; }
.ae-pp .pp-bars.is-playing > div:nth-child(3n) { animation-delay: .2s; }
.ae-pp .pp-bars.is-playing > div:nth-child(3n+1) { animation-delay: .45s; }
@keyframes pp-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }

/* FAQ */
.ae-pp .pp-faq {
  background: #fff; border: 1.5px solid #E7E3F0; border-radius: 22px; padding: 18px 22px;
  display: flex; gap: 16px; cursor: pointer; transition: border-color .15s ease;
}
.ae-pp .pp-faq:hover { border-color: #C9B8F2; }
.ae-pp .pp-faq:focus-visible { outline: 2px solid #7A3BE8; outline-offset: 2px; }
.ae-pp .pp-faq.is-open { background: linear-gradient(180deg, #FBF9FF, #F3EDFE); border-color: #DCD2F7; }
.ae-pp .pp-faq__num {
  width: 36px; height: 36px; border-radius: 12px; background: #F5F1FE; color: #6A2ED6;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px; flex: none;
}
.ae-pp .pp-faq.is-open .pp-faq__num { background: linear-gradient(180deg, #8B4FF0, #6A2ED6); color: #fff; }
.ae-pp .pp-faq__icon {
  width: 28px; height: 28px; border-radius: 50%; background: #F5F1FE; color: #6A2ED6;
  display: flex; align-items: center; justify-content: center; flex: none; margin-top: 4px; transition: transform .2s ease;
}
.ae-pp .pp-faq.is-open .pp-faq__icon { background: #7A3BE8; color: #fff; transform: rotate(45deg); }
.ae-pp .pp-faq .pp-faq__a { display: none; }
.ae-pp .pp-faq.is-open .pp-faq__a { display: block; }

/* small screens */
@media (max-width: 1100px) {
  .ae-pp .ae-pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 28px !important; }
}
@media (max-width: 760px) {
  .ae-pp { padding: 20px 16px 48px !important; }
  .ae-pp h1 { font-size: 34px !important; }
  .ae-pp .pp-stat-sep { display: none !important; }
  .ae-pp .ae-pp-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .ae-pp .ae-pp-compare { overflow-x: auto !important; }
  .ae-pp .ae-pp-compare__row { min-width: 640px; }
  .ae-pp .ae-pp-demo__grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-pp .pp-bars.is-playing > div { animation: none; }
}
