:root {
    color-scheme: light;
    --red: #ed0716;
    --red-dark: #b70b18;
    --orange: #ff6b19;
    --ink: #172033;
    --muted: #657086;
    --line: #e4e7ed;
    --surface: #ffffff;
    --soft: #fff6f2;
    --focus: #1264d1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: inherit; }

button, a, summary { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    text-decoration: none;
}

.brand img { flex: 0 0 auto; object-fit: contain; }
.brand span { display: grid; min-width: 0; }
.brand strong { font-size: 15px; line-height: 1.25; }
.brand small { color: var(--muted); font-size: 12px; }

.directory-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.directory-link svg, .download-button svg, .benefits svg, .file-details summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.download-section {
    position: relative;
    display: grid;
    gap: 32px;
    min-height: calc(100svh - 72px);
    padding: 48px 20px 36px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff 0%, #fff9f6 72%, #fff 100%);
}

.download-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-heading { display: grid; gap: 18px; }

.app-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, var(--red), var(--orange));
    box-shadow: 0 14px 32px rgba(237,7,22,.2);
}

.app-mark span { font-size: 14px; font-weight: 900; }

h1, h2, p { margin-top: 0; }

h1 {
    max-width: 650px;
    margin-bottom: 16px;
    font-size: clamp(34px, 8vw, 64px);
    line-height: 1.05;
    letter-spacing: 0;
}

.lead {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.download-actions { margin-top: 28px; }

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 10px 18px;
    border-radius: 6px;
    color: #fff;
    background: var(--red);
    box-shadow: 0 14px 28px rgba(237,7,22,.22);
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.download-button:hover {
    background: var(--red-dark);
    box-shadow: 0 18px 34px rgba(183,11,24,.26);
    transform: translateY(-2px);
}

.download-button svg { width: 24px; height: 24px; flex: 0 0 auto; }
.download-button span { display: grid; text-align: left; }
.download-button strong { font-size: 16px; }
.download-button small { color: rgba(255,255,255,.82); font-size: 12px; }

.download-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.benefits {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #3b465b;
    font-size: 15px;
}

.benefits svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    color: #fff;
    background: #18864b;
}

.visual-stage {
    position: relative;
    display: grid;
    place-items: end center;
    min-height: 390px;
    isolation: isolate;
}

.visual-disc {
    position: absolute;
    bottom: 24px;
    left: 50%;
    width: min(92vw, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffd9c7;
    transform: translateX(-50%);
    z-index: -1;
}

.app-mascot {
    width: auto;
    max-width: min(76vw, 330px);
    max-height: 470px;
    object-fit: contain;
    filter: drop-shadow(0 24px 24px rgba(78,38,18,.18));
    animation: arrive .7s cubic-bezier(.2,.75,.25,1) both;
}

.app-ticket {
    position: absolute;
    right: max(0px, calc(50% - 220px));
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(238px, 72vw);
    padding: 12px;
    border: 1px solid rgba(237,7,22,.14);
    border-radius: 6px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 36px rgba(23,32,51,.16);
}

.ticket-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: var(--red);
    background: #ffeded;
}

.ticket-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app-ticket > span:last-child { display: grid; }
.app-ticket strong { font-size: 14px; }
.app-ticket small { color: var(--muted); font-size: 11px; }

.install-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 20px 72px;
}

.section-heading { max-width: 560px; }
h2 { margin-bottom: 24px; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; }

.install-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.install-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.install-steps li > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--red);
    background: #ffeded;
    font-weight: 900;
}

.install-steps strong { display: block; margin: 1px 0 3px; }
.install-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.file-details {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fafbfc;
}

.file-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.file-details summary::-webkit-details-marker { display: none; }
.file-details[open] summary svg { transform: rotate(180deg); }
.file-details-body { padding: 0 18px 18px; color: var(--muted); font-size: 14px; }
.file-details-body dl { display: grid; gap: 10px; margin: 0 0 14px; }
.file-details-body dl div { display: grid; gap: 2px; }
.file-details-body dt { color: var(--ink); font-weight: 700; }
.file-details-body dd { margin: 0; }
.file-details-body code { overflow-wrap: anywhere; color: #3b465b; font-size: 12px; }
.file-details-body p { margin: 0; }

footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 13px;
    text-align: center;
}

footer p { margin: 0; }
footer a { color: var(--red); font-weight: 750; text-decoration: none; }

@keyframes arrive {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 720px) {
    .site-header { min-height: 78px; }
    .brand strong { font-size: 16px; }
    .download-section {
        grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
        align-items: center;
        min-height: min(760px, calc(100svh - 78px));
        padding: 58px clamp(36px, 7vw, 110px);
    }
    .download-copy { margin: 0; }
    .app-heading { grid-template-columns: 76px 1fr; align-items: start; }
    .download-button { width: max-content; min-width: 330px; }
    .download-note { width: 330px; text-align: left; }
    .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visual-stage { min-height: 540px; }
    .app-mascot { max-width: min(34vw, 400px); max-height: 540px; }
    .visual-disc { width: min(38vw, 520px); }
    .install-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .install-steps li { grid-template-columns: 1fr; align-content: start; min-height: 184px; }
    .file-details-body dl { grid-template-columns: 1fr 1fr 2fr; }
    footer { flex-direction: row; justify-content: space-between; padding-inline: clamp(36px, 7vw, 110px); text-align: left; }
}

@media (max-width: 430px) {
    .directory-link { width: 44px; padding: 0; }
    .directory-link { font-size: 0; }
    .directory-link svg { width: 19px; height: 19px; }
    .download-section { padding-top: 36px; }
    .visual-stage { min-height: 360px; }
    .app-mascot { max-height: 410px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
