.hero {
    padding-block: var(--space-16) var(--space-12);
    text-align: center;
    max-width: 48rem;
    margin-inline: auto;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding-block: var(--space-12);
}

.features h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.features__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@container (min-width: 36rem) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 60rem) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.feature-card__icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--color-text-muted);
    margin: 0;
}

.feature-showcase {
    padding-block: var(--space-12);
}

.feature-showcase h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.feature-showcase__accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-showcase__item {
    border-top: 1px solid var(--color-border);
}

.feature-showcase__item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.feature-showcase__item-title {
    margin: 0;
}

.feature-showcase__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    padding-block: var(--space-4);
    border: none;
    background: none;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.feature-showcase__chevron {
    width: 2rem;
    height: 1.2rem;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.feature-showcase__trigger[aria-expanded="true"] .feature-showcase__chevron {
    transform: rotate(180deg);
}

/* Animated height without measuring scrollHeight in JS: collapsed rows have no flexible space,
   expanded rows get all of it, and the grid track transition itself performs the "height" animation. */
.feature-showcase__tray {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.feature-showcase__item.is-expanded .feature-showcase__tray {
    grid-template-rows: 1fr;
}

@media (prefers-reduced-motion: reduce) {
    .feature-showcase__tray {
        transition: none;
    }
}

.feature-showcase__tray-inner {
    min-height: 0;
    overflow: hidden;
}

.feature-showcase__tray-inner p {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
}

.feature-showcase__inline-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

/* The large, swapping side image only exists from the desktop breakpoint on; below it, each
   expanded item shows its own image inline (above) instead. */
.feature-showcase__stage {
    display: none;
}

@media (min-width: 48rem) {
    .feature-showcase__layout {
        display: grid;
        grid-template-columns: 1fr 2.1fr;
        gap: var(--space-8);
        align-items: start;
    }

    .feature-showcase__inline-image {
        display: none;
    }

    .feature-showcase__stage {
        display: block;
        position: sticky;
        top: calc(var(--space-16) + var(--space-4));
    }

    .feature-showcase__stage-image {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        box-shadow: var(--shadow-sm);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .feature-showcase__stage-image.is-fading {
        opacity: 0;
        transform: scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-showcase__stage-image {
        transition: none;
    }
}

.android-section {
    display: grid;
    gap: var(--space-8);
    align-items: center;
    padding-block: var(--space-16);
    grid-template-columns: 1fr;
}

@container (min-width: 48rem) {
    .android-section {
        grid-template-columns: 3fr 2fr;
    }
}

.android-section__image {
    justify-self: center;
    max-width: 16rem;
}
