/* =====================================================================
   front-download.css — page-specific styles for saas-front/app-download
   Builds ONLY on the shared design tokens defined in front-landing.css
   (--lp-* variables) and on front-content.css (.lp-solid-nav, .lp-pagehead).
   Reuses .lp-container / .lp-section / .lp-section-head / .lp-store-btn /
   .lp-btn directly; everything below is download-page chrome only.
   Cache-bust ?v=N on every edit.
   ===================================================================== */

/* ----------------------------- Hero ----------------------------------- */
.dl-hero {
    position: relative;
    /* top padding clears the fixed .lp-nav (mirrors .lp-pagehead) */
    padding: clamp(116px, 14vh, 160px) 0 clamp(52px, 8vh, 92px);
    background:
        radial-gradient(1100px 460px at 80% -10%, var(--lp-brand-tint) 0%, rgba(243, 242, 255, 0) 62%),
        var(--lp-bg);
    overflow: hidden;
}

.dl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: 48px 56px;
}

.dl-hero-copy { min-width: 0; }

.dl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 10px;
    border-radius: var(--lp-pill);
    background: var(--lp-brand-tint);
    color: var(--lp-brand-700);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}
.dl-eyebrow svg { width: 16px; height: 16px; }

.dl-hero h1 {
    margin: 18px 0 0;
    font-family: var(--lp-display);
    font-size: clamp(2rem, 4.4vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--lp-ink);
}

.dl-lead {
    margin: 16px 0 0;
    max-width: 540px;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.6;
    color: var(--lp-muted);
}

/* Store badges — enlarge the shared .lp-store-btn for hero use */
.dl-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.dl-store {
    padding: 11px 20px;
    border-radius: var(--lp-r);
    min-height: 56px;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
.dl-store .lp-store-ico { width: 26px; height: 26px; }
.dl-store .lp-store-meta small { font-size: 10px; }
.dl-store .lp-store-meta strong { font-size: 16px; }
.dl-store:focus-visible { outline: none; box-shadow: var(--lp-ring); }

/* When JS surfaces one platform, dim the other (still tappable) */
.dl-stores.has-primary .dl-store { opacity: .5; }
.dl-stores.has-primary .dl-store.is-primary {
    opacity: 1;
    box-shadow: 0 12px 28px -10px rgba(14, 19, 32, .55);
}

.dl-stores-note {
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--lp-faint);
}

/* Cancellable auto-redirect notice */
.dl-redirect {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid var(--lp-line-2);
    border-radius: var(--lp-r);
    background: var(--lp-soft);
    box-shadow: var(--lp-sh-sm);
}
.dl-redirect-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: var(--lp-pill);
    background: var(--lp-brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.dl-redirect-msg {
    flex: 1 1 180px;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lp-ink-2);
}
.dl-redirect-cancel { padding: 9px 16px; font-size: 14px; }

/* --------------------------- Hero visual ------------------------------ */
.dl-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* CSS-only phone mockup (decorative) */
.dl-phone {
    position: relative;
    width: clamp(228px, 23vw, 286px);
    aspect-ratio: 9 / 18.5;
    padding: 12px;
    border-radius: 40px;
    background: linear-gradient(160deg, #1d2740, #0e1320);
    box-shadow: var(--lp-sh-lg), 0 40px 80px -28px rgba(31, 28, 135, .42);
}
.dl-phone-cam {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 7px;
    border-radius: var(--lp-pill);
    background: rgba(255, 255, 255, .14);
    z-index: 2;
}
.dl-phone-screen {
    height: 100%;
    border-radius: 30px;
    background: var(--lp-soft-2);
    padding: 26px 14px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.dl-app-top {
    background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-800));
    border-radius: var(--lp-r);
    padding: 13px 14px;
    box-shadow: var(--lp-sh);
}
.dl-app-brand {
    display: block;
    font-family: var(--lp-display);
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: -.01em;
}
.dl-app-search {
    display: block;
    height: 26px;
    margin-top: 11px;
    border-radius: var(--lp-pill);
    background: rgba(255, 255, 255, .82);
}
.dl-app-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.dl-app-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-sm);
    box-shadow: var(--lp-sh-sm);
}
.dl-app-logo {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    background: var(--lp-brand-tint2);
}
.dl-app-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.dl-app-lines i { display: block; height: 7px; border-radius: var(--lp-pill); background: var(--lp-line-2); }
.dl-app-lines i:first-child { width: 80%; background: #cfd2dd; }
.dl-app-lines i:last-child { width: 52%; }
.dl-app-tag {
    width: 30px;
    height: 16px;
    flex: none;
    border-radius: var(--lp-pill);
    background: var(--lp-brand-tint);
}
.dl-app-tabbar {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--lp-line);
}
.dl-app-tabbar i { width: 22px; height: 22px; border-radius: 7px; background: var(--lp-line-2); }
.dl-app-tabbar i:first-child { background: var(--lp-brand); }

/* QR card (meaningful — kept for desktop visitors to scan) */
.dl-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 14px;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r);
    box-shadow: var(--lp-sh);
}
.dl-qr img {
    width: 96px;
    height: 96px;
    flex: none;
    border-radius: var(--lp-r-sm);
    background: #fff;
}
.dl-qr figcaption { line-height: 1.4; }
.dl-qr figcaption strong { display: block; font-size: 15px; color: var(--lp-ink); }
.dl-qr figcaption span { display: block; margin-top: 4px; font-size: 13px; color: var(--lp-muted); }

/* ---------------------------- Features -------------------------------- */
.dl-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.dl-feature {
    padding: 26px 22px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dl-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-sh-lg);
    border-color: var(--lp-line-2);
}
.dl-feature-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--lp-r-sm);
    background: var(--lp-brand-tint);
    color: var(--lp-brand-700);
}
.dl-feature-ico svg { width: 23px; height: 23px; }
.dl-feature h3 {
    margin: 16px 0 0;
    font-family: var(--lp-display);
    font-size: 1.06rem;
    letter-spacing: -.01em;
    color: var(--lp-ink);
}
.dl-feature p {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--lp-muted);
}

/* --------------------------- Responsive ------------------------------- */
@media (max-width: 920px) {
    .dl-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .dl-hero-visual { order: 2; }
    .dl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .dl-stores { gap: 10px; }
    .dl-store { flex: 1 1 100%; justify-content: center; }
    .dl-qr { flex-direction: column; text-align: center; align-items: center; max-width: 280px; }
    .dl-features { grid-template-columns: 1fr; }
}

/* Respect reduced-motion: drop hover/transition movement */
@media (prefers-reduced-motion: reduce) {
    .dl-store,
    .dl-feature { transition: none; }
    .dl-feature:hover { transform: none; }
}
