/* T20 — Homepage assembly layout. Token-only; no image references. Visual
   slots are filled by the T19 renderer (homepage-visuals.css); when an image
   is absent the renderer emits nothing, so the text-led layout stays balanced
   with no empty boxes. */

.home {
    gap: clamp(var(--space-32), 5vw, var(--space-64));
}

.home-section,
.home-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    min-inline-size: 0;
}

.home-section__text,
.home-hero__intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.home-section__text > *,
.home-hero__intro > * {
    margin-block: 0;
}

/* Hero */
.home-hero__eyebrow {
    color: var(--color-primary);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-hero__lead {
    font-size: var(--font-size-18);
    color: var(--color-text-muted);
}

.home-hero__facts {
    display: grid;
    gap: var(--space-8);
    padding-inline-start: var(--space-24);
    margin: 0;
}

.home-hero__actions {
    margin-block-start: var(--space-8);
}

.home-section__summary {
    font-size: var(--font-size-18);
    font-weight: var(--font-weight-medium);
}

.home-subsection {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-block-start: var(--space-8);
}

/* Package teaser */
.package-teaser {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.package-teaser__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--space-16);
    align-items: stretch;
}

.package-teaser__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    min-inline-size: 0;
    padding: var(--space-16);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-12);
    box-shadow: var(--shadow-card);
}

.package-teaser__card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-raised);
}

.package-teaser__badge {
    inline-size: fit-content;
    max-inline-size: 100%;
    padding: var(--space-4) var(--space-8);
    margin: 0;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: var(--radius-6);
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-semibold);
}

.package-teaser__name {
    margin: 0;
    font-size: var(--font-size-20);
}

.package-teaser__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-4);
    margin: 0;
}

.package-teaser__price strong {
    font-size: var(--font-size-24);
}

.package-teaser__meta,
.package-teaser__billing {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-14);
}

/* Steps */
.home-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--space-16);
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: home-step;
}

.home-steps__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-inline-size: 0;
    padding: var(--space-16);
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-8);
    counter-increment: home-step;
}

.home-steps__title {
    font-weight: var(--font-weight-semibold);
}

.home-steps__title::before {
    content: counter(home-step) ". ";
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.home-steps__text {
    color: var(--color-text-muted);
    font-size: var(--font-size-14);
}

/* Devices + chips */
.home-devices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--space-16);
}

.home-devices__group {
    padding: var(--space-16);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-8);
}

.home-devices__group-title {
    margin-block: 0 var(--space-8);
    font-weight: var(--font-weight-semibold);
}

.home-devices__group ul,
.home-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-chips {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-block-start: var(--space-8);
}

.home-chips__label {
    margin: 0;
    font-weight: var(--font-weight-semibold);
}

.home-chip {
    padding: var(--space-4) var(--space-12);
    background: var(--color-primary-soft);
    color: var(--color-ink);
    border-radius: var(--radius-6);
    font-size: var(--font-size-14);
}

/* Bandwidth table */
.home-bandwidth {
    inline-size: 100%;
    max-inline-size: 32rem;
    border-collapse: collapse;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-8);
}

.home-bandwidth caption {
    padding: var(--space-12);
    font-weight: var(--font-weight-semibold);
    text-align: start;
}

.home-bandwidth th,
.home-bandwidth td {
    padding: var(--space-12) var(--space-16);
    border-block-start: 1px solid var(--color-line);
    text-align: start;
}

.home-bandwidth th[scope="col"] {
    background: var(--color-surface-subtle);
}

.home-bandwidth__note {
    margin-block: var(--space-8) 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-14);
}

/* Checklist */
.home-checklist {
    display: grid;
    gap: var(--space-8);
    padding-inline-start: var(--space-24);
    margin: 0;
}

/* FAQ */
.home-faq {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.home-faq__item {
    padding: var(--space-16);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-8);
}

.home-faq__question {
    margin-block: 0 var(--space-8);
    font-size: var(--font-size-20);
}

.home-faq__answer > * {
    margin-block: 0 var(--space-8);
}

.home-faq__answer > :last-child {
    margin-block-end: 0;
}

/* Related pages */
.home-related__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-related__link {
    display: inline-flex;
    min-block-size: 44px;
    align-items: center;
    padding-inline: var(--space-12);
    color: var(--color-primary);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-8);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.home-related__link:hover {
    background: var(--color-primary-soft);
}

/* The hero visual, when present, sits beside the intro on wide screens. */
@media (min-width: 64rem) {
    .home-hero:has(.homepage-visual) {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-48);
        align-items: center;
    }
}
