.leftovers-page {
    --primary: #2E7D32;
    --surface: #ffffff;
    --background: #f7faf7;
    --text: #1f2937;
    --muted: #6b7280;
    --radius: 20px;

    background: var(--background);
    color: var(--text);

    font-family: system-ui, sans-serif;
}

.leftovers-page section {
    margin: 0 auto;
    max-width: 1290px;
    padding: 0 2rem;
}

.leftovers-page section + section {
    margin-top: 5rem;
}

.leftovers-page .leftovers-hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    min-height: 65vh;
    background: #ece4de;
}

.leftovers-page .hero-container {
    max-width: 1290px;
    width: 100%;
    margin: 0 auto;
    padding: 4.5rem 2rem 5rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.leftovers-page .leftovers-hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background-image: url("images/hero-image.png");
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
}

.leftovers-page .hero-text {
    position: relative;
    z-index: 1;
    width: max(42%, 370px);
    max-width: 100%;
}

.leftovers-page .hero-text h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    color: var(--text);
}

.leftovers-page .hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 2rem 0;
}

.leftovers-page .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.leftovers-page h1 {
    font-size: 32px;
}

.leftovers-page h2 {
    font-size: 24px;
}

.leftovers-page h3 {
    font-size: 1.17em;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.button-primary {
    background: var(--primary);
    color: white;
}

.button-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.button-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.button-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.phone-placeholder {
    aspect-ratio: 9 / 19;
    border-radius: 36px;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.features {
    display: grid;
    gap: 2rem;
}

.how-it-works {
    display: grid;
    gap: 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.features > h2,
.how-it-works > h2 {
    margin: 0;
    text-align: center;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    flex: 1;
    position: relative;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(46, 125, 50, .16);
    border-radius: 28px;
    background: var(--surface);
    text-align: center;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.step-arrow .material-symbols-rounded {
    font-size: 32px;
    font-variation-settings:
            'FILL' 0,
            'wght' 500,
            'GRAD' 0,
            'opsz' 32;
}

.step-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-icon {
    display: inline-flex;
    color: var(--primary);
    font-size: 72px;
    font-variation-settings:
            'FILL' 0,
            'wght' 500,
            'GRAD' 0,
            'opsz' 72;
}

.step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
}

.screenshot-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
}

.screenshot-card {
    aspect-ratio:9/19;
    background:var(--background);
    border-radius:0;
    overflow:hidden;
}

.screenshot-card img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.leftovers-page .cta {
    text-align: center;
    padding-bottom: 5rem;
}

.leftovers-page .cta .hero-buttons {
    justify-content: center;
}

@media (max-width: 900px) {
    .leftovers-page .hero-container {
        padding: 3.5rem 2rem 4rem;
    }

    .steps {
        flex-direction: column;
        gap: 1rem;
    }

    .step {
        width: 100%;
        box-sizing: border-box;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 700px) {
    .leftovers-page section {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .leftovers-page .leftovers-hero {
        min-height: auto;
    }

    .leftovers-page .hero-container {
        padding: 3rem 1.25rem 3.5rem;
    }

    .leftovers-page .hero-text {
        max-width: 100%;
        width: 100%;
    }

    .leftovers-page .leftovers-hero::before {
        opacity: 0.25;
        background-position: right;
        background-image: url("images/hero-image.png");
    }

    .leftovers-page .hero-buttons {
        flex-direction: column;
    }

    .leftovers-page .hero-buttons a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

.beta-page {
    min-height: 70vh;
    padding-bottom: 5rem;
}

.beta-page .beta-hero {
    max-width: 760px;
    padding-top: 5rem;
    padding-bottom: 3rem;
    text-align: center;
}

.beta-hero-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    border-radius: 24px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
}

.beta-hero-icon .material-symbols-rounded {
    font-size: 48px;
}

.beta-page .eyebrow {
    color: var(--primary);
    font-weight: 700;
}

.beta-page h1 {
    margin: .5rem 0 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.beta-page .hero-description {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}

.beta-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.beta-card,
.beta-note {
    border-radius: var(--radius);
    padding: 2.5rem;
}

.beta-card {
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.beta-card-icon {
    color: var(--primary);
    font-size: 40px;
}

.beta-card h2,
.beta-note h2 {
    margin: .5rem 0 1rem;
}

.beta-steps {
    margin: 0 0 2rem;
    padding-left: 1.5rem;
}

.beta-steps li + li {
    margin-top: .75rem;
}

.beta-note {
    display: flex;
    gap: 1rem;
    background: #e8f3e8;
}

.beta-note > .material-symbols-rounded {
    color: var(--primary);
    font-size: 32px;
}

.beta-note p {
    margin: 0;
    color: var(--muted);
}

.beta-back-link {
    margin: 2rem auto 0;
    max-width: 1290px;
    padding: 0 2rem;
}

.beta-back-link a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 700px) {
    .beta-content {
        grid-template-columns: 1fr;
    }

    .beta-card,
    .beta-note {
        padding: 1.75rem;
    }
}
