/* Landing page sections generated by scripts/landing/build.js: question-pack strip, App Store-style gallery, reviews. */

/* Section headings reuse the hero title look (.hero-title in styles.css) */
.section-title { text-align: center; font-size: 48px; margin: 0 auto 40px; padding: 0 16px; }

/* ── Question packs: real pack covers, endless marquee ───────────── */
.packs-strip { padding: 96px 0 40px; overflow: hidden; }
.packs-marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.packs-track { display: flex; gap: 18px; width: max-content; animation: packs-scroll 70s linear infinite; }
.packs-marquee:hover .packs-track { animation-play-state: paused; }
.packs-track img { width: 190px; height: auto; aspect-ratio: 765 / 1023; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
@keyframes packs-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Gallery: App Store-style cards ──────────────────────────────── */
.gallery { padding: 56px 0 24px; }
.gallery-wrap { position: relative; }
.gallery-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px max(24px, calc((100vw - 1200px) / 2)) 24px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 auto; width: 300px; height: auto; aspect-ratio: 1242 / 2688; border-radius: 28px; scroll-snap-align: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 50px rgba(0,0,0,.5); }
.gallery-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    transform: translateY(-50%); font-size: 30px; line-height: 1; color: #fff; background: rgba(40,40,40,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gallery-nav:hover { background: rgba(70,70,70,.9); }
.gallery-nav.prev { left: 16px; } .gallery-nav.next { right: 16px; }

@media (max-width: 640px) {
    .section-title { font-size: 34px; margin-bottom: 28px; }
    .packs-strip { padding: 64px 0 24px; }
    .packs-track { gap: 12px; animation-duration: 55s; }
    .packs-track img { width: 132px; border-radius: 16px; }
    .gallery { padding: 40px 0 8px; }
    .gallery-track { gap: 14px; padding: 8px 24px 20px; }
    .gallery-track img { width: 240px; border-radius: 22px; }
    .gallery-nav { display: none; }
}

/* ── Reviews: rating summary + real-review details ──────────────── */
.rating-summary { display: inline-flex; align-items: center; gap: 12px; margin: -24px auto 40px; padding: 10px 18px; border-radius: 999px;
    background: var(--gray); border: 1px solid #2a2a2a; color: var(--white); text-decoration: none; transition: border-color .2s; }
.rating-summary:hover { border-color: #444; }
.rating-value { font-size: 22px; font-weight: 700; }
.rating-stars { color: #FBBF24; letter-spacing: 2px; }
.rating-count { font-size: 14px; color: var(--text-secondary); }
.review-initial { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #1a1a1a;
    background: linear-gradient(135deg, #FFDAE4, #F67ABB); }
.review-stars .star-off { color: #4a4a4a; }
.review-card { display: flex; flex-direction: column; }
.review-text { flex: 1; }
.review-meta { margin: 14px 0 0; font-size: 11px; color: #7a7a7a; }
@media (max-width: 640px) {
    .rating-summary { margin: -16px auto 28px; gap: 8px; padding: 8px 14px; }
    .rating-value { font-size: 18px; }
    .rating-count { font-size: 12px; }
    .review-card { flex: 0 0 280px; }
}

/* Mobile nav on the landing page: 3 links + CTA didn't fit 375px (page scrolled sideways). */
@media (max-width: 640px) {
    .nav-container { padding: 0 16px; }
    .nav-right { gap: 14px; }
    .nav-link { font-size: 14px; }
    .nav-right .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
}

/* ── Hero category line + "Questions for couples" link block (hand-written in index.html) ── */
.hero-lede { font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--white); margin: -8px 0 16px; }
.topics { padding: 72px 0 32px; }
.topics-sub { max-width: 640px; margin: -20px auto 28px; padding: 0 16px; text-align: center; color: var(--text-secondary); }
.topics-sub a, .topics-all a { color: var(--white); }
.topics-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.topics-list a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--gray); border: 1px solid #2a2a2a; color: var(--white);
    font-size: 15px; text-decoration: none; transition: border-color .2s; }
.topics-list a:hover { border-color: #444; }
.topics-all { margin: 28px 0 0; text-align: center; }
@media (max-width: 640px) {
    .hero-lede { font-size: 17px; }
    .topics { padding: 48px 0 24px; }
    /* 35 pills would stack ~1,700px tall on a phone: 4 rows that swipe sideways instead (like the gallery). */
    .topics-list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); justify-content: start; gap: 8px;
        overflow-x: auto; scrollbar-width: none; padding: 0 16px 4px; }
    .topics-list::-webkit-scrollbar { display: none; }
    .topics-list a { padding: 8px 13px; font-size: 14px; white-space: nowrap; }
}
