/* ==========================================================================
   What You Get Component
   Marketing component showing bundle contents: images, captions, reels,
   and the Producer tier. Used on pricing and standalone what-you-get pages.
   ========================================================================== */

/* ==========================================================================
   Container
   ========================================================================== */

.wyg {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    box-sizing: border-box;
}

/* Standalone page: extra vertical breathing room */
.wyg--page {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

/* ==========================================================================
   Page Header (page context only)
   ========================================================================== */

.wyg__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.wyg__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-navy);
    margin: 0 0 var(--space-3) 0;
    line-height: var(--leading-tight);
}

.wyg__tagline {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-navy-700);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Bundles Bar — section label
   ========================================================================== */

.wyg__bundles-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-8);
    border-bottom: 2px solid var(--color-navy-200);
}

.wyg__bundles-label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-navy-700);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* No trailing line — the border-bottom on the bar is sufficient */

/* ==========================================================================
   Two-panel layout: bundles (left) + producer (right)
   ========================================================================== */

.wyg__layout {
    display: flex;
    gap: var(--space-8);
    align-items: flex-start;
}

/* ==========================================================================
   Bundles panel — 3 groups side by side
   ========================================================================== */

.wyg__bundles {
    display: flex;
    flex: 1;
    gap: var(--space-6);
    align-items: flex-start;
    min-width: 0;
}

/* ==========================================================================
   Entrance animation — pure opacity fade, slow-then-snap (ease-in)
   No movement, just fade. Starts gentle, then punches in.
   ========================================================================== */

@keyframes wyg-snap-in {
    0% {
        opacity: 0;
    }

    60% {
        opacity: 0.15;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Skip all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wyg--animated .wyg__images-group,
    .wyg--animated .wyg__caption-group,
    .wyg--animated .wyg__reel-group,
    .wyg--animated .wyg__producer {
        animation: none;
    }
}

/* ==========================================================================
   Images group
   ========================================================================== */

.wyg__images-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    flex-shrink: 1;
    min-width: 140px;
}

.wyg--animated .wyg__images-group {
    animation: wyg-snap-in 0.4s ease-in 0.5s both;
}

.wyg__images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 220px;
}

.wyg__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
    background: var(--color-navy-100);
}

/* ==========================================================================
   Caption group
   ========================================================================== */

.wyg__caption-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
    min-width: 140px;
}

.wyg--animated .wyg__caption-group {
    animation: wyg-snap-in 0.4s ease-in 1.2s both;
}

.wyg__caption-card {
    position: relative;
    background: var(--color-cream);
    border: 1px solid var(--color-navy-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    overflow: hidden;

    /* Fixed height so gradient fade works */
    max-height: 180px;
}

.wyg__caption-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-navy);
    margin: 0 0 var(--space-2) 0;
}

.wyg__caption-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-navy-700);
    line-height: var(--leading-relaxed);
    margin: 0;

    /* Truncate with gradient — JS-free */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

/* Gradient fade at bottom of caption card */
.wyg__caption-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--color-cream));
    pointer-events: none;
}

/* ==========================================================================
   Reel group — scaled phone frame
   ========================================================================== */

.wyg__reel-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 1;
    min-width: 120px;
}

.wyg--animated .wyg__reel-group {
    animation: wyg-snap-in 0.4s ease-in 1.9s both;
}

/* Scale the VideoPhoneFrame down to ~40% */
.wyg__reel-frame {
    transform: scale(0.4);
    transform-origin: top center;

    /* Collapse the vertical space that the un-scaled element would occupy.
       The phone frame is ~480px tall at native size. At 40%, visible = 192px.
       We collapse the remaining 288px with negative margin, minus space-3
       so the label beneath has breathing room. */
    width: 240px;
    height: 480px;
    margin-bottom: -276px;
}

/* ==========================================================================
   Shared group label + note
   ========================================================================== */

.wyg__group-label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.wyg__group-note {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    margin: 0;
    line-height: var(--leading-normal);
}

/* ==========================================================================
   Producer panel
   ========================================================================== */

.wyg__producer {
    flex-shrink: 0;
    width: 220px;
    background: var(--color-navy);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.wyg--animated .wyg__producer {
    animation: wyg-snap-in 0.4s ease-in 2.6s both;
}

.wyg__producer-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 var(--space-2) 0;
}

.wyg__producer-heading {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-gold);
    margin: 0 0 var(--space-4) 0;
    line-height: var(--leading-tight);
}

.wyg__producer-intro {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-cream);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-5) 0;
    opacity: 0.9;
}

.wyg__producer-list {
    list-style: none;
    margin: 0 0 var(--space-6) 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.wyg__producer-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-cream);
    line-height: var(--leading-relaxed);
}

.wyg__producer-item-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-gold);
    margin-top: 2px;
}

/* ==========================================================================
   CTA footer
   ========================================================================== */

.wyg__cta {
    text-align: center;
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 2px solid var(--color-navy-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.wyg__cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* Primary CTA — burgundy */
.wyg__btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    background: var(--color-burgundy);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    border: 2px solid var(--color-burgundy);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.wyg__btn-primary:hover,
.wyg__btn-primary:focus-visible {
    background: var(--color-burgundy-light);
    border-color: var(--color-burgundy-light);
}

.wyg__btn-primary:focus-visible {
    outline: 2px solid var(--color-burgundy);
    outline-offset: 3px;
}

/* Outline CTA — navy */
.wyg__btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    background: transparent;
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    border: 2px solid var(--color-navy);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.wyg__btn-outline:hover,
.wyg__btn-outline:focus-visible {
    background: var(--color-navy);
    color: var(--color-white);
}

.wyg__btn-outline:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 3px;
}

.wyg__cta-note {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin: 0;
}

/* ==========================================================================
   Compact mobile (max-width: 480px): single column, everything stacked
   Mobile-first: get this right, then layer tablet on top.
   ========================================================================== */

@media (width <= 480px) {
    .wyg {
        padding: var(--space-6) var(--space-4);
    }

    .wyg--page {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }

    .wyg__title {
        font-size: var(--text-2xl);
    }

    .wyg__tagline {
        font-size: var(--text-base);
    }

    .wyg__bundles-label {
        white-space: normal;
    }

    /* Stack everything vertically */
    .wyg__layout {
        flex-direction: column;
    }

    .wyg__bundles {
        flex-direction: column;
        width: 100%;
    }

    /* Images: constrain grid to ~70% width, centered */
    .wyg__images-group {
        width: 100%;
        align-items: center;
    }

    .wyg__images-grid {
        max-width: 260px;
        width: 100%;
    }

    /* Caption: full width */
    .wyg__caption-group {
        width: 100%;
        min-width: 0;
    }

    .wyg__caption-card {
        max-height: 140px;
    }

    /* Reel: render at ~65% scale so it's a good size on mobile, centered */
    .wyg__reel-group {
        width: 100%;
        align-items: center;
    }

    .wyg__reel-frame {
        transform: scale(0.6);
        width: 240px;
        height: 480px;
        margin-bottom: -180px;
    }

    /* Producer: full width, override fixed width, constrain to container */
    .wyg__producer {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* CTA: center everything */
    .wyg__cta {
        padding: 0 var(--space-2);
    }

    .wyg__cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .wyg__btn-primary,
    .wyg__btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Tablet (481px to 768px): 2-column bundles grid
   Images + caption left, reel right, producer below full-width
   ========================================================================== */

@media (width >= 481px) and (width <= 768px) {
    .wyg {
        padding: var(--space-8) var(--space-4);
    }

    .wyg--page {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .wyg__title {
        font-size: var(--text-3xl);
    }

    .wyg__bundles-label {
        white-space: normal;
    }

    /* Stack main layout vertically (bundles above producer) */
    .wyg__layout {
        flex-direction: column;
    }

    /* Bundles: 2-column grid */
    .wyg__bundles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: var(--space-5);
        width: 100%;
    }

    /* Left col, row 1: images */
    .wyg__images-group {
        grid-column: 1;
        grid-row: 1;
    }

    .wyg__images-grid {
        max-width: 100%;
    }

    /* Left col, row 2: caption */
    .wyg__caption-group {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    /* Right col, spanning rows: reel */
    .wyg__reel-group {
        grid-column: 2;
        grid-row: 1 / 3;
        place-self: center center;
    }

    .wyg__reel-frame {
        transform: scale(0.45);
        width: 240px;
        height: 480px;
        margin-bottom: -252px;
    }

    /* Producer: full width below bundles grid */
    .wyg__producer {
        width: auto;
        max-width: 100%;
    }

    /* CTA buttons: stack on smaller tablets */
    .wyg__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .wyg__btn-primary,
    .wyg__btn-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }
}
