* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    color: #f5f7f8;
    background: #101418;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.payment-topbar {
    min-height: 72px;
    padding: 8px max(18px, calc((100vw - 1120px) / 2));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(74, 222, 128, .55);
    background: rgba(18, 24, 28, .95);
    backdrop-filter: blur(14px);
}

.payment-topbar img {
    height: 50px;
    display: block;
}

.payment-topbar a {
    color: #c8d0d5;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.payment-topbar > a:last-child {
    justify-self: end;
}

.payment-topbar a:hover {
    color: #86efac;
    transform: translateY(-1px);
}

main {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 84px 22px 100px;
}

.payment-hero {
    max-width: 850px;
    padding: 20px 0 96px;
}

.eyebrow,
.section-heading > span,
.section-kicker {
    color: #4ade80;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-hero h1 {
    margin-top: 16px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.08;
}

.payment-hero > p {
    max-width: 760px;
    margin-top: 22px;
    color: #b8c2c9;
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.help-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-actions a,
.help-actions a,
.official-links a {
    min-height: 46px;
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3d474e;
    border-radius: 6px;
    background: #252d33;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.hero-actions .primary-link,
.help-actions .primary-link {
    border-color: #22c55e;
    background: #15803d;
}

.hero-actions a:hover,
.help-actions a:hover,
.official-links a:hover {
    border-color: #4ade80;
    background: #303a40;
    transform: translateY(-2px);
}

.hero-notice {
    margin-top: 34px;
    padding: 16px 18px;
    border-left: 3px solid #fbbf24;
    background: rgba(251, 191, 36, .08);
    color: #d7dde1;
    line-height: 1.7;
}

.hero-notice strong {
    color: #fde68a;
}

.payment-flow,
.status-section,
.store-section,
.automatic-section,
.help-section,
.official-links {
    padding: 72px 0;
    border-top: 1px solid #30383e;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.automatic-section h2,
.official-links h2 {
    margin-top: 8px;
    font-size: clamp(27px, 4vw, 40px);
}

.flow-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #364047;
    border-bottom: 1px solid #364047;
}

.flow-list li {
    min-width: 0;
    padding: 26px 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    border-right: 1px solid #364047;
}

.flow-list li:last-child {
    border-right: 0;
}

.flow-list b {
    color: #4ade80;
    font: 900 13px/1 ui-monospace, Consolas, monospace;
}

.flow-list strong,
.flow-list span {
    display: block;
}

.flow-list strong {
    margin-bottom: 9px;
    color: #fff;
    font-size: 16px;
}

.flow-list span {
    color: #9faab1;
    font-size: 13px;
    line-height: 1.7;
}

.status-table {
    border-top: 1px solid #384148;
}

.status-table > div {
    padding: 19px 2px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid #30383e;
}

.status-table strong {
    color: #fff;
}

.status-table span {
    color: #a8b2b9;
    font-size: 14px;
    line-height: 1.6;
}

.status-table b {
    color: #fbbf24;
    font-size: 13px;
    text-align: right;
}

.status-table .is-success b {
    color: #4ade80;
}

.status-table .is-expired b {
    color: #f87171;
}

.store-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
}

.store-layout ol {
    padding-left: 24px;
    display: grid;
    gap: 16px;
    color: #d0d6da;
    line-height: 1.75;
}

.store-layout li::marker {
    color: #4ade80;
    font-weight: 900;
}

.store-layout aside {
    padding-left: 24px;
    display: grid;
    align-content: start;
    gap: 14px;
    border-left: 2px solid #22c55e;
}

.store-layout aside strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 18px;
}

.store-layout aside span {
    color: #aab4ba;
    font-size: 13px;
    line-height: 1.55;
}

.automatic-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
    align-items: center;
    gap: 60px;
}

.automatic-section p,
.help-section p {
    margin-top: 17px;
    color: #aeb8be;
    line-height: 1.8;
}

.automatic-route {
    padding: 30px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #33463b;
    border-radius: 7px;
    background: #15241b;
}

.automatic-route span {
    color: #dcfce7;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.automatic-route b {
    color: #4ade80;
}

.help-section {
    max-width: 860px;
}

.official-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.official-links h2 {
    width: 100%;
    margin-bottom: 14px;
}

footer {
    padding: 24px;
    border-top: 1px solid #2b3237;
    color: #707b82;
    background: #0b0e11;
    text-align: center;
    font-size: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-list li:nth-child(2) {
        border-right: 0;
    }

    .flow-list li:nth-child(-n+2) {
        border-bottom: 1px solid #364047;
    }

    .store-layout,
    .automatic-section {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}

@media (max-width: 620px) {
    main {
        padding: 52px 16px 72px;
    }

    .payment-topbar {
        min-height: 60px;
        padding: 7px 14px;
    }

    .payment-topbar img {
        height: 38px;
    }

    .payment-topbar a {
        font-size: 12px;
    }

    .payment-hero {
        padding-bottom: 68px;
    }

    .payment-hero > p {
        font-size: 16px;
    }

    .payment-flow,
    .status-section,
    .store-section,
    .automatic-section,
    .help-section,
    .official-links {
        padding: 54px 0;
    }

    .flow-list {
        grid-template-columns: 1fr;
    }

    .flow-list li,
    .flow-list li:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #364047;
    }

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

    .status-table > div {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .status-table b {
        text-align: left;
    }

    .automatic-route {
        padding: 22px 14px;
        flex-wrap: wrap;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
