/* === Tokens ============================================================ */
:root {
    --font: 'Plus Jakarta Sans', sans-serif;

    --bg: #eef1f8;
    --card: #ffffff;
    --ink: #10131c;
    --ink-soft: #4b5266;
    --muted: #8a90a6;
    --line: #e3e6f0;

    --accent: #2f3aa3;
    --accent-ink: #ffffff;
    --accent-soft: #eef0fb;

    --good: #16814a;
    --good-soft: #eaf7f0;
    --bad: #b3261e;
    --bad-soft: #fdedec;

    --shadow: 0 20px 40px -24px rgba(16, 19, 28, 0.18);
    --radius: 18px;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* === Header ============================================================= */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.brand span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* === Layout ============================================================= */
main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

/* === Payment card ======================================================= */
.pay-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-frame {
    width: 100%;
    max-width: 300px;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.qr-frame canvas, .qr-frame img { width: 100%; height: auto; display: block; }
.qr-frame .loading {
    aspect-ratio: 1135 / 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    background: var(--accent-soft);
    line-height: 1.4;
}

.amount-label { color: var(--muted); font-size: 0.85rem; margin-top: 1.5rem; }
.amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 0.15rem; }

.pay-instructions { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.5; }

.pay-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.5rem;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #262f8c; }
.btn svg { width: 16px; height: 16px; }

/* === Pricing card ======================================================= */
.pricing-card {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pricing-head {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.pricing-head h2 { font-size: 1.05rem; font-weight: 800; }
.pricing-head p { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.pricing-price { font-size: 1.4rem; font-weight: 800; white-space: nowrap; }

.pricing-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pricing-col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.mark {
    flex: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0.05rem;
}
.mark.good { background: var(--good-soft); color: var(--good); }
.mark.bad { background: var(--bad-soft); color: var(--bad); }
.mark svg { width: 11px; height: 11px; }

/* === Footer ============================================================= */
.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    padding: 1.5rem 1rem 2rem;
}
.site-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }

/* === Responsive ========================================================= */
@media (max-width: 560px) {
    .pricing-body { grid-template-columns: 1fr; }
    .amount { font-size: 2.1rem; }
}
