/* Download landing — 1:1 themanew light layout */

html, body {
    margin: 0;
    padding: 0;
}

.tn-dl {
    --tn-dl-primary: #5B67F5;
    --tn-dl-primary-soft: #eef0ff;
    --tn-dl-card: #f4f7ff;
    --tn-dl-text: #1a1c2e;
    --tn-dl-muted: #8b93a7;
    --tn-dl-success: #40c057;
    --tn-dl-success-soft: #ebfbee;
    --tn-dl-border: #e4e7ef;
    --tn-dl-max: 1140px;
    font-family: Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--tn-dl-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.tn-dl *,
.tn-dl *::before,
.tn-dl *::after {
    box-sizing: border-box;
}

.tn-dl__wrap {
    width: min(100% - 48px, var(--tn-dl-max));
    margin-inline: auto;
}

/* ── Header ── */
.tn-dl-header {
    border-bottom: 1px solid var(--tn-dl-border);
    background: #fff;
}

.tn-dl-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    padding-block: 12px;
}

.tn-dl-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--tn-dl-text);
    min-width: 0;
}

.tn-dl-header__logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: contain;
}

.tn-dl-header__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tn-dl-header__brand-text strong {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.tn-dl-header__brand-text small {
    font-size: 11px;
    line-height: 1.2;
    color: var(--tn-dl-muted);
    white-space: nowrap;
}

.tn-dl-header__nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding-left: 28px;
    border-left: 1px solid var(--tn-dl-border);
}

.tn-dl-header__nav a {
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.15s;
}

.tn-dl-header__nav a:hover {
    color: var(--tn-dl-primary);
}

.tn-dl-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.tn-dl-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tn-dl-header__btn--ghost {
    border: 1px solid var(--tn-dl-border);
    background: #fff;
    color: #111827;
}

.tn-dl-header__btn--ghost:hover {
    border-color: #c9ceda;
    background: #f8f9fc;
}

.tn-dl-header__btn--primary {
    border: 1px solid var(--tn-dl-primary);
    background: var(--tn-dl-primary);
    color: #fff;
}

.tn-dl-header__btn--primary:hover {
    background: #4a56e8;
    border-color: #4a56e8;
}

@media (min-width: 960px) {
    .tn-dl-header__nav {
        display: flex;
    }
}

@media (max-width: 560px) {
    .tn-dl-header__brand-text small {
        display: none;
    }

    .tn-dl-header__btn--ghost {
        display: none;
    }

    .tn-dl-header__btn {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .tn-dl-header__inner {
        gap: 12px;
        min-height: 64px;
    }
}

/* Public SVG pack via CSS mask (same files as themanew /images/icons) */
.tn-dl-icon {
    display: inline-block;
    flex-shrink: 0;
    width: var(--tn-dl-icon-size, 20px);
    height: var(--tn-dl-icon-size, 20px);
    background-color: currentColor;
    -webkit-mask: var(--tn-dl-icon) center / contain no-repeat;
    mask: var(--tn-dl-icon) center / contain no-repeat;
    vertical-align: middle;
}

.tn-dl-icon--primary { color: var(--tn-dl-primary); }
.tn-dl-icon--muted { color: var(--tn-dl-muted); }
.tn-dl-icon--success { color: var(--tn-dl-success); }

.tn-dl-icon--app-store { --tn-dl-icon: url('/images/icons/app-store.svg'); }
.tn-dl-icon--google-play { --tn-dl-icon: url('/images/icons/google-play.svg'); }
.tn-dl-icon--rustore { --tn-dl-icon: url('/images/icons/rustore.svg'); }
.tn-dl-icon--map { --tn-dl-icon: url('/images/icons/map.svg'); }
.tn-dl-icon--map-pin { --tn-dl-icon: url('/images/icons/map-pin.svg'); }
.tn-dl-icon--star { --tn-dl-icon: url('/images/icons/star.svg'); }
.tn-dl-icon--gift { --tn-dl-icon: url('/images/icons/gift.svg'); }
.tn-dl-icon--heart { --tn-dl-icon: url('/images/icons/heart.svg'); }
.tn-dl-icon--download { --tn-dl-icon: url('/images/icons/download.svg'); }
.tn-dl-icon--user { --tn-dl-icon: url('/images/icons/user.svg'); }
.tn-dl-icon--users { --tn-dl-icon: url('/images/icons/users.svg'); }
.tn-dl-icon--percent { --tn-dl-icon: url('/images/icons/percent.svg'); }
.tn-dl-icon--chevron-right { --tn-dl-icon: url('/images/icons/chevron-right.svg'); }
.tn-dl-icon--store { --tn-dl-icon: url('/images/icons/store.svg'); }
.tn-dl-icon--qr { --tn-dl-icon: url('/images/icons/qr.svg'); }

/* ── Hero ── */
.tn-dl-hero {
    padding: 90px 0 64px;
    background: #fff;
}

.tn-dl-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.tn-dl-hero__title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.2vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}

.tn-dl-hero__lead {
    margin: 0 0 24px;
    max-width: 460px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--tn-dl-muted);
}

.tn-dl-stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.tn-dl-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--tn-dl-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--tn-dl-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s;
}

.tn-dl-store:hover {
    background: var(--tn-dl-primary-soft);
}

.tn-dl-store__icon {
    flex-shrink: 0;
}

/* Phones — real device screenshots (frame already in PNG) */
.tn-dl-phones {
    position: relative;
    height: 380px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.tn-dl-phone {
    position: absolute;
    bottom: 0;
    display: block;
    width: 30%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 18px 28px rgba(17, 24, 39, 0.28));
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.tn-dl-phone--left {
    left: 0;
    width: 34%;
    transform: rotate(-8deg) translateY(8px);
    z-index: 1;
}

.tn-dl-phone--center {
    left: 50%;
    width: 40%;
    transform: translateX(-50%);
    z-index: 3;
    filter: drop-shadow(0 22px 32px rgba(17, 24, 39, 0.32));
}

.tn-dl-phone--right {
    right: 0;
    width: 34%;
    transform: rotate(8deg) translateY(8px);
    z-index: 2;
}

/* ── Features ── */
.tn-dl-features {
    padding: 0 0 56px;
    background: #fff;
}

.tn-dl-section-title {
    margin: 0 0 20px;
    font-size: clamp(24px, 3.5vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.tn-dl-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tn-dl-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 12px;
    background: var(--tn-dl-card);
}

.tn-dl-feature__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
}

.tn-dl-feature__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
}

.tn-dl-feature__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--tn-dl-muted);
}

/* ── Steps ── */
.tn-dl-steps {
    padding: 0 0 56px;
    background: #fff;
}

.tn-dl-steps__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tn-dl-step {
    position: relative;
    padding: 18px 14px 14px;
    border: 1px solid var(--tn-dl-border);
    border-radius: 12px;
    background: #fff;
}

.tn-dl-step__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tn-dl-step__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.tn-dl-step__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
}

.tn-dl-step__text {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--tn-dl-muted);
}

.tn-dl-step__chevron {
    display: none;
    align-self: center;
}

/* ── Partner CTA ── */
.tn-dl-partner {
    padding: 0 0 56px;
    background: #fff;
}

.tn-dl-partner__banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 14px;
    background: var(--tn-dl-success-soft);
}

.tn-dl-partner__main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.tn-dl-partner__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
}

.tn-dl-partner__eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--tn-dl-muted);
}

.tn-dl-partner__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
}

.tn-dl-partner__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--tn-dl-muted);
}

.tn-dl-partner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--tn-dl-success);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.tn-dl-partner__btn:hover {
    opacity: 0.92;
}

@media (min-width: 720px) {
    .tn-dl-stores {
        flex-direction: row;
        flex-wrap: nowrap;
        max-width: none;
        gap: 12px;
    }

    .tn-dl-store {
        flex: 0 0 auto;
        min-width: 148px;
    }

    .tn-dl-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .tn-dl-hero {
        padding: 90px 0 64px;
    }

    .tn-dl-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 24px;
    }

    .tn-dl-phones {
        height: 440px;
        max-width: none;
        margin: 0;
    }

    .tn-dl-phone--left {
        left: 0;
        width: 36%;
    }

    .tn-dl-phone--center {
        width: 42%;
    }

    .tn-dl-phone--right {
        right: 0;
        width: 36%;
    }

    .tn-dl-features__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .tn-dl-steps__row {
        display: flex;
        align-items: stretch;
        gap: 6px;
    }

    .tn-dl-step {
        flex: 1 1 0;
        min-width: 0;
    }

    .tn-dl-step__chevron {
        display: inline-block;
        flex: 0 0 auto;
    }

    .tn-dl-partner__banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 24px;
    }

    .tn-dl-partner__main {
        flex: 1;
        min-width: 0;
    }

    .tn-dl-partner__btn {
        flex-shrink: 0;
    }
}
