:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #16161d;
  --muted: #5b5d6b;
  --border: #e3e4ee;
  --accent: #4554c7;
  --accent-soft: #e8eaff;
  --on-accent: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121218;
    --surface: #1c1c24;
    --text: #ececf3;
    --muted: #a3a5b5;
    --border: #2c2d38;
    --accent: #b8c3ff;
    --accent-soft: #262a45;
    --on-accent: #10132e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; flex: none; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.button.secondary { background: var(--accent-soft); color: var(--text); margin-left: 8px; }

section { padding: 24px 0; }
h2 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--text);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; white-space: nowrap; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p, details ul { margin: 6px 0 0; color: var(--muted); }
details ul { padding-left: 20px; }

.contact { display: grid; gap: 12px; }
.contact p { margin: 0; }

.note { color: var(--muted); font-size: 14px; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 4px 0; }

.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }

/* On phones, each TV platform becomes a small card instead of a table row. */
@media (max-width: 560px) {
  .table-scroll { overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  tr:last-child { border-bottom: none; }
  td { padding: 0; border: none; }
  td:first-child { white-space: normal; font-size: 16px; margin-bottom: 2px; }
  td:nth-child(2) { color: var(--muted); }
  td:nth-child(3) { margin-top: 6px; font-size: 14px; }
  td:nth-child(3)::before { content: "Pairing: "; color: var(--muted); }
}

@media (max-width: 480px) {
  nav a { margin-left: 12px; font-size: 14px; }
  .button.secondary { margin: 8px 0 0; }
}
