/* Public-site refinements; the existing layouts and content remain the source of truth. */
body.web-complete {
    --design-blue: #245d96;
    --design-orange: #984008;
    --design-green: #126e59;
    --design-windows: #285aad;
}

:root[data-theme="dark"] body.web-complete {
    --design-blue: #9dc5ff;
    --design-orange: #ffbf88;
    --design-green: #83e4ce;
    --design-windows: #abc7ff;
}

body[data-page="home"] .home-description {
    max-width: 42ch;
    line-height: 1.55;
}

body[data-page="home"] .home-disclaimer {
    line-height: 1.6;
}

body[data-page="home"] .home-device {
    min-height: 190px;
    gap: 5px;
    padding: 18px 12px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

body[data-page="home"] .home-device[data-device="android-tv"] { --device-ink: var(--design-blue); }
body[data-page="home"] .home-device[data-device="fire-tv"] { --device-ink: var(--design-orange); }
body[data-page="home"] .home-device[data-device="android"] { --device-ink: var(--design-green); }
body[data-page="home"] .home-device[data-device="windows"] { --device-ink: var(--design-windows); }

body[data-page="home"] .home-device-icon {
    width: 44px;
    height: 44px;
    color: var(--device-ink);
}

body[data-page="home"] .home-device strong {
    font-size: 19px;
}

body[data-page="home"] .home-device-detail {
    display: flex;
    min-height: 1.5em;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

body[data-page="home"] .home-device-link {
    margin-top: 5px;
    color: var(--accent);
    font-weight: 650;
}

body[data-page="home"] .home-device:hover,
body[data-page="home"] .home-device:focus-visible {
    border-color: var(--device-ink);
    box-shadow: 0 2px 0 var(--device-ink);
}

body[data-page="home"] .home-app:focus-within {
    border-color: var(--accent);
}

body[data-page="home"] .home-app-stage {
    font-size: 13px;
}

body[data-page="home"] .home-downloader {
    min-height: 38px;
    font-size: 14px;
}

body.web-complete .tab-list button {
    min-width: 0;
    border-color: var(--line);
    background: var(--alt);
}

body.web-complete .tab-list button[aria-selected="true"] {
    border-color: var(--accent);
    background: var(--soft);
    color: var(--accent);
}

body.web-complete .downloader-code {
    align-self: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--alt);
}

body.web-complete .faq-list summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
    line-height: 1.5;
}

body.web-complete .faq-list summary::-webkit-details-marker { display: none; }

body.web-complete .faq-list summary::after {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--accent);
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    content: "+";
}

body.web-complete .faq-list details[open] summary::after {
    border-color: var(--accent);
    content: "\2212";
}

body.web-complete .feature-group > p {
    max-width: 72ch;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.65;
}

body.web-complete .feature-group > .text-link {
    margin-top: 16px;
}

@media (max-width: 850px) {
    .web-js body[data-page="home"] .web-header {
        position: sticky;
        top: 0;
        z-index: 30;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
    }

    .web-js body[data-page="home"] .web-header-inner {
        border-bottom: 0;
    }

    .web-js body[data-page="home"] .web-header nav {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 620px) {
    body[data-page="home"] .home-disclaimer {
        font-size: 13px;
    }

    body[data-page="home"] .home-device {
        min-height: 142px;
        gap: 4px;
        padding: 12px 8px;
    }

    body[data-page="home"] .home-device-icon {
        width: 34px;
        height: 34px;
    }

    body[data-page="home"] .home-device strong {
        font-size: 17px;
    }

    body[data-page="home"] .home-device-detail {
        min-height: 1.5em;
        font-size: 12px;
    }

    body[data-page="home"] .home-device-link {
        font-size: 12px;
    }

    body[data-page="home"] .home-downloader {
        width: 100%;
        justify-content: flex-start;
        margin: 12px 0 0;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--alt);
    }

    body[data-page="home"] .home-downloader .icon {
        margin-left: auto;
    }

    body.web-complete .downloader-code {
        padding: 16px;
    }
}

@media (max-width: 380px) {
    body[data-page="home"] .home-actions {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 8px;
    }

    body[data-page="home"] .home-actions .button {
        min-width: 0;
        min-height: 46px;
        padding-inline: 7px;
        font-size: 12px;
    }
}

@media (max-width: 620px) and (max-height: 660px) {
    body[data-page="home"] .home-disclaimer { font-size: 12px; line-height: 1.45; }
    body[data-page="home"] .home-tv-visual { width: min(100%, 200px); }
    body[data-page="home"] .home-tv-visual figcaption { margin-top: 16px; }
}

@media (min-width: 450px) and (max-width: 620px) and (max-height: 480px) and (orientation: landscape) {
    body[data-page="home"] .home-hero { flex-direction: row; align-items: center; gap: 12px; padding-block: 8px; }
    body[data-page="home"] .home-hero-copy { width: 64%; }
    body[data-page="home"] .home-hero-brand { margin-bottom: 4px; font-size: 11px; }
    body[data-page="home"] .home-headline { font-size: 26px; line-height: 1.1; }
    body[data-page="home"] .home-description { margin-top: 7px; font-size: 13px; line-height: 1.35; }
    body[data-page="home"] .home-actions { flex-wrap: nowrap; gap: 6px; margin-top: 8px; }
    body[data-page="home"] .home-actions .button { min-height: 36px; gap: 4px; padding: 6px; font-size: 11px; }
    body[data-page="home"] .home-actions .icon { width: 15px; height: 15px; flex-basis: 15px; }
    body[data-page="home"] .home-disclaimer { margin-top: 8px; font-size: 11px; line-height: 1.35; }
    body[data-page="home"] .home-tv-visual { width: 33%; flex-shrink: 0; }
    body[data-page="home"] .home-tv-visual figcaption { margin-top: 14px; font-size: 10px; }
    body[data-page="home"] .home-devices { padding-top: 8px; }
}

@media (min-width: 621px) and (max-width: 850px) and (max-height: 700px) {
    body[data-page="home"] .home-hero { gap: 10px; padding-block: 12px; }
    body[data-page="home"] .home-headline { font-size: 34px; }
    body[data-page="home"] .home-description { margin-top: 8px; font-size: 15px; }
    body[data-page="home"] .home-actions { margin-top: 12px; }
    body[data-page="home"] .home-actions .button { min-height: 42px; }
    body[data-page="home"] .home-disclaimer { max-width: none; margin-top: 8px; font-size: 12px; }
    body[data-page="home"] .home-tv-visual { width: min(100%, 200px); }
    body[data-page="home"] .home-tv-visual figcaption { margin-top: 20px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="home"] .home-device { transition: none; }
}
