/* ==========================================================================
   ACEVORI HOMEPAGE — Velvet & Gold
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.av-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: var(--av-bg);
}

.av-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.av-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  animation: av-float 22s ease-in-out infinite;
}

.av-hero__orb--1 {
  width: 56vw;
  height: 56vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, var(--av-primary) 0%, transparent 70%);
  opacity: 0.18;
  top: -22%;
  right: -14%;
  animation-duration: 26s;
}

.av-hero__orb--2 {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--av-peach) 0%, transparent 70%);
  opacity: 0.32;
  bottom: -8%;
  left: -8%;
  animation-delay: -6s;
  animation-duration: 20s;
}

.av-hero__orb--3 {
  width: 28vw;
  height: 28vw;
  max-width: 380px;
  max-height: 380px;
  background: radial-gradient(circle, var(--av-secondary) 0%, transparent 70%);
  opacity: 0.22;
  top: 38%;
  left: 28%;
  animation-delay: -12s;
  animation-duration: 28s;
}

@keyframes av-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(28px, -36px) scale(1.04); }
  50%      { transform: translate(-18px, 18px) scale(0.97); }
  75%      { transform: translate(36px, 26px) scale(1.02); }
}

.av-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.av-hero__content {
  max-width: 600px;
}

/* Hero eyebrow badge — premium pill with trophy icon */
.av-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-full);
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--av-text-secondary);
  margin-bottom: var(--av-space-3);
  box-shadow: var(--av-shadow-sm);
}

.av-hero__badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--av-secondary-light);
  color: var(--av-secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.av-hero__title {
  margin-bottom: var(--av-space-3);
  color: var(--av-dark);
}

.av-hero__subtitle {
  margin-bottom: var(--av-space-5);
  max-width: 540px;
}

.av-hero__actions {
  display: flex;
  gap: var(--av-space-2);
  flex-wrap: wrap;
  align-items: center;
}

/* Hero visual — floating mockup with stat cards */
.av-hero__visual {
  position: relative;
  min-height: 540px;
}

.av-hero__illustration {
  position: relative;
  width: 100%;
  height: 540px;
}

/* Premium browser-style mockup */
.av-hero__mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 320px;
  background: var(--av-bg-white);
  border-radius: var(--av-radius-lg);
  box-shadow: var(--av-shadow-xl);
  overflow: hidden;
  border: 1px solid var(--av-border);
  animation: av-mockup-float 8s ease-in-out infinite;
}

@keyframes av-mockup-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50%      { transform: translate(-50%, -54%) rotate(-1.5deg); }
}

.av-hero__mockup-header {
  height: 36px;
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.av-hero__mockup-header::before,
.av-hero__mockup-header::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.3);
  box-shadow: 12px 0 0 rgba(255, 252, 247, 0.3), 24px 0 0 rgba(255, 252, 247, 0.3);
}

.av-hero__mockup-header::after {
  display: none;
}

.av-hero__mockup-content {
  padding: 22px;
}

.av-hero__mockup-line {
  height: 10px;
  border-radius: 5px;
  background: var(--av-bg-alt);
  margin-bottom: 12px;
}

.av-hero__mockup-line--long   { width: 100%; }
.av-hero__mockup-line--medium { width: 70%; }

.av-hero__mockup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.av-hero__mockup-option {
  height: 38px;
  border-radius: var(--av-radius-sm);
  border: 1.5px solid var(--av-border);
  background: var(--av-bg);
  position: relative;
}

.av-hero__mockup-option::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--av-border-strong);
}

.av-hero__mockup-option--active {
  border-color: var(--av-secondary);
  background: var(--av-secondary-soft);
}

.av-hero__mockup-option--active::before {
  border-color: var(--av-secondary-dark);
  background: var(--av-secondary);
  box-shadow: inset 0 0 0 3px var(--av-secondary-soft);
}

/* Floating stat cards around the mockup */
.av-hero__card {
  position: absolute;
  background: var(--av-bg-white);
  border-radius: var(--av-radius-md);
  padding: 14px 18px;
  box-shadow: var(--av-shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--av-font-heading);
  font-size: 13px;
  color: var(--av-text-secondary);
  border: 1px solid var(--av-border-light);
  animation: av-card-float 6s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
}

.av-hero__card strong {
  color: var(--av-dark);
  font-weight: 700;
  font-size: 15px;
}

.av-hero__card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--av-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.av-hero__card--1 {
  top: 6%;
  right: -2%;
  animation-delay: 0s;
}

.av-hero__card--1 .av-hero__card-icon {
  background: var(--av-secondary-light);
  color: var(--av-secondary-dark);
}

.av-hero__card--2 {
  bottom: 28%;
  left: -8%;
  animation-delay: -2s;
}

.av-hero__card--2 .av-hero__card-icon {
  background: var(--av-primary-light);
  color: var(--av-primary);
}

.av-hero__card--3 {
  bottom: 4%;
  right: 4%;
  animation-delay: -4s;
}

.av-hero__card--3 .av-hero__card-icon {
  background: var(--av-peach-light);
  color: var(--av-cta);
}

.av-hero__progress-bar {
  width: 70px;
  height: 6px;
  background: var(--av-bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.av-hero__progress-fill {
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--av-primary), var(--av-cta));
  border-radius: 3px;
  animation: av-progress-grow 2s var(--av-ease) 1s both;
}

@keyframes av-card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes av-progress-grow {
  from { width: 0; }
  to   { width: 78%; }
}

/* ==========================================================================
   SOCIAL PROOF STRIP — "Trusted across every major exam category"
   ========================================================================== */
.av-proof {
  padding: var(--av-space-5) 0;
  background: var(--av-bg-white);
  border-top: 1px solid var(--av-border);
  border-bottom: 1px solid var(--av-border);
}

.av-proof__label {
  text-align: center;
  font-family: var(--av-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--av-text-muted);
  margin: 0 0 var(--av-space-3);
}

.av-proof__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  flex-wrap: wrap;
}

.av-proof__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--av-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--av-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--av-duration-fast) ease,
              transform var(--av-duration-fast) ease;
}

.av-proof__item:hover {
  color: var(--av-primary);
  transform: translateY(-1px);
}

.av-proof__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--av-radius-sm);
  background: var(--av-primary-tint);
  color: var(--av-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--av-duration-fast) ease,
              color var(--av-duration-fast) ease;
}

.av-proof__item:hover .av-proof__icon {
  background: var(--av-primary);
  color: var(--av-secondary);
}

/* ==========================================================================
   SECTION 2 — One Site Every Exam (centered intro)
   ========================================================================== */
.av-one-site {
  text-align: center;
  background: var(--av-bg-alt);
}

.av-one-site .av-section-header {
  margin-bottom: 0;
}

/* ==========================================================================
   EXAM CATEGORIES GRID — 4-up flip cards
   ========================================================================== */
.av-exams__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--av-space-3);
}

.av-exam-card {
  perspective: 1200px;
  height: 220px;
  cursor: pointer;
  position: relative;
  outline: none;
}

.av-exam-card:focus-visible {
  outline: 3px solid var(--av-secondary);
  outline-offset: 4px;
  border-radius: var(--av-radius-lg);
}

/* Visible "Start Practicing →" hint on the front face — only shows when the
   back face is unreachable (touch devices). Hover-capable devices see it on
   the back as before. */
.av-exam-card__cta-hint {
  display: none;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: var(--av-radius-full);
  background: var(--av-primary);
  color: var(--av-secondary);
  font-family: var(--av-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-items: center;
  gap: 6px;
}

.av-exam-card__cta-hint svg {
  flex-shrink: 0;
}

@media (hover: none), (pointer: coarse) {
  .av-exam-card__cta-hint {
    display: inline-flex;
  }
}

.av-exam-card__front,
.av-exam-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4);
  display: flex;
  flex-direction: column;
  transition: transform 0.7s var(--av-ease);
}

.av-exam-card__front {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.av-exam-card__back {
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  color: #FFFCF7;
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--av-primary-dark);
}

.av-exam-card__back p {
  margin-bottom: var(--av-space-3);
  color: rgba(255, 252, 247, 0.9);
}

/* Flip the card only on real hover-capable devices.
   On touch devices iOS/Chrome briefly fire :hover on tap, which would
   rotate the front away to a display:none back face — making the card
   appear to vanish for a moment. Gating with (hover: hover) prevents that. */
@media (hover: hover) {
  .av-exam-card:hover .av-exam-card__front {
    transform: rotateY(-180deg);
  }

  .av-exam-card:hover .av-exam-card__back {
    transform: rotateY(0);
  }
}

.av-exam-card .av-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--av-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--av-space-2);
  color: var(--av-primary);
  background: var(--av-primary-light);
  position: relative;
  transition: transform var(--av-duration) var(--av-ease-spring);
}

.av-exam-card .av-card__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--av-radius-md) + 4px);
  border: 1px solid var(--av-secondary);
  opacity: 0;
  transition: opacity var(--av-duration) ease;
}

.av-exam-card:hover .av-card__icon::after {
  opacity: 0.5;
}

.av-exam-card .av-card__title {
  font-family: var(--av-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--av-dark);
  margin-bottom: 4px;
}

.av-exam-card .av-card__text {
  font-size: 13px;
  color: var(--av-text-muted);
  font-weight: 500;
}

.av-exams__cta {
  text-align: center;
  margin-top: var(--av-space-6);
}

/* ==========================================================================
   PRACTICE / MEMORIZE / SUCCEED + RIGHT CTA BOX
   ========================================================================== */
.av-features__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.av-features__cards {
  display: flex;
  flex-direction: column;
  gap: var(--av-space-3);
}

.av-feature-card {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-4) var(--av-space-5);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--av-space-3);
  align-items: start;
}

.av-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--av-shadow-lg);
  border-color: var(--av-secondary);
}

.av-feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--av-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--av-duration) var(--av-ease-spring);
  position: relative;
}

.av-feature-card:hover .av-feature-card__icon {
  transform: scale(1.06) rotate(-3deg);
}

.av-feature-card__icon--plum {
  background: var(--av-primary-light);
  color: var(--av-primary);
}

.av-feature-card__icon--gold {
  background: var(--av-secondary-light);
  color: var(--av-secondary-dark);
}

.av-feature-card__icon--coral {
  background: var(--av-peach-light);
  color: var(--av-cta);
}

.av-feature-card__body .av-h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.av-feature-card__body .av-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Right CTA box */
.av-features__cta {
  padding: var(--av-space-6) var(--av-space-5);
  background: linear-gradient(160deg, var(--av-primary) 0%, var(--av-primary-deep) 100%);
  border-radius: var(--av-radius-xl);
  position: relative;
  overflow: hidden;
  color: #FFFCF7;
}

.av-features__cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.22), transparent 70%);
  pointer-events: none;
}

.av-features__cta::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(255, 176, 136, 0.16), transparent 70%);
  pointer-events: none;
}

.av-features__cta > * {
  position: relative;
  z-index: 1;
}

.av-features__cta .av-label {
  color: var(--av-secondary);
}

.av-features__cta .av-label::before {
  background: var(--av-secondary);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25);
}

.av-features__cta .av-h2 {
  color: #FFFCF7;
  margin-bottom: var(--av-space-4);
}

/* ==========================================================================
   STATS SECTION — Deep aubergine with gold counters
   ========================================================================== */
.av-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--av-space-4);
  text-align: center;
  position: relative;
  z-index: 1;
}

.av-stats__item {
  padding: var(--av-space-4) var(--av-space-2);
  position: relative;
}

.av-stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 169, 97, 0.32) 50%, transparent 100%);
}

.av-stats__number {
  font-family: var(--av-font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--av-secondary);
  line-height: 1;
  margin-bottom: var(--av-space-2);
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, var(--av-secondary) 0%, var(--av-secondary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.av-stats__number--text {
  font-size: clamp(36px, 4.4vw, 56px);
}

.av-stats__label {
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: rgba(248, 244, 238, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.av-why__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.av-why__content {
  position: sticky;
  top: 120px;
}

.av-why__content .av-h2 {
  margin-bottom: var(--av-space-3);
}

.av-why__content .av-body-lg {
  margin: 0;
}

.av-why__points {
  display: flex;
  flex-direction: column;
  gap: var(--av-space-4);
}

.av-why__point {
  display: flex;
  gap: var(--av-space-3);
  align-items: flex-start;
  padding: var(--av-space-4);
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
}

.av-why__point:hover {
  transform: translateX(6px);
  box-shadow: var(--av-shadow-md);
  border-color: var(--av-secondary);
}

.av-why__point-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--av-radius-sm);
  background: var(--av-primary);
  color: var(--av-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--av-duration) var(--av-ease);
}

.av-why__point:hover .av-why__point-icon {
  transform: scale(1.06) rotate(-3deg);
}

.av-why__point-body {
  flex: 1;
}

.av-why__point .av-h4 {
  margin-bottom: 6px;
  font-size: 19px;
}

.av-why__point .av-body {
  margin: 0;
  font-size: 15px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.av-testimonials__carousel {
  position: relative;
  overflow: hidden;
  padding: 0 4px;
}

.av-testimonials__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--av-space-3);
  transition: transform var(--av-duration-slow) var(--av-ease);
}

.av-testimonial {
  background: var(--av-bg-white);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-5);
  transition: transform var(--av-duration) var(--av-ease),
              box-shadow var(--av-duration) var(--av-ease),
              border-color var(--av-duration) var(--av-ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.av-testimonial::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--av-font-heading);
  font-size: 80px;
  line-height: 1;
  color: var(--av-secondary);
  opacity: 0.18;
  font-weight: 800;
}

.av-testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--av-shadow-lg);
  border-color: var(--av-secondary);
}

.av-testimonial--featured {
  background: linear-gradient(160deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  border-color: var(--av-primary-dark);
  color: #FFFCF7;
  position: relative;
  overflow: hidden;
}

.av-testimonial--featured::before {
  color: var(--av-secondary);
  opacity: 0.35;
}

.av-testimonial--featured::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.18), transparent 70%);
  pointer-events: none;
}

.av-testimonial--featured:hover {
  border-color: var(--av-primary-dark);
  transform: translateY(-6px);
}

.av-testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--av-secondary);
  margin-bottom: var(--av-space-3);
  position: relative;
  z-index: 1;
}

.av-testimonial__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--av-text-secondary);
  margin-bottom: var(--av-space-4);
  flex: 1;
  position: relative;
  z-index: 1;
}

.av-testimonial--featured .av-testimonial__text {
  color: rgba(255, 252, 247, 0.92);
}

.av-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.av-testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-primary-light), var(--av-secondary-light));
  color: var(--av-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--av-font-heading);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--av-bg-white);
  box-shadow: 0 4px 10px rgba(31, 10, 44, 0.08);
}

.av-testimonial--featured .av-testimonial__avatar {
  background: linear-gradient(135deg, var(--av-secondary), var(--av-peach));
  color: var(--av-primary-dark);
  border-color: var(--av-primary);
}

.av-testimonial__name {
  font-family: var(--av-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--av-dark);
  line-height: 1.2;
}

.av-testimonial--featured .av-testimonial__name {
  color: #FFFCF7;
}

.av-testimonial__role {
  font-size: 13px;
  color: var(--av-text-muted);
  margin-top: 2px;
}

.av-testimonial--featured .av-testimonial__role {
  color: rgba(255, 252, 247, 0.7);
}

.av-testimonials__nav {
  display: flex;
  justify-content: center;
  gap: var(--av-space-2);
  margin-top: var(--av-space-6);
}

.av-testimonials__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--av-border-strong);
  background: var(--av-bg-white);
  color: var(--av-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--av-duration-fast) ease,
              color var(--av-duration-fast) ease,
              border-color var(--av-duration-fast) ease,
              transform var(--av-duration-fast) ease;
}

.av-testimonials__btn:hover {
  border-color: var(--av-primary);
  color: var(--av-secondary);
  background: var(--av-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   HOW IT WORKS — TIMELINE
   ========================================================================== */
.av-how__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--av-space-4);
  position: relative;
}

.av-how__step {
  text-align: center;
  position: relative;
  padding: var(--av-space-3);
}

.av-how__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-primary) 0%, var(--av-primary-dark) 100%);
  color: var(--av-secondary);
  font-family: var(--av-font-heading);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--av-space-3);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(31, 10, 44, 0.18);
}

.av-how__number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--av-secondary);
  opacity: 0.5;
}

.av-how__connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 50px);
  right: calc(-50% + 50px);
  height: 2px;
  background: linear-gradient(90deg, var(--av-secondary) 0%, var(--av-peach) 50%, transparent 100%);
  opacity: 0.45;
  z-index: 1;
}

.av-how__step:last-child .av-how__connector {
  display: none;
}

.av-how__step .av-h3 {
  margin-bottom: var(--av-space-2);
}

.av-how__step .av-body {
  margin: 0;
  max-width: 320px;
  margin-inline: auto;
  font-size: 15px;
}

/* ==========================================================================
   EMAIL SIGNUP — Dark plum CTA
   ========================================================================== */
.av-signup {
  position: relative;
  background: linear-gradient(160deg, var(--av-primary) 0%, var(--av-primary-deep) 100%);
  overflow: hidden;
}

.av-signup::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.16), transparent 70%);
  pointer-events: none;
}

.av-signup::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(255, 176, 136, 0.12), transparent 70%);
  pointer-events: none;
}

.av-signup .av-container {
  position: relative;
  z-index: 1;
}

.av-signup__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.av-signup__inner .av-h2 {
  color: #FFFCF7;
  margin-bottom: var(--av-space-3);
}

.av-signup__inner .av-body-lg {
  color: rgba(255, 252, 247, 0.82);
  margin-bottom: var(--av-space-5);
}

.av-signup__form {
  display: flex;
  gap: var(--av-space-2);
  max-width: 580px;
  margin: 0 auto var(--av-space-3);
}

.av-signup__input-wrap {
  flex: 1;
  position: relative;
}

.av-signup__input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 252, 247, 0.55);
  display: flex;
  pointer-events: none;
}

/* The !important on visual properties is intentional — Astra parent theme
   ships `input[type="email"] { background: #fff; ... }` rules whose
   specificity beats our `.av-signup__input` class, so the input rendered
   as a solid white block. !important is the cleanest fix here. */
.av-signup__input,
input.av-signup__input,
.av-signup .av-signup__input,
.av-signup__form .av-signup__input {
  width: 100% !important;
  padding: 16px 20px 16px 52px !important;
  border-radius: var(--av-radius-full) !important;
  border: 1.5px solid rgba(255, 252, 247, 0.28) !important;
  background: rgba(255, 252, 247, 0.12) !important;
  color: #FFFCF7 !important;
  font-family: var(--av-font-body) !important;
  font-size: 15px !important;
  letter-spacing: 0.01em;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  caret-color: var(--av-secondary);
  box-shadow: none;
  transition: border-color var(--av-duration-fast) ease,
              background var(--av-duration-fast) ease,
              box-shadow var(--av-duration-fast) ease;
}

.av-signup__input::placeholder,
.av-signup__input::-webkit-input-placeholder,
.av-signup__input::-moz-placeholder,
.av-signup__input:-ms-input-placeholder {
  color: rgba(255, 252, 247, 0.7) !important;
  font-weight: 400 !important;
  opacity: 1 !important; /* Firefox defaults below 1 */
}

.av-signup__input:hover {
  border-color: rgba(255, 252, 247, 0.4) !important;
}

.av-signup__input:focus,
.av-signup__input:focus-visible {
  outline: none !important;
  border-color: var(--av-secondary) !important;
  background: rgba(255, 252, 247, 0.16) !important;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.22) !important;
}

/* Browser autofill override — Chrome/Edge/Safari paint inputs solid white
   when an email is auto-filled from saved contact data. The box-shadow inset
   trick paints over that with deep plum, restoring the dark theme. */
.av-signup__input:-webkit-autofill,
.av-signup__input:-webkit-autofill:hover,
.av-signup__input:-webkit-autofill:focus,
.av-signup__input:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFCF7 !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(42, 15, 56, 0.98) inset !important;
  box-shadow: 0 0 0 1000px rgba(42, 15, 56, 0.98) inset !important;
  caret-color: var(--av-secondary) !important;
  border-color: rgba(255, 252, 247, 0.32) !important;
  transition: background-color 5000s ease-in-out 0s,
              -webkit-box-shadow 0s ease 0s !important;
}

.av-signup__note {
  font-size: 13px;
  color: rgba(255, 252, 247, 0.55);
  margin: 0;
  font-family: var(--av-font-heading);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---------- LARGE TABLET / SMALL DESKTOP — 1024px ---------- */
@media (max-width: 1024px) {
  .av-hero {
    min-height: auto;
    padding: clamp(110px, 14vw, 160px) 0 clamp(48px, 8vw, 80px);
  }

  .av-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--av-space-5);
  }

  .av-hero__content {
    max-width: 720px;
    margin: 0 auto;
  }

  .av-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .av-hero__actions {
    justify-content: center;
  }

  .av-hero__visual {
    display: none;
  }

  .av-exams__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .av-features__grid {
    grid-template-columns: 1fr;
  }

  .av-features__cta {
    text-align: center;
  }

  .av-features__cta .av-label {
    justify-content: center;
  }

  .av-why__grid {
    grid-template-columns: 1fr;
    gap: var(--av-space-6);
  }

  .av-why__content {
    position: static;
    text-align: center;
  }

  .av-why__content .av-label {
    justify-content: center;
  }

  .av-why__point {
    text-align: left;
  }

  .av-testimonials__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .av-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--av-space-3) var(--av-space-2);
  }

  .av-stats__item:nth-child(2)::after {
    display: none;
  }

  .av-how__timeline {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: var(--av-space-6);
  }

  .av-how__connector {
    display: none;
  }
}

/* ---------- TABLET PORTRAIT / LARGE PHONE — 768px ---------- */
@media (max-width: 768px) {
  .av-hero {
    padding-top: clamp(96px, 22vw, 130px);
    padding-bottom: var(--av-space-8);
  }

  .av-hero__badge {
    font-size: 12px;
    padding: 6px 14px 6px 6px;
    gap: 8px;
    line-height: 1.4;
    text-align: left;
  }

  .av-hero__badge-icon {
    width: 24px;
    height: 24px;
  }

  .av-hero__subtitle {
    font-size: 16px;
  }

  .av-exams__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--av-space-2);
  }

  .av-exam-card {
    height: 200px;
  }

  .av-exam-card__front,
  .av-exam-card__back {
    padding: var(--av-space-3);
  }

  .av-exam-card .av-card__icon {
    width: 48px;
    height: 48px;
  }

  .av-exam-card .av-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .av-exam-card .av-card__title {
    font-size: 15px;
  }

  .av-exam-card .av-card__text {
    font-size: 12px;
  }

  /* Touch devices: kill the 3D flip mechanism completely.
     iOS/Chrome briefly fire :hover on tap, which can rotate the front face
     out of view. By stripping absolute-positioning + backface-visibility
     and hiding the back outright, the front stays visible no matter what. */
  @media (hover: none) {
    .av-exam-card {
      transform-style: flat;
    }

    .av-exam-card__front {
      position: static;
      transform: none !important;
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
    }

    .av-exam-card__back {
      display: none !important;
    }
  }

  .av-feature-card {
    grid-template-columns: 56px 1fr;
    gap: var(--av-space-2);
    padding: var(--av-space-4);
    align-items: center;
  }

  .av-feature-card__icon {
    width: 56px;
    height: 56px;
  }

  .av-feature-card__body .av-h3 {
    font-size: 19px;
  }

  .av-features__cta {
    padding: var(--av-space-5) var(--av-space-4);
    border-radius: var(--av-radius-lg);
  }

  .av-proof__label {
    font-size: 11px;
    margin-bottom: var(--av-space-2);
  }

  .av-proof__strip {
    gap: 14px 18px;
  }

  .av-proof__item {
    font-size: 11px;
    gap: 8px;
  }

  .av-proof__icon {
    width: 32px;
    height: 32px;
  }

  .av-proof__icon svg {
    width: 16px;
    height: 16px;
  }

  .av-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--av-space-3) var(--av-space-2);
  }

  .av-stats__item {
    padding: var(--av-space-3) var(--av-space-1);
  }

  .av-stats__item::after {
    display: none;
  }

  .av-stats__label {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .av-testimonials__track {
    grid-template-columns: 1fr;
  }

  .av-testimonial {
    padding: var(--av-space-4);
  }

  .av-signup__form {
    flex-direction: column;
  }

  .av-signup__form .av-btn {
    width: 100%;
  }

  .av-signup__input {
    padding: 14px 18px 14px 48px;
    font-size: 15px;
  }

  .av-signup__input-icon {
    left: 18px;
  }

  .av-signup__input-icon svg {
    width: 18px;
    height: 18px;
  }

  .av-how__step {
    padding: var(--av-space-2);
  }

  .av-how__number {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}

/* ---------- PHONE — 480px ---------- */
@media (max-width: 480px) {
  .av-hero__title {
    margin-bottom: var(--av-space-2);
  }

  .av-hero__subtitle {
    margin-bottom: var(--av-space-4);
  }

  .av-hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .av-hero__actions .av-btn {
    width: 100%;
  }

  /* Keep exams 2-col on phones — full width 1-col is too tedious to scroll */
  .av-exams__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .av-exam-card {
    height: 180px;
  }

  .av-exam-card .av-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .av-exam-card .av-card__title {
    font-size: 13px;
    line-height: 1.25;
  }

  .av-exam-card .av-card__text {
    font-size: 11px;
  }

  .av-feature-card {
    grid-template-columns: 48px 1fr;
    gap: var(--av-space-2);
    padding: var(--av-space-3);
  }

  .av-feature-card__icon {
    width: 48px;
    height: 48px;
  }

  .av-feature-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .av-feature-card__body .av-h3 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .av-feature-card__body .av-body {
    font-size: 14px;
    line-height: 1.65;
  }

  .av-stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--av-space-2);
  }

  .av-stats__number {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .av-stats__number--text {
    font-size: 36px;
  }

  .av-why__point {
    padding: var(--av-space-3);
    gap: var(--av-space-2);
  }

  .av-why__point-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .av-why__point-icon svg {
    width: 20px;
    height: 20px;
  }

  .av-why__point .av-h4 {
    font-size: 17px;
  }

  .av-why__point .av-body {
    font-size: 14px;
  }

  .av-testimonial {
    padding: var(--av-space-3);
  }

  .av-testimonial::before {
    font-size: 60px;
    top: 10px;
    right: 18px;
  }

  .av-testimonial__text {
    font-size: 14px;
    line-height: 1.7;
  }

  .av-features__cta {
    padding: var(--av-space-4) var(--av-space-3);
  }

  .av-features__cta .av-h2 {
    margin-bottom: var(--av-space-3);
  }

  .av-signup__inner .av-body-lg {
    font-size: 15px;
    margin-bottom: var(--av-space-4);
  }

  .av-how__number {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

/* ---------- VERY NARROW — under 360px ---------- */
@media (max-width: 360px) {
  .av-exams__grid {
    grid-template-columns: 1fr;
  }

  .av-exam-card {
    height: 160px;
  }

  .av-stats__grid {
    grid-template-columns: 1fr;
  }

  .av-proof__item span:not(.av-proof__icon) {
    display: none;
  }

  .av-proof__strip {
    gap: 12px;
  }
}

/* ---------- LANDSCAPE PHONES — short height ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .av-hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: var(--av-space-6);
  }
}
