/* ==========================================================================
   Points Mall — public landing page
   Plain CSS, no build step required. Mirrors the admin.css convention.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #fdf2f6;
    --surface: #ffffff;
    --text: #1f2430;
    --muted: #6b7280;
    --accent: #e11d48;
    --accent-strong: #be123c;
    --accent-soft: #fff1f4;
    --accent-border: #fecdd3;
    --border: #e5e7eb;
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(190, 18, 60, 0.25);
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
}

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

.wrap {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #f472b6);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(225, 29, 72, 0.35);
    outline-offset: 2px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #f43f5e);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--accent-strong), #e11d48);
}

.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: var(--bg-soft);
}

.btn-status {
    cursor: default;
    color: var(--success);
    background: var(--success-bg);
    border-color: var(--success-border);
}

.btn-status.is-degraded {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    text-align: center;
    background:
        radial-gradient(720px 340px at 15% -10%, rgba(244, 63, 94, 0.10), transparent 65%),
        radial-gradient(720px 340px at 85% -10%, rgba(168, 85, 247, 0.09), transparent 65%),
        linear-gradient(180deg, #fffafc 0%, #ffffff 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    max-width: 640px;
    margin: 0 auto 34px;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
}

/* Earn → Collect → Redeem illustration */

.flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 14px;
    width: min(860px, 100%);
    margin: 56px auto 0;
    text-align: left;
}

.flow-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.flow-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.flow-card h3 {
    font-size: 16px;
    font-weight: 700;
}

.flow-card p {
    font-size: 13.5px;
    color: var(--muted);
}

.flow-arrow {
    align-self: center;
    color: var(--accent);
    opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 88px 0;
}

.section-alt {
    background:
        radial-gradient(600px 280px at 50% 0%, rgba(244, 63, 94, 0.05), transparent 70%),
        var(--bg-soft);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.15;
}

.section-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
}

/* How it works — connected timeline */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 30px);
    right: calc(12.5% + 30px);
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--accent-border) 0 8px,
        transparent 8px 16px
    );
}

.step {
    position: relative;
    padding: 26px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #f43f5e);
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    box-shadow: 0 0 0 6px var(--bg-soft), var(--shadow-sm);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step > p {
    font-size: 14.5px;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.chip {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.site-footer {
    background: #171a21;
    color: #d1d5db;
    padding: 56px 0 36px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
    color: #fff;
}

.footer-brand p {
    margin-top: 12px;
    max-width: 380px;
    font-size: 14px;
    color: #9ca3af;
}

.footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    color: #d1d5db;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #fb7185;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    font-size: 13.5px;
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        animation: fadeUp 0.7s ease both;
    }

    .fade-up.d1 { animation-delay: 0.08s; }
    .fade-up.d2 { animation-delay: 0.16s; }
    .fade-up.d3 { animation-delay: 0.24s; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero {
        padding: 72px 0 56px;
    }

    /* Flow becomes a vertical journey */
    .flow {
        grid-template-columns: 1fr;
        gap: 0;
        width: min(480px, 100%);
    }

    .flow-arrow {
        justify-self: center;
        padding: 4px 0;
        transform: rotate(90deg);
    }

    /* Timeline becomes 2 columns; connector hidden */
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .wrap {
        width: calc(100% - 36px);
    }

    .section {
        padding: 64px 0;
    }

    .site-header .btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    /* Single-column timeline with a left rail */
    .steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .step {
        display: grid;
        grid-template-columns: 54px 1fr;
        column-gap: 16px;
    }

    .step-num {
        grid-row: 1 / span 2;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .step h3,
    .step > p {
        grid-column: 2;
    }

    .chips {
        grid-column: 2;
        margin-top: 10px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 28px;
    }
}
