/* Black Friday 2026 on fs-poster.com: the pricing hero and header, the sale popup and the
   blog sidebar card. Same look as booknetic.com's sale, in Poppins. */

/* Pricing header over the dark hero: see-through at the top, solid once scrolled. */
.header-transparent.header-transparent--dark {
    background: transparent;
    transition: background-color 0.25s ease;

    &.is-scrolled {
        background: #0b0a10;
    }

    .header header .navbar nav > ul > li > a,
    .header header .header-logo .lang-dropdown .selected .lang,
    .header header .header-logo .lang-dropdown .selected .lang span {
        color: #fff;
    }

    .header header .navbar nav > ul > li > a svg path,
    .header header .header-logo .lang-dropdown .selected svg path,
    .header header .mobile-navbar .navbar-btn svg path {
        stroke: #fff;
    }

    .header header .header-logo .lang-dropdown .selected {
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }
}

#hero:is(.bf-hero + #hero) .hero {
    padding-top: 72px;
}

/* SaaS pages pad the body for the fixed header; the hero tucks back under it,
   and the sale bar adds its own height on top. */
body.saas .bf-hero {
    margin-top: -90px;
}

body.saas:has(.promo-bar) {
    padding-top: calc(90px + var(--promo-bar-height, 56px));
}

/* ── Pricing hero ─────────────────────────────────────────────── */

.bf-hero {
    position: relative;
    overflow: hidden;
    padding: calc(72px + 90px) 0 0;
    background: #0b0a10;
    color: #fff;
}

.bf-hero__ticker {
    margin-top: 80px;
    overflow: hidden;
    background: #ff3d71;
    color: #0b0a10;
}

.bf-hero__ticker {
    position: relative;
    z-index: 1;
}

.bf-hero__ticker-track {
    display: flex;
    width: max-content;
    animation: bf-ticker 36s linear infinite;
    will-change: transform;
    backface-visibility: hidden;

    & span {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 13px 12px;
        white-space: nowrap;
    }

    & b {
        font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    & i {
        font-style: normal;
        font-size: 12px;
    }
}

@keyframes bf-ticker {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* The pink glow behind the figure breathes; the icons drift; the neon flickers now and then. */
.bf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    bottom: 0;
    width: 70%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 61, 113, 0.2), rgba(255, 61, 113, 0));
    animation: bf-glow 9s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.bf-hero__grid {
    position: relative;
    z-index: 1;
}

@keyframes bf-glow {
    from {
        opacity: 0.7;
        transform: translate3d(0, 4%, 0) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translate3d(-6%, -4%, 0) scale(1.08);
    }
}

.bf-art__icon {
    animation: bf-float 6s ease-in-out infinite alternate;
}

.bf-art__icon--bag { animation-delay: -1s; }
.bf-art__icon--gift { animation-duration: 7s; animation-delay: -3s; }
.bf-art__icon--send { animation-duration: 8s; animation-delay: -2s; }
.bf-art__icon--hash { animation-duration: 9s; animation-delay: -5s; }
.bf-art__icon--heart { animation-duration: 5s; animation-delay: -2.5s; }
.bf-art__icon--bell { animation-duration: 6.5s; animation-delay: -4s; }
.bf-art__icon--ghost { animation-duration: 12s; }

@keyframes bf-float {
    from {
        translate: 0 0;
    }

    to {
        translate: 0 -14px;
    }
}

.bf-art__num text {
    animation: bf-flicker 8s linear infinite;
}

@keyframes bf-flicker {
    0%, 86%, 89%, 92%, 100% {
        opacity: 1;
    }

    87%, 91% {
        opacity: 0.35;
    }

    88% {
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bf-hero__ticker-track,
    .bf-hero::before,
    .bf-art__icon,
    .bf-art__num text {
        animation: none;
    }
}

.bf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.bf-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(56px, 8.5vw, 124px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.bf-hero__offer {
    margin: 18px 0 0;
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;

    & mark {
        padding: 0 0.18em;
        background: #ff3d71;
        color: #0b0a10;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
}

.bf-hero__lead {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.5;
}

.bf-hero__countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin: 28px 0 0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bf-hero__unit b {
    margin-right: 5px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.bf-hero__btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    border-radius: 10px;
    background: #fff;
    color: #0b0a10;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;

    &:hover {
        background: #ff3d71;
        color: #fff;
    }
}

.bf-hero__fine {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.bf-art {
    position: relative;
    height: 440px;
}

.bf-art__num {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 112%;
    overflow: visible;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 3px #ff3d71) drop-shadow(0 0 18px rgba(255, 61, 113, 0.65));

    & text {
        fill: none;
        stroke: #ff6b93;
        stroke-width: 3;
        font-family: Poppins, sans-serif;
        font-size: 230px;
        font-weight: 700;
        letter-spacing: -8px;
    }
}

.bf-art__icon {
    position: absolute;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bf-art__icon--ghost {
    top: 6%;
    left: 34%;
    width: 170px;
    color: #8b7bff;
    opacity: 0.12;
    transform: rotate(8deg);
}

.bf-art__icon--bag {
    top: 4%;
    left: 4%;
    width: 72px;
    color: #8b7bff;
    opacity: 0.6;
    transform: rotate(-14deg);
    filter: drop-shadow(0 0 8px rgba(139, 123, 255, 0.6));
}

.bf-art__icon--gift {
    top: -2%;
    right: 2%;
    width: 92px;
    color: #8b7bff;
    opacity: 0.9;
    transform: rotate(12deg);
    filter: drop-shadow(0 0 10px rgba(139, 123, 255, 0.7));
}

.bf-art__icon--send {
    top: 44%;
    left: -4%;
    width: 54px;
    color: #ff3d71;
    opacity: 0.4;
    transform: rotate(-24deg);
    filter: blur(1px);
}

.bf-art__icon--hash {
    bottom: 6%;
    left: 14%;
    width: 60px;
    color: #8b7bff;
    opacity: 0.35;
    transform: rotate(10deg);
    filter: blur(1.5px);
}

.bf-art__icon--heart {
    bottom: 4%;
    left: 44%;
    width: 46px;
    color: #8b7bff;
    opacity: 0.75;
    transform: rotate(-8deg);
    filter: drop-shadow(0 0 8px rgba(139, 123, 255, 0.6));
}

.bf-art__icon--bell {
    bottom: -2%;
    right: 4%;
    width: 100px;
    color: #ff3d71;
    opacity: 0.85;
    transform: rotate(-16deg);
    filter: drop-shadow(0 0 12px rgba(255, 61, 113, 0.65));
}

@media (max-width: 992px) {
    .bf-hero__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .bf-art {
        height: 340px;
        max-width: 560px;
    }
}

@media (max-width: 576px) {
    .bf-hero {
        padding: calc(48px + 73px) 0 0;
    }

    .bf-hero__ticker {
        margin-top: 48px;
    }

    .bf-art {
        height: 240px;
    }

    .bf-art__icon--ghost,
    .bf-art__icon--hash,
    .bf-art__icon--send {
        display: none;
    }

    .bf-art__icon--gift,
    .bf-art__icon--bell {
        width: 60px;
    }

    .bf-art__icon--bag {
        width: 48px;
    }
}


/* ── Popup ────────────────────────────────────────────────────── */

.sale-popup[hidden] {
    display: none;
}

.sale-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html.sale-popup-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.sale-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(11 10 16 / 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sale-popup__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    width: min(800px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 20px;
    outline: none;
    background:
        radial-gradient(40% 80% at 82% 50%, rgb(255 61 113 / 0.16) 0%, rgb(255 61 113 / 0) 70%),
        #0b0a10;
    color: #fff;
    box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.6);
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

.sale-popup.is-open .sale-popup__backdrop,
.sale-popup.is-open .sale-popup__dialog {
    opacity: 1;
}

.sale-popup.is-open .sale-popup__dialog {
    transform: none;
}

.sale-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 10px;
    background: rgb(255 255 255 / 0.06);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;

    &:hover {
        background: rgb(255 255 255 / 0.14);
    }

    & svg {
        width: 16px;
        height: 16px;
    }
}

.sale-popup__close:focus-visible,
.sale-popup__cta:focus-visible,
.sale-popup__later:focus-visible {
    outline: 2px solid #ff3d71;
    outline-offset: 2px;
}

.sale-popup__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 0 44px 48px;
}

.sale-popup__kicker {
    margin: 0;
    color: #ff8fb1;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sale-popup__title {
    margin: 18px 0 0;
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;

    & mark {
        padding: 0 0.15em;
        background: #ff3d71;
        color: #0b0a10;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    & span {
        display: block;
        margin-top: 10px;
        color: rgb(255 255 255 / 0.7);
        font-size: 22px;
        font-weight: 500;
        letter-spacing: -0.01em;
    }
}

.sale-popup__countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin: 36px 0 0;
    color: rgb(255 255 255 / 0.5);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    & b {
        margin-right: 4px;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 0;
        font-variant-numeric: tabular-nums;
    }
}

.sale-popup__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-top: 32px;
}

.sale-popup__cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    background: #fff;
    color: #0b0a10;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;

    &:hover {
        background: #ff3d71;
        color: #fff;
    }
}

.sale-popup__later {
    padding: 6px 2px;
    border: 0;
    background: none;
    color: rgb(255 255 255 / 0.55);
    font: inherit;
    font-size: 14px;
    cursor: pointer;

    &:hover {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

.sale-popup__art {
    position: relative;
    min-height: 240px;
}

.sale-popup__num {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    overflow: visible;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 3px #ff3d71) drop-shadow(0 0 14px rgb(255 61 113 / 0.6));

    & text {
        fill: none;
        stroke: #ff6b93;
        stroke-width: 2.5;
        font-family: Poppins, sans-serif;
        font-size: 128px;
        font-weight: 700;
        letter-spacing: -5px;
    }
}

.sale-popup__icon {
    position: absolute;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sale-popup__icon--gift {
    top: 20%;
    right: 16%;
    width: 46px;
    color: #8b7bff;
    transform: rotate(12deg);
    filter: drop-shadow(0 0 8px rgb(139 123 255 / 0.7));
}

.sale-popup__icon--send {
    bottom: 14%;
    left: 12%;
    width: 40px;
    color: #ff3d71;
    opacity: 0.8;
    transform: rotate(-16deg);
    filter: drop-shadow(0 0 10px rgb(255 61 113 / 0.6));
}

.sale-popup__icon--heart {
    top: 16%;
    left: 14%;
    width: 30px;
    color: #ff3d71;
    opacity: 0.55;
    transform: rotate(-12deg);
}

.sale-popup__icon--bell {
    right: 12%;
    bottom: 12%;
    width: 36px;
    color: #8b7bff;
    opacity: 0.7;
    transform: rotate(14deg);
    filter: drop-shadow(0 0 8px rgb(139 123 255 / 0.6));
}

@media (max-width: 720px) {
    .sale-popup__dialog {
        grid-template-columns: 1fr;
    }

    .sale-popup__art {
        order: -1;
        min-height: 150px;
    }

    .sale-popup__num {
        left: 50%;
        width: 62%;
    }

    .sale-popup__icon {
        display: none;
    }

    .sale-popup__body {
        min-height: 0;
        padding: 0 22px 26px;
    }

    .sale-popup__title {
        font-size: 32px;

        & span {
            font-size: 18px;
        }
    }

    .sale-popup__countdown {
        gap: 4px 12px;
        letter-spacing: 0.04em;

        & b {
            font-size: 20px;
        }
    }

    .sale-popup__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sale-popup__dialog,
    .sale-popup__backdrop {
        transition: opacity 0.2s ease;
    }

    .sale-popup__dialog {
        transform: none;
    }
}

/* ── Blog sidebar card ───────────────────────────────────────── */

/* Black Friday version of the sidebar card, in the pricing hero's style. */
#content .bf-card {
    margin-top: 24px;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(70% 45% at 50% 34%, rgba(255, 61, 113, 0.2), rgba(255, 61, 113, 0) 70%),
        #0b0a10;
    color: #fff;

    .bf-card__kicker {
        margin: 0;
        color: #ff8fb1;
        font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .bf-card__num {
        display: block;
        width: 82%;
        margin: 18px auto 10px;
        overflow: visible;
        filter: drop-shadow(0 0 3px #ff3d71) drop-shadow(0 0 14px rgba(255, 61, 113, 0.6));

        & text {
            fill: none;
            stroke: #ff6b93;
            stroke-width: 2.5;
            font-family: Poppins, sans-serif;
            font-size: 128px;
            font-weight: 700;
            letter-spacing: -5px;
            animation: bf-card-flicker 8s linear infinite;
        }
    }

    .bf-card__title {
        margin: 0;
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: -0.02em;

        & mark {
            padding: 0 0.15em;
            background: #ff3d71;
            color: #0b0a10;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone;
        }
    }

    .bf-card__countdown {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 12px;
        margin: 22px 0 0;
        color: rgba(255, 255, 255, 0.5);
        font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
        font-size: 11px;
        letter-spacing: 0.06em;
        text-transform: uppercase;

        & b {
            margin-right: 3px;
            color: #fff;
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0;
            font-variant-numeric: tabular-nums;
        }
    }

    .bf-card__cta {
        display: block;
        margin-top: 24px;
        padding: 13px 20px;
        border-radius: 10px;
        background: #fff;
        color: #0b0a10;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.15s ease, color 0.15s ease;

        &:hover {
            background: #ff3d71;
            color: #fff;
        }
    }
}

@keyframes bf-card-flicker {
    0%, 86%, 89%, 92%, 100% {
        opacity: 1;
    }

    87%, 91% {
        opacity: 0.35;
    }

    88% {
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content .bf-card .bf-card__num text {
        animation: none;
    }
}
