/* ==========================================================================
   Promo campaign (e.g. Black Friday): banner, countdown and promo plan card.
   Loaded on the account page and on the homepage while a campaign runs.
   ========================================================================== */

:root {
    --promo-green: #3fa34d;
    --promo-green-hover: #4cb85a;
    --promo-green-dark: #1d4d2c;
    --promo-green-border: #4cb85a;
    --promo-ink: #0f1a12;
    --promo-box-bg: rgba(28, 28, 31, 0.85);
    --promo-box-border: rgba(255, 255, 255, 0.12);
    --promo-muted: #a9c2ae;
}

/* ---------- Banner ---------- */
.promo-banner {
    position: relative;
    width: 100%;
    padding: 56px 16px 48px;
    text-align: center;
    color: #fff;
    background-color: #111114;
    background-image:
        linear-gradient(180deg, rgba(10, 10, 12, 0.78) 0%, rgba(10, 10, 12, 0.88) 100%),
        var(--promo-bg, none);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.promo-banner__inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.promo-banner__badge {
    display: inline-block;
    background: var(--promo-green);
    color: var(--promo-ink);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 14px;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.promo-banner__title {
    font-family: "Anton", sans-serif;
    font-size: 72px;
    line-height: 1.05;
    font-weight: 400;
    margin: 0 0 18px;
    color: #fff;
}

.promo-banner__subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: #e6e6e6;
    max-width: 640px;
    margin: 0 auto 28px;
}

/* ---------- Countdown ---------- */
.promo-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.promo-countdown__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 14px 10px 10px;
    background: var(--promo-box-bg);
    border: 1px solid var(--promo-box-border);
    border-radius: 12px;
}

.promo-countdown__value {
    font-family: "Anton", sans-serif;
    font-size: 48px;
    line-height: 1;
    color: #fff;
}

.promo-countdown__label {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
}

.promo-countdown__sep {
    font-size: 28px;
    font-weight: 700;
    color: #777;
}

/* ---------- Homepage variant: price + CTAs ---------- */
.promo-banner__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 20px;
}

.promo-banner__old-price {
    font-size: 30px;
    color: var(--promo-muted);
    text-decoration: line-through;
}

.promo-banner__new-price {
    font-family: "Anton", sans-serif;
    font-size: 72px;
    line-height: 1;
}

.promo-banner__period {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-banner__ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.promo-banner__cta.btn {
    min-width: 220px;
    height: auto;
    line-height: 1.2;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 700;
}

.promo-banner__cta.btn-primary {
    background-color: var(--promo-green) !important;
    color: var(--promo-ink);
}

.promo-banner__cta.btn-primary:hover {
    background-color: var(--promo-green-hover) !important;
}

.promo-banner__terms {
    margin-top: 16px;
    font-size: 13px;
    color: #bbb;
}

/* ---------- Account page layout: the photo spans the banner AND the plan cards ---------- */
.subscription-section.subscription-section--promo {
    padding-top: 0 !important;
    padding-bottom: 60px !important;
    background-color: #111114 !important;
    background-image:
        linear-gradient(
            180deg,
            rgba(10, 10, 12, 0.74) 0%,
            rgba(10, 10, 12, 0.84) 45%,
            rgba(10, 10, 12, 0.94) 100%
        ),
        url("../img/promo/black-friday-hero.jpg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

.subscription-section--promo .banner-subscription {
    margin-top: 0 !important;
}

.subscription-section--promo .subscription-container {
    padding-top: 0 !important;
}

/* The section carries the photo; the banner inside is transparent */
.subscription-section--promo .promo-banner {
    margin: 0 -20px;
    width: calc(100% + 40px);
    padding-bottom: 48px;
    background: none;
}

/* Notes inside the green promo card ("Change takes effect on ...") */
.plan-card-promo .plan-change-note {
    color: #e6efe7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 0 0;
}

.plan-card-promo .plan-change-note.scheduled-note {
    color: #ffd54f;
}

/* ---------- Promo plan card ---------- */
.plan-card.plan-card-promo {
    background: var(--promo-green-dark);
    border: 2px solid var(--promo-green-border);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    padding: 0 28px 22px;
    max-width: 440px;
    width: 100%;
    overflow: visible;
}

.promo-card-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--promo-green);
    color: var(--promo-ink);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    z-index: 2;
}

.promo-card-body {
    padding-top: 34px;
    text-align: center;
}

.promo-card-title {
    font-family: "Anton", sans-serif;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
}

.promo-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.promo-card-price__old {
    font-size: 26px;
    color: var(--promo-muted);
    text-decoration: line-through;
}

.promo-card-price__new {
    font-family: "Anton", sans-serif;
    font-size: 76px;
    line-height: 1;
    color: #fff;
}

.promo-card-price__period {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.promo-card-note {
    font-size: 15px;
    line-height: 1.4;
    color: #dfe9e1;
    margin: 10px 0 20px;
}

.promo-card-features {
    display: inline-block;
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 auto;
}

.promo-card-features li {
    position: relative;
    padding: 6px 0 6px 32px;
    font-size: 17px;
    line-height: 1.4;
    color: #fff;
}

.promo-card-features li::before {
    content: "\2713";
    position: absolute;
    left: 4px;
    top: 6px;
    color: var(--promo-green-border);
    font-weight: 700;
}

.promo-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    margin: 20px 0 4px;
}

/* Extra rows the account cases append inside the card (e.g. "N-day free trial") */
.plan-card-promo .plan-card-features .plan-line {
    display: none;
}

.plan-card-promo .plan-card-action {
    padding-top: 12px;
}

.plan-card.plan-card-promo .plan-card-btn {
    width: 100%;
    margin: 4px 0 0;
    white-space: normal;
    height: auto;
    line-height: 1.3;
    padding: 15px 18px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
    background-color: var(--promo-green) !important;
    color: var(--promo-ink) !important;
}

.plan-card.plan-card-promo .plan-card-btn:hover {
    background-color: var(--promo-green-hover) !important;
}

.promo-terms,
.promo-charge-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--promo-muted);
    margin: 12px 0 0;
    text-align: center;
}

.promo-charge-note {
    color: #fff;
    font-size: 13px;
}

/* Account: "Have a code? Redeem it at checkout" under the Annual card */
.redeem-code-form {
    margin: 10px 0 4px;
    text-align: center;
}

.redeem-code-link {
    background: none;
    border: none;
    padding: 4px 8px;
    color: #cfcfcf;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.redeem-code-link:hover {
    color: #fff;
}

.plan-card-promo .redeem-code-link {
    color: var(--promo-muted);
}

/* Account: promo box hint and code-switch confirmation */
.promo-code-hint {
    font-size: 13px;
    color: #bbb;
    margin: 6px 0 10px;
}

.promo-code-confirm__text {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 8px 0;
}

.promo-code-confirm__actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.promo-code-confirm__actions form {
    flex: 1;
}

.promo-code-confirm__actions .promo-card-btn {
    width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .promo-banner {
        padding: 40px 16px 32px;
        background-image:
            linear-gradient(180deg, rgba(10, 10, 12, 0.78) 0%, rgba(10, 10, 12, 0.88) 100%),
            var(--promo-bg-mobile, var(--promo-bg, none));
    }

    .subscription-section.subscription-section--promo {
        background-image:
            linear-gradient(
                180deg,
                rgba(10, 10, 12, 0.74) 0%,
                rgba(10, 10, 12, 0.86) 40%,
                rgba(10, 10, 12, 0.95) 100%
            ),
            url("../img/promo/black-friday-hero-mobile.jpg") !important;
    }

    .subscription-section--promo .promo-banner {
        padding-bottom: 32px;
        background: none;
    }

    .promo-banner__title {
        font-size: 44px;
    }

    .promo-banner__subtitle {
        font-size: 16px;
    }

    .promo-countdown {
        gap: 6px;
    }

    .promo-countdown__box {
        min-width: 64px;
        padding: 10px 6px 8px;
    }

    .promo-countdown__value {
        font-size: 30px;
    }

    .promo-countdown__label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .promo-countdown__sep {
        display: none;
    }

    .promo-banner__new-price {
        font-size: 52px;
    }

    .plan-card.plan-card-promo {
        padding: 0 18px 18px;
    }

    .promo-card-title {
        font-size: 40px;
    }

    .promo-card-price__new {
        font-size: 60px;
    }

    .promo-card-badge {
        font-size: 11px;
        padding: 7px 12px;
    }
}
