/* Product variant: two-column hero with animated app mockup.
   Ported from the "variant2-product" prototype in "Landing Page A_B Designs".

   Layout is mobile-first: the hero stacks by default and only becomes a
   two-column split at 901px and up. */

#landing-page.landing-variant-product .section-1 {
    height: auto;
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

#landing-page.landing-variant-product .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    width: min(1120px, 100%);
}

#landing-page.landing-variant-product .hero-content {
    width: 100%;
    box-sizing: border-box;
}

/* Strip the shield/shopping-bag emoji flourishes and gradient headline fill. */
#landing-page.landing-variant-product .logo::before,
#landing-page.landing-variant-product .logo::after {
    content: none;
}

#landing-page.landing-variant-product .logo {
    display: block;
    margin: 0 0 1.1rem;
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #1a3566;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

#landing-page.landing-variant-product .product-hero-accent {
    color: #2563eb;
}

#landing-page.landing-variant-product .tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    color: #475569;
}

/* Hero stat row replaces the two value-prop cards. */
#landing-page.landing-variant-product .value-props {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    border-top: 1px solid rgba(74, 108, 247, 0.1);
}

#landing-page.landing-variant-product .value-prop-stat-card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    /* The base card clips its contents, which shaves the edges off labels that
       are wider than the number above them. */
    overflow: visible;
}

#landing-page.landing-variant-product .value-prop-stat-card::before {
    content: none;
}

#landing-page.landing-variant-product .value-prop-stat-card:hover {
    transform: none;
    box-shadow: none;
}

#landing-page.landing-variant-product .value-prop-stat-card .value-prop-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: #1a3566;
}

#landing-page.landing-variant-product .value-prop-stat-card .value-prop-text {
    margin: 1px 0 0;
    max-width: none;
    color: #64748b;
}

/* ── Phone mockup shell ──────────────────────────────────────────────────── */

.product-phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.product-phone {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 260px;
    height: 530px;
    border: 7px solid #1e2a3a;
    border-radius: 38px;
    background: #1e2a3a;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.product-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    background: #1e2a3a;
    z-index: 3;
}

.product-phone-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 4px 16px 2px;
    background: #d8e8f4;
}

.product-phone-time {
    font-size: 7px;
    font-weight: 700;
    color: #1a3566;
}

.product-phone-statusicons {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1a3566;
}

.product-phone-logobar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 6px 12px;
    background: #d8e8f4;
    border-bottom: 1px solid rgba(74, 108, 247, 0.08);
}

.product-phone-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.product-phone-searchpill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid rgba(74, 108, 247, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #b0bdd4;
    font-size: 8px;
}

.product-phone-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: linear-gradient(180deg, #d8e8f4 0%, #eef4fb 40%, #f7f9fc 100%);
}

.product-phone-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.product-phone-screen.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.product-phone-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    height: 32px;
    padding: 0 8px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.product-phone-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    color: #b0bdd4;
}

.product-phone-tab.is-active {
    padding: 4px 8px;
    border-radius: 12px;
    background: #4a6cf7;
    color: #fff;
}

.product-phone-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.product-phone-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #c8d3ea;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.product-phone-dot.is-active {
    width: 20px;
    background: #4a6cf7;
}

.product-phone-labels {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 0.5rem;
}

.product-phone-label {
    width: 52px;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: #64748b;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-phone-label.is-active {
    font-weight: 600;
    color: #4a6cf7;
}

/* ── Shared mockup UI primitives ─────────────────────────────────────────── */

.pm-head {
    flex-shrink: 0;
    padding: 8px 12px 4px;
}

.pm-label {
    margin: 0 0 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a6cf7;
}

.pm-heading {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a3566;
}

.pm-heading em {
    font-style: italic;
    color: #4a6cf7;
}

.pm-stats {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.pm-stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(74, 108, 247, 0.08);
}

.pm-stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #7a8aaa;
}

.pm-stat-value {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
    color: #1a3566;
}

.pm-section-title {
    flex-shrink: 0;
    padding: 0 12px;
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    color: #1a3566;
}

/* Brand colours on the mockup primitives are set inline per brand; these rules
   only carry structure. */
.pm-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.pm-logo img {
    width: 100%;
    height: 100%;
    padding: 1px;
    box-sizing: border-box;
    object-fit: contain;
}

.pm-logo-fallback {
    display: none;
    font-weight: 700;
}

.pm-logo.is-fallback .pm-logo-fallback {
    display: inline;
}

.pm-tag {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Featured / top-deal card */
.pm-featured {
    flex-shrink: 0;
    margin: 0 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(74, 108, 247, 0.1);
    overflow: hidden;
}

.pm-featured-badge {
    padding: 3px 8px;
    background: #ff5a1f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.pm-featured-image {
    height: 68px;
}

.pm-featured-body {
    padding: 8px 12px 10px;
}

.pm-featured-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
}

.pm-featured-title {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a3566;
}

.pm-featured-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pm-shop-btn {
    width: 100%;
    padding: 5px 0;
    border: none;
    border-radius: 8px;
    background: #4a6cf7;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* Inbox / saved deal rows */
.pm-deals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
    overflow: hidden;
}

.pm-deal {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(74, 108, 247, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 8px rgba(74, 108, 247, 0.07);
}

.pm-deal-thumb {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
    border-radius: 12px;
}

.pm-deal-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.pm-deal-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #1a3566;
}

.pm-deal-title {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a3566;
}

.pm-deal-tag {
    align-self: flex-start;
}

/* Search screen */
.pm-searchrow {
    display: flex;
    gap: 6px;
}

.pm-searchbox {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(74, 108, 247, 0.15);
    border-radius: 8px;
    background: #fff;
    font-size: 9px;
    white-space: nowrap;
    color: #b0bdd4;
}

.pm-search-btn {
    height: 24px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: #4a6cf7;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.pm-explore {
    flex-shrink: 0;
    padding: 4px 12px 0;
    overflow: hidden;
}

.pm-explore-eyebrow {
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9aaac2;
}

.pm-explore-title {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    color: #1a3566;
}

.pm-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
}

.pm-brandrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(74, 108, 247, 0.08);
    border-radius: 12px;
    background: #fff;
}

.pm-brandrow-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pm-brandrow-name {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: break-word;
    color: #1a3566;
}

.pm-brandrow-chevron {
    display: inline-flex;
    flex-shrink: 0;
    color: #c0cce0;
}

.pm-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 700;
}

/* ── "How it works" step previews ───────────────────────────────────────── */

#landing-page.landing-variant-product .product-section-eyebrow {
    margin: 0 0 0.6rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #4a6cf7;
}

#landing-page.landing-variant-product .step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#landing-page.landing-variant-product .step-text {
    margin-bottom: 1.2rem;
}

.product-step-preview {
    width: 100%;
    max-width: 200px;
    /* Steps stretch to equal height, so pushing the preview down keeps the
       three cards aligned even when descriptions differ in length. */
    margin: auto auto 0;
    border: 1px solid rgba(74, 108, 247, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, #e8eef8 0%, #f7f9fc 100%);
    box-shadow: 0 4px 20px rgba(74, 108, 247, 0.08);
    overflow: hidden;
    text-align: left;
}

.product-step-preview .pm-head {
    padding: 12px 12px 0;
}

.product-step-preview .pm-heading {
    margin-bottom: 8px;
    font-size: 13px;
}

.product-step-preview .pm-stats {
    padding: 0 12px 12px;
    margin-bottom: 0;
}

.product-step-preview .pm-stat {
    min-height: 42px;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(74, 108, 247, 0.07);
}

.product-step-preview .pm-stat-label {
    /* Shrink so the longest single-word label (e.g. "Categories") fits on one
       line instead of breaking mid-word or spilling outside the card. */
    font-size: 6px;
    letter-spacing: 0.02em;
    color: #64748b;
}

.product-step-preview .pm-stat-value {
    font-size: 12px;
}

/* ── Stacked hero (default / mobile) ────────────────────────────────────── */

#landing-page.landing-variant-product .tagline {
    max-width: 100%;
}

#landing-page.landing-variant-product .value-props {
    gap: 1.1rem;
    margin: 1.4rem auto 2.25rem;
    padding: 1.6rem 0.6rem 0;
}

#landing-page.landing-variant-product .value-props > * {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin: 0;
    width: auto;
    text-align: center;
}

#landing-page.landing-variant-product .value-prop-stat-card .value-prop-title {
    font-size: 1.3rem;
}

#landing-page.landing-variant-product .value-prop-stat-card .value-prop-text {
    font-size: 0.68rem;
    line-height: 1.2;
}

/* Trust badges match the darker grey + size of the hero stat labels
   (Average savings / Total deals / Always) across mobile and desktop. */
#landing-page.landing-variant-product .security-features {
    color: #64748b;
    font-size: 0.68rem;
}

@media (max-width: 768px) {
    #landing-page.landing-variant-product .section-1 {
        padding-top: 4.5rem;
    }

    #landing-page.landing-variant-product .hero {
        padding: 0.5rem 1rem 2rem;
    }

    /* The mockup is the tallest element on the page; the bouncing arrow
       would otherwise overlap it. */
    #landing-page.landing-variant-product .scroll-hint {
        display: none;
    }
}

/* ── Two-column hero (desktop) ─────────────────────────────────────────── */

@media (min-width: 901px) {
    #landing-page.landing-variant-product .hero {
        flex-direction: row;
        gap: 3.5rem;
        padding: 1rem 2rem 2rem;
    }

    /* Hero copy is left-aligned in this variant, so the corner watermarks have
       to drop below the stat row instead of sitting behind it. */
    #landing-page.landing-variant-product .hero::before {
        left: 1.5%;
        bottom: calc(1.5% + var(--decoration-offset));
        font-size: 8.5rem;
        opacity: 0.5;
    }

    #landing-page.landing-variant-product .hero::after {
        bottom: calc(2% + var(--decoration-offset));
        opacity: 0.55;
    }

    #landing-page.landing-variant-product .hero-content {
        flex: 1 1 0;
        min-width: 0;
        max-width: 520px;
        padding: 0;
        text-align: left;
    }

    #landing-page.landing-variant-product .tagline {
        max-width: 430px;
        margin: 0 0 2rem;
    }

    #landing-page.landing-variant-product .auth-buttons {
        align-items: flex-start;
        margin: 0 0 1.1rem;
    }

    #landing-page.landing-variant-product .security-features {
        justify-content: flex-start;
        gap: 1.25rem;
        font-size: 0.73rem;
        line-height: 1.4;
        color: #64748b;
    }

    #landing-page.landing-variant-product .value-props {
        justify-content: flex-start;
        gap: 1.5rem;
        margin: 2rem 0 0;
        padding: 1.5rem 0 0;
    }

    #landing-page.landing-variant-product .value-props > * {
        flex: 0 0 auto;
        text-align: left;
    }

    #landing-page.landing-variant-product .value-prop-stat-card .value-prop-title {
        font-size: 1.4rem;
    }

    /* Cards are sized to their own content here, so keep each label on one
       line and let the card widen to match it. */
    #landing-page.landing-variant-product .value-prop-stat-card .value-prop-text {
        font-size: 0.73rem;
        line-height: 1.4;
        white-space: nowrap;
    }
}
