/* ========================================================================== 
   FlirtyVPN landing page. The illustrations are exported on pure white and
   intentionally live without frames so they merge into the page canvas.
   ========================================================================== */

.vpn-page {
    background: var(--color-surface);
}

.vpn-page::before {
    opacity: 0.12;
}

.vpn-page .content-main {
    width: min(100%, 82rem);
}

.vpn-page .content-section[id] {
    scroll-margin-top: 6.5rem;
}

/* Hero -------------------------------------------------------------------- */

.vpn-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "topbar topbar"
        "copy visual"
        "footer footer";
    align-items: center;
    column-gap: clamp(var(--space-6), 5vw, var(--space-9));
    row-gap: clamp(var(--space-5), 4vw, var(--space-7));
    padding: clamp(var(--space-5), 4vw, var(--space-8));
    background: var(--color-surface);
}

.vpn-hero::after {
    display: none;
}

.vpn-hero__topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

.vpn-hero__topbar .content-kicker {
    margin: 0;
}

.vpn-hero__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
}

.vpn-hero__actions .button {
    min-height: 3rem;
    white-space: nowrap;
}

.vpn-hero__content {
    grid-area: copy;
    position: relative;
    z-index: 1;
}

.vpn-hero__title {
    max-width: 13ch;
    font-size: clamp(2.5rem, 4.8vw, 4.65rem);
    line-height: 0.98;
    text-wrap: balance;
}

.vpn-hero__lead {
    max-width: 37rem;
    margin-top: var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

.vpn-hero__visual {
    grid-area: visual;
    align-self: stretch;
    min-height: 24rem;
}

.vpn-hero__visual,
.vpn-visual {
    display: grid;
    place-items: center;
    overflow: visible;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vpn-hero__visual img,
.vpn-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-surface);
}

.vpn-hero__footer {
    grid-area: footer;
    padding-top: clamp(var(--space-5), 3vw, var(--space-6));
    border-top: 1px solid var(--color-border);
}

.vpn-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
}

.vpn-proof__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.vpn-proof__value {
    display: block;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 0.94vw, var(--text-sm));
    font-weight: 800;
    line-height: var(--leading-snug);
    white-space: nowrap;
}

.vpn-proof__label {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

/* Shared editorial layouts ------------------------------------------------ */

.vpn-section-heading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(var(--space-6), 6vw, var(--space-9));
    margin-bottom: var(--space-7);
}

.vpn-section-heading > div,
.vpn-section-heading .content-section__intro {
    width: 100%;
    max-width: 35rem;
}

.vpn-section-heading .content-section__intro {
    justify-self: end;
    margin: 0;
    font-size: var(--text-lg);
}

.vpn-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(var(--space-7), 7vw, var(--space-9));
}

.vpn-split--reverse .vpn-visual {
    order: 2;
}

.vpn-visual {
    min-height: clamp(19rem, 34vw, 30rem);
}

.vpn-copy {
    width: 100%;
    max-width: 35rem;
    min-width: 0;
}

.vpn-split:not(.vpn-split--reverse) .vpn-copy {
    justify-self: end;
}

.vpn-split--balanced > * {
    width: 100%;
}

.vpn-split--balanced .vpn-copy {
    max-width: none;
}

.vpn-copy__title {
    font-size: clamp(1.8rem, 2.5vw, 2.65rem);
    line-height: var(--leading-tight);
    text-wrap: balance;
}

.vpn-copy__text {
    margin-top: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

.vpn-feature-list {
    display: grid;
    gap: 0;
    margin-top: var(--space-5);
}

.vpn-feature-list li {
    position: relative;
    padding: var(--space-3) 0 var(--space-3) 1.8rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--ink-700);
}

.vpn-feature-list li:last-child {
    border-bottom: 0;
}

.vpn-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 0.3rem var(--brand-50);
}

/* Connection steps -------------------------------------------------------- */

.vpn-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-7);
    counter-reset: vpn-step;
}

.vpn-step {
    position: relative;
    min-height: 14rem;
    padding: 5.25rem var(--space-5) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    counter-increment: vpn-step;
}

.vpn-step::before {
    content: counter(vpn-step, decimal-leading-zero);
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
}

.vpn-step__title {
    font-size: var(--text-lg);
}

.vpn-step__text {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* Plans ------------------------------------------------------------------- */

.vpn-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: clamp(var(--space-7), 6vw, var(--space-9));
}

.vpn-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: 0 20px 55px -48px rgb(4 4 7 / 0.55);
}

.vpn-plan::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.24rem;
    background: var(--ink-900);
}

.vpn-plan--featured {
    border-color: var(--brand-300);
    background: linear-gradient(160deg, var(--brand-50), var(--color-surface) 58%);
}

.vpn-plan--featured::before {
    background: var(--color-accent);
}

.vpn-plan__badge {
    align-self: flex-start;
    margin-bottom: var(--space-4);
    padding: 0.38rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--ink-900);
    color: var(--color-text-inverse);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
}

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

.vpn-plan__devices {
    margin-top: var(--space-2);
    color: var(--color-accent-hover);
    font-weight: var(--weight-bold);
}

.vpn-plan__list {
    display: grid;
    margin-top: var(--space-5);
    color: var(--color-text-muted);
}

.vpn-plan__list li {
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.vpn-plan__list li:last-child {
    border-bottom: 0;
}

.vpn-plan__list strong {
    color: var(--color-text);
}

.vpn-plan__action {
    margin-top: auto;
    padding-top: var(--space-5);
}

.vpn-plan__action .button {
    justify-content: center;
}

/* Editorial notices ------------------------------------------------------- */

.vpn-notice {
    display: grid;
    grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--space-4), 3vw, var(--space-6));
    margin-top: var(--space-6);
    padding: clamp(var(--space-5), 3vw, var(--space-6));
    border: 1px solid var(--color-border);
    border-left: 0.3rem solid var(--ink-900);
    border-radius: var(--radius-lg);
    background: linear-gradient(100deg, var(--color-surface-sunken), var(--color-surface));
}

.vpn-notice--accent {
    border-color: var(--brand-100);
    border-left-color: var(--color-accent);
    background: linear-gradient(100deg, var(--brand-50), var(--color-surface));
}

.vpn-notice__label {
    width: max-content;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--ink-900);
    color: var(--color-text-inverse);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vpn-notice--accent .vpn-notice__label {
    background: var(--color-accent);
}

.vpn-notice__title {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}

.vpn-notice__text {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* Rewards, documents and CTA --------------------------------------------- */

.vpn-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.vpn-reward {
    min-height: 11rem;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.vpn-reward__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
}

.vpn-reward__text {
    margin-top: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.vpn-support-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.vpn-support-actions .button {
    width: 100%;
    min-height: 3.5rem;
    justify-content: center;
    text-align: center;
}

.vpn-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6);
    overflow: hidden;
    padding: clamp(var(--space-6), 5vw, var(--space-8));
    border-radius: clamp(var(--radius-lg), 3vw, 2rem);
    background: var(--ink-900);
    color: var(--color-text-inverse);
}

.vpn-cta::after {
    content: "";
    position: absolute;
    top: -11rem;
    right: -7rem;
    width: 20rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgb(252 58 114 / 0.45);
    filter: blur(45px);
    pointer-events: none;
}

.vpn-cta__content,
.vpn-cta__action {
    position: relative;
    z-index: 1;
}

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

.vpn-cta__text {
    max-width: 42rem;
    margin-top: var(--space-3);
    color: var(--ink-300);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 72rem) {
    .vpn-support-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vpn-proof__value {
        font-size: var(--text-sm);
    }
}

@media (max-width: 62rem) {
    .vpn-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "visual"
            "copy"
            "footer";
    }

    .vpn-hero__visual {
        min-height: 0;
    }

    .vpn-hero__visual img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .vpn-hero__title {
        max-width: 16ch;
    }

    .vpn-section-heading,
    .vpn-split {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .vpn-section-heading > div,
    .vpn-section-heading .content-section__intro,
    .vpn-copy {
        max-width: 46rem;
        justify-self: start;
    }

    .vpn-split--reverse .vpn-visual {
        order: 0;
    }

    .vpn-visual {
        min-height: 0;
    }

    .vpn-visual img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .vpn-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .vpn-hero__topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .vpn-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vpn-hero__actions .button {
        width: 100%;
        justify-content: center;
    }

    .vpn-plan-grid,
    .vpn-steps,
    .vpn-reward-grid,
    .vpn-proof,
    .vpn-support-actions {
        grid-template-columns: 1fr;
    }

    .vpn-hero__title {
        font-size: clamp(1.9rem, 8.7vw, 2.55rem);
        line-height: 1.04;
    }

    .vpn-proof__item {
        display: grid;
        grid-template-columns: minmax(9.5rem, auto) 1fr;
        align-items: baseline;
        gap: var(--space-3);
    }

    .vpn-proof__value {
        font-size: 0.75rem;
    }

    .vpn-notice {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .vpn-plan,
    .vpn-step,
    .vpn-reward {
        min-height: 0;
    }

    .vpn-plan__action .button,
    .vpn-cta__action .button {
        width: 100%;
    }

    .vpn-cta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vpn-page *,
    .vpn-page *::before,
    .vpn-page *::after {
        scroll-behavior: auto !important;
    }
}
