:root {
    --ink: #121923;
    --muted: #596272;
    --line: #eceff3;
    --paper: #ffffff;
    --soft: #fff4ee;
    --orange: #ff7f40;
    --orange-dark: #e96f36;
    --orange-light: #ff9b68;
    --orange-rgb: 255, 127, 64;
    --orange-soft: #fff0e8;
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-rgb: 124, 58, 237;
    --shadow: 0 20px 60px rgba(18, 25, 35, 0.08);
    --radius: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at 24% 19%, rgba(var(--orange-rgb), 0.10) 0 18%, transparent 30%),
    linear-gradient(180deg, #fff 0%, #fffaf7 42%, #fff 68%);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 40px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.brand {
    display: block;
    flex: 0 0 auto;
    position: relative;
    width: 272px;
    height: 104px;
    overflow: hidden;
}

.brand-logo {
    position: relative;
    width: 340px;
    max-width: none;
    height: auto;
    transform: translate(-38px, -68px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 38px);
    font-size: 15px;
    font-weight: 600;
    color: #202735;
}

.nav a {
    padding: 10px 0;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 118px;
    min-height: 52px;
    border: 1px solid rgba(18, 25, 35, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    color: #202735;
    box-shadow: 0 10px 24px rgba(18, 25, 35, 0.06);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-menu-toggle-lines {
    display: grid;
    gap: 4px;
    width: 20px;
}

.mobile-menu-toggle-lines span {
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-lines span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    color: #202735;
    font-size: 17px;
    font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    background: rgba(var(--orange-rgb), 0.10);
    color: var(--orange-dark);
}

.mobile-menu-toggle:focus-visible,
.mobile-nav a:focus-visible {
    outline: 3px solid rgba(var(--orange-rgb), 0.45);
    outline-offset: 3px;
}

.portal-link,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--orange-rgb), 0.25);
    font-weight: 800;
}

.portal-link {
    flex: 0 0 auto;
    padding: 0 26px;
}

.primary-link {
    padding: 0 28px;
    min-width: 300px;
}

#buddyLoginButton {
    order: 2;
    min-width: 260px;
    min-height: 74px;
    margin-left: auto;
    padding: 0 42px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(var(--purple-rgb), 0.38);
    font-size: 24px;
    letter-spacing: 0.01em;
    cursor: pointer;
    pointer-events: auto;
    animation: buddy-login-blink 1.1s ease-in-out infinite;
}

#buddyLoginButton svg {
    width: 28px;
    height: 28px;
}

#buddyLoginButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(var(--purple-rgb), 0.44);
}

#buddyLoginButton:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 12px 30px rgba(var(--purple-rgb), 0.34);
}

#buddyLoginButton:focus-visible {
    outline: 4px solid rgba(var(--purple-rgb), 0.45);
    outline-offset: 4px;
}

@keyframes buddy-login-blink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 18px 42px rgba(var(--purple-rgb), 0.38);
    }

    50% {
        opacity: 0.74;
        box-shadow: 0 0 0 10px rgba(var(--purple-rgb), 0.12), 0 24px 54px rgba(var(--purple-rgb), 0.52);
    }
}

@media (prefers-reduced-motion: reduce) {
    #buddyLoginButton {
        animation: none;
    }
}

.buddy-hero-banner {
    margin-bottom: 1rem;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(420px, 0.94fr);
    align-items: center;
    gap: 48px;
    min-height: 492px;
    overflow: hidden;
}

.hero::after,
.app-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.64;
    background: repeating-radial-gradient(ellipse at center, transparent 0 20px, rgba(var(--orange-rgb), 0.24) 21px 22px, transparent 23px 44px);
}

.hero::after {
    width: 620px;
    height: 430px;
    right: -205px;
    bottom: -42px;
    transform: rotate(-15deg);
}

.hero-art {
    position: relative;
    min-height: 470px;
    align-self: end;
}

.hero-glow {
    position: absolute;
    width: min(430px, 82vw);
    aspect-ratio: 1;
    left: 50%;
    top: 8px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--orange-rgb), 0.18), rgba(var(--orange-rgb), 0.07) 58%, transparent 70%);
}

.buddy-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(460px, 88vw);
    height: auto;
    transform: translateX(-50%);
    object-fit: contain;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding-bottom: 60px;
}

.hero-title {
    margin: 0;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 900;
}

.hero-title span {
    display: block;
    margin-top: 18px;
    color: var(--orange);
}

.hero-copy p {
    max-width: 430px;
    margin: 34px 0 30px;
    color: #293241;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #202735;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.section-card {
    position: relative;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.services {
    margin-top: -8px;
    padding: 22px;
}

.section-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 304px;
    padding: 28px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(18, 25, 35, 0.04);
    text-align: center;
}

.icon-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange);
}

.service-card h3 {
    min-height: 48px;
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.service-card p {
    margin: 0;
    color: #333b4a;
    font-size: 15px;
    line-height: 1.58;
    font-weight: 500;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--orange);
    font-size: 15px;
    font-weight: 900;
}

.app-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 30px;
    align-items: stretch;
    margin-top: 14px;
    overflow: hidden;
    background: linear-gradient(90deg, #fff8f3 0%, #fff 49%, rgba(var(--orange-rgb), 0.95) 100%);
}

.app-card::after {
    width: 520px;
    height: 360px;
    right: -150px;
    top: 38px;
    opacity: 0.28;
}

.app-copy {
    position: relative;
    z-index: 1;
    padding: 36px 0 30px 50px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid var(--orange);
    border-radius: 999px;
    color: var(--orange);
    background: #fff;
    font-size: 14px;
    font-weight: 900;
}

.app-copy h2 {
    max-width: 540px;
    margin: 0 0 24px;
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1.06;
    letter-spacing: 0;
    font-weight: 900;
}

.app-copy h2 span {
    color: var(--orange);
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: #2a3443;
    font-size: 17px;
    font-weight: 600;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    min-height: 56px;
    padding: 7px 18px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(18, 25, 35, 0.06);
    line-height: 1.05;
}

.store-link small {
    display: block;
    font-size: 10px;
    color: #303847;
    text-transform: uppercase;
    font-weight: 800;
}

.store-link strong {
    display: block;
    margin-top: 1px;
    font-size: 22px;
    font-weight: 800;
}

.shield-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #384354;
    font-size: 15px;
    font-weight: 700;
}

.phone-scene {
    position: relative;
    min-height: 455px;
    isolation: isolate;
    z-index: 1;
}

.app-buddy-robot {
    position: absolute;
    right: clamp(-72px, -4vw, -28px);
    bottom: -20px;
    z-index: 3;
    width: clamp(280px, 34vw, 430px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 34px rgba(18, 25, 35, 0.24));
    pointer-events: none;
}

.phone {
    position: absolute;
    z-index: 2;
    width: 205px;
    height: 410px;
    border: 9px solid #2a2e33;
    border-radius: 34px;
    background: #f6f7f9;
    box-shadow: 0 28px 48px rgba(18, 25, 35, 0.26);
    overflow: hidden;
}

.phone::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 3;
    width: 80px;
    height: 22px;
    border-radius: 0 0 16px 16px;
    background: #22262b;
    transform: translateX(-50%);
}

.phone.front {
    left: 34px;
    bottom: -14px;
    transform: rotate(7deg);
}

.phone.back {
    right: 82px;
    bottom: -6px;
    transform: rotate(12deg);
    opacity: 0.96;
}

.phone-bar {
    height: 72px;
    padding: 24px 16px 0;
    background: linear-gradient(180deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.phone-body {
    padding: 18px 14px;
}

.phone-panel {
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(18, 25, 35, 0.08);
}

.phone-label--spaced {
    margin-top: 14px;
}

.phone-label {
    margin: 0 0 8px;
    color: #88909d;
    font-size: 9px;
    font-weight: 800;
}

.phone-value {
    margin: 0;
    color: #202735;
    font-size: 20px;
    font-weight: 900;
}

.phone-growth {
    margin: 14px 0 12px;
    color: #20b26b;
    font-size: 16px;
    font-weight: 900;
}

.chart {
    width: 100%;
    height: 105px;
    margin-top: 6px;
}

.doc-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    color: #202735;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(18, 25, 35, 0.06);
}

.doc-row span:last-child {
    color: var(--orange);
    font-size: 18px;
}

.steps {
    margin: 0 auto 36px;
}

.steps .section-title {
    position: relative;
    margin-bottom: 26px;
}

.steps .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 38px;
    height: 2px;
    background: var(--orange);
    transform: translateX(-50%);
}

.step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 36px;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 30px 62px 1fr;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -28px;
    width: 74px;
    border-top: 1px dashed #d4b4a1;
    transform: translateY(-50%);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.step-description {
    padding-left: 1rem;
}

.step h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
}

.step p {
    margin: 0;
    color: #263241;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
}

.contact-strip {
    display: grid;
    grid-template-columns: minmax(300px, 1.25fr) repeat(3, minmax(165px, 1fr));
    gap: 26px;
    align-items: center;
    padding: 30px 48px;
    margin-top: 2rem;
    border-radius: 22px;
    background: linear-gradient(180deg, var(--orange), var(--orange-dark));
    color: #fff;
    box-shadow: 0 20px 50px rgba(var(--orange-rgb), 0.22);
}

.contact-main,
.contact-link {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.contact-main h2 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
}

.contact-main p,
.contact-link p {
    margin: 0;
    line-height: 1.35;
    font-size: 15px;
    font-weight: 600;
}

.contact-link strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.contact-icon,
.step-icon,
.icon-bubble svg,
.store-link svg {
    flex: 0 0 auto;
}

.contact-icon {
    width: 60px;
    height: 60px;
}

@media (max-width: 1050px) {
    .page {
        width: min(930px, calc(100% - 32px));
        padding-top: 24px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .hero-art {
        order: 2;
        min-height: 390px;
        margin-top: -16px;
    }

    .hero-copy {
        max-width: 720px;
        padding-bottom: 0;
    }

    .buddy-image {
        width: min(410px, 88vw);
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-card {
        grid-template-columns: 1fr;
    }

    .app-copy {
        padding: 34px 34px 0;
    }

    .phone-scene {
        min-height: 430px;
    }

    .app-buddy-robot {
        right: 2%;
        bottom: -22px;
        width: min(360px, 42vw);
    }

    .phone.front {
        left: 27%;
    }

    .phone.back {
        right: 22%;
    }

    .step-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 680px;
        margin: 0 auto;
    }

    .step {
        grid-template-columns: 30px 62px 1fr;
        padding: 10px 0;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .contact-strip {
        grid-template-columns: 1fr 1fr;
        padding: 28px;
    }

    .services {
        margin-top: 20px;
    }
}

@media (max-width: 680px) {
    .page {
        width: min(100% - 24px, 520px);
        padding: 18px 0 28px;
    }

    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .brand {
        width: min(242px, 100%);
        height: 96px;
    }

    .brand-logo {
        width: 300px;
        transform: translate(-32px, -59px);
    }

    .portal-link {
        width: 100%;
    }

    .nav {
        gap: 20px;
        font-size: 14px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        justify-self: end;
    }

    .mobile-nav {
        grid-column: 1 / -1;
        display: grid;
        width: 100%;
        gap: 6px;
        padding: 10px;
        border: 1px solid rgba(18, 25, 35, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 18px 42px rgba(18, 25, 35, 0.08);
    }

    .hero-title {
        font-size: 43px;
    }

    .hero-title span {
        margin-top: 10px;
    }

    .hero-copy p {
        margin: 22px 0;
        font-size: 18px;
    }

    .hero-actions {
        gap: 18px;
    }

    .primary-link {
        width: 100%;
        min-width: 0;
    }

    #buddyLoginButton {
        order: 0;
        min-height: 68px;
        margin-left: 0;
        padding: 0 34px;
        font-size: 22px;
    }

    .hero-art {
        min-height: 330px;
    }

    .buddy-image {
        width: min(340px, 90vw);
    }

    .services {
        padding: 18px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }

    .service-card h3 {
        min-height: auto;
    }

    .app-card {
        background: linear-gradient(180deg, #fff8f3 0%, #fff 56%, var(--orange) 100%);
    }

    .app-copy {
        padding: 28px 22px 0;
    }

    .app-copy h2 {
        font-size: 34px;
    }

    .feature-list {
        font-size: 15px;
    }

    .store-link {
        width: 100%;
    }

    .phone-scene {
        min-height: 350px;
    }

    .app-buddy-robot {
        right: -28px;
        bottom: -14px;
        width: min(280px, 54vw);
    }

    .phone {
        width: 170px;
        height: 338px;
        border-width: 7px;
    }

    .phone.front {
        left: 14%;
    }

    .phone.back {
        right: 10%;
    }

    .phone-value {
        font-size: 17px;
    }

    .chart {
        height: 74px;
    }

    .step {
        grid-template-columns: 26px 54px 1fr;
        gap: 12px;
    }

    .step-icon {
        width: 54px;
        height: 54px;
    }

    .contact-strip {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px;
        border-radius: 18px;
    }

    .contact-main h2 {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .brand {
        width: min(210px, 100%);
        height: 82px;
    }

    .brand-logo {
        width: 260px;
        transform: translate(-28px, -51px);
    }

    .mobile-menu-toggle {
        min-width: 106px;
        min-height: 48px;
        gap: 8px;
        font-size: 15px;
    }

    .hero-title {
        font-size: 38px;
    }

    .buddy-image {
        width: min(300px, 92vw);
    }

    .hero-art {
        min-height: 295px;
    }

    .phone.front {
        left: 6%;
    }

    .phone.back {
        right: 1%;
    }

    .app-buddy-robot {
        right: -42px;
        width: min(230px, 56vw);
    }
}

body.download-dialog-open {
    overflow: hidden;
}

.download-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(18, 25, 35, 0.08);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.download-overlay[hidden] {
    display: none;
}

.download-dialog {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border-radius: 38px;
    background: radial-gradient(ellipse at 36% 50%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.91) 46%,
    rgba(255, 255, 255, 0.66) 76%,
    rgba(255, 255, 255, 0.28) 100%);
    box-shadow: 0 0 42px 12px rgba(255, 255, 255, 0.10),
    0 28px 72px rgba(18, 25, 35, 0.14);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    backdrop-filter: blur(22px) saturate(115%);
}

.download-dialog:focus {
    outline: none;
}

.download-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #202735;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.download-dialog-close:hover {
    transform: translateY(-1px);
    background: #f5f6f7;
}

.download-dialog-close:focus-visible,
.download-submit:focus-visible,
.download-store-link:focus-visible,
.download-consent a:focus-visible,
#marketingConsentToggle:focus-visible {
    outline: 3px solid rgba(var(--orange-rgb), 0.55);
    outline-offset: 3px;
}

.download-desktop-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(390px, 2fr);
    min-height: 650px;
}

.download-dialog-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 38px;
    padding: 56px 54px;
}

.download-heading-group {
    display: grid;
    gap: 12px;
}

.download-title {
    max-width: none;
    margin: 0;
    font-size: clamp(26px, 2.25vw, 32px);
    font-weight: 600;
    letter-spacing: -0.035em;
    text-wrap: balance;
    white-space: nowrap;
}

.download-description {
    max-width: 48ch;
    margin: 0;
    color: #4f5968;
    font-size: 18px;
    line-height: 1.55;
    text-wrap: pretty;
}

.download-form {
    display: grid;
    max-width: 520px;
    gap: 13px;
}

.download-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.download-phone-field {
    display: flex;
    min-width: 0;
    height: 52px;
    align-items: center;
    border-radius: 10px;
    background: #f4f5f6;
}

.download-phone-field:focus-within {
    outline: 2px solid rgba(var(--orange-rgb), 0.42);
    outline-offset: -2px;
}

.download-phone-prefix {
    flex: 0 0 auto;
    padding-left: 16px;
    color: #969da7;
    font-size: 16px;
    user-select: none;
}

.download-phone-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 8px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #202735;
    font: inherit;
    font-size: 16px;
}

.download-phone-input:focus {
    outline: none;
}

.download-submit {
    min-width: 116px;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.download-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.download-form-help {
    margin: 0;
    color: #4f5968;
    font-size: 13px;
    line-height: 1.5;
}

.download-form-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff0ee;
    color: #a21c22;
    font-size: 14px;
    line-height: 1.45;
}

.download-app-modal-page-message {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(25, 135, 84, 0.28);
    border-radius: 0.375rem;
    background: #d1e7dd;
    color: #0f5132;
    font-size: 1rem;
    line-height: 1.5;
}

.download-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4f5968;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.download-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--orange);
}

.download-consent a {
    color: var(--orange-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-qr {
    flex: 0 0 auto;
    width: 116px;
    height: 116px;
}

.download-options-copy {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.download-options-copy p {
    max-width: 26ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    text-wrap: pretty;
}

.download-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-store-link {
    display: inline-flex;
    border-radius: 8px;
}

.download-store-link img {
    width: 132px;
    height: auto;
    border-radius: 6px;
}

.download-dialog-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.download-device-art {
    position: absolute;
    inset: 104px 24px 18px 4px;
}

.download-device-image {
    position: absolute;
    max-width: none;
    object-fit: contain;
}

.download-device-image--single {
    left: 0;
    bottom: 30px;
    z-index: 1;
    width: 234px;
    clip-path: polygon(5% 5%, 83% 0, 99% 94%, 14% 100%);
    mix-blend-mode: multiply;
}

.download-device-image--screens {
    right: 16px;
    bottom: 0;
    z-index: 2;
    width: 310px;
}

.download-dialog-mobile {
    display: none;
}

.download-dialog[data-variant="android"],
.download-dialog[data-variant="ios"] {
    width: min(430px, 100%);
    border-radius: 26px;
}

.download-dialog[data-variant="android"] .download-desktop-content,
.download-dialog[data-variant="ios"] .download-desktop-content {
    display: none;
}

.download-dialog[data-variant="android"] .download-dialog-mobile,
.download-dialog[data-variant="ios"] .download-dialog-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 72px 30px 54px;
    text-align: center;
    background: transparent;
}

.download-mobile-title {
    max-width: 24ch;
    margin: 0;
    font-size: clamp(26px, 7.2vw, 30px);
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.download-mobile-title strong {
    font-weight: 800;
}

.download-mobile-description {
    display: grid;
    gap: 2px;
    margin: 0;
    color: #4f5968;
    font-size: 16px;
    font-style: normal;
    line-height: 1.5;
    text-wrap: pretty;
}

.download-mobile-description span {
    display: block;
}

.download-mobile-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 112px;
    padding: 20px 24px;
    border-radius: 20px;
    background: #f5f6f7;
}

.download-mobile-store img {
    width: 210px;
    height: auto;
    border-radius: 7px;
}

.download-mobile-phone {
    width: min(220px, 70vw);
    height: auto;
    clip-path: polygon(5% 5%, 83% 0, 99% 94%, 14% 100%);
    -webkit-mask-image: radial-gradient(ellipse 76% 76% at center, #000 76%, transparent 100%);
    mask-image: radial-gradient(ellipse 76% 76% at center, #000 76%, transparent 100%);
    mix-blend-mode: multiply;
}

.marketing-consent-text {
    display: block;
    position: relative;
    max-height: 80px;
    overflow: hidden;
}

.marketing-consent-text:not(.is-expanded)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0), #fff);
    pointer-events: none;
}

.marketing-consent-text.is-expanded {
    max-height: none;
}

#marketingConsentToggle {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid rgba(var(--orange-rgb), 0.42);
    border-radius: 999px;
    background: rgba(var(--orange-rgb), 0.08);
    color: var(--orange-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

#marketingConsentToggle::after {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

#marketingConsentToggle:hover {
    border-color: var(--orange);
    background: rgba(var(--orange-rgb), 0.14);
    color: var(--orange-dark);
    transform: translateY(-1px);
}

#marketingConsentToggle:active {
    transform: translateY(0);
}

#marketingConsentToggle[aria-expanded="true"] {
    background: rgba(var(--orange-rgb), 0.14);
}

#marketingConsentToggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
}

@media (max-width: 980px) {
    .download-desktop-content {
        grid-template-columns: 1fr;
    }

    .download-dialog-copy {
        padding: 52px 42px 42px;
    }

    .download-dialog-visual {
        display: none;
    }
}

@media (max-width: 560px) {
    .download-overlay {
        padding: 12px;
    }

    .download-dialog {
        max-height: calc(100dvh - 24px);
        border-radius: 22px;
    }

    .download-dialog-copy {
        gap: 22px;
        padding: 66px 22px 28px;
    }

    .download-title {
        font-size: 32px;
        white-space: normal;
    }

    .download-description,
    .download-options-copy p {
        font-size: 16px;
    }

    .download-form-row {
        grid-template-columns: 1fr;
    }

    .download-submit {
        width: 100%;
    }

    .download-form-help,
    .download-consent {
        font-size: 16px;
    }

    #marketingConsentToggle {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 16px;
    }

    .download-consent input {
        width: 20px;
        height: 20px;
    }

    .download-options {
        align-items: flex-start;
        gap: 14px;
    }

    .download-qr {
        width: 104px;
        height: 104px;
    }

    .download-store-link img {
        width: 122px;
    }

    .download-dialog[data-variant="android"],
    .download-dialog[data-variant="ios"] {
        border-radius: 22px;
    }

    .download-dialog[data-variant="android"] .download-dialog-mobile,
    .download-dialog[data-variant="ios"] .download-dialog-mobile {
        gap: 26px;
        padding: 66px 22px 48px;
    }

    .download-mobile-store {
        min-width: min(260px, 100%);
    }

}
