/* ==========================================================================
   Marketing Homepage — Product-first Global SaaS (Batch UI.2.2)
   Compact ~4–5 viewport. Real product mockups. High contrast surfaces.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 88vh, 700px);
    max-height: 700px;
    display: flex;
    align-items: center;
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--cream-50);
}
.hero__inner {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    width: 100%;
}
.hero__copy, .hero__stage { min-width: 0; }
.hero__title { margin-bottom: 1rem; }
.hero__nowrap { white-space: nowrap; }
.hero__hl {
    background: linear-gradient(120deg, var(--orange-500), var(--pink-400));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
    font-size: clamp(1.02rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: var(--text-block-max);
    margin-bottom: 1.35rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.15rem; }
.hero__trust { list-style: none; margin: 0; padding: 0; }

.hero__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
}

/* Product fan composition */
.product-fan {
    position: relative;
    width: min(520px, 100%);
    height: min(420px, 72vw);
}
.product-fan img {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(17, 24, 39, 0.18));
}
.product-fan__cover {
    position: absolute;
    left: 50%; top: 50%;
    width: min(48%, 220px);
    transform: translate(-50%, -52%);
    z-index: 5;
}
.product-fan__page {
    position: absolute;
    width: min(38%, 175px);
    z-index: 2;
}
.product-fan__page--c1 { left: 2%; top: 18%; transform: rotate(-14deg); z-index: 3; }
.product-fan__page--c2 { left: 8%; top: 42%; transform: rotate(-8deg); z-index: 2; }
.product-fan__page--a1 { right: 4%; top: 16%; transform: rotate(12deg); z-index: 3; }
.product-fan__page--a2 { right: 10%; top: 40%; transform: rotate(7deg); z-index: 2; }
.product-fan__exports {
    position: absolute;
    right: 0; bottom: 6%;
    display: flex; gap: 0.35rem;
    z-index: 6;
}
.product-fan__export { width: 56px; filter: drop-shadow(0 8px 14px rgba(17, 24, 39, 0.15)); }
.product-fan__export--zip { transform: translateY(8px); }

.float-badge {
    position: absolute; z-index: 8;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem; font-weight: 700;
    color: var(--navy-900);
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}
.float-badge--a { top: 6%; left: 0; }
.float-badge--b { top: 42%; right: -2%; }
.float-badge--c { bottom: 8%; left: 6%; }

/* ---------- Proof strip ---------- */
.proof-strip {
    background: linear-gradient(90deg, var(--navy-950) 0%, var(--navy-900) 100%);
    color: #fff;
}
.proof-strip__inner {
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 0.65rem 1.75rem;
    min-height: 96px;
    max-height: 120px;
    padding-block: 1.1rem;
}
.proof-strip__item {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.88rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}
.proof-strip__item .ic { color: var(--orange-400); width: 1.2rem; height: 1.2rem; flex: none; }

/* ---------- Section heads ---------- */
.section__head--left { text-align: left; margin-inline: 0; max-width: none; }
.section__eyebrow--light { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Product showcase split ---------- */
.showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}
.book-slider__viewport {
    position: relative;
    background: linear-gradient(160deg, var(--lavender-100), var(--blue-100));
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem 1.25rem;
    min-height: 380px;
    display: grid; place-items: center;
    box-shadow: var(--shadow-soft);
}
.book-slider__slide {
    display: none; margin: 0; text-align: center;
}
.book-slider__slide.is-active { display: block; }
.book-slider__slide img {
    width: min(240px, 70%);
    margin-inline: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift);
}
.book-slider__slide figcaption {
    margin-top: 0.75rem;
    font-size: 0.88rem; font-weight: 600; color: var(--text-secondary);
}
.book-slider__controls {
    display: flex; align-items: center; justify-content: center;
    gap: 0.75rem; margin-top: 0.85rem;
}
.book-slider__btn {
    width: 36px; height: 36px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    display: grid; place-items: center;
    color: var(--navy-900);
}
.book-slider__btn:first-child .ic { transform: rotate(180deg); }
.book-slider__dots { display: flex; gap: 0.4rem; }
.book-slider__dot {
    width: 8px; height: 8px; padding: 0;
    border: none; border-radius: 50%;
    background: var(--border-soft);
    cursor: pointer;
}
.book-slider__dot.is-active { background: var(--orange-500); width: 22px; border-radius: var(--radius-pill); }

.showcase-bullets {
    list-style: none; margin: 0 0 1.5rem; padding: 0;
    display: grid; gap: 0.65rem;
}
.showcase-bullets li {
    display: flex; align-items: center; gap: 0.65rem;
    font-weight: 600; color: var(--navy-900);
}
.showcase-bullets .ic { color: var(--mint-500); flex: none; }

/* ---------- How it works compact ---------- */
.hiw { max-height: 520px; }
.hiw-compact {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.85rem, 2vw, 1.35rem);
}
.hiw-compact__step { text-align: center; }
.hiw-compact__thumb {
    position: relative;
    display: grid; place-items: center;
    margin: 0 auto 0.75rem;
    width: 120px; height: 150px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}
.hiw-compact__thumb img { width: 72%; border-radius: 6px; }
.hiw-compact__num {
    position: absolute; top: -10px; right: -10px;
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    color: var(--navy-900); font-weight: 800; font-size: 0.85rem;
    display: grid; place-items: center;
    box-shadow: 0 6px 12px rgba(255, 159, 28, 0.35);
}
.hiw-compact__step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.hiw-compact__step p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); max-width: 16rem; margin-inline: auto; }

/* ---------- Activity showcase ---------- */
.activity-showcase {
    background: linear-gradient(145deg, var(--navy-900) 0%, #2A3A6E 55%, var(--lavender-100) 120%);
    color: #fff;
    padding-block: clamp(2.75rem, 5vw, 4rem);
}
.activity-showcase__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}
.activity-showcase h2 { color: #fff; }
.activity-showcase p { color: rgba(255, 255, 255, 0.88); max-width: var(--text-block-max); }
.activity-showcase__pages {
    position: relative;
    min-height: 280px;
}
.activity-showcase__page {
    position: absolute;
    margin: 0;
    width: min(42%, 175px);
    transition: transform var(--dur-mid) var(--ease-out);
}
.activity-showcase__page img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift);
    background: #fff;
}
.activity-showcase__page figcaption {
    font-size: 0.72rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-align: center; margin-top: 0.35rem;
}
.activity-showcase__page--1 { left: 0; top: 8%; transform: rotate(-10deg); z-index: 1; }
.activity-showcase__page--2 { left: 22%; top: 0; transform: rotate(-3deg); z-index: 2; }
.activity-showcase__page--3 { right: 22%; top: 4%; transform: rotate(4deg); z-index: 3; }
.activity-showcase__page--4 { right: 0; top: 14%; transform: rotate(11deg); z-index: 2; }
.activity-showcase .pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}
.pill-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
    display: inline-flex; align-items: center;
    background: var(--surface); color: var(--navy-900);
    border-radius: var(--radius-pill); padding: 0.45rem 0.9rem;
    font-size: 0.88rem; font-weight: 600; box-shadow: var(--shadow-soft);
}

/* ---------- Personalization panel ---------- */
.personalize-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    max-height: 720px;
}
.personalize-panel__live {
    margin: 0 0 1.15rem;
    font-size: 1.05rem; color: var(--text-secondary);
}
.personalize-panel__live strong { color: var(--navy-900); font-weight: 800; }
.personalize-panel__preview { display: grid; place-items: center; }

.cover-mock3d {
    position: relative;
    width: min(280px, 100%);
    filter: drop-shadow(0 24px 40px rgba(17, 24, 39, 0.22));
}
.cover-mock3d__spine {
    position: absolute; left: -6px; top: 6%; bottom: 6%; width: 10px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, var(--orange-500), var(--pink-400));
    transform: perspective(400px) rotateY(-18deg);
    z-index: 0;
}
.cover-mock3d__img {
    position: relative; z-index: 1;
    width: 100%; border-radius: var(--radius-md);
    background: #fff;
}
.cover-mock3d__title {
    position: absolute; left: 0; right: 0; bottom: 18%;
    text-align: center; margin: 0;
    font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
    color: var(--navy-900);
    pointer-events: none; z-index: 2;
    opacity: 0; /* title baked into SVG; live text in panel */
}

/* ---------- Audience tabs split ---------- */
.tabs--split .tabs__list { margin-bottom: 1.25rem; }
.tabs__panel--split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    max-width: none; margin: 0;
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
}
.tabs__panel-visual { margin: 0; }
.tabs__panel-visual img {
    width: min(220px, 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.tabs__panel-body h3 { font-size: 1.35rem; }
.tabs__benefits {
    list-style: none; margin: 0 0 1.25rem; padding: 0;
    display: grid; gap: 0.6rem; text-align: left;
}
.tabs__benefits li { display: flex; align-items: flex-start; gap: 0.55rem; }
.tabs__benefits .ic { color: var(--mint-500); flex: none; margin-top: 0.15rem; }

.tabs__list {
    display: flex; justify-content: center; gap: 0.45rem; flex-wrap: wrap;
}
.tabs__btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font: inherit; font-weight: 700; font-size: 0.95rem;
    color: var(--text-secondary); background: var(--surface);
    border: 1.5px solid var(--border-soft); border-radius: var(--radius-pill);
    padding: 0.6rem 1.15rem; cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.tabs__btn .ic { color: var(--brand-blue); }
.tabs__btn.is-active {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    color: var(--navy-900); border-color: transparent;
}
.tabs__btn.is-active .ic { color: var(--navy-900); }

/* ---------- Pricing preview ---------- */
/* ---------- Pricing preview ---------- */
.pricing-preview .pricing-card {
    position: relative;
    background: var(--surface-card);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 0.45rem;
}
.pricing-preview .pricing-card__name { font-size: 1.25rem; margin: 0.2rem 0 0; }
.pricing-preview .pricing-card__tagline { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.pricing-preview .pricing-card__amount { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.pricing-preview .pricing-card__features { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; flex: 1; }
.pricing-preview .pricing-card__features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.92rem; }
.pricing-preview .pricing-card__features .ic { color: var(--mint-500); flex: none; margin-top: 0.12rem; }
.pricing-preview .pricing-card .btn { margin-top: auto; }

.pricing-toggle {
    background: var(--surface-muted);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    margin: 0 auto 1.5rem;
    width: fit-content;
    display: flex; justify-content: center;
}
.pricing-toggle__btn {
    font: inherit; font-weight: 700; font-size: 0.88rem;
    padding: 0.5rem 1.1rem;
    border: none; border-radius: var(--radius-pill);
    background: transparent; color: var(--text-secondary);
    cursor: pointer;
}
.pricing-toggle__btn.is-active {
    background: var(--surface);
    color: var(--navy-900);
    box-shadow: var(--shadow-soft);
}
.pricing-preview__grid { align-items: stretch; }
.pricing-preview .pricing-card.is-featured {
    transform: scale(1.03);
    border-color: var(--pink-400);
    border-width: 2px;
    box-shadow: 0 20px 44px rgba(255, 111, 145, 0.18);
    z-index: 1;
}
.pricing-preview .pricing-card.is-featured .btn--primary {
    background: var(--navy-900);
    color: #fff;
}
.pricing-preview__more { text-align: center; margin-top: 1.35rem; }

/* ---------- Final CTA ---------- */
.final-cta.section { padding-block: clamp(2rem, 4vw, 3rem); }
.final-cta__box {
    position: relative; overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 420px;
    max-height: 500px;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(120deg, var(--orange-400) 0%, var(--orange-500) 45%, var(--pink-400) 100%);
}
.final-cta__copy { position: relative; z-index: 2; }
.final-cta__box h2 { color: var(--navy-900); max-width: 16ch; }
.final-cta__box p { color: var(--navy-900); opacity: 0.85; font-size: 1.08rem; margin-bottom: 1.25rem; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.final-cta__visual img {
    width: min(200px, 36vw);
    filter: drop-shadow(0 18px 32px rgba(17, 24, 39, 0.2));
    transform: rotate(4deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .showcase-split,
    .activity-showcase__inner,
    .personalize-panel,
    .tabs__panel--split { grid-template-columns: 1fr; }
    .activity-showcase__pages { min-height: 220px; margin-bottom: 0.5rem; }
    .final-cta__box { grid-template-columns: 1fr; text-align: center; min-height: auto; max-height: none; }
    .final-cta__visual { display: none; }
    .final-cta__actions { justify-content: center; }
}
@media (max-width: 960px) {
    .hero { min-height: auto; max-height: none; padding-block: 2rem 2.5rem; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__stage { order: 2; min-height: 340px; }
    .hiw { max-height: none; }
    .hiw-compact { grid-template-columns: 1fr; gap: 1.25rem; }
    .product-fan { height: 360px; }
    .float-badge--b { right: 0; }
}
@media (max-width: 720px) {
    .proof-strip__inner { max-height: none; min-height: 80px; gap: 0.5rem 1rem; }
    .proof-strip__item { font-size: 0.8rem; }
    .float-badge { font-size: 0.72rem; padding: 0.35rem 0.65rem; }
    .float-badge--a { left: 2%; }
    .float-badge--c { left: 2%; }
    .pricing-preview .pricing-card.is-featured { transform: none; }
}
@media (max-width: 480px) {
    .hero__actions .btn { width: 100%; }
    .product-fan__exports { display: none; }
    .activity-showcase__page { width: 46%; }
}

/* ---------- Print / PDF capture fixes ---------- */
@media print {
    .mkt-header {
        position: static !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        break-inside: avoid;
    }
    .mkt-burger,
    .mkt-mobile,
    .mkt-user-menu,
    .float-badge,
    .product-fan__exports,
    .book-slider__controls,
    .pricing-toggle { display: none !important; }

    body.mkt,
    .hero,
    .section,
    .proof-strip,
    .activity-showcase,
    .final-cta__box {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        animation: none !important;
        transform: none !important;
    }

    .book-slider__slide { display: block !important; break-inside: avoid; }
    .book-slider__slide:not(.is-active) { display: none !important; }

    .activity-showcase__page {
        position: relative !important;
        display: inline-block !important;
        width: 22% !important;
        transform: none !important;
        break-inside: avoid;
    }

    .pricing-preview .pricing-card.is-featured { transform: none !important; }

    .final-cta__visual { display: block !important; }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
