:root {
    color-scheme: dark;
    --bg: #06060a;
    --surface: #101017;
    --border: #272735;
    --text: #e4e4ef;
    --muted: #a0a0b2;
    --accent: #00e87b;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(ellipse at 50% 0%, #0b251c 0, var(--bg) 55%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}
.shell { width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px; }
.header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo { text-decoration: none; font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.logo span { color: var(--accent); }
.languages { display: flex; flex-wrap: wrap; gap: 4px; }
.languages a {
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 9px;
    border-radius: 8px;
}
.languages a:hover { background: var(--surface); color: var(--text); }
.languages a[aria-current="page"] { color: var(--accent); background: #00e87b12; }
main { padding-block: 36px 48px; }
.intro { text-align: center; margin-bottom: 38px; }
.eyebrow { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
h1 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.15; letter-spacing: -1.5px; margin: 14px 0 16px; }
.intro p { max-width: 560px; margin: 0 auto; font-size: 17px; color: var(--muted); }
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.platform.is-recommended { border-color: #00e87b80; background: linear-gradient(150deg, #11241c, var(--surface) 65%); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: #00e87b0e;
    border-radius: 14px;
}
.icon svg { width: 26px; height: 26px; }
.recommendation { visibility: hidden; font-size: 11px; color: var(--accent); text-align: right; line-height: 1.4; }
.is-recommended .recommendation { visibility: visible; }
.platform h2 { font-size: 21px; letter-spacing: -.4px; margin: 18px 0 8px; line-height: 1.3; }
.pwa-badge { display: inline-block; vertical-align: middle; margin-left: 2px; padding: 3px 6px; border-radius: 5px; background: #00e87b14; color: var(--accent); font-size: 10px; letter-spacing: .02em; }
.platform p { font-size: 14px; color: var(--muted); margin: 0 0 24px; flex: 1; }
.google-play-badge { display: block; padding: 16px; line-height: 0; border-radius: 4px; }
.google-play-badge img { display: block; width: 100%; height: auto; }
.platform .google-play-badge { width: 236px; max-width: calc(100% + 32px); margin: -16px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.platform .button { width: 100%; min-height: 64px; background: #1a1a24; }
.platform .button:hover { background: #242433; border-color: #505063; }
.platform.is-recommended .button { background: var(--accent); color: #062315; border-color: var(--accent); }
.platform.is-recommended .button:hover { background: #25f594; }
.button svg { width: 17px; height: 17px; flex-shrink: 0; }
.alternatives { max-width: 600px; margin: 24px auto 0; text-align: center; }
.alternatives summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    color: var(--muted);
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}
.alternatives summary::-webkit-details-marker { display: none; }
.alternatives summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent); }
.alternatives[open] summary::after { content: "−"; }
.alternatives summary:hover { color: var(--text); }
.apk { margin-top: 8px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; }
.apk p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.apk .button { padding-inline: 24px; }
.pwa-guide { max-width: 900px; margin: 24px auto 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); scroll-margin-top: 24px; }
.pwa-guide > summary { display: flex; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; border-radius: 20px; }
.pwa-guide > summary::-webkit-details-marker { display: none; }
.pwa-guide[open] > summary { border-bottom: 1px solid var(--border); border-radius: 20px 20px 0 0; }
.guide-heading { flex: 1; min-width: 0; }
.guide-heading strong { display: block; font-size: 18px; line-height: 1.4; }
.guide-heading > span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.guide-chevron svg { width: 20px; height: 20px; display: block; color: var(--muted); }
.pwa-guide[open] .guide-chevron { transform: rotate(180deg); }
.guide-body { padding: 26px; }
.guide-intro { display: grid; grid-template-columns: 1fr 180px; gap: 32px; align-items: center; }
.guide-intro p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.guide-address { font-size: 13px !important; }
.guide-address a { display: inline-block; color: var(--accent); font-size: 19px; font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
.button-primary { background: var(--accent); color: #062315; border-color: var(--accent); }
.button-primary:hover { background: #25f594; }
.app-preview { margin: 0; padding: 24px 16px; border: 1px solid #2a4138; background: radial-gradient(ellipse at 50% 0%, #12372a, #0c1513 75%); border-radius: 20px; text-align: center; }
.app-preview img { display: block; margin: 0 auto 10px; border-radius: 18px; }
.app-preview strong { display: block; font-size: 14px; }
.app-preview span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.install-steps { display: grid; gap: 22px; padding: 28px 0; margin: 0; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 16px; }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #00e87b12; color: var(--accent); font-weight: 700; font-size: 14px; }
.install-steps h3 { margin: 1px 0 5px; font-size: 16px; line-height: 1.5; }
.install-steps h3 svg { width: 18px; height: 18px; vertical-align: -3px; margin-left: 4px; color: var(--accent); }
.install-steps p { margin: 0; font-size: 14px; color: var(--muted); }
.guide-help { padding-top: 22px; border-top: 1px solid var(--border); }
.guide-help h3 { font-size: 16px; margin: 0 0 8px; }
.guide-help details { border-bottom: 1px solid var(--border); }
.guide-help summary { padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.guide-help p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.guide-sources { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
.guide-sources a { text-underline-offset: 3px; }
.learn-more { margin-top: 34px; text-align: center; }
.learn-more p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.learn-more .button { min-width: 190px; background: transparent; }
.learn-more .button:hover { background: var(--surface); border-color: #505063; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer a { text-underline-offset: 3px; }

@media (max-width: 1100px) {
    .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; margin-inline: auto; }
}
@media (max-width: 600px) {
    .shell { padding-inline: 20px; }
    .header { min-height: 76px; }
    main { padding-top: 22px; }
    .intro { margin-bottom: 28px; }
    h1 { letter-spacing: -.8px; }
    .intro p { font-size: 15px; }
    .platforms { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 12px; }
    .platform { padding: 20px; }
    .platform.is-recommended { order: -1; }
    .platform h2 { margin-top: 12px; font-size: 21px; }
    .platform p { margin-bottom: 18px; }
    .platform .button { min-height: 48px; }
    .learn-more { margin-top: 26px; }
    .pwa-guide > summary { padding: 18px; gap: 12px; }
    .pwa-guide > summary .icon { width: 38px; height: 38px; }
    .guide-heading strong { font-size: 16px; }
    .guide-heading > span { font-size: 12px; }
    .guide-body { padding: 20px; }
    .guide-intro { grid-template-columns: 1fr; gap: 20px; }
    .app-preview { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; }
    .app-preview img { width: 52px; height: 52px; margin: 0; border-radius: 12px; }
    .guide-intro .button { width: 100%; }
    .install-steps li { gap: 12px; }
}
@media (max-width: 360px) {
    .shell { padding-inline: 16px; }
    .header { gap: 8px; }
    .languages a { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
}
