.vps-purchase {
    font-family: var(--site-font-family);
}

.vps-purchase .server-selection__panel {
    padding: 0;
    background:
        radial-gradient(ellipse at 76% 28%, var(--surface-hero-glow), transparent 68%),
        var(--surface-section-dark);
    text-align: start;
}

.vps-purchase__main {
    display: grid;
    align-items: center;
    gap: var(--space-5);
    padding: clamp(var(--space-5), 4vw, 60px);
}

.vps-purchase .page-section__title {
    font-family: inherit;
    font-size: clamp(2rem, 1.3rem + 3.2vw, 4.5rem);
    font-weight: var(--type-display-weight);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.vps-purchase .page-section__title span {
    display: block;
    color: var(--text-hero-accent);
}

.vps-purchase__lead,
.vps-purchase__billing,
.vps-purchase__support p {
    margin: 0;
    color: var(--text-on-dark-muted);
}

.vps-purchase__lead {
    max-width: 34ch;
    margin-block-start: var(--space-4);
    font-size: var(--type-lead);
    line-height: 1.5;
    text-wrap: pretty;
}

.vps-purchase__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    color: var(--text-on-dark-muted);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.vps-purchase__price strong {
    color: var(--text-on-dark);
    font-size: clamp(2.2rem, 1.45rem + 3vw, 3.65rem);
    font-weight: var(--type-display-weight);
    letter-spacing: -0.035em;
}

.vps-purchase__billing {
    margin-block-start: var(--space-1);
    font-size: 0.875rem;
}

.vps-purchase__cta {
    gap: var(--space-3);
    min-height: 56px;
    width: min(100%, 19rem);
    margin-block-start: var(--space-5);
}

.vps-purchase__art {
    position: relative;
    isolation: isolate;
    width: min(100%, 550px);
    justify-self: center;
}

.vps-purchase__art::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--dot-pattern) center / var(--dot-pattern-size) var(--dot-pattern-size);
    mask-image: radial-gradient(ellipse, #000 10%, transparent 68%);
    opacity: 0.24;
    pointer-events: none;
    content: "";
}

.vps-purchase__art svg {
    display: block;
    width: 100%;
    height: auto;
}

.vps-purchase__support {
    display: grid;
    justify-items: start;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-5) clamp(var(--space-5), 4vw, 60px);
    border-block-start: 1px solid var(--border-dark);
    border-radius: 0 0 var(--radius-shell) var(--radius-shell);
    background: color-mix(in srgb, var(--surface-section-deep) 82%, transparent);
    scroll-margin-top: 90px;
}

.vps-purchase__support h3 {
    margin: 0 0 var(--space-1);
    color: var(--text-on-dark);
    font-size: 1.125rem;
    font-weight: var(--type-section-weight);
}

.vps-purchase__support p {
    max-width: 65ch;
    font-size: var(--type-navigation);
    line-height: 1.55;
    text-wrap: pretty;
}

.vps-boot__halo {
    opacity: 0.86;
}

.vps-boot__rim {
    opacity: 0.46;
}

.vps-boot__signal {
    stroke: #d8ffe3;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 24 100;
    stroke-dashoffset: 24;
    opacity: 0;
}

.vps-boot__signal--amber {
    stroke: #ffe0b7;
}

.vps-boot__led {
    opacity: 0.8;
}

@media (min-width: 800px) {
    .vps-purchase__main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
}

@media (min-width: 640px) {
    .vps-purchase__support {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: var(--space-5);
    }
}

@media (prefers-reduced-motion: no-preference) {
    [data-boot-started] .vps-boot__switch {
        animation: vps-boot-switch 500ms ease-out both;
    }

    [data-boot-started] .vps-boot__signal {
        animation: vps-boot-signal 850ms 180ms ease-in-out both;
    }

    [data-boot-started] .vps-boot__signal--output {
        animation-delay: 870ms;
    }

    [data-boot-started] .vps-boot__signal--amber {
        animation-delay: 1130ms;
    }

    [data-boot-started] .vps-boot__halo,
    [data-boot-started] .vps-boot__rim {
        animation: vps-boot-glow 1000ms 520ms ease-out both;
    }

    [data-boot-started] .vps-boot__led {
        --vps-led-delay: 700ms;

        animation:
            vps-boot-led-on 190ms var(--vps-led-delay) both,
            vps-boot-led-idle 3.9s calc(var(--vps-led-delay) + 190ms) ease-in-out infinite;
        animation-play-state: running, paused;
    }

    [data-boot-started] .vps-boot__led:nth-child(2) {
        --vps-led-delay: 920ms;
    }

    [data-boot-started] .vps-boot__led--status {
        --vps-led-delay: 1150ms;
    }

    [data-boot-in-view] .vps-boot__led {
        animation-play-state: running, running;
    }
}

@keyframes vps-boot-switch {
    0% { filter: none; }
    45% { filter: drop-shadow(0 0 10px #9affbb); }
    100% { filter: drop-shadow(0 0 3px #79c694); }
}

@keyframes vps-boot-signal {
    0% { opacity: 0; stroke-dashoffset: 24; }
    20%, 70% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: -100; }
}

@keyframes vps-boot-glow {
    from { opacity: 0.12; }
}

@keyframes vps-boot-led-on {
    from { opacity: 0.11; }
    to { opacity: 0.9; }
}

@keyframes vps-boot-led-idle {
    0%, 100% { opacity: 0.9; }
    40% { opacity: 0.55; }
    58% { opacity: 1; }
}
