.tt-home-app-promo {
    --tt-app-orange: #ff5b0a;
    --tt-app-orange-deep: #f04b00;
    --tt-app-ink: #111315;
    --tt-app-muted: #4e5862;
    --tt-app-bg-x: 0px;
    --tt-app-bg-y: 0px;
    --tt-app-phone-x: 0px;
    --tt-app-phone-y: 0px;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(410px, 35.5vw, 430px);
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid rgba(27, 34, 40, .04);
    border-radius: 22px;
    background: #fdfcfb;
    box-shadow: 0 14px 42px rgba(28, 32, 38, .09);
    color: var(--tt-app-ink);
}

.tt-home-app-promo::after {
    position: absolute;
    inset: 0;
    z-index: 9;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    content: "";
    pointer-events: none;
}

.tt-home-app-promo__backdrop {
    position: absolute;
    z-index: -2;
    inset: -1%;
    width: 102%;
    height: 102%;
    object-fit: cover;
    object-position: center 50%;
    filter: saturate(1.08) contrast(1.04);
    transform: translate(var(--tt-app-bg-x), var(--tt-app-bg-y));
    transition: transform .3s ease-out;
}

.tt-home-app-promo__content {
    position: relative;
    z-index: 4;
    width: 55%;
    height: 100%;
    padding: 34px 0 22px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tt-home-app-promo__copy {
    margin-top: 0;
}

.tt-home-app-promo__copy h2 {
    margin: 0;
    color: var(--tt-app-ink);
    font-size: clamp(38px, 3.55vw, 43px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.055em;
}

.tt-home-app-promo__copy h2 > span {
    display: block;
    white-space: nowrap;
}

.tt-home-app-promo__copy h2 em {
    color: var(--tt-app-orange);
    font-style: normal;
    letter-spacing: -.08em;
}

.tt-home-app-promo__copy p {
    max-width: 535px;
    margin: 13px 0 0;
    color: var(--tt-app-muted);
    font-size: 17px;
    font-weight: 430;
    line-height: 1.42;
    letter-spacing: -.025em;
}

.tt-home-app-promo__features {
    width: 100%;
    margin-top: 18px;
    margin-left: -5px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.tt-home-app-promo__features button {
    min-height: 50px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(31, 40, 48, .045);
    border-radius: 15px;
    color: #35404b;
    background: rgba(255, 255, 255, .87);
    box-shadow: 0 9px 26px rgba(29, 36, 43, .07);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tt-home-app-promo__features svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--tt-app-orange);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tt-home-app-promo__features button:hover,
.tt-home-app-promo__features button:focus-visible,
.tt-home-app-promo__features button.is-active {
    border-color: rgba(255, 91, 10, .2);
    color: #14191e;
    box-shadow: 0 14px 31px rgba(39, 42, 48, .1);
    transform: translateY(-3px);
}

.tt-home-app-promo__actions {
    margin-top: 18px;
    margin-left: -5px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.tt-home-app-promo__download {
    position: relative;
    min-width: 260px;
    min-height: 58px;
    overflow: hidden;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #ff6907 0%, #ff5000 100%);
    box-shadow: 0 14px 30px rgba(255, 83, 0, .2);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.025em;
    transition: transform .22s ease, box-shadow .22s ease;
}

.tt-home-app-promo__download::after {
    position: absolute;
    top: -25%;
    left: -42%;
    width: 28%;
    height: 150%;
    background: rgba(255, 255, 255, .24);
    content: "";
    filter: blur(4px);
    transform: translateX(0) skewX(-22deg);
    animation: tt-app-button-shine 6s 2.2s ease-in-out infinite;
}

.tt-home-app-promo__download svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tt-home-app-promo__download:hover,
.tt-home-app-promo__download:focus-visible {
    color: #fff;
    box-shadow: 0 20px 38px rgba(255, 83, 0, .27);
    transform: translateY(-3px) scale(1.012);
}

.tt-home-app-promo__download:active {
    transform: translateY(0) scale(.985);
}

.tt-home-app-promo__beta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #35404b;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tt-home-app-promo__beta > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1.5px dashed rgba(255, 91, 10, .9);
    border-radius: 50%;
    color: var(--tt-app-orange);
    transition: transform .24s ease;
}

.tt-home-app-promo__beta svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tt-home-app-promo__beta:hover,
.tt-home-app-promo__beta:focus-visible {
    color: var(--tt-app-orange-deep);
}

.tt-home-app-promo__beta:hover > span,
.tt-home-app-promo__beta:focus-visible > span {
    transform: rotate(9deg) scale(1.07);
}

.tt-home-app-promo__downloads {
    margin: 9px 0 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #7a838c;
    font-size: 11px;
    font-weight: 600;
}

.tt-home-app-promo__downloads::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42a85c;
    box-shadow: 0 0 0 4px rgba(66, 168, 92, .1);
    content: "";
}

.tt-home-app-promo__downloads strong {
    color: #303942;
    font-size: 13px;
}

.tt-home-app-promo__phone {
    position: absolute;
    z-index: 3;
    top: -15px;
    left: 57%;
    width: clamp(228px, 21.5vw, 258px);
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transform: translate(var(--tt-app-phone-x), var(--tt-app-phone-y));
    animation: tt-app-phone-enter 1.05s .18s cubic-bezier(.16, 1, .3, 1) forwards;
    transition: transform .28s ease-out;
}

.tt-home-app-promo__phone > div {
    background: transparent;
    animation: tt-app-phone-float 6.2s 1.3s ease-in-out infinite;
}

.tt-home-app-promo__phone img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    filter: drop-shadow(0 18px 23px rgba(24, 28, 30, .18));
}

.tt-home-app-promo__callouts {
    position: absolute;
    z-index: 5;
    top: 11%;
    right: 2.1%;
    bottom: 10%;
    width: 16.2%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.tt-home-app-promo__callout {
    --tt-app-card-rotate: 4deg;
    position: relative;
    width: 100%;
    min-height: 138px;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 4px solid rgba(255, 255, 255, .76);
    border-radius: 18px;
    color: var(--tt-app-ink);
    background: rgba(253, 250, 248, .92);
    box-shadow: 0 18px 43px rgba(38, 42, 47, .09);
    text-align: left;
    cursor: pointer;
    opacity: .88;
    pointer-events: auto;
    transform: rotate(var(--tt-app-card-rotate));
    transition: opacity .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
    animation: tt-app-card-float 6.4s 1.6s ease-in-out infinite;
}

.tt-home-app-promo__callout:nth-child(2) {
    --tt-app-card-rotate: -4deg;
    animation-delay: .4s;
}

.tt-home-app-promo__callout svg {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    fill: none;
    stroke: var(--tt-app-orange);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.tt-home-app-promo__callout--navigator svg {
    stroke: #45a75b;
}

.tt-home-app-promo__callout strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.tt-home-app-promo__callout span {
    margin-top: 5px;
    color: #3e4751;
    font-size: 11px;
    line-height: 1.35;
}

.tt-home-app-promo__callout:hover,
.tt-home-app-promo__callout:focus-visible,
.tt-home-app-promo__callout.is-active {
    border-color: rgba(255, 255, 255, .98);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 48px rgba(37, 42, 47, .14);
    opacity: 1;
}

.tt-home-app-promo__pin {
    position: absolute;
    z-index: 2;
    left: 36.5%;
    bottom: 4%;
    width: 27px;
    height: 27px;
    fill: #ff8a4c;
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 10px 9px rgba(255, 111, 38, .19));
    animation: tt-app-pin-bob 3.5s ease-in-out infinite;
}

/* Dark theme: preserve the mountain artwork while turning the banner into a
   low-glare night surface that matches the rest of the homepage. */
html[data-theme="dark"] .tt-home-app-promo {
    --tt-app-ink: #f4f7fb;
    --tt-app-muted: #a7b5c6;
    border-color: rgba(111, 135, 163, .2);
    background: #071320;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .tt-home-app-promo::after {
    box-shadow: inset 0 0 0 1px rgba(192, 208, 226, .07);
}

html[data-theme="dark"] .tt-home-app-promo__backdrop {
    opacity: .58;
    filter: brightness(.22) contrast(1.24) saturate(.62);
    mix-blend-mode: screen;
}

html[data-theme="dark"] .tt-home-app-promo__features button {
    border-color: rgba(130, 155, 184, .2);
    color: #dce5ef;
    background: rgba(10, 24, 38, .88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .tt-home-app-promo__features button:hover,
html[data-theme="dark"] .tt-home-app-promo__features button:focus-visible,
html[data-theme="dark"] .tt-home-app-promo__features button.is-active {
    border-color: rgba(255, 112, 38, .48);
    color: #fff;
    background: rgba(19, 38, 57, .96);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255, 103, 29, .06);
}

html[data-theme="dark"] .tt-home-app-promo__beta {
    color: #c6d2df;
}

html[data-theme="dark"] .tt-home-app-promo__beta:hover,
html[data-theme="dark"] .tt-home-app-promo__beta:focus-visible {
    color: #ff9560;
}

html[data-theme="dark"] .tt-home-app-promo__downloads {
    color: #8495a9;
}

html[data-theme="dark"] .tt-home-app-promo__downloads strong {
    color: #dce5ef;
}

html[data-theme="dark"] .tt-home-app-promo__downloads::before {
    background: #5bc875;
    box-shadow: 0 0 0 4px rgba(91, 200, 117, .12);
}

html[data-theme="dark"] .tt-home-app-promo__phone img {
    filter: brightness(.9) saturate(.88) contrast(1.04) drop-shadow(0 22px 30px rgba(0, 0, 0, .42));
}

html[data-theme="dark"] .tt-home-app-promo__callout {
    border-color: rgba(119, 145, 174, .28);
    color: #f2f6fb;
    background: rgba(10, 24, 38, .92);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .04);
}

html[data-theme="dark"] .tt-home-app-promo__callout span {
    color: #a8b7c8;
}

html[data-theme="dark"] .tt-home-app-promo__callout:hover,
html[data-theme="dark"] .tt-home-app-promo__callout:focus-visible,
html[data-theme="dark"] .tt-home-app-promo__callout.is-active {
    border-color: rgba(255, 116, 46, .46);
    background: rgba(17, 34, 51, .98);
    box-shadow: 0 26px 54px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 103, 29, .05);
}

html[data-theme="dark"] .tt-home-app-promo__pin {
    stroke: #071320;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .38));
}

.tt-home-app-promo :is(button, a):focus-visible,
.tt-mobile-app-prompt :is(button, a):focus-visible {
    outline: 3px solid rgba(255, 91, 10, .3);
    outline-offset: 3px;
}

.tt-mobile-app-prompt {
    display: none;
}

@keyframes tt-app-button-shine {
    0%, 74% { transform: translateX(0) skewX(-22deg); }
    92%, 100% { transform: translateX(590%) skewX(-22deg); }
}

@keyframes tt-app-phone-enter {
    from { opacity: 0; transform: translate(72px, 20px) rotate(5deg) scale(.955); }
    to { opacity: 1; }
}

@keyframes tt-app-phone-float {
    0%, 100% { transform: translateY(0) rotate(-.25deg); }
    50% { transform: translateY(-8px) rotate(.25deg); }
}

@keyframes tt-app-card-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

@keyframes tt-app-pin-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes tt-mobile-app-prompt-fade {
    from { opacity: 0; }
}

@keyframes tt-mobile-app-prompt-pop {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
}

@media (max-width: 1180px) and (min-width: 1024px) {
    .tt-home-app-promo {
        height: clamp(410px, 35.5vw, 420px);
    }

    .tt-home-app-promo__content {
        width: 64%;
        padding: 30px 0 20px 30px;
    }

    .tt-home-app-promo__copy {
        margin-top: 0;
    }

    .tt-home-app-promo__copy h2 {
        font-size: 38px;
    }

    .tt-home-app-promo__copy p {
        max-width: 510px;
        font-size: 16px;
    }

    .tt-home-app-promo__features {
        max-width: 550px;
        flex-wrap: nowrap;
    }

    .tt-home-app-promo__features button {
        min-height: 46px;
        padding-inline: 11px;
        font-size: 12px;
    }

    .tt-home-app-promo__actions {
        margin-top: 18px;
    }

    .tt-home-app-promo__download {
        min-width: 250px;
        min-height: 56px;
        padding-inline: 21px;
        font-size: 15px;
    }

    .tt-home-app-promo__phone {
        top: -4px;
        left: 67%;
        width: 228px;
    }

    .tt-home-app-promo__callouts {
        display: none;
    }
}

@media (max-width: 1023px) {
    .tt-home-app-promo {
        display: none !important;
    }

    body.tt-mobile-app-prompt-open {
        overflow: hidden;
    }

    .tt-mobile-app-prompt.is-open:not([hidden]) {
        position: fixed;
        z-index: 1200;
        inset: 0;
        padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
        display: grid;
        place-items: end center;
        animation: tt-mobile-app-prompt-fade .22s ease both;
    }

    .tt-mobile-app-prompt__backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(12, 18, 23, .48);
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        cursor: pointer;
    }

    .tt-mobile-app-prompt__dialog {
        position: relative;
        width: min(100%, 480px);
        max-height: calc(100dvh - 32px);
        overflow: auto;
        padding: 30px 22px 22px;
        border: 1px solid rgba(26, 34, 40, .07);
        border-radius: 28px;
        background: #fffdfb;
        box-shadow: 0 30px 90px rgba(16, 22, 27, .3);
        color: #15191d;
        text-align: center;
        animation: tt-mobile-app-prompt-pop .45s cubic-bezier(.16, 1, .3, 1) both;
    }

    .tt-mobile-app-prompt__close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        color: #46515b;
        background: #f2efec;
        cursor: pointer;
        font-size: 27px;
        font-weight: 400;
        line-height: 1;
    }

    .tt-mobile-app-prompt__icon {
        width: 68px;
        height: 68px;
        margin: 0 auto;
        display: grid;
        place-items: center;
        border-radius: 21px;
        background: linear-gradient(145deg, #ff6a16, #ff4e00);
        box-shadow: 0 14px 28px rgba(255, 83, 0, .22);
    }

    .tt-mobile-app-prompt__icon img {
        width: 42px;
        height: 42px;
        filter: brightness(0) invert(1);
    }

    .tt-mobile-app-prompt__eyebrow {
        margin-top: 18px;
        display: inline-flex;
        padding: 6px 11px;
        border-radius: 999px;
        color: #e84c05;
        background: rgba(255, 91, 10, .09);
        font-size: 11px;
        font-weight: 850;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .tt-mobile-app-prompt h2 {
        margin: 14px auto 0;
        max-width: 360px;
        color: #12171b;
        font-size: clamp(28px, 8vw, 36px);
        font-weight: 850;
        line-height: 1.08;
        letter-spacing: -.045em;
    }

    .tt-mobile-app-prompt__dialog > p:not(.tt-mobile-app-prompt__downloads) {
        max-width: 380px;
        margin: 14px auto 0;
        color: #596570;
        font-size: 15px;
        line-height: 1.5;
    }

    .tt-mobile-app-prompt__actions {
        margin-top: 24px;
        display: grid;
        gap: 10px;
    }

    .tt-mobile-app-prompt__actions > a,
    .tt-mobile-app-prompt__actions > button {
        width: 100%;
        min-height: 58px;
        padding: 0 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        border-radius: 17px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 780;
    }

    .tt-mobile-app-prompt__actions > a {
        color: #fff;
        background: linear-gradient(135deg, #ff6907, #ff5000);
        box-shadow: 0 13px 28px rgba(255, 83, 0, .2);
    }

    .tt-mobile-app-prompt__actions > a svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .tt-mobile-app-prompt__actions > button {
        border: 1px solid #e2e6ea;
        color: #3e4953;
        background: #fff;
    }

    .tt-mobile-app-prompt__beta {
        margin-top: 16px;
        display: inline-flex;
        color: #e8500a;
        font-size: 13px;
        font-weight: 750;
        text-decoration: underline;
        text-decoration-color: rgba(232, 80, 10, .3);
        text-underline-offset: 4px;
    }

    .tt-mobile-app-prompt__downloads {
        margin: 15px 0 0;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 5px;
        color: #89919a;
        font-size: 12px;
    }

    .tt-mobile-app-prompt__downloads strong {
        color: #46515b;
        font-size: 13px;
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__backdrop {
        background: rgba(3, 9, 16, .7);
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__dialog {
        border-color: rgba(114, 139, 168, .22);
        color: #eef4fb;
        background: #0c1928;
        box-shadow: 0 34px 96px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .04);
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__close {
        color: #c3cfdd;
        background: #17273a;
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__eyebrow {
        color: #ff9560;
        background: rgba(255, 103, 29, .14);
    }

    html[data-theme="dark"] .tt-mobile-app-prompt h2 {
        color: #f5f8fc;
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__dialog > p:not(.tt-mobile-app-prompt__downloads) {
        color: #a3b2c4;
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__actions > button {
        border-color: #30445b;
        color: #dce6f0;
        background: #142438;
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__downloads {
        color: #8092a7;
    }

    html[data-theme="dark"] .tt-mobile-app-prompt__downloads strong {
        color: #dbe5ef;
    }
}

@media (min-width: 1024px) {
    .tt-mobile-app-prompt {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-home-app-promo *,
    .tt-home-app-promo *::before,
    .tt-home-app-promo *::after,
    .tt-mobile-app-prompt *,
    .tt-mobile-app-prompt *::before,
    .tt-mobile-app-prompt *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
