/* Auvv runtime layout fixes for the embedded Luna skin. */
.logo img.auvv-logo-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(236, 72, 153, 0.18));
}

footer .logo img.auvv-logo-image {
  width: 34px;
  height: 34px;
}

#tab-membership .pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
  justify-content: center;
  gap: clamp(0.7rem, 1.2vw, 1.25rem);
  width: 100%;
  overflow: visible;
}

#tab-membership .pricing-card {
  min-width: 0;
  padding: clamp(1.35rem, 1.7vw, 2rem) clamp(1rem, 1.4vw, 1.55rem);
  gap: clamp(0.9rem, 1.15vw, 1.35rem);
  border-radius: 18px;
  height: auto;
  overflow: visible;
  overflow-y: visible;
}

#tab-membership .card-header-wrapper {
  gap: 0.38rem;
}

#tab-membership .plan-badge {
  font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  letter-spacing: 0.06em;
}

#tab-membership .plan-name {
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

#tab-membership .card-header-wrapper p {
  font-size: clamp(0.72rem, 0.86vw, 0.88rem);
  line-height: 1.45;
}

#tab-membership .plan-price-wrapper {
  margin-top: 0.6rem;
}

#tab-membership .plan-price {
  font-size: clamp(1.9rem, 2.9vw, 2.8rem);
}

#tab-membership .plan-period {
  font-size: clamp(0.72rem, 0.86vw, 0.9rem);
}

#tab-membership .plan-features-list {
  gap: clamp(0.55rem, 0.8vw, 0.82rem);
  margin-top: 0.55rem;
}

#tab-membership .plan-feature-item {
  gap: 0.5rem;
  font-size: clamp(0.7rem, 0.82vw, 0.86rem);
  line-height: 1.35;
}

#tab-membership .plan-feature-item svg {
  width: 14px;
  height: 14px;
}

#tab-membership .pricing-card .btn {
  min-height: 40px;
  padding: 0.65rem 0.8rem;
  font-size: clamp(0.74rem, 0.86vw, 0.9rem);
  white-space: normal;
}

.download-badges {
  display: none !important;
}

.cta-form {
  justify-content: center;
}

.cta-form .btn {
  min-width: 180px;
}

@media (max-width: 900px) {
  .container {
    padding-inline: 1rem;
  }

  .section {
    padding: 4.75rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  header {
    background: rgba(243, 244, 249, 0.88);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.dark-mode header {
    background: rgba(8, 7, 13, 0.86);
  }

  .nav-container,
  header.scrolled .nav-container {
    gap: 0.75rem;
    padding: 0.72rem 1rem;
  }

  .logo {
    gap: 0.42rem;
    min-width: 0;
    font-size: 1.2rem;
  }

  .logo img.auvv-logo-image {
    width: 38px;
    height: 38px;
  }

  .nav-actions {
    gap: 0.45rem;
    margin-left: auto;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .nav-btn {
    min-height: 34px;
    padding: 0.46rem 0.66rem;
    font-size: 0.78rem;
  }

  #btn-nav-download {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    flex: 0 0 auto;
    margin-left: 0.2rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    display: flex;
    width: min(308px, calc(100vw - 56px));
    height: 100vh;
    max-height: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
    padding: 5.2rem 1rem 1.25rem;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-left: 0;
    border-radius: 0 22px 22px 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-112%);
    transition: transform 0.24s cubic-bezier(.4, 0, .2, 1);
    z-index: 1000;
  }

  body.dark-mode .nav-menu {
    background: rgba(20, 18, 38, 0.96);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li,
  .nav-menu a {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-radius: 12px;
    padding: 0 0.8rem;
    background: rgba(123, 44, 191, 0.04);
  }

  .nav-menu .nav-link.active,
  .nav-menu .nav-link:hover {
    background: rgba(123, 44, 191, 0.1);
  }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-grid {
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .badge-wrapper {
    align-self: center;
    max-width: 100%;
  }

  .promo-badge {
    width: 100%;
    align-items: flex-start;
    border-radius: 16px;
    line-height: 1.45;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.15rem);
    line-height: 1.08;
  }

  .hero-desc {
    max-width: none;
    margin: 0 auto;
    font-size: 1rem;
  }

  .hero-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-btns .btn {
    width: 100%;
    min-height: 46px;
  }

  .download-badges {
    grid-template-columns: 1fr;
    max-width: none;
    margin-top: 0.9rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-item h3 {
    font-size: 1.45rem;
  }

  .stat-item p {
    line-height: 1.35;
  }

  .features-grid-luna,
  .sandbox-luna-container,
  .avatar-chips-grid,
  .points-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feat-card-luna,
  .sb-interactive-card,
  .points-card {
    padding: 1.4rem;
  }

  .pricing-tab-wrapper {
    width: 100%;
    margin-bottom: 1.65rem;
  }

  .pricing-tab-btn {
    min-width: 0;
    padding: 0.58rem 0.75rem;
    font-size: 0.9rem;
  }

  #tab-membership .pricing-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0.72rem;
  }

  #tab-membership .pricing-card {
    min-height: 0;
    padding: 1rem 0.75rem;
    gap: 0.72rem;
    border-radius: 16px;
  }

  #tab-membership .card-header-wrapper p {
    display: block;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  #tab-membership .plan-badge {
    font-size: 0.58rem;
  }

  #tab-membership .plan-name {
    font-size: 1rem;
  }

  #tab-membership .plan-price {
    font-size: 1.65rem;
  }

  #tab-membership .plan-period {
    font-size: 0.68rem;
  }

  #tab-membership .plan-features-list {
    display: none;
  }

  #tab-membership .pricing-card .btn {
    min-height: 36px;
    padding: 0.5rem 0.45rem;
    font-size: 0.75rem;
  }

  .points-grid {
    margin-top: 1rem;
  }

  .tasks-panel {
    order: 5;
  }

  .task-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-btn {
    width: 100%;
  }

  .faq-grid {
    gap: 0.8rem;
  }

  .faq-question {
    padding: 1rem;
    gap: 0.8rem;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-answer-inner {
    padding-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .cta-box {
    padding: 2.1rem 1rem;
    border-radius: 18px;
  }

  .cta-box h2 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.15;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-input,
  .cta-form .btn {
    min-height: 46px;
    width: 100%;
  }

  footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-grid {
    margin-bottom: 2rem;
  }

  .footer-col {
    display: none;
  }

  .footer-info {
    gap: 0.9rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom-links {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-btn {
    padding-inline: 0.55rem;
  }

  #tab-membership .pricing-grid {
    grid-template-columns: 1fr;
  }

  #tab-membership .plan-features-list {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

.faq-item .faq-answer {
  display: block !important;
}

.faq-item {
  display: block !important;
}

.faq-item.active:not(.is-open) {
  border-color: var(--border-color) !important;
  background: var(--bg-card) !important;
}

body.dark-mode .faq-item.active:not(.is-open) {
  border-color: var(--border-color) !important;
  background: var(--bg-card) !important;
}

.faq-item.active:not(.is-open) .faq-question svg {
  transform: none !important;
  color: var(--text-secondary) !important;
}

.faq-item:not(.is-open) .faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.faq-item.is-open {
  border-color: rgba(123, 44, 191, 0.15) !important;
  background: rgba(123, 44, 191, 0.04) !important;
}

body.dark-mode .faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(20, 30, 65, 0.4) !important;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg) !important;
  color: var(--primary) !important;
}

body.dark-mode .faq-item.is-open .faq-question svg {
  color: var(--secondary) !important;
}

.faq-item.is-open .faq-answer {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.faq-item.is-open .faq-answer-inner {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
