/* cablebox.tv: black, big tight type, pill buttons, the app's amber and the logo's red. */

:root {
  --bg: #000;
  --surface: #0b0b0d;
  --surface-2: #141417;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #8e8e93;
  --soft: #c7c7cc;
  --amber: #f5a623;
  --red: #e5322b;
  --radius: 22px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Top bar */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--soft); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: #000; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Hero */

.hero { padding: 96px 0 56px; text-align: center; }

h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }

h1 { font-size: clamp(44px, 7.5vw, 84px); }
h2 { font-size: clamp(34px, 5.2vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }

.lede {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 20px);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.fine { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* A TV frame around screenshots */

.screen {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 120px -40px rgba(245, 166, 35, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.hero-shot { margin-top: 64px; }

/* Sections */

section { padding: 96px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 19px; }

/* Feature list with a picture */

.features {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.feature-list { list-style: none; margin: 0; padding: 0; }

.feature-list li { border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list button {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font: 700 26px/1.2 var(--font);
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}
.feature-list button:hover, .feature-list button[aria-selected="true"] { color: var(--text); }

.feature-list p { display: none; margin: -6px 0 20px; color: var(--muted); }
.feature-list li.active p { display: block; }

.feature-shots { position: relative; }
.feature-shots .screen { display: none; }
.feature-shots .screen.active { display: block; }

/* Bento cards */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card.wide { grid-column: span 3; }
.card p { margin: 0; color: var(--muted); }
.card .kicker { color: var(--amber); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.card img { margin-top: auto; border-radius: 14px; border: 1px solid var(--line); }

.big-number { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--amber); }

/* Closing band */

.closing { text-align: center; }
.closing p { color: var(--muted); font-size: 19px; margin: 18px auto 0; max-width: 560px; }

/* Plain pages: Support, Privacy */

.page { padding: 80px 0 40px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); }
.page .lede { margin-left: 0; }
.page h2 { font-size: 28px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.page h3 { font-size: 19px; margin: 28px 0 8px; }
.page p, .page li { color: var(--soft); }
.page ul { padding-left: 22px; }
.page a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.updated { color: var(--muted); font-size: 15px; margin-top: 14px; }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }
.faq details p { margin: 0 0 10px; }

.contact {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact h2 { margin-top: 0; }
.contact .btn { margin-top: 8px; }

/* Footer */

footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 14px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-grid img { height: 26px; width: auto; }
.footer-grid p { color: var(--muted); margin: 12px 0 0; max-width: 300px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }

.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.legal p { margin: 4px 0; }

/* Phones and small tablets */

@media (max-width: 860px) {
  .hero { padding-top: 64px; }
  section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .feature-list button { font-size: 22px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .brand img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
