:root {
    --text: #f2f2f2;
    --text-dim: #b4b4b4;
    --text-faint: #8a8a8a;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #22c55e;
    --frame: #111;
    --page-width: 1040px;
    --display: "Space Grotesk", Helvetica, Arial, sans-serif;
    --text-width: 640px;
}

.receipts-page {
    color: var(--text);
    padding: 0 16px 80px;
}

.receipts-page h1, .receipts-page h2, .receipts-page h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.receipts-page p, .receipts-page li {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.receipts-page a {
    color: var(--text);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.receipts-page a:hover {
    color: var(--accent);
}

/* ── Header ─────────────────────────────────────── */
.receipts-nav {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 24px 0;
    font-family: var(--display);
    font-size: 1.1rem;
}

.receipts-nav a {
    color: var(--text-faint);
    text-decoration: none;
}

.receipts-header {
    max-width: var(--text-width);
    margin: 40px auto 48px;
    text-align: center;
}

.receipts-header h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
}

.receipts-header p {
    margin-bottom: 24px;
}

.receipts-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.receipts-page .receipts-links a {
    font-family: var(--display);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.receipts-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.receipts-page .receipts-links a:hover {
    border-color: var(--accent);
}

/* ── Sections ───────────────────────────────────── */
.feature {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 72px 0 0;
}

.feature-text {
    max-width: var(--text-width);
    margin: 0 auto 40px;
}

.feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-text p + p {
    margin-top: 12px;
}

.feature-text ul {
    margin: 12px 0 0 22px;
}

/* ── Browser frame (desktop screenshots) ────────── */
.browser {
    max-width: var(--page-width);
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #3a3a3a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.browser-bar {
    display: flex;
    gap: 7px;
    padding: 12px 14px;
}

.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #5c5c5c;
}

.browser img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Hero: desktop shot with the phone video overlapping it ── */
.hero-stage {
    position: relative;
    max-width: var(--page-width);
    margin: 0 auto;
    padding-right: 120px;
}

.hero-phone {
    position: absolute;
    right: 0;
    bottom: -48px;
    width: 250px;
}

.phone video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 25px;
}

/* ── Phone frames ───────────────────────────────── */
.phones {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.phone {
    flex: 0 1 280px;
    min-width: 0;
    margin: 0;
}

.phone-body {
    border: 9px solid var(--frame);
    border-radius: 34px;
    overflow: hidden;
    background: var(--frame);
    box-shadow: 0 0 0 1px #3d3d3d, 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 25px;
}

.phone figcaption {
    margin-top: 14px;
    text-align: center;
    font-family: var(--display);
    font-size: 1rem;
    color: var(--text-faint);
}

/* ── Built with ─────────────────────────────────── */
.stack {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stack-heading {
    max-width: 900px;
}

.stack-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.stack-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 14%, transparent);
}

.stack-icon svg {
    width: 24px;
    height: 24px;
}

.receipts-page .stack-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text);
}

.receipts-page .stack-card p {
    font-size: 0.98rem;
    line-height: 1.55;
}

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

/* ── Small screens: phones become a swipeable row ── */
@media (max-width: 760px) {
    /* Hero: just the phone video, centered */
    .hero-stage {
        padding-right: 0;
    }

    .hero-stage .browser {
        display: none;
    }

    .hero-phone {
        position: static;
        width: 68%;
        margin: 0 auto;
    }

    .receipts-header h1 {
        font-size: 3rem;
    }

    .feature {
        padding-top: 56px;
    }

    .feature-text h2 {
        font-size: 1.8rem;
    }

    .phones {
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        margin: 0 -16px;
        padding: 0 16px 16px;
    }

    .phone {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .stack {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
