/* ============================================================
   pay.dilsaver.com — Josh Dilsaver payment links
   PayPal · Cash App · Venmo, each with a scannable QR code
   ============================================================ */

:root {
    --ink: #111827;
    --ink-soft: #4b5563;
    --ink-faint: #9ca3af;
    --card-bg: #ffffff;
    --page-max: 1120px;
    --radius: 20px;
    --shadow: 0 10px 25px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.06);
    --shadow-hover: 0 18px 35px rgba(17, 24, 39, 0.13), 0 4px 10px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 48px 20px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(600px 400px at 15% 0%, rgba(0, 112, 186, 0.10), transparent 60%),
        radial-gradient(600px 400px at 85% 10%, rgba(0, 214, 50, 0.08), transparent 60%),
        radial-gradient(700px 500px at 50% 100%, rgba(0, 140, 255, 0.08), transparent 60%),
        linear-gradient(160deg, #f8fafc 0%, #eef2f7 55%, #e6ebf2 100%);
    background-attachment: fixed;
}

.page {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
}

/* ---------- Profile ---------- */

.profile {
    text-align: center;
    margin-bottom: 36px;
}

.profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
    margin-bottom: 16px;
}

.profile h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tagline {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ---------- Payment cards ---------- */

/* Three vertical columns, left to right: PayPal · Cash App · Venmo */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.card {
    --brand: #111827;
    --brand-dark: #111827;
    --brand-soft: #f3f4f6;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    height: 100%;
    padding: 28px 22px 26px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card.paypal  { --brand: #0070ba; --brand-dark: #005ea6; --brand-soft: #eaf4fb; }
.card.cashapp { --brand: #00d632; --brand-dark: #00b32a; --brand-soft: #e9fbec; }
.card.venmo   { --brand: #008cff; --brand-dark: #0074d6; --brand-soft: #eaf5ff; }

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.card-info h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* All three logos match: white glyph on a solid brand-colour tile.
   (Venmo's glyph is an inline SVG — Font Awesome 6.4 has no Venmo
   icon at all, which is why it originally rendered invisible.) */
.card-info h2 i,
.card-info h2 .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: var(--brand);
    color: #ffffff;
    font-size: 19px;
}

.card-info h2 .brand-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.handle {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--ink-soft);
    word-break: break-all;
}

.handle strong {
    color: var(--ink);
    font-weight: 650;
}

/* Pay button */

.pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 0;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-btn i {
    font-size: 12.5px;
    opacity: 0.9;
}

.pay-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 9px 18px rgba(17, 24, 39, 0.22);
}

.pay-btn:active {
    transform: translateY(0);
}

.cashapp .pay-btn {
    /* Keep white text readable on the bright green */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* QR code tile — always on white so any scanner can read it */

.qr {
    flex: 0 0 auto;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 10px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
}

.qr img {
    display: block;
    width: 132px;
    height: 132px;
}

.qr span {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.footer {
    margin-top: 34px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-faint);
}

.footer i {
    margin-right: 5px;
    font-size: 11.5px;
}

/* ---------- Focus (keyboard) ---------- */

a:focus-visible {
    outline: 3px solid var(--brand, #0070ba);
    outline-offset: 3px;
    border-radius: 8px;
}

.qr:focus-visible {
    outline-color: var(--brand);
}

/* ---------- Narrow screens: columns stack back into one ---------- */

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    body {
        padding: 36px 16px 32px;
    }

    .card {
        gap: 18px;
        padding: 24px 20px 26px;
    }

    .handle {
        margin-bottom: 16px;
    }

    .qr img {
        width: 168px;
        height: 168px;
    }
}

/* ---------- Dark mode ---------- */

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f3f4f6;
        --ink-soft: #b6bfcc;
        --ink-faint: #8b94a3;
        --card-bg: #171e2a;
        --shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 18px 35px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
    }

    body {
        background:
            radial-gradient(600px 400px at 15% 0%, rgba(0, 112, 186, 0.16), transparent 60%),
            radial-gradient(600px 400px at 85% 10%, rgba(0, 214, 50, 0.10), transparent 60%),
            linear-gradient(160deg, #0d1320 0%, #111827 60%, #0b1120 100%);
    }

    .profile-img {
        border-color: #1f2937;
    }

    .card {
        border-color: rgba(255, 255, 255, 0.07);
        border-top-color: var(--brand);
    }

    .handle strong {
        color: var(--ink);
    }

    /* .qr intentionally stays white — QR scanners need the contrast */
    .qr span {
        color: #4b5563;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .card,
    .pay-btn,
    .qr {
        transition: none;
    }

    .card:hover,
    .pay-btn:hover {
        transform: none;
    }
}
