:root {
    --bg-dark: #070d1c;
    --bg-dark-secondary: #151d33;
    --primary: #4FA3FF;
    --primary-hover: #4fa3ff80;
    --secondary: #2FD37A;
    --secondary-dark: #10794a;
    --text-primary: #FBFBFB;
    --text-primary-muted: #D3D8E2;
    --text-secondary: #070d1c;
    --max-width: 1200px;

    --header-h: 76px;
    --gutter: clamp(8px, 4.5vw, 75px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    padding-inline: var(--gutter);
    background: var(--bg-dark);
    color: var(--text-primary-muted);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
}

main,
.page-foot {
    max-width: var(--max-width);
    margin-inline: auto;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

p a,
.tick-list a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s ease;
}

p a:hover,
.tick-list a:hover {
    color: var(--secondary);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    text-wrap: balance;
    color: var(--text-primary);
}

h2 {
    margin: 0 0 24px;
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.1;
    text-wrap: balance;
    color: var(--text-primary);
}

h3 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    line-height: 1.2;
    color: var(--text-primary);
}

.title-kicker {
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2rem);

    line-height: 1.15;
    color: var(--secondary);
}

p {
    margin: 0 0 12px;
    max-width: 90ch;
    text-wrap: pretty;
}

.off-screen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.jump-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: var(--bg-dark-secondary);
    color: var(--text-primary);
    font-weight: 600;
    transform: translateY(-250%);
}

.jump-link:focus {
    transform: translateY(0);
}

main:focus {
    outline: none;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    height: 50px;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--text-secondary);
    font-weight: 700;
    text-align: center;
    text-wrap: nowrap;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cta--compact {
    min-width: 100px;
    height: 42px;
    padding: 10px 16px;
    font-size: 14px;
}

.cta--ghost {
    background-color: transparent;
    color: var(--text-primary);
    border: 2.5px var(--primary) solid;
}

@media (min-width: 650px) {
    .cta:hover {
        transform: translateY(-2px);
        background-color: var(--secondary);
        color: var(--text-primary);
        box-shadow: 0 2px 8px var(--primary-hover), 0 0 16px var(--secondary-dark);
    }

    .cta--ghost:hover {
        background-color: var(--secondary-dark);
        border-color: var(--secondary);
    }
}

.cta[onclick*="'1win'"] {
    position: relative;

    overflow: hidden;
}

.cta[onclick*="'1win'"]::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);

    transform: translateX(-160%) skewX(-20deg);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .cta[onclick*="'1win'"]::after {
        animation: cta-sheen 4s ease-in-out infinite;
    }
}

@keyframes cta-sheen {
    0% {
        transform: translateX(-160%) skewX(-20deg);
    }

20% {
        transform: translateX(360%) skewX(-20deg);
    }

    100% {
        transform: translateX(360%) skewX(-20deg);
    }
}

.rule-gap {
    height: 120px;
}

.gap-lg {
    height: 80px;
}

.gap-sm {
    height: 40px;
}

@media (max-width: 650px) {
    .rule-gap {
        height: 80px;
    }

    .gap-lg {
        height: 40px;
    }

    .gap-sm {
        height: 24px;
    }
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: max(var(--gutter), calc((100% + var(--gutter) * 2 - var(--max-width)) / 2));
    background: var(--bg-dark);
    border-bottom: 1px solid var(--bg-dark-secondary);
}

.masthead__mark {
    width: auto;
    height: 40px;
}

.masthead__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.masthead__links {
    display: flex;
    gap: 12px;
}

@media (max-width: 1000px) {
    :root {
        --header-h: 68px;
    }

    .masthead__mark {
        height: 36px;
    }

    .masthead__links {
        gap: 8px;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 60px;
    }

    .masthead__mark {
        height: 30px;
    }

    .cta--compact {
        min-width: 0;
        height: 36px;
        padding: 8px 12px;
        gap: 6px;
        font-size: 13px;
    }

    .cta--compact .out-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 380px) {
    .masthead__mark {
        height: 26px;
    }

    .cta--compact {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.overview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
}

.overview__copy p {
    margin-block: clamp(24px, 3vw, 40px);
}

.cta-row {
    display: flex;
    gap: 16px;
    margin-block-end: 16px;
}

.overview__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.overview__tags span {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px var(--primary) solid;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.overview__figure {
    margin: 0;
}

.overview__art {
    width: 100%;
    border-radius: 22px;
}

@media (max-width: 750px) {
    .overview__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .overview__copy p {
        margin-block: 24px;
    }
}

@media (max-width: 500px) {
    .cta-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cta-row .cta {
        flex-grow: 1;
        padding: 8px 14px;
    }
}

.step-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: step;
}

.step-cards li {
    counter-increment: step;
    padding: 20px;
    border-radius: 8px;
    border: 1px var(--bg-dark-secondary) solid;
    background-image: linear-gradient(to bottom, var(--bg-dark-secondary), var(--bg-dark));
}

.step-cards li::before {
    content: counter(step);
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--secondary);
}

.step-cards p {
    margin: 0;
    font-size: 15px;
}

@media (max-width: 950px) {
    .step-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .step-cards {
        grid-template-columns: 1fr;
    }
}

.cta-center {
    display: flex;
    justify-content: center;
}

.shot {
    margin: 0;
}

.shot img,
.wide-art {
    width: 100%;
    border-radius: 12px;
}

.shot--tall img {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

.shot figcaption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    text-wrap: pretty;
    opacity: .7;
}

.fact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 64px;
    margin: 0;
}

.fact-list__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-dark-secondary);
}

.fact-list dt {
    color: var(--text-primary-muted);
}

.fact-list dd {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 700px) {
    .fact-list {
        grid-template-columns: 1fr;
    }
}

.aside-note {
    margin: 0 0 24px;
    padding-inline-start: 24px;
    border-left: 4px solid var(--secondary);
    border-radius: 4px;
}

@media (max-width: 550px) {
    .aside-note {
        padding-inline-start: 16px;
    }
}

.wide-art {
    max-width: 900px;
    margin-inline: auto;
}

.panel-box {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 12px;
    border: 1px var(--bg-dark-secondary) solid;
    background-image: linear-gradient(to bottom, var(--bg-dark-secondary), var(--bg-dark));
}

.panel-box p:last-child {
    margin-bottom: 0;
}

.page-foot {
    margin-top: 4rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--text-primary-muted);
    font-size: .9rem;
    text-align: center;
}

.foot-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.foot-mark {
    font-size: 1.5rem;
    line-height: 1;
}

.foot-name {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
}

.foot-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.foot-meta p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
}

.foot-meta p.foot-legal {
    display: block;
}

.foot-meta svg {
    flex-shrink: 0;
    color: var(--text-primary-muted);
}

.foot-legal a {
    color: var(--text-primary-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.foot-legal a:hover {
    color: var(--text-primary);
}

.foot-mail a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.foot-mail a:hover {
    text-decoration: underline;
}

.foot-verify {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .5rem;
    padding: .35rem .9rem;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.foot-verify:hover {

    background: var(--primary);
    color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -8px var(--primary);
}

.foot-verify:active {
    transform: translateY(0);
}

.foot-verify svg {
    color: currentColor;
}

.locale-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    padding: 0 0 1rem;
    margin: 0 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.locale-list a,
.locale-list .is-current {
    display: inline-block;
    padding: .5rem 1rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: var(--text-primary-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
}

.locale-list a:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.locale-list .is-current {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 163, 255, .1);
    cursor: default;
}

.foot-links {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.foot-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    padding: 0;
    margin: 0;
}

.foot-links a {
    color: var(--text-primary-muted);
    text-decoration: none;
    font-weight: 600;
}

.foot-links a:hover {
    color: var(--text-primary);
}

.foot-links a.is-current {
    color: var(--primary);
}

.foot-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.foot-base__copy {
    min-width: 0;
}

.foot-base__mark {
    flex: none;
    width: 200px;
}

.foot-copy {
    margin: 0 0 .75rem;
}

.foot-age,
.foot-note {
    max-width: 60ch;
    margin: 0 0 .75rem;
    font-size: .85rem;
}

.foot-note {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .foot-base {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .foot-base p {
        margin-inline: auto;
    }

    .foot-base__mark {
        width: 160px;
    }
}

.chapter-band {
    position: relative;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    padding-block: clamp(24px, 5vw, 56px);
    padding-inline: max(var(--gutter), (100vw - var(--max-width)) / 2);
    background:
        linear-gradient(to bottom, #070d1c33, var(--bg-dark)),
        url('/images/moneyplane-background-clouds.webp') center / cover no-repeat;
}

.table-scroll {
    overflow-x: auto;
    margin-bottom: 16px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-dark-secondary);
    white-space: nowrap;
}

.spec-table thead th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--secondary);
}

.spec-table tbody th {
    font-weight: 700;
    color: var(--text-primary);
}

.clip-wrap {
    max-width: 800px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.clip-wrap video {
    display: block;
    width: 100%;
    height: auto;
}

.ordered-steps {
    counter-reset: install-step;
    max-width: 90ch;
}

.ordered-steps li {
    position: relative;
    counter-increment: install-step;
    margin-bottom: 12px;
    padding-left: 40px;
}

.ordered-steps li::before {
    content: counter(install-step);
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-dark-secondary);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.qa-list details {
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px var(--bg-dark-secondary) solid;
    background-image: linear-gradient(to bottom, var(--bg-dark-secondary), var(--bg-dark));
}

.qa-list summary {
    position: relative;

    padding-right: 28px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    list-style: none;
}

.qa-list summary::-webkit-details-marker {
    display: none;
}

.qa-list summary::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform .15s;
}

.qa-list details[open] summary::after {
    transform: rotate(-135deg);
}

.qa-list details p {
    margin: 12px 0 0;
}

.chapter-band .overview__art {
    max-width: 380px;
    margin-inline: auto;
}

.chapter-band--center {
    text-align: center;
}

.chapter-band--center .overview__copy {
    max-width: 720px;
    margin-inline: auto;
}

.chapter-band--center .cta-row {
    justify-content: center;
}

.chapter-band--center p {
    margin-inline: auto;
}

.player__shell {
    margin-top: 40px;
    border: 1px solid var(--bg-dark-secondary);
    border-radius: 12px;
    background-color: var(--bg-dark-secondary);
    overflow: hidden;
}

.player__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px clamp(16px, 2vw, 24px);
}

.player__name {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--primary);
}

.player__studio {
    flex: none;
    width: 110px;
    height: auto;
    object-fit: contain;
}

.player__stage {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 9;
    border-block: 1px solid var(--bg-dark-secondary);
    background-color: var(--bg-dark);
    overflow: hidden;
}

.player__splash {
    position: relative;
    display: grid;
    place-items: center;
    padding-inline: clamp(16px, 4vw, 32px);

    isolation: isolate;
}

.player__backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.08);
}

.player__splash::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-color: rgb(7 13 28 / 45%);
}

.player__launch {
    min-width: min(100%, 420px);
    padding-block: 16px;
}

.player__embed {
    width: 100%;
    height: 100%;
    border: 0;
}

.player__foot {
    display: flex;
    align-items: center;
    gap: 16px clamp(16px, 2vw, 24px);
    padding: 16px clamp(16px, 2vw, 24px);
}

.player__pitch {
    display: grid;

    margin: 0 auto 0 0;
}

.player__pitch-title {
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text-primary);
}

.player__pitch-sub {
    font-size: .875rem;
    opacity: .7;
}

.player__go {
    flex: none;
    height: 42px;
    padding: 10px 18px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .player__foot {
        flex-wrap: wrap;
    }

    .player__pitch {
        flex: 1 0 100%;
        margin-inline: 0;
    }

    .player__go {
        flex: 1 0 100%;
    }
}

@media (max-width: 549.98px) {
    .player__stage {
        aspect-ratio: 9 / 16;
    }

    .player__studio {
        display: none;
    }
}

.perk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.perk-grid li {
    padding: 20px;
    border-radius: 8px;
    border: 1px var(--bg-dark-secondary) solid;
    background-image: linear-gradient(to bottom, var(--bg-dark-secondary), var(--bg-dark));
}

.perk-grid p {
    margin: 0;
    font-size: 15px;
}

@media (max-width: 950px) {
    .perk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .perk-grid {
        grid-template-columns: 1fr;
    }
}

.out-icon {
    flex: none;
    transition: transform 0.15s ease;
}

@media (min-width: 650px) {

    .cta:hover .out-icon,
    p a:hover .out-icon,
    .tick-list a:hover .out-icon {
        transform: translate(2px, -2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .out-icon {
        transition: none;
    }

    .cta:hover .out-icon,
    p a:hover .out-icon,
    .tick-list a:hover .out-icon {
        transform: none;
    }
}

.out-icon--inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 3px;
    vertical-align: -2px;
}

.contents details {
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px var(--bg-dark-secondary) solid;
    background-image: linear-gradient(to bottom, var(--bg-dark-secondary), var(--bg-dark));
}

.contents summary {
    position: relative;
    padding-right: 28px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    list-style: none;
}

.contents summary::-webkit-details-marker {
    display: none;
}

.contents summary::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.15s;
}

.contents details[open] summary::after {
    transform: rotate(-135deg);
}

.contents ol {
    counter-reset: toc;
    margin-top: 12px;
}

.contents li {
    margin-bottom: 6px;
}

.contents a {
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--primary);
}

.contents a:hover {
    color: var(--secondary);
}

.round-steps {
    counter-reset: how;
    display: grid;
    gap: 16px;
}

.round-steps > li {
    counter-increment: how;
    padding: 24px;
    border-radius: 8px;
    border: 1px var(--bg-dark-secondary) solid;
    background-image: linear-gradient(to bottom, var(--bg-dark-secondary), var(--bg-dark));
}

.round-steps > li::before {
    content: "Step " counter(how);
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--secondary);
}

:root:lang(id) .round-steps > li::before { content: "Langkah " counter(how); }
:root:lang(de) .round-steps > li::before { content: "Schritt " counter(how); }
:root:lang(es) .round-steps > li::before { content: "Paso " counter(how); }
:root:lang(fr) .round-steps > li::before { content: "Étape " counter(how); }
:root:lang(pt-BR) .round-steps > li::before { content: "Passo " counter(how); }
:root:lang(ru) .round-steps > li::before { content: "Шаг " counter(how); }
:root:lang(th) .round-steps > li::before { content: "ขั้นตอนที่ " counter(how); }
:root:lang(vi) .round-steps > li::before { content: "Bước " counter(how); }

.round-steps > li,
.contents ~ section[id],
section[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.round-steps p:last-child {
    margin-bottom: 0;
}

.tick-list {
    display: grid;
    gap: 12px;
    max-width: 90ch;
    margin-bottom: 12px;
}

.tick-list li {
    padding-left: 20px;
    position: relative;
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
}

.tick-list strong {
    color: var(--text-primary);
}
