/* ===========================================================================
   Streamza — website styles. Matches the app's iOS-style pure-black / system-red
   palette exactly. Self-contained, no external dependencies.
   =========================================================================== */

:root {
  /* Palette pulled straight from the app (colors.xml) */
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --border: #2c2c2e;
  --hairline: #38383a;
  --text: #ffffff;
  --muted: #aeaeb2;
  --muted-2: #8e8e93;
  --red: #ff3b30;
  --red-press: #d70015;
  --gold: #ffd60a;
  /* platform brand colors (app) */
  --c-youtube: #ff3b30;
  --c-facebook: #0a84ff;
  --c-twitch: #bf5af2;
  --c-kick: #22c55e;
  --c-restream: #14b8a6;
  --c-rtmp: #8e8e93;

  --maxw: 1120px;
  --radius: 18px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--red); font-weight: 800; }
.logo-img { width: 34px; height: 34px; border-radius: 9px; display: block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease, opacity .15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--muted-2); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero (classic two-column) ---------- */
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 22px; }
.eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,59,48,.18); }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; margin: 0 0 18px; font-weight: 800; letter-spacing: -.03em; }
.hero h1 .red { color: var(--red); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 520px; margin: 0 0 28px; }
@media (max-width: 880px) { .hero .lead { margin-left: auto; margin-right: auto; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-cta { justify-content: center; } }
.hero-meta { margin-top: 18px; color: var(--muted-2); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-meta { justify-content: center; } }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--red); }

/* ---------- Phone mockup (mirrors the real app) ---------- */
.device-wrap { display: flex; justify-content: center; }
.device { width: 290px; border-radius: 42px; padding: 11px; background: #0a0a0b; border: 1px solid #2a2a2c; box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 2px #161618; }
.device-screen { background: #000; border-radius: 32px; overflow: hidden; position: relative; }
.scr-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #000; border-radius: 14px; z-index: 3; }
.scr { padding: 30px 14px 14px; }
.scr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.scr-top .logo-img { width: 26px; height: 26px; }
.scr-top .wm { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.scr-top .wm b { color: var(--red); }
.scr-top .crown { margin-left: auto; color: var(--gold); }
.scr-banner { background: linear-gradient(120deg, #ff3b30, #ff2d55); border-radius: 16px; padding: 14px 15px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.scr-banner h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.scr-banner p { margin: 0; font-size: 11px; opacity: .92; }
.scr-banner .wave { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); opacity: .25; }
.scr-label { font-size: 11px; color: var(--muted); font-weight: 600; margin: 0 2px 9px; }
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scr-card { background: #1c1c1e; border: 1px solid #2a2a2c; border-radius: 14px; padding: 13px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.scr-card .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.scr-card .ic svg { width: 18px; height: 18px; color: #fff; }
.scr-card span { font-size: 11px; font-weight: 600; color: #fff; }

/* ---------- Logo strip ---------- */
.logos { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 26px 0; }
.logos .row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }
.logos .pl { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 15px; font-weight: 600; }
.logos .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--red); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin: 0 0 10px; }
.section-head h2 { font-size: clamp(27px, 4vw, 38px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255,59,48,.12); color: var(--red); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); padding: 30px 26px; }
.step .n { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,59,48,.12); color: var(--red); font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; font-size: 15px; }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--hairline); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-inner img { width: 64px; height: 64px; margin-bottom: 20px; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
.cta-inner p { color: var(--muted); margin: 0 0 26px; font-size: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 4px; }
.faq summary { cursor: pointer; padding: 18px 4px; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 300; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 4px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 52px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-grid .col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 0 0 14px; }
.footer-grid .col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.footer-grid .col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 22px; color: var(--muted-2); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-bottom a { color: var(--muted); }

/* ---------- Legal / document pages ---------- */
.doc { padding: 56px 0 76px; }
.doc-wrap { max-width: 800px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; font-weight: 800; letter-spacing: -.02em; }
.doc .updated { color: var(--muted-2); font-size: 15px; margin-bottom: 8px; }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin: 28px 0; }
.doc .toc strong { display: block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; gap: 24px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc .toc a { color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; font-weight: 700; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 650; }
.doc p, .doc li { color: #d6d6db; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--red); }
.doc a:hover { color: #ff6a5f; }
.doc .note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 10px; padding: 14px 18px; margin: 18px 0; color: var(--muted); }
.doc .tldr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin: 24px 0; }
.doc .tldr strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface); color: var(--text); }
.back-home { display: inline-block; margin-top: 36px; color: var(--muted); font-weight: 500; }
.back-home:hover { color: var(--text); text-decoration: none; }

.mt-0 { margin-top: 0; }
