/* ==========================================================================
   Landing Page Sections
   ----------------------------------------------------------------------
   New sections for index.html: How It Works, Layout Gallery Teaser,
   Pubmats (from Instagram), Weekly Spotlight Teaser, FAQ accordion, and
   a real site footer.

   Everything here reuses the site's existing design tokens (:root vars
   in styles.css), type system (Syne / Roboto / Mukta Mahee), the
   #hero / .main-center "pink card on gradient" shell pattern, the
   .layout-holder / .layout-img gallery component, .new-main-button /
   .new-sub-button, .social-btn, and the ribbon ::after tag pattern.
   Nothing new is invented, it's all composed from the same visual
   language already used across the site. Root font-size is 62.5%
   (1rem = 10px), matched here.
   ========================================================================== */

.landing-section {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    z-index: 3;
    position: relative;
}

/* Soft frosted card variant, same recipe as #faq-section */
.landing-card {
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--lighterGray);
    border-radius: 35px;
    padding: 60px 40px;
}

/* Deeper pink card variant, same recipe as #hero / .main-center */
.landing-card-pink {
    background-color: #FFE4EA;
    border-radius: 45px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(242, 106, 141, 0.15);
}

.landing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 48px;
}

.landing-eyebrow {
    font-family: var(--roboto);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-pink);
}

.landing-title {
    font-family: var(--syne);
    font-weight: 300;
    font-size: 4.2rem;
    color: var(--black);
    margin: 0;
}

.landing-subtitle {
    font-family: var(--mukta-mahee);
    font-size: 1.5rem;
    color: var(--gray-text);
    max-width: 620px;
    line-height: 1.6;
}

.landing-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* "See all layouts" / "View full spotlight": lift, fill pink and nudge an
   arrow forward on hover, the same feel as the main CTA. */
.landing-section .new-sub-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-section .new-sub-button::after {
    content: "\2192";
    display: inline-block;
    transition: transform 0.3s ease;
}

.landing-section .new-sub-button:hover,
.landing-section .new-sub-button:focus-visible {
    background-color: var(--barbie-pink);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(242, 106, 141, 0.3);
}

.landing-section .new-sub-button:hover::after,
.landing-section .new-sub-button:focus-visible::after {
    transform: translateX(4px);
}

.landing-section .new-sub-button:active {
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------
   1. How It Works
   -------------------------------------------------------------------- */
#how-it-works .how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.how-step-card {
    background-color: var(--white);
    border: 1px solid var(--lighterGray);
    border-radius: 25px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.how-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(242, 106, 141, 0.18);
    border-color: var(--pink);
}

.how-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--baby-pink) 0%, var(--pink) 100%);
    margin-bottom: 6px;
    color: var(--maroon);
}

.how-step-icon svg {
    width: 26px;
    height: 26px;
}

.how-step-number {
    font-family: var(--roboto);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--barbie-pink);
}

.how-step-title {
    font-family: var(--syne);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--black);
    margin: 0;
}

.how-step-desc {
    font-family: var(--mukta-mahee);
    font-size: 1.3rem;
    color: var(--gray-text);
    line-height: 1.5;
}

/* --------------------------------------------------------------------
   1b. Trust Bar, reuses .landing-card-pink. Decorative globe graphic,
   not wired to live analytics, the 2M+ figure is the one real number
   we have confirmed.
   -------------------------------------------------------------------- */
.trust-bar-card {
    padding: 44px 48px;
}

.trust-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
}

.trust-stat-number {
    font-family: var(--syne);
    font-weight: 600;
    font-size: 5.6rem;
    line-height: 1;
    background: linear-gradient(135deg, #f26a8d 0%, #fa1172 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.trust-stat-label {
    font-family: var(--mukta-mahee);
    font-size: 1.4rem;
    color: var(--gray-text);
    max-width: 180px;
    line-height: 1.5;
}

.trust-divider {
    width: 1px;
    align-self: stretch;
    background: var(--lighterGray);
    flex-shrink: 0;
}

.trust-globe-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    min-width: 0;
}

.trust-globe {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.trust-globe-disc {
    fill: var(--baby-pink);
}

.trust-globe-line {
    fill: none;
    stroke: var(--pink);
    stroke-width: 1.2;
}

.trust-globe-link {
    fill: none;
    stroke: var(--barbie-pink);
    stroke-width: 1.3;
    stroke-linecap: round;
    opacity: 0.55;
}

.trust-globe-dot {
    fill: var(--hot-pink);
    animation: trustDotPulse 2.4s infinite ease-in-out;
}

.trust-globe-dot-sm {
    fill: var(--barbie-pink);
    animation-delay: 0.6s;
}

@keyframes trustDotPulse {

    0%,
    100% {
        opacity: 0.55;
        r: 4;
    }

    50% {
        opacity: 1;
        r: 6;
    }
}

.trust-map-caption {
    font-family: var(--mukta-mahee);
    font-size: 1.3rem;
    color: var(--gray-text);
    line-height: 1.55;
    max-width: 340px;
}

/* --------------------------------------------------------------------
   2. Layout Gallery Teaser, reuses .layout-holder / .layout-img
   -------------------------------------------------------------------- */
#layout-teaser .layout-teaser-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    overflow-x: auto;
    padding: 10px 10px 20px;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

#layout-teaser .layout-teaser-scroll::-webkit-scrollbar {
    height: 8px;
}

#layout-teaser .layout-teaser-scroll::-webkit-scrollbar-track {
    background: var(--white);
}

#layout-teaser .layout-teaser-scroll::-webkit-scrollbar-thumb {
    background: var(--barbie-pink);
    border-radius: 4px;
}

.layout-teaser-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
    flex-shrink: 0;
}

.layout-teaser-item .layout-img {
    max-width: 100px;
}

/* --------------------------------------------------------------------
   3. Pubmats, from Instagram (new feature)
   Data-driven via landing-sections.js; cards link out to the IG
   profile. Decorative tiles use the real named frame-color tokens
   instead of invented colors, so this stays visually on-brand even
   before real exported graphics are dropped in (see data-img hook).
   -------------------------------------------------------------------- */
.pubmats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pubmat-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    color: var(--black);
    border: 1px solid var(--lighterGray);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.pubmat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(242, 106, 141, 0.2);
}

.pubmat-media {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* Instagram pubmats are 4:5 portrait; show the whole graphic. */
.pubmat-media.has-img {
    height: auto;
    aspect-ratio: 4 / 5;
    background: var(--lighterGray);
}

.pubmat-media.has-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pubmat-media svg {
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.85);
}

.pubmat-media.tone-pink {
    background: linear-gradient(135deg, var(--pink) 0%, var(--baby-pink) 100%);
}

.pubmat-media.tone-blue {
    background: linear-gradient(135deg, var(--blue) 0%, #eafaff 100%);
}

.pubmat-media.tone-yellow {
    background: linear-gradient(135deg, var(--yellow) 0%, #fffde0 100%);
}

.pubmat-media.tone-brown {
    background: linear-gradient(135deg, var(--brown) 0%, #f0e1d4 100%);
}

.pubmat-media.tone-purple {
    background: linear-gradient(135deg, var(--purple) 0%, #e6d9f5 100%);
}

.pubmat-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pubmat-date {
    font-family: var(--roboto);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-text);
}

.pubmat-title {
    font-family: var(--syne);
    font-weight: 600;
    font-size: 1.6rem;
}

.pubmat-desc {
    font-family: var(--mukta-mahee);
    font-size: 1.25rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.pubmat-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-family: var(--roboto);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--barbie-pink);
}

.pubmat-link-row svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------
   4. Weekly Spotlight Teaser
   -------------------------------------------------------------------- */
#spotlight-teaser .spotlight-teaser-card {
    display: flex;
    align-items: center;
    gap: 48px;
}

.spotlight-teaser-img-wrap {
    flex-shrink: 0;
    position: relative;
}

.spotlight-teaser-img-wrap img {
    width: 260px;
    border: 1px solid var(--black);
    border-radius: 6px;
    display: block;
}

.spotlight-teaser-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.spotlight-teaser-week {
    font-family: var(--roboto);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--barbie-pink);
}

.spotlight-teaser-title {
    font-family: var(--syne);
    font-weight: 600;
    font-size: 2.4rem;
    margin: 0;
}

.spotlight-teaser-desc {
    font-family: var(--mukta-mahee);
    font-size: 1.4rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.spotlight-teaser-winner {
    font-family: var(--roboto);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--maroon);
}

/* --------------------------------------------------------------------
   4b. About page feature highlights, reuses the .how-step-card recipe
   in a 2-column grid instead of How It Works' 4-column one.
   -------------------------------------------------------------------- */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* --------------------------------------------------------------------
   5. FAQ Accordion (functional, unlike the static about.html version)
   -------------------------------------------------------------------- */
.faq-accordion {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--lighterGray);
    border-radius: 18px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--syne);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--black);
}

.faq-question-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--baby-pink);
    color: var(--barbie-pink);
    font-size: 1.4rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.open .faq-question-icon {
    transform: rotate(45deg);
    background: var(--barbie-pink);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 24px 22px;
    font-family: var(--mukta-mahee);
    font-size: 1.35rem;
    color: var(--gray-text);
    line-height: 1.6;
    text-align: left;
}

.faq-see-more {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-family: var(--roboto);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--barbie-pink);
}

/* --------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------- */
#site-footer {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 50px 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    border-top: 1px dashed rgba(242, 106, 141, 0.35);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.footer-tagline {
    font-family: var(--mukta-mahee);
    font-size: 1.3rem;
    color: var(--gray-text);
    max-width: 280px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.footer-nav-heading {
    font-family: var(--roboto);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--barbie-pink);
    margin-bottom: 4px;
}

.footer-nav-col a {
    font-family: var(--roboto);
    font-size: 1.3rem;
    color: var(--black);
    text-decoration: none;
}

.footer-nav-col a:hover {
    color: var(--barbie-pink);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------
   Gentle on-scroll reveal, restrained (fade + 16px rise only) so it
   reads as a deliberate polish detail, not a flashy template effect.
   -------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .landing-section .new-sub-button,
    .landing-section .new-sub-button::after {
        transition: none;
    }

    .landing-section .new-sub-button:hover,
    .landing-section .new-sub-button:focus-visible,
    .landing-section .new-sub-button:hover::after,
    .landing-section .new-sub-button:focus-visible::after {
        transform: none;
    }
}

/* ==========================================================================
   Responsive, matches the site's existing breakpoints (1024 / 768 / 540)
   ========================================================================== */
@media (max-width: 1024px) {
    .landing-title {
        font-size: 3.4rem;
    }

    #how-it-works .how-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    #spotlight-teaser .spotlight-teaser-card {
        flex-direction: column;
        text-align: center;
    }

    .spotlight-teaser-text {
        align-items: center;
        text-align: center;
    }

    .trust-bar-content {
        gap: 32px;
    }

    .trust-stat-number {
        font-size: 4.4rem;
    }

    .trust-globe {
        width: 110px;
        height: 110px;
    }

    .footer-top {
        justify-content: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        width: 100%;
    }

    .footer-nav-col {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .landing-section {
        width: 94%;
    }

    .landing-card,
    .landing-card-pink {
        padding: 44px 22px;
    }

    .landing-title {
        font-size: 2.8rem;
    }

    .landing-subtitle {
        font-size: 1.35rem;
    }

    #how-it-works .how-steps {
        grid-template-columns: 1fr;
    }

    .pubmats-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .spotlight-teaser-img-wrap img {
        width: 200px;
    }

    .trust-bar-card {
        padding: 36px 28px;
    }

    .trust-bar-content {
        flex-direction: column;
        gap: 24px;
    }

    .trust-stat {
        align-items: center;
    }

    .trust-stat-label {
        max-width: none;
        text-align: center;
    }

    .trust-divider {
        width: 100%;
        height: 1px;
    }

    .trust-globe-wrap {
        flex-direction: column;
        text-align: center;
    }

    .trust-map-caption {
        max-width: none;
    }

    #layout-teaser .layout-teaser-scroll {
        gap: 16px;
    }

    .layout-teaser-item .layout-img {
        max-width: 90px;
    }

    /* Ribbon badges ("Template Layout", "Filter Layout") are sized in
       fixed px/rem and don't shrink with the image, so without this
       they start to overpower the smaller teaser thumbnails. */
    #layout-teaser .template-layout-wrapper::after,
    #layout-teaser .filter-layout-wrapper::after {
        font-size: 0.62rem;
        padding: 2px 5px;
        top: -5px;
        right: -10px;
    }
}

@media (max-width: 568px) {
    .landing-title {
        font-size: 2.3rem;
    }

    .landing-card,
    .landing-card-pink {
        padding: 36px 16px;
    }

    .faq-question {
        font-size: 1.4rem;
        padding: 16px 18px;
    }

    .trust-stat-number {
        font-size: 3.6rem;
    }

    .trust-globe {
        width: 90px;
        height: 90px;
    }

    .trust-map-caption {
        font-size: 1.2rem;
    }

    /* On phones, a wrapped grid of 5 items forms uneven rows (2+2+1).
       A single swipeable row reads as a more intentional "gallery"
       pattern, and the scrollbar styling above was already built for
       this (-webkit-overflow-scrolling, scroll-behavior) but dormant
       while the row could wrap. */
    #layout-teaser .layout-teaser-scroll {
        gap: 16px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .layout-teaser-item {
        scroll-snap-align: start;
    }

    .layout-teaser-item .layout-img {
        max-width: 82px;
    }

    #layout-teaser .template-layout-wrapper::after,
    #layout-teaser .filter-layout-wrapper::after {
        font-size: 0.56rem;
        padding: 2px 4px;
        top: -4px;
        right: -6px;
    }
}

/* Very small phones (~360-390px): tighten further so the teaser row
   still reads clearly instead of cramming full-size thumbnails. */
@media (max-width: 400px) {
    #layout-teaser .layout-teaser-scroll {
        gap: 12px;
    }

    .layout-teaser-item .layout-img {
        max-width: 84px;
    }

    .layout-teaser-item .layout-label {
        font-size: 1rem;
    }

    #layout-teaser .template-layout-wrapper::after,
    #layout-teaser .filter-layout-wrapper::after {
        font-size: 0.5rem;
        padding: 1.5px 4px;
        right: -4px;
    }
}