/* ==========================================================================
   Media Partner Landing — editorial monochrome
   Reuse Lato + GothamPro yang sudah loaded di layout/header.blade.php
   Namespace: .mp-*
   Design tokens (--mp-*) live in mp-tokens.css — must be loaded first.
   ========================================================================== */

/* ----- base layout ----- */
.mp-landing {
    background: var(--mp-paper);
    color: var(--mp-ink);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.mp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mp-container--narrow {
    max-width: 720px;
}

@media (min-width: 768px) {
    .mp-container { padding: 0 40px; }
}

@media (min-width: 992px) {
    .mp-container { padding: 0 56px; }
}

/* ----- typography helpers ----- */
.mp-eyebrow {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mp-silver-2);
    margin: 0 0 16px;
}

.mp-section {
    padding: 56px 0;
    border-bottom: 1px solid var(--mp-hair);
}

@media (min-width: 768px) {
    .mp-section { padding: 96px 0; }
}

.mp-section__title {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: var(--mp-ink);
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .mp-section__title { font-size: 36px; }
}

@media (min-width: 992px) {
    .mp-section__title { font-size: 44px; }
}

.mp-section__subtitle {
    font-size: 15px;
    color: var(--mp-concrete);
    max-width: 640px;
    margin: 0 0 40px;
}

@media (min-width: 768px) {
    .mp-section__subtitle { font-size: 16px; margin-bottom: 56px; }
}

/* ----- buttons ----- */
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--mp-ink);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    cursor: pointer;
}

.mp-btn:hover,
.mp-btn:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
}

.mp-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.mp-btn--primary {
    background: var(--mp-paper);
    color: var(--mp-ink);
}

.mp-btn--primary:hover,
.mp-btn--primary:focus-visible {
    background: var(--mp-ink);
    color: var(--mp-paper);
}

.mp-btn--inverted {
    background: var(--mp-paper);
    color: var(--mp-ink);
    border-color: var(--mp-paper);
}

.mp-btn--inverted:hover,
.mp-btn--inverted:focus-visible {
    background: transparent;
    color: var(--mp-paper);
    border-color: var(--mp-paper);
}

.mp-btn--ghost {
    background: transparent;
    color: var(--mp-paper);
    border-color: var(--mp-silver-2);
}

.mp-btn--ghost:hover,
.mp-btn--ghost:focus-visible {
    border-color: var(--mp-paper);
    color: var(--mp-paper);
}

.mp-btn__arrow {
    transition: transform .2s ease;
}

.mp-btn:hover .mp-btn__arrow {
    transform: translateX(3px);
}

.mp-btn:hover .mp-btn__arrow--down {
    transform: translateY(3px);
}

/* ==========================================================================
   §1 Hero
   ========================================================================== */
.mp-hero {
    position: relative;
    background: var(--mp-ink);
    color: var(--mp-paper);
    padding: 72px 0 80px;
    border-bottom: 1px solid var(--mp-silver-2);
    overflow: hidden;
    isolation: isolate;
}

/* Background image — desaturated, sits below the dark overlay */
.mp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/media-partner-hero-section.jpg');
    background-image: image-set(
        url('/assets/img/media-partner-hero-section.webp') type('image/webp'),
        url('/assets/img/media-partner-hero-section.jpg') type('image/jpeg')
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(.4) contrast(1.05);
    z-index: -2;
}

/* Dark gradient overlay — guarantees text contrast across the whole hero */
.mp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11, 11, 11, .72) 0%,
        rgba(11, 11, 11, .58) 45%,
        rgba(11, 11, 11, .88) 100%);
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 768px) {
    .mp-hero { padding: 120px 0 128px; }
}

@media (min-width: 992px) {
    .mp-hero { padding: 144px 0 160px; }
}

.mp-hero .mp-eyebrow {
    color: var(--mp-silver-1);
}

.mp-hero__headline {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1;
    text-transform: none;
    letter-spacing: -.015em;
    color: var(--mp-paper);
    max-width: 800px;
    margin: 0 0 24px;
}

@media (min-width: 768px) {
    .mp-hero__headline { font-size: 56px; }
}

@media (min-width: 992px) {
    .mp-hero__headline { font-size: 72px; }
}

.mp-hero__em {
    font-style: italic;
    background: linear-gradient(180deg, var(--mp-silver-1) 0%, var(--mp-paper) 50%, var(--mp-silver-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.mp-hero__subhead {
    font-size: 16px;
    color: var(--mp-silver-1);
    max-width: 640px;
    margin: 0 0 32px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .mp-hero__subhead { font-size: 18px; margin-bottom: 40px; }
}

.mp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.mp-hero__actions .mp-btn--ghost { display: none; }

@media (min-width: 576px) {
    .mp-hero__actions .mp-btn--ghost { display: inline-flex; }
}

.mp-hero__trust {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mp-silver-2);
    margin: 0;
}

/* ==========================================================================
   §2 Benefits
   ========================================================================== */
.mp-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .mp-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .mp-benefits__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mp-benefit-card {
    position: relative;
    background: var(--mp-paper);
    border: 1px solid var(--mp-hair-strong);
    padding: 28px 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mp-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .45);
}

.mp-benefit-card--headline {
    border-width: 2px;
    border-color: var(--mp-ink);
}

.mp-benefit-card__badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--mp-ink);
    color: var(--mp-paper);
    padding: 4px 10px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.mp-benefit-card__num {
    display: inline-block;
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: var(--mp-silver-2);
    margin-bottom: 12px;
    letter-spacing: .05em;
}

.mp-benefit-card__title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--mp-ink);
}

@media (min-width: 768px) {
    .mp-benefit-card__title { font-size: 20px; }
}

.mp-benefit-card__body {
    font-size: 14px;
    color: var(--mp-concrete);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   §3 Past Partners
   ========================================================================== */
.mp-partners {
    background: var(--mp-bone);
}

/* Mobile-first: vertical stack with hairline dividers — each logo
   gets a full row of attention. Desktop reverts to horizontal wall. */
.mp-partners__wall {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .mp-partners__wall {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 24px 40px;
        padding: 40px 0;
    }
}

.mp-partner-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 16px;
    border-top: 1px solid var(--mp-hair);
    line-height: 1;
    color: var(--mp-ink);
    transition: transform .25s ease;
}

.mp-partner-slot:first-child {
    border-top: none;
}

@media (min-width: 768px) {
    .mp-partner-slot {
        display: inline-flex;
        width: auto;
        padding: 0;
        border-top: none;
    }
}

/* Text fallback when a brand has no logo file */
.mp-partner-slot__name {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .mp-partner-slot__name { font-size: 48px; }
}

@media (min-width: 992px) {
    .mp-partner-slot__name { font-size: 64px; }
}

/* Logo image — monochrome + multiply blend collapses white/light
   backgrounds into the section bg; full color on hover */
.mp-partner-slot__logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(1.05);
    opacity: .68;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}

@media (min-width: 768px) {
    .mp-partner-slot__logo {
        height: 48px;
        max-width: 160px;
    }
}

@media (min-width: 992px) {
    .mp-partner-slot__logo {
        height: 60px;
        max-width: 200px;
    }
}

.mp-partner-slot:hover {
    transform: translateY(-2px);
}

.mp-partner-slot:hover .mp-partner-slot__logo {
    filter: grayscale(0) contrast(1);
    opacity: 1;
}

/* Touch / no-hover devices never trigger the grayscale-to-color reveal,
   so the logos would stay washed-out forever. Show them in full color
   by default for any device that lacks a real hover state. */
@media (hover: none) {
    .mp-partner-slot__logo {
        filter: grayscale(0) contrast(1);
        opacity: 1;
    }
}

/* Separator dot between slots (desktop only — mobile stacks too tight) */
.mp-partners__sep {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--mp-silver-2);
    line-height: 1;
    display: none;
}

@media (min-width: 768px) {
    .mp-partners__sep { display: inline-block; font-size: 40px; }
}

/* Respect users who opt out of motion — kill the colour reveal too */
@media (prefers-reduced-motion: reduce) {
    .mp-partner-slot__logo,
    .mp-partner-slot:hover .mp-partner-slot__logo {
        transition: none !important;
    }
}

/* ==========================================================================
   §4 Eligibility
   ========================================================================== */
.mp-eligibility__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .mp-eligibility__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 56px;
    }
}

.mp-eligibility__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mp-ink);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mp-hair-strong);
}

.mp-eligibility__col--accept .mp-eligibility__icon { color: var(--mp-accept); }
.mp-eligibility__col--decline .mp-eligibility__icon { color: var(--mp-decline); }

.mp-eligibility__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-eligibility__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--mp-hair);
}

.mp-eligibility__item:last-child { border-bottom: none; }

.mp-eligibility__item-title {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 14px;
    color: var(--mp-ink);
    margin-bottom: 2px;
}

.mp-eligibility__item-desc {
    display: block;
    font-size: 13.5px;
    color: var(--mp-concrete);
    line-height: 1.5;
}

/* ==========================================================================
   §5 Process
   ========================================================================== */
.mp-process__timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
}

@media (min-width: 768px) {
    .mp-process__timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.mp-process__step {
    position: relative;
    padding-left: 84px;
    min-height: 48px;
}

@media (min-width: 768px) {
    .mp-process__step {
        padding-left: 0;
        padding-top: 0;
    }
    .mp-process__step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        right: -12px;
        width: 24px;
        height: 1px;
        background: var(--mp-hair-strong);
    }
}

.mp-process__num {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 44px;
    line-height: 1;
    width: 68px;
    background: var(--mp-foil-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 12px;
    position: absolute;
    top: -8px;
    left: 0;
}

@media (min-width: 768px) {
    .mp-process__num {
        position: static;
        font-size: 64px;
        width: auto;
        margin-bottom: 16px;
    }
}

.mp-process__title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mp-ink);
    margin: 0 0 8px;
}

.mp-process__detail {
    font-size: 13.5px;
    color: var(--mp-concrete);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   §6 FAQ
   ========================================================================== */
.mp-faq__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--mp-hair-strong);
}

.mp-faq__item {
    border-bottom: 1px solid var(--mp-hair-strong);
}

.mp-faq__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--mp-ink);
    transition: color .2s ease;
}

.mp-faq__toggle:hover {
    color: var(--mp-concrete);
    outline: none;
}

.mp-faq__toggle:focus-visible {
    color: var(--mp-concrete);
    outline: 2px solid var(--mp-ink);
    outline-offset: 4px;
}

.mp-faq__item[data-mp-open] {
    background: var(--mp-bone);
}

.mp-faq__item[data-mp-open] .mp-faq__toggle {
    padding-left: 16px;
    padding-right: 16px;
}

.mp-faq__q {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 15px;
    flex: 1;
}

@media (min-width: 768px) {
    .mp-faq__q { font-size: 17px; }
}

/* Icon: drawn from two pseudo-element bars. Closed = plus, open =
   minus. Vertical bar scales to 0 on open — smoother than rotating a
   text glyph and stays crisp at any size. */
.mp-faq__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mp-faq__icon::before,
.mp-faq__icon::after {
    content: '';
    position: absolute;
    background: var(--mp-silver-2);
    border-radius: 1px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1),
                background-color .25s ease;
}

.mp-faq__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.mp-faq__icon::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    transform-origin: center;
}

.mp-faq__item[data-mp-open] .mp-faq__icon::before,
.mp-faq__item[data-mp-open] .mp-faq__icon::after {
    background: var(--mp-ink);
}

.mp-faq__item[data-mp-open] .mp-faq__icon::after {
    transform: scaleY(0);
}

/* Panel: grid-template-rows trick (0fr → 1fr) animates to the
   content's natural height. No fixed max-height to overshoot, and
   long answers still animate smoothly. */
.mp-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1);
}

.mp-faq__item[data-mp-open] .mp-faq__panel {
    grid-template-rows: 1fr;
}

.mp-faq__panel-inner {
    overflow: hidden;
    min-height: 0;
}

.mp-faq__a {
    padding: 0 0 24px;
    margin: 0;
    font-size: 14.5px;
    color: var(--mp-concrete);
    line-height: 1.6;
}

.mp-faq__item[data-mp-open] .mp-faq__panel-inner {
    padding-left: 16px;
    padding-right: 16px;
}

/* ==========================================================================
   §7 Final CTA
   ========================================================================== */
.mp-cta {
    background: linear-gradient(180deg, #181818 0%, var(--mp-ink) 100%);
    color: var(--mp-paper);
    text-align: center;
    border-bottom: none;
}

/* CTA settles into the dark footer with no white sliver from the default mt-5 */
.mp-landing + footer,
.mp-landing ~ footer {
    margin-top: 0 !important;
}

.mp-cta__headline {
    font-family: 'GothamPro', sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mp-paper);
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .mp-cta__headline { font-size: 48px; }
}

.mp-cta__subhead {
    font-size: 16px;
    color: var(--mp-silver-1);
    margin: 0 0 32px;
}

.mp-cta__actions {
    margin-bottom: 24px;
}

.mp-cta__secondary {
    font-size: 13px;
    color: var(--mp-silver-2);
    margin: 0;
}

/* ==========================================================================
   Animations — reveal on scroll
   ========================================================================== */
[data-mp-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-mp-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-mp-reveal] {
        transform: none !important;
        transition: opacity .3s ease !important;
    }
    .mp-btn,
    .mp-benefit-card,
    .mp-partner-slot,
    .mp-btn__arrow,
    .mp-faq__panel,
    .mp-faq__icon::before,
    .mp-faq__icon::after {
        transition: none !important;
    }
}
