/* Affini Marketing - Custom styles (aligned with Affini app indigo theme) */

body {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.glass-nav {
  background: rgba(15, 18, 38, 0.88);
  backdrop-filter: blur(12px);
}

.mobile-menu {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-panel {
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-panel {
    transition: none;
  }
}

/* Quiz mockup: flip card (tap to reveal) + tilt on hover */
.quiz-flip-card {
  position: relative;
  width: 100%;
}
.quiz-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.quiz-mockup-tilt:hover .quiz-flip-inner,
.quiz-mockup-tilt.flipped .quiz-flip-inner {
  transform: rotateY(180deg);
}
.quiz-flip-front,
.quiz-flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.quiz-flip-back {
  transform: rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .quiz-flip-inner {
    transition: none;
  }
}

/* Hide scrollbar for Add memory sheet chip row (mockup) */
.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Add memory mockup: horizontal spacing on mobile so it doesn’t touch screen edges */
@media (max-width: 639px) {
  .hero-phones {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    box-sizing: border-box;
  }
}

/* Hero: smooth gradient fade into Core Features.
   Rendered as a block bridge BETWEEN sections (not absolutely positioned inside
   the hero) so iOS Safari cannot clip it at the section boundary.
   A negative margin-top pulls it up over the hero's bottom edge. */
.hero-section-fade {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 12rem; /* 192px – longer transition = no visible band */
  margin-top: -12rem; /* pull up to overlay bottom of hero */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 18, 38, 0.35) 40%,
    rgba(15, 18, 38, 0.7) 65%,
    #0F1226 100%
  );
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero-section-fade {
    height: 14rem; /* 224px on larger screens */
    margin-top: -14rem;
  }
}

/* Add memory mockup: horizontal spacing on mobile so it doesn't touch screen edges */
@media (max-width: 639px) {
  .add-memory-mockup-wrap {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Love Map pills: selected and hover (state driven by aria-pressed in JS) */
.love-map-pill[aria-pressed="true"] {
  border-color: #4B5DFF;
  background-color: rgba(75, 93, 255, 0.2);
}
.love-map-pill[aria-pressed="false"]:hover {
  background-color: rgba(71, 85, 105, 0.6);
}


