:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1b1d22;
  --muted: #5d6270;
  --line: #e2e0da;
  --accent: #d6336c;
  --accent-text: #ffffff;
  --accent-soft: #fde8ef;
  --ok: #1f7a4d;
  --ok-soft: #e3f4ea;
  --bad: #b42318;
  --bad-soft: #fde7e5;
  --wait-soft: #eef0f5;
  --tv: #1b1d22;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161a; --card: #1f2127; --text: #f1f1f3; --muted: #a6aab5; --line: #33363f;
    --accent: #ff7a9e; --accent-text: #1b1d22; --accent-soft: #3a2230; --ok: #5fd39a; --ok-soft: #1c3328;
    --bad: #ff8a80; --bad-soft: #3a2220; --wait-soft: #262932; --tv: #0b0c0e;
  }
}
:root[data-theme="dark"] {
  --bg: #15161a; --card: #1f2127; --text: #f1f1f3; --muted: #a6aab5; --line: #33363f;
  --accent: #ff7a9e; --accent-text: #1b1d22; --accent-soft: #3a2230; --ok: #5fd39a; --ok-soft: #1c3328;
  --bad: #ff8a80; --bad-soft: #3a2220; --wait-soft: #262932; --tv: #0b0c0e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--card); border: 2px solid var(--line);
  border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.lang:hover { border-color: var(--accent); }
.lang:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.conn { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.conn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.conn.on .dot { background: var(--ok); }

main { max-width: 760px; margin: 0 auto; padding: 0 0 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; margin-top: 16px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--text); margin: 0 0 18px; }
.crumb { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.note, .small, .help { color: var(--muted); font-size: 15px; }
.help { display: block; margin: 2px 0 8px; }
.overview { padding-left: 22px; margin: 0 0 16px; }
.overview li { margin: 6px 0; }

button, .big { font: inherit; cursor: pointer; }
.big {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 26px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 650; font-size: 19px; text-decoration: none;
}
.big.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.big:disabled { opacity: .45; cursor: not-allowed; }
.big:focus-visible, .choice:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--muted); padding: 10px 4px; font-size: 16px; text-decoration: underline; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.row.inline { justify-content: flex-start; margin-top: 8px; }

.choices { display: grid; gap: 12px; margin: 6px 0 14px; }
.choice {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; font-weight: 650;
}
.choice:hover { border-color: var(--accent); }
.choice small { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.logo { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 20px; }
.logo.lg { background: #a50034; }
.logo.samsung { background: #1428a0; }
.logo.android { background: #2f7d57; }
.logo.pc { background: #3b4a6b; }
.sub { font-size: 20px; margin: 22px 0 10px; }
.address { font-size: 22px; font-weight: 700; word-break: break-all; background: var(--wait-soft); border-radius: 14px; padding: 14px 16px; }

.checklist { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: c; }
.checklist li { counter-increment: c; border-top: 1px solid var(--line); padding: 12px 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.checklist li:has(input:checked) span { color: var(--muted); }

.tv-mock { background: var(--tv); color: #e9e9ee; border-radius: 14px; padding: 16px 18px 10px; max-width: 380px; font-size: 16px; }
.tv-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #2c2f37; }
.tv-row b { color: #7ee2a8; }
.tv-row code { color: #ffd479; font-size: 17px; }
.tv-cap { color: #9da2ad; font-size: 13px; padding-top: 8px; }

.status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin: 8px 0 16px; font-weight: 600; }
.status.wait { background: var(--wait-soft); }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.bad { background: var(--bad-soft); color: var(--bad); align-items: flex-start; }
.big-ok { font-size: 22px; }
.spinner { display: inline-block; vertical-align: middle; flex: none; width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.download { width: 100%; }
.howto { margin-top: 12px; background: var(--wait-soft); border-radius: 14px; padding: 4px 18px; font-size: 16px; }
.howto ol { padding-left: 20px; }

.tv-list { display: grid; gap: 10px; margin-bottom: 8px; }
.tv {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text);
}
.tv:hover { border-color: var(--accent); }
.tv .name { font-weight: 700; font-size: 19px; }
.tv .meta { color: var(--muted); font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 13px; padding: 2px 9px; border-radius: 99px; background: var(--wait-soft); color: var(--muted); font-weight: 600; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }

.field { display: block; border: 0; padding: 0; margin: 0 0 20px; }
.label { display: block; font-weight: 700; font-size: 18px; }
input[type=text], input:not([type]), input[inputmode] {
  width: 100%; font: inherit; font-size: 20px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg); color: var(--text);
}
.row.inline input { flex: 1 1 180px; width: auto; }
input.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 30px; letter-spacing: .25em; text-transform: uppercase; max-width: 280px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 17px; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--accent); }
details > summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.manual { margin-top: 10px; }

.city-results { display: grid; gap: 6px; margin: -10px 0 18px; }
.city-results button { text-align: left; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; }
.city-results button.sel { border-color: var(--accent); background: var(--accent-soft); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.services label { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 16px; cursor: pointer; }
.services input { width: 20px; height: 20px; accent-color: var(--accent); }
.error { color: var(--bad); font-weight: 600; }

.prompt { display: flex; gap: 16px; align-items: center; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 16px; padding: 18px; font-size: 20px; margin-bottom: 16px; }
.prompt-icon { font-size: 40px; }
.steps { list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li .ico { width: 24px; text-align: center; flex: none; font-weight: 700; }
.steps li.running { color: var(--text); font-weight: 650; }
.steps li.done { color: var(--text); }
.steps li.done .ico { color: var(--ok); }
.steps li.failed { color: var(--bad); font-weight: 650; }
.steps li .note { margin-left: auto; font-size: 14px; color: var(--muted); font-weight: 400; }
.tips li { margin: 8px 0; }
.log { background: var(--wait-soft); padding: 12px; border-radius: 12px; font-size: 13px; white-space: pre-wrap; max-height: 280px; overflow: auto; }


@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 25px; }
  .step { padding: 22px 16px; border-radius: 16px; }
  .big { width: 100%; }
  .row { flex-direction: column-reverse; align-items: stretch; }
  .row.inline { flex-direction: column; }
}

/* ---------- Landing page ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id], #top { scroll-margin-top: 70px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.cta { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-text); border-radius: 99px; padding: 7px 16px;
  font-weight: 700; text-decoration: none; font-size: 15px; }
.cta:hover { filter: brightness(1.06); }

.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.hero .lead { font-size: 19px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.cta-row .big { text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.badges li { font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 4px 12px; }
.hero-shot { margin: 0; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .22); background: var(--card); }
.hero-shot figcaption, .shots figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; margin: 24px 0; }
h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 22px; }
.band h2, #screens h2, #faq h2, .install-head h2 { text-align: center; }
.sub-lead { text-align: center; color: var(--muted); margin: -8px auto 26px; max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; }
.band .card { background: var(--bg); }
.card h3 { font-size: 18px; margin: 10px 0 6px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ico { font-size: 30px; line-height: 1; display: block; }
.tv-card .logo { margin-bottom: 6px; }
.tag { display: inline-block; margin: 2px 0 10px !important; padding: 2px 10px; border-radius: 99px; font-size: 13px !important; font-weight: 700;
  background: var(--wait-soft); color: var(--muted) !important; }
.tag.ok { background: var(--ok-soft); color: var(--ok) !important; }
.center { text-align: center; }

#screens { padding-top: 24px; padding-bottom: 24px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #1b1d22; }
#screens .small { text-align: center; }

.big-steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: n; }
.big-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; }
.big-steps .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-weight: 800; font-size: 19px; margin-bottom: 12px; }
.big-steps h3 { font-size: 19px; margin: 0 0 6px; }
.big-steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

#install { padding-top: 40px; padding-bottom: 20px; }
.install-head { margin-bottom: 18px; }
.install-head .sub-lead { margin-bottom: 0; }
#app, .bar { max-width: 760px; margin-left: auto; margin-right: auto; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: -4px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
.step:first-child { margin-top: 0; }
.tv-row.hl { background: var(--accent-soft); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.where { margin: -8px 0 18px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; color: var(--text); }
.faq p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
#faq { padding-top: 40px; padding-bottom: 20px; }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
.foot p { margin: 0 auto; max-width: 760px; }

@media (max-width: 920px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .top-right { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: 1fr; }
  .big-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shots { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  h2 { font-size: 27px; }
  .hero h1 { font-size: 32px; }
  .hero { padding-top: 10px; }
  .band { padding: 40px 0; }
  .cta.small { display: none; }
}

.need { background: var(--wait-soft); border-radius: 14px; padding: 6px 18px 10px; margin: 0 0 18px; }
.need ul { margin: 0; padding-left: 22px; }
.need li { margin: 6px 0; }
.checks { margin: 0 0 14px; padding-left: 22px; }
.checks li { margin: 6px 0; }
.fixes { background: var(--wait-soft); border-radius: 14px; padding: 10px 18px; margin: 12px 0 16px; font-size: 16px; }
.fixes ul, .fixes ol { margin: 6px 0; padding-left: 22px; }
.fixes li { margin: 6px 0; }

.brand-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.brand-tab { display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; font-size: 18px;
  padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.brand-tab.sel { border-color: var(--accent); background: var(--accent-soft); }
.brand-tab .logo { width: 34px; height: 34px; font-size: 13px; }
.login-box { background: var(--wait-soft); border-radius: 14px; padding: 6px 18px 12px; margin: 12px 0 16px; }
.ip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.ok-text { color: var(--ok); font-weight: 600; }
#samsung-box .status { margin-bottom: 12px; }
.tv-mock .tv-row.hl { background: rgba(255, 122, 158, .22); }

.more-shots { margin: 0 0 18px; }
.more-shots summary { cursor: pointer; text-align: center; font-weight: 650; padding: 12px; margin: 0 auto 18px; width: fit-content;
  border: 2px solid var(--line); border-radius: 99px; background: var(--card); list-style: none; }
.more-shots summary::-webkit-details-marker { display: none; }
.more-shots[open] summary { margin-bottom: 18px; }
