* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.dim { color: var(--dim); }

/* The same white ring the TV app draws around whatever the remote is on */
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 7, 8, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn-main { background: var(--ember); color: #fff; }
.btn-main:hover { background: #ff4651; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--dim); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.nav .btn-main { color: #fff; }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero-lead { margin-top: 24px; font-size: 19px; color: #d8cccb; max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; color: var(--dim); font-size: 15px; }

/* the TV: a drawing of the app's Live TV screen, with the focus ring walking down the list */
.tv { position: relative; aspect-ratio: 16 / 10; padding: 16px; border: 2px solid var(--ember); border-radius: 24px; background: #0c0708; box-shadow: 0 0 0 1px rgba(255, 45, 58, 0.3), 0 0 70px rgba(255, 45, 58, 0.28), inset 0 0 40px rgba(255, 45, 58, 0.08); }
.tv-screen { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tv-list { position: relative; display: grid; grid-template-rows: repeat(6, 1fr); gap: 8px; }
.tv-row { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 9px; background: var(--panel2); }
.tv-row i { width: 26px; height: 16px; border-radius: 4px; background: var(--line); flex: none; }
.tv-row b { height: 8px; border-radius: 4px; background: var(--line); width: 60%; }
.tv-row:nth-child(1) b { width: 62%; }
.tv-row:nth-child(2) b { width: 78%; }
.tv-row:nth-child(3) b { width: 48%; }
.tv-row:nth-child(4) b { width: 70%; }
.tv-row:nth-child(5) b { width: 55%; }
.tv-row:nth-child(6) b { width: 66%; }
.tv-ring { position: absolute; left: 0; right: 0; top: 0; height: calc((100% - 40px) / 6); border: 3px solid #fff; border-radius: 10px; transform: translateY(calc(100% + 8px)); animation: walk 12s infinite; }
@keyframes walk {
    0%, 14% { transform: translateY(0); }
    20%, 34% { transform: translateY(calc(100% + 8px)); }
    40%, 54% { transform: translateY(calc(200% + 16px)); }
    60%, 74% { transform: translateY(calc(300% + 24px)); }
    80%, 94% { transform: translateY(calc(100% + 8px)); }
    100% { transform: translateY(0); }
}
.tv-side { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.tv-box { aspect-ratio: 16 / 9; border-radius: 10px; border: 2px solid rgba(255, 45, 58, 0.6); background: radial-gradient(circle at 50% 50%, #3a1217, #140b0c 70%); display: grid; place-items: center; }
.tv-box::after { content: ''; width: 18%; aspect-ratio: 1; background: var(--ember); clip-path: polygon(20% 8%, 20% 92%, 92% 50%); }
.tv-guide { display: grid; align-content: start; gap: 8px; }
.tv-guide b, .tv-guide i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.tv-guide b { height: 11px; width: 70%; background: var(--text); }
.tv-guide i:nth-child(2) { width: 45%; }
.tv-guide i:nth-child(3) { width: 85%; margin-top: 10px; }
.tv-guide i:nth-child(4) { width: 62%; }

/* ---- sections ---- */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head p { margin-top: 16px; color: #d8cccb; }

/* apps */
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.app { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; gap: 10px; align-content: start; }
.app h3 { font-size: 18px; }
.app p { color: var(--dim); font-size: 15px; line-height: 1.5; }
.app-live { border-color: rgba(255, 45, 58, 0.55); }
.chip { justify-self: start; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.chip-ok { color: var(--ok); border-color: rgba(70, 211, 105, 0.5); }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-flip .shot { order: 2; }
.shot img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.feature h3 { font-size: clamp(22px, 2.6vw, 30px); }
.feature p { margin-top: 14px; color: #d8cccb; max-width: 30em; }
.more { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }
.more li { padding-left: 22px; position: relative; color: #d8cccb; font-size: 16px; }
.more li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); }

/* steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: step; }
.step { counter-increment: step; padding: 26px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ember); color: #fff; font: 700 17px/1 var(--display); margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--dim); font-size: 16px; line-height: 1.5; }

/* questions */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ember); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: #d8cccb; padding: 0 0 18px; max-width: 38em; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---- the download page ---- */
.gate { max-width: 560px; margin: 72px auto 0; }
.gate h1 { font-size: clamp(28px, 4vw, 40px); }
.gate p { margin-top: 14px; color: #d8cccb; }
.gate-form { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.field { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--text); font: 600 20px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.field::placeholder { color: #6d5f60; text-transform: none; letter-spacing: 0; font: 400 17px/1 var(--body); }
.field:focus-visible { outline-offset: 2px; }
.say { min-height: 24px; margin-top: 14px; color: var(--amber); font-size: 15px; }
.fine { margin-top: 28px; font-size: 15px; color: var(--dim); }
.narrow { max-width: 760px; margin: 0 auto; }
.narrow .gate { max-width: none; }
.list { margin-top: 40px; display: grid; gap: 18px; }
.dl { padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 14px; }
.dl-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.dl h2 { font-size: 22px; }
.dl-meta { color: var(--dim); font-size: 15px; }
.dl-notes { color: #d8cccb; font-size: 15px; line-height: 1.5; }
.dl-how { padding: 16px 18px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: #d8cccb; }
.dl-how b { color: var(--text); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hidden { display: none !important; }

@media (max-width: 900px) {
    .hero { padding-top: 40px; }
    .hero-in, .feature { grid-template-columns: 1fr; gap: 32px; }
    .feature-flip .shot { order: 0; }
    .section { padding: 56px 0; }
    .nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tv-ring { animation: none; }
}
