/* ============================================
   MOODS SECTION
   ============================================ */
.moods-section {
  background: linear-gradient(180deg, var(--bg-warmer) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) {
  .moods-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

.mood-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.7), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.6), rgba(244, 239, 230, 0.4));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 40px 80px -30px rgba(40,30,80,0.22);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  isolation: isolate;
}
body.dark-mode .mood-stage {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-color: rgba(255,255,255,0.08);
}

.mood-stage-glow {
  position: absolute; inset: 0;
  z-index: 0;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mood-stage-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 1;
}
.mood-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed;
  transition: border-color 0.8s;
}
.mood-ring.r1 { width: 280px; height: 280px; animation: spin 40s linear infinite; }
.mood-ring.r2 { width: 380px; height: 380px; animation: spin 60s linear infinite reverse; }
.mood-ring.r3 { width: 480px; height: 480px; animation: spin 80s linear infinite; }

.mood-figure {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  z-index: 2;
  animation: moodPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mood-figure img {
  width: 260px; height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 25px 45px rgba(124, 110, 219, 0.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes moodPop {
  from { opacity: 0; transform: scale(0.85) rotate(-3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@media (max-width: 560px) {
  .mood-figure img { width: 200px; height: 200px; }
  .mood-ring.r1 { width: 220px; height: 220px; }
  .mood-ring.r2 { width: 300px; height: 300px; }
  .mood-ring.r3 { width: 380px; height: 380px; }
}

.mood-overlay {
  position: absolute;
  left: 4%; right: 4%; bottom: 4%;
  z-index: 3;
  border-radius: 24px;
  animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mood-progress {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  z-index: 4;
  display: flex; gap: 6px;
}
.mood-progress-tick {
  flex: 1; height: 3px;
  border-radius: 999px;
  background: rgba(26,23,38,0.08);
  overflow: hidden;
  position: relative;
}
.mood-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.mood-progress-tick.done .mood-progress-fill { width: 100%; }
.mood-progress-tick.active .mood-progress-fill { width: 100%; animation: progressFill 4.2s linear; }
@keyframes progressFill { from { width: 0%; } to { width: 100%; } }

.mood-playpause {
  position: absolute;
  top: 32px; right: 18px;
  z-index: 5;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  color: var(--ink-soft);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.mood-playpause:hover { background: rgba(255,255,255,0.9); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
  padding: 100px 0 120px;
  background: var(--bg);
  position: relative;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) { .how-grid { grid-template-columns: 1fr; gap: 40px; } }

.how-steps {
  display: flex; flex-direction: column; gap: 56px;
}
@media (max-width: 980px) { .how-steps { gap: 36px; } }

.how-step {
  display: flex; gap: 20px; align-items: flex-start;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.5s, transform 0.5s;
  padding: 8px 0;
}
.how-step.active { opacity: 1; transform: translateX(4px); }

.how-step-num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  width: 56px; height: 56px;
  border: 2px solid;
  border-radius: 16px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.how-step-content { padding-top: 6px; flex: 1; }
.how-step-row { display: flex; align-items: center; gap: 10px; color: var(--ink-mute); margin-bottom: 8px; }
.how-step-row h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.how-step.active .how-step-row { color: var(--purple); }
.how-step.active .how-step-row h3 { color: var(--ink); }
.how-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}

.how-phone-wrap {
  position: sticky;
  top: 100px;
  display: grid; place-items: center;
  min-height: 600px;
}
@media (max-width: 980px) { .how-phone-wrap { position: relative; top: 0; } }

.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
}
.phone-frame {
  position: absolute; inset: 0;
  border-radius: 44px;
  background: linear-gradient(160deg, #2A2540, #15101F);
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 60px 90px -30px rgba(40, 30, 80, 0.45),
    0 25px 40px -15px rgba(40, 30, 80, 0.35);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  background: var(--bg);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 24px;
  border-radius: 999px;
  background: #15101F;
  z-index: 10;
}
.phone-glow {
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(124,110,219,0.3), transparent 60%);
  filter: blur(40px);
}

.screen {
  position: relative;
  width: 100%; height: 100%;
  padding: 50px 18px 0;
  animation: revealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.screen-status {
  position: absolute;
  top: 20px; left: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center;
}

/* ============================================
   PATTERN
   ============================================ */
.pattern-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warmer) 100%);
  border-top: 1px solid var(--line);
}
.pattern-card {
  padding: 28px;
  background: rgba(255,255,255,0.75);
}
body.dark-mode .pattern-card { background: rgba(255,255,255,0.05); }

.pattern-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pattern-tabs {
  display: inline-flex;
  padding: 4px;
  background: rgba(124,110,219,0.08);
  border-radius: 999px;
}
.pattern-tabs button {
  padding: 0 14px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.pattern-tabs button.active {
  background: white;
  color: var(--purple);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.15);
}
body.dark-mode .pattern-tabs button.active { background: rgba(255,255,255,0.1); color: var(--ink); }

.pattern-chart {
  position: relative;
}
.pattern-line-anim {
  animation: drawLine 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pattern-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 8px;
  padding: 0 4px;
}
.pattern-labels span {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.pattern-labels span.highlight {
  color: var(--purple);
  font-weight: 600;
}

.pattern-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .pattern-insights { grid-template-columns: 1fr; } }

.pattern-insight {
  padding: 16px;
  border-radius: 18px;
  background: rgba(124,110,219,0.04);
  border: 1px solid var(--line);
}

/* ============================================
   PERSONAS
   ============================================ */
.personas-section {
  background: linear-gradient(180deg, var(--bg-warmer) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 980px) { .persona-grid { grid-template-columns: 1fr; } }

.persona-list {
  display: flex; flex-direction: column; gap: 10px;
}
.persona-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
}
.persona-card:hover { transform: translateY(-2px); }
.persona-card.active {
  border-color: var(--persona-color);
  background: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 20px 50px -20px rgba(40,30,80,0.2);
  transform: translateX(8px);
}
body.dark-mode .persona-card { background: rgba(255,255,255,0.04); }
body.dark-mode .persona-card.active { background: rgba(255,255,255,0.08); }

.persona-thumb {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--persona-color);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 18px -8px rgba(40,30,80,0.3);
}
.persona-thumb img {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(40,30,80,0.2));
}

.persona-check {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--persona-color);
  color: white;
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.persona-card.active .persona-check {
  opacity: 1; transform: scale(1);
}

.persona-preview {
  position: relative;
  border-radius: 36px;
  min-height: 480px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: revealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .persona-preview { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.persona-preview-glow {
  position: absolute; inset: 0;
  filter: blur(60px);
  z-index: 0;
  transition: background 0.6s;
}
.persona-preview-figure {
  position: relative;
  z-index: 1;
  width: 220px; height: 220px;
  margin-top: -40px;
}
.persona-preview-figure img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(40,30,80,0.2));
  animation: float 6s ease-in-out infinite;
}

.persona-preview-card {
  position: absolute;
  left: 5%; right: 5%; bottom: 5%;
  z-index: 2;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: rgba(255,255,255,0.7);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial:hover { transform: translateY(-4px); }
body.dark-mode .testimonial { background: rgba(255,255,255,0.05); }

/* ============================================
   PRICING
   ============================================ */
.pricing-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warmer) 100%);
  border-top: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  position: relative;
  background: rgba(255,255,255,0.7);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.highlight {
  background: linear-gradient(160deg, rgba(124,110,219,0.18), rgba(78,205,196,0.08));
  border: 2px solid var(--accent);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 70px -30px rgba(124,110,219,0.5);
  transform: translateY(-10px);
}
body.dark-mode .pricing-card { background: rgba(255,255,255,0.05); }
body.dark-mode .pricing-card.highlight { background: linear-gradient(160deg, rgba(124,110,219,0.22), rgba(78,205,196,0.1)); }

.pricing-card.highlight:hover { transform: translateY(-14px); }

.pricing-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 30%, var(--accent), transparent 50%);
  opacity: 0.18;
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.pricing-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.pricing-guarantee {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
body.dark-mode .pricing-guarantee { background: rgba(255,255,255,0.04); }
@media (max-width: 720px) { .pricing-guarantee { grid-template-columns: 1fr; } }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  background: var(--bg-warmer);
  border-top: 1px solid var(--line);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
body.dark-mode .faq-item { background: rgba(255,255,255,0.04); }
.faq-item.open {
  background: rgba(255,255,255,0.9);
  border-color: rgba(124,110,219,0.2);
}
body.dark-mode .faq-item.open { background: rgba(255,255,255,0.08); }

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
}
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(124,110,219,0.1);
  color: var(--purple);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-icon { transform: rotate(180deg); background: var(--purple); color: white; }

.faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  padding: 60px 0 40px;
  background: var(--bg);
  position: relative;
}
.final-cta {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #2D1F4D 0%, #4B3B85 40%, #7C6EDB 100%);
  margin-bottom: 80px;
  box-shadow:
    0 60px 90px -30px rgba(40, 30, 80, 0.4),
    0 25px 40px -15px rgba(40, 30, 80, 0.3);
}
.final-cta-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 400px at 20% 110%, rgba(78, 205, 196, 0.4), transparent 60%),
    radial-gradient(circle 400px at 80% -10%, rgba(255, 179, 71, 0.3), transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 64px;
}
@media (max-width: 720px) {
  .final-cta-inner { flex-direction: column; padding: 40px 28px; text-align: center; }
}
.final-cta-ju {
  width: 220px; height: 220px;
  flex-shrink: 0;
  position: relative;
}
.final-cta-ju img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3));
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 920px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-section a:hover { color: var(--ink); }

/* ============================================
   ANIMATION INTENSITY TOGGLES
   ============================================ */
html[data-anim="subtle"] .aurora-stage .blob { animation-duration: 40s !important; opacity: 0.35; }
html[data-anim="subtle"] .float,
html[data-anim="subtle"] .float-slow { animation: none; }

html[data-anim="max"] .aurora-stage .blob { animation-duration: 14s !important; opacity: 0.7; }
html[data-anim="max"] .float { animation-duration: 4s; }
