/* ==========================================================================
   Hero
   The opening pair: the hero, and the before/after shift.
   ========================================================================== */

.hero {
    padding-top: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 36vw, 560px);
    gap: 64px;
    align-items: start;
}

.hero-copy {
    padding-top: 40px;
}

.hero h1 {
    margin-top: 28px;
    font-size: clamp(40px, 4.6vw, 66px);
    line-height: 1.15;
    font-weight: 900;
}

.hero-lead {
    margin-top: 28px;
    max-width: 560px;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.75;
    color: var(--muted);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.hero-device {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
}

/* Two screens share the column, so the frame scales down from the single-phone
   320px and the second sits a little lower to keep the pair from reading flat. */

.hero-device .device {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 252px;
    border-radius: 34px;
    padding: 8px;
}

.hero-device .device img {
    border-radius: 27px;
}

.hero-device .device:last-child {
    margin-top: 32px;
}

.shift {
    padding-block: 104px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 80px;
}

.shift-divider {
    background: var(--amber);
}

.bubbles {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 18px;
    color: var(--muted);
}

.bubbles li {
    align-self: flex-start;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    border-end-start-radius: 4px;
    padding: 12px 18px;
}

.bubbles li:nth-child(2) {
    margin-inline-start: 48px; opacity: .7;
}

.bubbles li:nth-child(3) {
    margin-inline-start: 16px;
}

.bubbles li:nth-child(4) {
    margin-inline-start: 96px; opacity: .5;
}

.bubbles li:nth-child(5) {
    margin-inline-start: 32px;
}

.bubbles li:nth-child(6) {
    margin-inline-start: 120px; opacity: .4;
}

.shift-after {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shift-after h2 {
    margin-top: 24px;
    font-size: clamp(34px, 4.4vw, 64px);
    font-weight: 900;
    line-height: 1.2;
}

.spec {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    max-width: 520px;
}

.spec li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
}

.spec b {
    font-weight: 700;
}

.spec span {
    color: var(--muted);
    text-align: end;
}

/* wide ------------------------------------------------------------------ */

@media (min-width: 901px) {
    :lang(en) .hero h1 {
        font-size: clamp(30px, 3.6vw, 52px);
    }
}

/* mobile ---------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero {
        display: block;
        position: relative;
        padding-top: 48px;
        min-height: 690px;
        overflow: hidden;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero h1 {
        margin-top: 20px;
        font-size: clamp(28px, 9vw, 44px);
    }

    .hero-lead {
        margin-top: 18px;
    }

    .hero-actions {
        margin-top: 28px;
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1;
        font-size: 16px;
        padding-inline: 0;
    }

    .hero .store-row {
        margin-top: 14px;
    }

    .hero .store-badge {
        display: none;
    }

    .hero .store-note {
        margin-inline-start: 0;
        font-size: 12px;
    }

    .hero-device {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -120px;
        width: min(350px, calc(100vw - 40px));
        gap: 10px;
    }

    .hero-device .device {
        max-width: none;
        border-radius: 26px;
        padding: 6px;
    }

    .hero-device .device img {
        border-radius: 21px;
    }

    .hero-device .device:last-child {
        margin-top: 18px;
    }

    .shift {
        display: block;
        padding-block: 56px;
    }

    .bubbles {
        margin-top: 18px;
        gap: 10px;
        font-size: 15px;
    }

    .bubbles li {
        border-radius: 14px;
        border-end-start-radius: 4px;
        padding: 10px 14px;
    }

    .bubbles li.is-wide-only {
        display: none;
    }

    .bubbles li:nth-child(3) {
        margin-inline-start: 32px; opacity: 1;
    }

    .bubbles li:nth-child(5) {
        margin-inline-start: 12px;
    }

    .bubbles li:nth-child(7) {
        margin-inline-start: 56px;
    }

    .shift-divider {
        height: 1px;
        margin-block: 32px;
    }

    .shift-after h2 {
        margin-top: 14px;
        line-height: 1.25;
    }

    .spec {
        margin-top: 24px;
    }

    .spec li {
        font-size: 15px;
        gap: 16px;
    }
}
