/* ==========================================================================
   subpages.css — shared styles for the 6 use-case subpages
   (rent / personal / job / booking / shopping / restaurants)
   Desktop-only. Loaded after style.css so it can override where needed.
   ========================================================================== */

/* ---- Per-page accent palette ---------------------------------------------*/
.subpage[data-accent="rent"]        { --accent-bg: #FF6B5B; --accent-bg-soft: #FFE5E1; --accent-shape: #FF8A7C; }
.subpage[data-accent="personal"]    { --accent-bg: #B8B6FF; --accent-bg-soft: #EFEEFF; --accent-shape: #C9C7FF; }
.subpage[data-accent="job"]         { --accent-bg: #C5E66B; --accent-bg-soft: #ECF6CC; --accent-shape: #D4ED8A; }
.subpage[data-accent="booking"]     { --accent-bg: #74C7E8; --accent-bg-soft: #DBF0F9; --accent-shape: #95D6EE; }
.subpage[data-accent="shopping"]    { --accent-bg: #FFD06B; --accent-bg-soft: #FFF1CC; --accent-shape: #FFDB8A; }
.subpage[data-accent="restaurants"] { --accent-bg: #95E0C0; --accent-bg-soft: #DCF4EA; --accent-shape: #B0E9D0; }

/* Make the page sit beneath the fixed-style header used by index */
.subpage { background: #fff; }

/* ===== HERO BAND =========================================================*/
.subpage-hero {
    position: relative;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    aspect-ratio: 1440 / 860;
    min-height: 720px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
}
/* Wide screens (>1440): drop the aspect-ratio so the section stretches
   the full viewport width. Gradient + bg image cover the band; the
   inner content stays centered via its own max-width: 1200. */
@media (min-width: 1441px) {
    .subpage-hero {
        aspect-ratio: auto;
        height: 900px;
        min-height: 900px;
        max-height: 900px;
    }
    /* Cap the foreground illustration on widescreens so it doesn't
       balloon to half the viewport. */
    .subpage-hero-art-fg {
        max-width: 720px;
        max-height: 55%;
    }
}
.subpage-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 32px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}
/* Hero title inherits base h1 sizing (56px / 1em) from style.css — only
   subpage-specific layout overrides here. */
.subpage-hero h1 {
    color: #121915;
    max-width: 720px;
    margin: 0 auto 16px;
    text-wrap: balance;
    text-align: center;
}
.subpage-hero-sub {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 20px;
    color: #121915;
    max-width: 480px;
    margin: 0 auto 24px;
    opacity: 0.7;
    text-wrap: balance;
    text-align: center;
}
.subpage-hero .btn-install {
    /* Stays inline-flex inside .subpage-hero-cta-row whose
       justify-content: center handles horizontal placement. */
    margin: 0;
}
.subpage-hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 0;
}
.subpage-hero-qr {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.subpage-hero-qr img { width: 100%; height: 100%; display:block; }

/* 3-layer hero art: gradient + colored bg shape + illustration.
   Absolutely positioned to fill the entire .subpage-hero section so
   the bg + illustration spans top → bottom independently of the text
   content sitting above it (z-index 2). */
.subpage-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.subpage-hero-art-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--hero-grad-top, #ffffff) 0%,
        var(--hero-grad-bottom, var(--accent-bg)) 100%
    );
    z-index: 0;
}
.subpage-hero-art-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
}
/* FG illustration: flows as the second flex child of .subpage-hero so the
   gap from the install button to the image is always 32px (= margin-top),
   regardless of viewport size or content height. flex: 1 lets the image
   fill the remaining vertical space; object-fit + object-position anchor
   the rendered art to the bottom of that area while preserving aspect. */
.subpage-hero-art-fg {
    position: relative;
    z-index: 1;
    align-self: center;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: 50%;
    max-height: 55%;
    margin: 32px auto 0;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
}
/* Desktop (≥1056px): the hero is tall enough that a forced 32px gap
   from the install button isn't desired — sit the illustration at its
   natural size, anchored to the bottom of the hero. margin-top: auto
   pushes it down within the flex column. */
@media (min-width: 1056px) {
    .subpage-hero-art-fg {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin: auto auto 0;
        object-fit: initial;
    }
}
/* "Why This Matters" — when a subpage has 3 cards instead of 4, collapse
   to 3 columns so the row fills the width instead of leaving a gap.
   Desktop-only; responsive breakpoints below force max 2 columns. */
@media (min-width: 1056px) {
    .subpage .access-right:has(.access-card:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }
}
.subpage-cta-balls span img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
}

/* ===== DISCOVER ===========================================================*/
.subpage-discover {
    padding: 96px 48px 64px;
    max-width: 1056px;
    width: 100%;
    margin: 0 auto;
}
/* Section titles inherit base h2 sizing (44px / 1.09) from style.css. */
.subpage-section-title {
    color: #121918;
    text-align: center;
    margin: 0 0 48px;
}
.subpage-discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.subpage-discover-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: 128px;
    background: #f5f7f8;
    border-radius: 16px;
    overflow: hidden;
}
/* Image area on the left — frame height matches the card (128px),
   width is derived from the image's natural aspect ratio so the
   frame is always a PERFECT match to the rendered image (no letter-
   boxing, no cropping, no offset). */
.subpage-discover-card-img {
    flex-shrink: 0;
    height: 128px;
    width: auto;
    overflow: hidden;
    display: block;
}
.subpage-discover-card-img img {
    height: 100%;
    width: auto;
    display: block;
}
.subpage-discover-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}
.subpage-discover-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.4px;
    color: #121915;
    margin: 0;
}
.subpage-discover-card-desc {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #121915;
    margin: 0;
}

/* ===== HOW IT WORKS =======================================================*/
.subpage-how {
    padding: 64px 48px 48px;
    max-width: 1056px;
    width: 100%;
    margin: 0 auto;
}
.subpage-how-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 32px;
    color: #121918;
    text-align: center;
    margin: 0 0 40px;
}
/* Outer card holding steps + green install banner.
   Dashed line is drawn as a pseudo-element overlay sitting at the
   card's exact outer edge with the same border-radius — so the dashes
   visibly trace OVER the card content (including the green banner) at
   its very perimeter, with no surrounding whitespace gap. */
.subpage-how-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}
.subpage-how-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(53, 198, 152, 0.4);
    border-radius: 20px;
    pointer-events: none;
    z-index: 5;
}
.subpage-how-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 221px;
    padding: 0 20px;
    position: relative;
}
.subpage-how-step {
    flex: 1 0 0;
    min-width: 0;
    height: 100%;
    padding: 32px 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Anchor to the top so every step's number badge sits at the
       same Y regardless of text length — arrows can then align
       reliably with the badge centers. */
    justify-content: flex-start;
    gap: 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.subpage-how-step.is-visible {
    opacity: 1;
    transform: none;
}
/* Respect users who prefer reduced motion — show steps immediately. */
@media (prefers-reduced-motion: reduce) {
    .subpage-how-step {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
.subpage-how-num {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: rgba(53, 198, 152, 0.2);
    color: #35c698;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    line-height: 48px;
    letter-spacing: -0.48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.subpage-how-step-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    color: #121915;
    text-align: center;
}
.subpage-how-step-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.4px;
    margin: 0;
}
.subpage-how-step-desc {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}
.subpage-how-arrow {
    position: absolute;
    pointer-events: none;
    transform-origin: center center;
}
/* Lottie containers — authored horizontal (77×23 / 78×24), sized +25%.
   Measured midpoints between the rendered number badges land at
   33.76% / 66.23% of the steps container width. Top:36 puts the
   arrow center (top + 14) at the badge center y. */
.subpage-how-arrow-1 {
    left: calc(33.76% - 48px);
    top: 39.5px;
    width: 96px;
    height: 29px;
}
.subpage-how-arrow-2 {
    left: calc(66.24% - 49px);
    top: 39.5px;
    width: 98px;
    height: 30px;
}

/* Green install banner inside how-card */
.subpage-how-promo {
    background: #35c698;
    border-top: 1px solid #35c698;
    /* Match the card's inner radius (card 20px - 2px border = 18px) so
       the banner's bottom corners fill the card's rounded interior
       cleanly instead of being clipped. */
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}
.subpage-how-promo-left {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.subpage-how-promo-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.subpage-how-promo-icon img {
    width: 100%;
    height: 100%;
    display: block;
}
.subpage-how-promo-text {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #ffffff;
}
.subpage-how-promo-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.4px;
}
.subpage-how-promo-sub {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}
/* White download pill on the right of the green banner */
.subpage-how-promo .btn-install {
    width: 220px;
    height: 55px;
    padding: 8px 14px;
    background: #ffffff;
    color: #121915;
    border: 1px solid rgba(18, 25, 21, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
    flex-shrink: 0;
}
.subpage-how-promo .btn-install .btn-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #121915;
}
.subpage-how-promo .btn-install .btn-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #121915;
    opacity: 0.7;
}
.subpage-how-promo .btn-install .btn-icon {
    width: 36px;
    height: 31px;
    flex-shrink: 0;
}

/* ===== THOUGHTS / COMMENTS ===============================================*/
/* Full-bleed section: rows fill the entire viewport width; the title +
   subtitle above are centered text that naturally take all available width. */
.subpage-thoughts {
    padding: 96px 0 64px;
    max-width: none;
    margin: 0;
    width: 100%;
}
.subpage-thoughts > .subpage-section-title,
.subpage-thoughts > .subpage-thoughts-sub {
    max-width: none;
    width: 100%;
    padding: 0 48px;
}
.subpage-thoughts-sub {
    text-align: center;
    color: #6E7270;
    font-family: var(--font-primary);
    font-size: 15px;
    margin: -32px 0 40px;
}
/* ----- Marquee rows of comment cards ------------------------------------- */
.subpage-thoughts-rows {
    overflow: hidden;
    position: relative;
    padding: 16px 0;
}
.subpage-thoughts-rows::before,
.subpage-thoughts-rows::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 145px;
    pointer-events: none;
    z-index: 2;
}
.subpage-thoughts-rows::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}
.subpage-thoughts-rows::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}
.subpage-thoughts-row {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}
.subpage-thoughts-row.is-1 {
    animation: thoughts-scroll-left 80s linear infinite;
}
.subpage-thoughts-row.is-2 {
    animation: thoughts-scroll-right 80s linear infinite;
    margin-top: 16px;
}
.subpage-thoughts-row:hover {
    animation-play-state: paused;
}
@keyframes thoughts-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes thoughts-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .subpage-thoughts-row { animation: none; }
}

/* ----- Individual comment card ------------------------------------------- */
.subpage-comment-card {
    box-sizing: border-box;
    width: 365px;
    height: 183px;
    flex-shrink: 0;
    background: #f5f7f8;
    border-radius: 20.5px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-primary);
}
.subpage-comment-top {
    display: flex;
    gap: 12px;
    padding-right: 8px;
    overflow: hidden;
    align-items: flex-start;
    min-height: 0;
}
.subpage-comment-emoji {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}
.subpage-comment-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #121915;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    min-width: 0;
}
.subpage-comment-source {
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 8px;
    gap: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.subpage-comment-favicon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    background: #ECEDED;
}
.subpage-comment-source-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.subpage-comment-source-title,
.subpage-comment-source-domain {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.subpage-comment-source-domain {
    opacity: 0.5;
}

/* ===== WHY THIS MATTERS ===================================================
   Now uses .access-section / .access-wrapper / .access-card from style.css
   so it inherits the main page's responsive grid logic (4 → 2 → 1 cols
   across desktop/tablet/mobile). Subpage-side overrides only. */
.subpage .access-section {
    padding-top: 36px;
    padding-bottom: 36px;
}
.subpage .access-wrapper {
    margin-top: 0;
    gap: 40px;
}
/* Adapt the grid to the actual number of items so 3 items fill the
   available row instead of leaving an empty 4th slot. auto-fit with
   minmax stretches existing columns when there's no item to fill. */
.subpage .access-right {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* Responsive: cap at 2 columns below desktop so a 3-item row doesn't
   try to squeeze 3 narrow cards side-by-side. */
@media (max-width: 1055px) {
    .subpage .access-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== CTA CARD (light blue) =============================================*/
.subpage-cta {
    padding: 56px 32px 96px;
    max-width: 960px;
    margin: 0 auto;
}
.subpage-cta-box {
    background: #DDEEF8;
    border-radius: 24px;
    padding: 72px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.subpage-cta-box h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    color: #121918;
    margin: 0 0 28px;
}
.subpage-cta-box .btn-install {
    margin: 0 auto;
}
.subpage-cta-balls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.subpage-cta-balls span {
    position: absolute;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #FF6B5B;
}
.subpage-cta-balls span:nth-child(1) { top: 22%; left: 6%; background:#FF6B5B; }
.subpage-cta-balls span:nth-child(2) { top: 60%; left: 10%; background:#C5E66B; }
.subpage-cta-balls span:nth-child(3) { top: 30%; left: 16%; background:#FFD06B; }
.subpage-cta-balls span:nth-child(4) { top: 75%; left: 20%; background:#B8B6FF; }
.subpage-cta-balls span:nth-child(5) { top: 18%; right: 10%; background:#74C7E8; }
.subpage-cta-balls span:nth-child(6) { top: 50%; right: 6%; background:#95E0C0; }
.subpage-cta-balls span:nth-child(7) { top: 70%; right: 14%; background:#FF8A7C; }
.subpage-cta-balls span:nth-child(8) { top: 25%; right: 20%; background:#FFD06B; }

/* CTA subtitle — sits between the h2 and the install button inside .cta-box,
   above the spinning balls. */
.cta-box .cta-sub {
    position: relative;
    z-index: 2;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    opacity: 0.7;
    margin: -8px 0 0;
    max-width: 440px;
}

/* ==========================================================================
   RESPONSIVE — mirror style.css breakpoints (tablet → mobile → small mobile)
   ========================================================================== */

/* ─── Tablet (701–1055) ─────────────────────────────────────────────────── */
@media (min-width: 701px) and (max-width: 1055px) {
    /* Hero — drop the aspect-ratio at tablet so the section can't
       grow wider than the viewport (otherwise aspect+min-height
       would force a fixed pixel width and cause horizontal scroll). */
    .subpage-hero {
        aspect-ratio: auto;
        height: 640px;
        min-height: 640px;
        max-height: 640px;
    }
    .subpage-hero-inner {
        padding: 104px 64px 0;
    }
    .subpage-hero h1 {
        font-size: 48px;
        line-height: 48px;
        letter-spacing: -0.48px;
        max-width: 600px;
    }
    .subpage-hero-cta-row {
        margin-bottom: 0;
    }
    .subpage-hero-art-fg {
        max-width: 70%;
        max-height: 100%;
    }

    /* Discover — switch to vertical card (image top, text below) */
    .subpage-discover {
        padding: 80px 64px 56px;
    }
    .subpage-discover-grid {
        gap: 16px;
    }
    .subpage-discover-card {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
    .subpage-discover-card-img {
        width: 100%;
        height: auto;
    }
    .subpage-discover-card-img img {
        width: 100%;
        height: auto;
    }
    .subpage-discover-card-text {
        padding: 16px;
    }
    .subpage-discover-card-title {
        font-size: 18px;
        line-height: 22px;
    }

    /* How It Works */
    .subpage-how {
        padding: 56px 64px 40px;
    }
    .subpage-how-steps {
        height: auto;
        min-height: 200px;
        padding: 32px 16px;
        gap: 12px;
    }
    .subpage-how-step {
        gap: 16px;
        padding: 0 4px;
    }
    .subpage-how-step-title {
        font-size: 18px;
        line-height: 22px;
    }
    .subpage-how-promo {
        padding: 16px;
        gap: 12px;
    }
    .subpage-how-promo-icon {
        width: 56px;
        height: 56px;
    }

    /* CTA */
    .subpage-cta {
        padding: 48px 64px 80px;
    }
    .subpage-cta-box h2 {
        font-size: 32px;
    }

    /* Thoughts */
    .subpage-thoughts {
        padding: 80px 0 56px;
    }
    .subpage-thoughts > .subpage-section-title,
    .subpage-thoughts > .subpage-thoughts-sub {
        padding: 0 64px;
    }
}

/* ─── Mobile (≤700) ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    /* Hero — fixed height on mobile */
    .subpage-hero {
        aspect-ratio: auto;
        height: 500px;
        min-height: 500px;
        max-height: 500px;
    }
    .subpage-hero-inner {
        padding: 80px 24px 0;
    }
    .subpage-hero h1 {
        font-size: 38px;
        line-height: 40px;
        letter-spacing: -0.38px;
        max-width: none;
        margin-bottom: 8px;
    }
    .subpage-hero-sub {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 14px;
    }
    .subpage-hero-cta-row {
        margin-bottom: 0;
        gap: 14px;
    }
    .subpage-hero-art-fg {
        max-width: 80%;
        max-height: 100%;
    }

    /* Discover — collapse to 1 column, vertical card layout */
    .subpage-discover {
        padding: 64px 24px 48px;
    }
    .subpage-discover-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .subpage-discover-card {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
    .subpage-discover-card-img {
        width: 100%;
        height: auto;
    }
    .subpage-discover-card-img img {
        width: 100%;
        height: auto;
    }
    .subpage-discover-card-text {
        padding: 16px;
    }
    .subpage-discover-card-title {
        font-size: 18px;
        line-height: 22px;
    }

    /* Section title sizing inherits h2 mobile = 28px from style.css */
    .subpage-section-title {
        margin: 0 0 32px;
    }

    /* How It Works — stack steps vertically */
    .subpage-how {
        padding: 48px 24px 40px;
    }
    .subpage-how-title {
        font-size: 24px;
        margin: 0 0 28px;
    }
    .subpage-how-steps {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 0;
    }
    /* Each step becomes a 2-column row: number badge on the left,
       title + description stacked on the right. min-height makes each
       step (except the last) tall enough to contain its absolutely-
       positioned arrow plus an equal 4px buffer below it — matching
       the 4px gap between badge and arrow top above. */
    .subpage-how-step {
        width: 100%;
        height: auto;
        padding: 0;
        gap: 20px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        position: relative;
    }
    .subpage-how-step:not(:last-child) {
        min-height: 100px;
    }
    .subpage-how-num {
        width: 32px;
        height: 32px;
        border-radius: 16px;
        font-size: 18px;
        line-height: 32px;
    }
    .subpage-how-step-text {
        flex: 1 1 0;
        min-width: 0;
        text-align: left;
        align-items: flex-start;
    }
    /* Lottie arrows on mobile — slot is positioned absolutely inside
       the preceding step, anchored directly below that step's badge
       (badge bottom = 32px; +4px breathing room → top: 36px). The
       arrow itself is 60×18 rotated 90° around the slot center so
       it visually fills 18×60 pointing down. */
    .subpage-how-arrow-slot {
        position: absolute;
        top: 36px;
        left: 7px;
        width: 18px;
        height: 60px;
        margin: 0;
        pointer-events: none;
        overflow: visible;
    }
    .subpage-how-arrow {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 60px;
        height: 18px;
        margin: 0;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }

    /* Promo banner: stay in a row when it fits, wrap below when it
       doesn't. Button keeps its 220px size; left content (icon+title+
       subtitle) shrinks to fill remaining space. */
    .subpage-how-promo {
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        padding: 20px;
    }
    .subpage-how-promo-left {
        flex: 1 1 240px;
        min-width: 0;
        gap: 14px;
    }
    .subpage-how-promo-icon {
        width: 48px;
        height: 48px;
    }
    .subpage-how-promo-title {
        font-size: 18px;
        line-height: 22px;
    }
    .subpage-how-promo .btn-install {
        flex: 0 0 auto;
        width: 220px;
    }

    /* Thoughts — smaller cards, narrower edge fades */
    .subpage-thoughts {
        padding: 64px 0 48px;
    }
    .subpage-thoughts > .subpage-section-title,
    .subpage-thoughts > .subpage-thoughts-sub {
        padding: 0 24px;
    }
    .subpage-thoughts-sub {
        margin: -20px 0 28px;
    }
    .subpage-thoughts-rows::before,
    .subpage-thoughts-rows::after {
        width: 60px;
    }
    .subpage-comment-card {
        width: 280px;
        height: 183px;
    }
    .subpage-comment-text {
        font-size: 13px;
        line-height: 18px;
        -webkit-line-clamp: 5;
    }

    /* CTA */
    .subpage-cta {
        padding: 40px 24px 64px;
    }
    .subpage-cta-box {
        padding: 56px 20px;
        border-radius: 20px;
    }
    .subpage-cta-box h2 {
        font-size: 28px;
        margin: 0 0 20px;
    }
}

/* ─── Small mobile (≤479) ───────────────────────────────────────────────── */
@media (max-width: 479px) {
    .subpage-hero-inner {
        padding: 72px 24px 0;
    }
    .subpage-hero h1 {
        font-size: 32px;
        line-height: 34px;
        letter-spacing: -0.32px;
    }
    .subpage-hero-sub {
        margin-bottom: 12px;
    }
    .subpage-hero-cta-row {
        margin-bottom: 0;
    }
    .subpage-hero-art-fg {
        max-width: 88%;
        max-height: 100%;
    }

    .subpage-discover {
        padding: 56px 24px 40px;
    }
    .subpage-discover-card-img {
        width: 100%;
        height: auto;
    }

    .subpage-how {
        padding: 40px 24px 32px;
    }
    .subpage-how-title {
        font-size: 22px;
    }

    .subpage-thoughts > .subpage-section-title,
    .subpage-thoughts > .subpage-thoughts-sub {
        padding: 0 24px;
    }
    .subpage-comment-card {
        width: 260px;
    }

    .subpage-cta {
        padding: 32px 24px 56px;
    }
    .subpage-cta-box {
        padding: 48px 18px;
    }
    .subpage-cta-box h2 {
        font-size: 24px;
    }
}
