/**
 * Landing Page: Magica for Android (page-mileage-tracker-android.php)
 *
 * Loaded after landing-mileage-iphone.css, which provides every shared section
 * (the Android <main> also carries .landing-mileage-iphone). Only what that
 * file lacks lives here: transparent device frames, Bootstrap Icons in place
 * of inline SVG, h3 card titles, multi-block step rows and the extra sections.
 */

/* ============================================
   SECTION TITLES
   The base .section-title is 4rem; Italian titles here are long.
   ============================================ */
.landing-mileage-android .section-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    line-height: 1.2;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.landing-mileage-android .android-section-intro {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
}

.landing-mileage-android .how-it-works-landing .android-section-intro {
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ============================================
   HERO
   ============================================ */
.landing-mileage-android .landing-hero h1 {
    font-size: 2.5rem;
}

.landing-mileage-android .landing-hero__cta-wrapper .download-btn {
    font-size: 1.3rem;
    padding: 10px 18px 10px 24px;
}

.landing-mileage-android .landing-hero__cta-wrapper .download-btn img {
    width: 26px;
    height: 26px;
}

.landing-mileage-android .android-iphone-link {
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    color: var(--light-text-secondary);
}

.landing-mileage-android .android-iphone-link a {
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   DEVICE FRAMES (transparent PNG/WebP)
   The iPhone sheet gives screenshots a rounded box-shadow, which would draw
   a rectangle around the transparent corners of the frame.
   ============================================ */
.landing-mileage-android .landing-hero__image img,
.landing-mileage-android .step-row__image img {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 24px 40px rgba(13, 38, 76, 0.18));
}

.landing-mileage-android .landing-hero__image img {
    max-height: 640px;
}

.landing-mileage-android .step-row__image img {
    max-height: 600px;
}

/* ============================================
   ICONS (Bootstrap Icons font, enqueued site-wide)
   ============================================ */
.landing-mileage-android .trust-badge .bi {
    font-size: 22px;
    line-height: 1;
    color: var(--accent);
}

.landing-mileage-android .step-row__icon .bi {
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

.landing-mileage-android .why-card__icon .bi {
    font-size: 24px;
    line-height: 1;
    color: var(--secondary);
}

.landing-mileage-android .privacy-icon .bi {
    font-size: 38px;
    line-height: 1;
    color: var(--secondary);
}

.landing-mileage-android .cta-final__btn .bi {
    font-size: 22px;
    line-height: 1;
    color: var(--accent);
}

/* ============================================
   STEP ROWS WITH MORE THAN ONE BLOCK
   ============================================ */
.landing-mileage-android .step-row__block + .step-row__block {
    margin-top: 32px;
}

.landing-mileage-android .step-row__block > p {
    font-size: 1.1rem;
    color: var(--light-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.landing-mileage-android .step-row__block > p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CARD TITLES (h3, same look as the iPhone h4)
   ============================================ */
.landing-mileage-android .why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-text);
}

/* ============================================
   SECTION BANDS: SYNC, PRICING, PANEL BACKGROUND
   ============================================ */
.landing-mileage-android .android-sync,
.landing-mileage-android .android-pricing {
    padding: var(--section-padding);
}

.landing-mileage-android .android-sync .section-title,
.landing-mileage-android .android-pricing .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.landing-mileage-android .android-band--panel {
    background-color: var(--light-panel-bg);
}

/* White cards on the white band: give them the page grey instead. */
.landing-mileage-android .android-band--panel .why-card {
    background-color: var(--light-bg);
}

/* ============================================
   PRIVACY: link inside the description
   ============================================ */
.landing-mileage-android .privacy-description a {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================
   FINAL CTA: secondary iPhone link on the blue gradient
   ============================================ */
.landing-mileage-android .cta-final .android-iphone-link--on-dark {
    font-size: 1rem;
    margin: 0 auto 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* .cta-final in the selector: must beat the dark-mode link colour below. */
.landing-mileage-android .cta-final .android-iphone-link--on-dark a {
    color: #fff;
    text-decoration: underline;
}

.landing-mileage-android .cta-final .android-iphone-link--on-dark a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
    .landing-mileage-android .android-iphone-link,
    .landing-mileage-android .step-row__block > p {
        color: var(--dark-text-secondary);
    }

    .landing-mileage-android .android-iphone-link a {
        color: var(--accent-light);
    }

    .landing-mileage-android .why-card h3 {
        color: var(--dark-text);
    }

    .landing-mileage-android .android-band--panel {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .landing-mileage-android .android-band--panel .why-card {
        background-color: var(--dark-panel-bg);
    }

    .landing-mileage-android .trust-badge .bi {
        color: var(--accent-light);
    }

    .landing-mileage-android .landing-hero__image img,
    .landing-mileage-android .step-row__image img {
        filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .landing-mileage-android .landing-hero h1 {
        font-size: 2.1rem;
    }

    .landing-mileage-android .landing-hero__image img {
        max-height: 520px;
    }

    .landing-mileage-android .step-row__image img {
        max-height: 480px;
    }
}

@media (max-width: 767.98px) {
    .landing-mileage-android .landing-hero h1 {
        font-size: 1.7rem;
    }

    .landing-mileage-android .android-section-intro,
    .landing-mileage-android .how-it-works-landing .android-section-intro {
        margin-top: -20px;
        margin-bottom: 36px;
        font-size: 1.05rem;
    }

    .landing-mileage-android .landing-hero__cta-wrapper .download-btn {
        font-size: 1.1rem;
    }

    .landing-mileage-android .landing-hero__image img {
        max-height: 440px;
    }

    .landing-mileage-android .step-row__image img {
        max-height: 420px;
    }
}
