/* StreamTonight marketing site — single shared stylesheet.
   Mirrors the in-app dark aesthetic: deep background, purple accent,
   service-color dots from Settings. No build step, no framework. */

:root {
  --bg: #0b0b10;
  --bg-elev: #16161e;
  --bg-card: #1d1d28;
  --border: #2a2a37;
  --text: #f4f4f8;
  --text-dim: #a8a8b8;
  --text-faint: #6a6a78;
  --accent: #b888ff;
  --accent-hover: #c9a3ff;
  --accent-deep: #7a4dcc;
  --coral: #ff6b9d;
  --green: #58d68d;
  --yellow: #f5b041;
  --red: #ec7063;
  --maxw: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main { padding: 48px 0 96px; }

/* Header / nav */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
header.site .brand img {
  height: 28px;
  width: auto;
  display: block;
}
header.site nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
header.site nav a {
  color: var(--text-dim);
  font-weight: 500;
}
header.site nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero .badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero .badges a {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero .badges .ios {
  background: var(--text);
  color: var(--bg);
}
.hero .badges .android {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
}
.hero .badges a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hero .price {
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 12px;
}

/* Feature blocks */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 64px 0;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}
.feature p {
  color: var(--text-dim);
  font-size: 15px;
}

/* Service strip — shows the supported streaming services as colored dots */
.services {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 48px 0;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.service-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.service-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}
.dot-netflix { --dot: #e50914; }
.dot-max     { --dot: #b13efc; }
.dot-hulu    { --dot: #1ce783; }
.dot-prime   { --dot: #00a8e1; }
.dot-disney  { --dot: #113ccf; }
.dot-paramount { --dot: #0064ff; }
.dot-peacock { --dot: #faa62d; }
.dot-apple   { --dot: #f5f5f7; }
.dot-starz   { --dot: #ff6b9d; }
.dot-amcplus { --dot: #d52b1e; }
.dot-mgmplus { --dot: #d4af37; }

/* Pricing */
.pricing-strip {
  text-align: center;
  padding: 32px;
  margin: 64px 0;
  background: linear-gradient(135deg, rgba(184, 136, 255, 0.12), rgba(255, 107, 157, 0.06));
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
}
.pricing-strip h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.pricing-strip p {
  color: var(--text-dim);
  font-size: 17px;
}
.pricing-strip .small {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 12px;
}

/* FAQ */
.faq {
  margin: 64px 0;
}
.faq h2 {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-faint);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .answer {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.faq-item .answer p { margin-bottom: 10px; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* Article pages (privacy / terms / about / support) */
article.page {
  max-width: 720px;
  margin: 0 auto;
}
article.page h1 {
  font-size: 36px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
article.page .meta {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 40px;
}
article.page h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}
article.page h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
article.page p,
article.page li {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.7;
}
article.page ul,
article.page ol {
  margin-left: 24px;
  margin-bottom: 14px;
}
article.page li { margin-bottom: 6px; }
article.page strong { color: var(--text); }
article.page code {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

article.page .draft-banner {
  background: rgba(245, 176, 65, 0.1);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--yellow);
}

/* 404 */
.notfound {
  text-align: center;
  padding: 96px 0;
}
.notfound h1 {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.notfound p {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 40px 0 60px;
  font-size: 14px;
  color: var(--text-faint);
}
footer.site .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer.site nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site nav a {
  color: var(--text-dim);
}
footer.site nav a:hover { color: var(--text); text-decoration: none; }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }

/* Responsive */
@media (max-width: 720px) {
  header.site nav { gap: 16px; font-size: 14px; }
  header.site nav a:nth-child(n+4) { display: none; }
  .hero { padding: 56px 0 40px; }
  .features { gap: 20px; margin: 40px 0; }
  .feature { padding: 22px; }
  .pricing-strip { padding: 24px 18px; }
  article.page h1 { font-size: 28px; }
  .notfound h1 { font-size: 72px; }
  footer.site .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}
