/* =========================================
   Home V2 Styles
   =========================================
   Breakpoints:
   - Mobile:       320px – 767px
   - Tablet:       768px – 1023px
   - Desktop:      1024px – 1439px
   - Large Desktop: 1440px+
   ========================================= */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.text-center {
    text-align: center;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-black);
    font-weight: 700;
}

p {
    line-height: 1.6;
}

/* =========================================
   Visibility Helpers
   ========================================= */
.visible-mobile {
    display: none !important;
}

.hidden-mobile {
    display: flex !important;
}

/* =========================================
   Hero Section
   ========================================= */
.v2-hero {
    padding: 0 0 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.v2-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.v2-hero .hero-content {
    flex: 1;
    max-width: 540px;
}

.v2-hero h1 {
    font-size: 58px;
    line-height: 1.0;
    margin-bottom: 24px;
    letter-spacing: -1px;
    font-weight: 800;
}

.v2-hero h1 .line-1 {
    color: var(--brand-black);
}

.v2-hero h1 .line-2 {
    color: var(--brand-red);
}

/* Yellow divider under h1 */
.v2-hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 8px;
    background-color: var(--brand-yellow);
    margin-top: 28px;
    border-radius: 4px;
}

.v2-hero p,
.v2-hero .hero-desc {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 32px;
    color: #333333;
    line-height: 1.6;
}

/* =========================================
   Store Badges (Hero + CTA)
   -----------------------------------------
   NOTE: Badge images are square canvases
   (400x400, 512x512) with the actual badge
   art centered horizontally. We clip them
   via overflow:hidden on the parent <a>.
   ========================================= */
.hero-store-buttons,
.cta-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-store-buttons a,
.cta-store-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s;
    width: 170px;
    height: 52px;
    overflow: hidden;
}

.hero-store-buttons a:hover,
.hero-store-buttons a:focus,
.cta-store-buttons a:hover,
.cta-store-buttons a:focus {
    transform: scale(1.05);
}

.hero-store-buttons a:focus,
.cta-store-buttons a:focus {
    outline: 3px solid var(--brand-red);
    outline-offset: 4px;
}

.hero-store-buttons img,
.cta-store-buttons img {
    width: 170px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================================
   Hero Image & Phone
   ========================================= */
.v2-hero .hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-wrapper {
    position: relative;
    width: 75%;
    max-width: 460px;
    margin: 0 auto;
}

.hero-phone-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    rotate: 3deg;
}

/* =========================================
   Hero Background Books
   ========================================= */

/* Book 1: Left side, peeking subtly */

/* Book 2: Top-right, peeking from behind */

/* Book 3: Bottom-right, peeking from behind */

/* Book 4: Middle-right, peeking from behind */


/* =========================================
   Hero Background Books
   ========================================= */
.hero-bg-book {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-bg-book-1 {
    width: 42%;
    top: 80%;
    left: -12%;
    transform: translateY(-50%) rotate(-12deg);
}

.hero-bg-book-2 {
    width: 42%;
    top: 35%;
    right: -10%;
    transform: rotate(15deg);
}

.hero-bg-book-3 {
    width: 42%;
    top: 55%;
    right: -11%;
    transform: rotate(15deg);
}

.hero-bg-book-4 {
    width: 42%;
    bottom: 5%;
    right: -11%;
    transform: rotate(15deg);
}

/* =========================================
   Features Section
   ========================================= */
.v2-features {
    padding: 30px 0;
    background: #ffffff;
    text-align: center;
}

.v2-features h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e5e5e5;
    padding: 0 15px;
}

.feature-item:nth-child(6n) {
    border-right: none;
}

.feature-icon {
    height: 64px;
    width: auto;
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-item p {
    font-size: 14px;
    color: #555555;
    font-family: sans-serif;
}

/* =========================================
   App Experience Section
   ========================================= */
.v2-app-experience {
    padding: 30px 0;
    background: #ffffff;
}

.v2-app-experience h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

.app-experience-carousel .screenshot-slide {
    padding: 0 10px;
}

.app-experience-carousel .screenshot-slide img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
}

/* =========================================
   Catalog Section
   ========================================= */
.v2-catalog {
    padding: 30px 0;
    background: #ffffff;
}

.v2-catalog h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

.catalog-carousel .catalog-slide {
    padding: 0 15px;
    text-align: left;
}

.catalog-carousel img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.catalog-carousel h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.catalog-carousel p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    font-family: sans-serif;
}

/* =========================================
   Slick Carousel Overrides
   ========================================= */
.slick-dots li {
    width: auto !important;
    height: auto !important;
    margin: 0 4px !important;
}

.slick-dots li button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #ccc !important;
    padding: 0 !important;
}

.slick-dots li button:before {
    display: none !important;
}

.slick-dots li.slick-active button {
    background: #ffde17 !important;
}

.slick-prev:before,
.slick-next:before {
    color: var(--brand-black);
    font-size: 24px;
}

.catalog-carousel .slick-dots li button:before {
    font-size: 10px;
    color: #c61d23;
}

.catalog-carousel .slick-dots li.slick-active button:before {
    color: #c61d23;
}

@media (min-width: 1025px) {
    .app-experience-carousel .slick-track {
        display: flex;
        justify-content: center;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.v2-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 40px; */
}

.v2-cta .cta-content h2 {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.1;
    font-weight: 800;
}

.v2-cta .cta-content h2 p {
    font-size: 34px;
    margin-bottom: -40px;
    line-height: 1.1;
    font-weight: 800;
}

.v2-cta .cta-content p {
    font-size: 18px;
    color: #0e0a0a;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.v2-cta .cta-store-buttons a {
    width: 175px;
    height: 54px;
}

.v2-cta .cta-store-buttons img {
    width: 175px;
}

/* Yellow divider under CTA h2 */
.v2-cta .cta-content h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 8px;
    background-color: var(--brand-yellow);
    margin-top: 28px;
    border-radius: 4px;
}

/* =========================================
   RESPONSIVE: Large Desktop (1440px+)
   ========================================= */
@media (min-width: 1440px) {
    .v2-hero .container {
        max-width: 1320px;
    }

    .v2-hero h1 {
        font-size: 64px;
    }

    .hero-phone-wrapper {
        max-width: 520px;
    }
}

/* =========================================
   RESPONSIVE: Desktop (1024px – 1439px)
   ========================================= */
@media (min-width: 1024px) and (max-width: 1439px) {
    .v2-hero h1 {
        font-size: 52px;
    }

    .v2-hero .hero-content {
        max-width: 480px;
    }

    .hero-phone-wrapper {
        width: 75%;
        max-width: 420px;
    }
}

/* =========================================
   RESPONSIVE: Tablet (768px – 1023px)
   ========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
    /* .v2-hero {
        padding: 40px 0 60px;
    } */

    .v2-hero .container {
        gap: 24px;
    }

    .v2-hero .hero-content {
        max-width: 380px;
    }

    .v2-hero h1 {
        font-size: 38px;
        margin-bottom: 18px;
    }

    .v2-hero h1::after {
        width: 60px;
        height: 6px;
        margin-top: 20px;
    }

    .v2-hero p,
    .v2-hero .hero-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-store-buttons a,
    .cta-store-buttons a {
        width: 148px;
        height: 46px;
    }

    .hero-store-buttons img,
    .cta-store-buttons img {
        width: 148px;
    }

    .hero-phone-wrapper {
        width: 80%;
        max-width: 340px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }

    .feature-item:nth-child(6n) {
        border-right: 1px solid #e5e5e5;
    }

    .feature-item:nth-child(3n) {
        border-right: none;
    }

    .v2-features h2,
    .v2-app-experience h2,
    .v2-catalog h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    /* CTA */
    .v2-cta .cta-content h2 {
        font-size: 36px;
    }

    .v2-cta .cta-content p {
        font-size: 18px;
    }

    .v2-cta .cta-store-buttons a {
        width: 155px;
        height: 48px;
    }

    .v2-cta .cta-store-buttons img {
        width: 155px;
    }
}

/* =========================================
   RESPONSIVE: Mobile (320px – 767px)
   ========================================= */
@media (max-width: 767px) {

    /* Visibility toggle */
    .hidden-mobile {
        display: none !important;
    }

    .visible-mobile {
        display: flex !important;
        justify-content: center;
        margin-top: 60px;
    }

    /* Show store buttons inside hero-content on mobile (upper side) */
    .v2-hero .hero-content .hero-store-buttons.hidden-mobile {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    /* Hide the duplicate store buttons below the phone */
    .v2-hero .hero-image .hero-store-buttons.visible-mobile {
        display: none !important;
    }

    /* Hide background book covers on mobile */
    .hero-bg-book {
        display: none !important;
    }

    /* Hero layout: vertical */
    .v2-hero {
        padding: 32px 0 0;
        overflow: hidden;
    }

    .v2-hero .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .v2-hero .hero-content {
        max-width: 100%;
        order: 1;
    }

    .v2-hero .hero-image {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        display: flex;
    }

    .v2-hero h1 {
        font-size: 34px;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .v2-hero h1::after {
        width: 60px;
        height: 6px;
        margin: 14px auto 0;
    }

    .v2-hero p,
    .v2-hero .hero-desc {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* Store badges: vertical stack for mobile */
    .hero-store-buttons,
    .cta-store-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-store-buttons a,
    .cta-store-buttons a {
        margin: 3px 0;
        width: 160px;
        height: 48px;
    }

    .hero-store-buttons img,
    .cta-store-buttons img {
        width: 160px;
    }

    /* Phone image – sits on the wave background */
    .hero-phone-wrapper {
        width: 80%;
        max-width: 340px;
        margin-top: 0;
    }

    .hero-phone-img {
        rotate: 0deg !important;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
    }

    .feature-item:nth-child(3n) {
        border-right: 1px solid #e5e5e5;
    }

    .feature-item:nth-child(2n) {
        border-right: none;
    }

    .v2-features {
        padding: 48px 0;
    }

    .v2-features h2,
    .v2-app-experience h2,
    .v2-catalog h2 {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .v2-app-experience,
    .v2-catalog {
        padding: 48px 0;
    }

    /* CTA */
    .v2-cta .container {
        flex-direction: column;
        text-align: center;
    }

    .v2-cta .cta-content h2 {
        font-size: 30px;
    }

    .v2-cta .cta-content h2::after {
        margin: 20px auto 0;
    }

    .v2-cta .cta-content p {
        font-size: 16px;
    }

    .v2-cta .cta-store-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .v2-cta .cta-store-buttons a {
        width: 140px;
        height: 43px;
    }

    .v2-cta .cta-store-buttons img {
        width: 140px;
    }

    .feature-icon {
        height: 48px;
    }
}

/* =========================================
   RESPONSIVE: Small Mobile (320px – 374px)
   ========================================= */
@media (max-width: 374px) {
    .v2-hero h1 {
        font-size: 28px;
    }

    .v2-hero .hero-image {
        max-width: 100%;
        order: 2;
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: flex;
    }

    .hero-phone-wrapper {
        width: 55%;
        max-width: 220px;
    }

    .hero-store-buttons a,
    .cta-store-buttons a {
        width: 140px;
        height: 42px;
    }

    .hero-store-buttons img,
    .cta-store-buttons img {
        width: 140px;
    }

    .v2-hero p,
    .v2-hero .hero-desc {
        font-size: 14px;
    }
}

.v2-header .container {
    padding-left: 0 !important;
    padding-right: 20px !important;
}

.v2-header .logo img {
    height: 80px !important;
    width: auto;
}


/* Custom Slick Arrows for Catalog & Summaries */
.catalog-carousel .slick-prev,
.catalog-carousel .slick-next {
    width: 44px !important;
    height: 44px !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
}

.catalog-carousel .slick-prev {
    left: -20px !important;
    right: auto !important;
}

.catalog-carousel .slick-next {
    right: -20px !important;
    left: auto !important;
}

.catalog-carousel .slick-prev:before,
.catalog-carousel .slick-next:before {
    font-family: inherit !important;
    color: #000 !important;
    font-size: 20px !important;
    opacity: 1 !important;
    line-height: 1 !important;
    display: block !important;
    background: none !important;
}

.catalog-carousel .slick-prev:before {
    content: "←" !important;
}

.catalog-carousel .slick-next:before {
    content: "→" !important;
}

.catalog-carousel .slick-prev:hover,
.catalog-carousel .slick-prev:focus,
.catalog-carousel .slick-next:hover,
.catalog-carousel .slick-next:focus {
    background: #e8e8e8 !important;
}

/* Adjust for mobile to keep inside margins */
@media (max-width: 767px) {
    .catalog-carousel .slick-prev {
        left: 5px !important;
        right: auto !important;
    }

    .catalog-carousel .slick-next {
        right: 5px !important;
        left: auto !important;
    }
}

/* Push slick dots below the content so they do not overlap text */
.app-experience-carousel,
.catalog-carousel {
    margin-bottom: 60px !important;
}

.app-experience-carousel .slick-dots,
.catalog-carousel .slick-dots {
    bottom: -40px !important;
}