/* Flex Player site. Brand: teal #4FC2B9 (mark, "flex"), orange #F0A54A (the play / "now" line), app background #111416. */
@font-face { font-family: "Flex Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(fonts/roboto-flex-latin-wght.woff2) format("woff2-variations"), url(fonts/roboto-flex-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Flex Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(fonts/roboto-flex-latin-ext-wght.woff2) format("woff2-variations"), url(fonts/roboto-flex-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0c0f11; --bg-2: #111416; --panel: #161b1e; --panel-2: #1b2125; --line: #252c31; --line-2: #313a40;
  --ink: #eef1f2; --soft: #c3cacf; --muted: #8e989f;
  --teal: #4fc2b9; --teal-deep: #0e6e6a; --teal-ink: #082522; --orange: #f0a54a;
  --r-xs: 8px; --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-pill: 999px;
  --t-xs: .88rem; --t-s: .95rem; --t-lead: 1.1rem;
  --wrap: 1180px;
  --font: "Flex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #7fdad2; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: var(--r-xs); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 760; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 820; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 680; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: var(--teal-ink); padding: 10px 14px; border-radius: var(--r-xs); font-weight: 700; z-index: 99; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(12, 15, 17, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.brand img { width: 30px; height: 31px; }
.brand b { color: var(--teal); font-weight: 900; }
.brand span { font-weight: 400; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; padding: 8px 12px; border-radius: var(--r-xs); font-size: var(--t-s); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.top .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .top .btn { margin-left: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); font: 650 1rem/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: #6fd4cc; color: var(--teal-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--ink); background: rgba(79, 194, 185, .06); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: var(--t-s); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(60% 55% at 72% 38%, rgba(79, 194, 185, .16), transparent 70%), radial-gradient(30% 30% at 88% 70%, rgba(240, 165, 74, .09), transparent 70%); }
.hero-rows { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 67px, rgba(255, 255, 255, .035) 67px 68px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 650; font-size: var(--t-s); letter-spacing: .02em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--teal); box-shadow: 0 9px 0 -0px rgba(79,194,185,.0); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--soft); margin-top: 22px; max-width: 34em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-s); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.stage { position: relative; padding-bottom: 8%; }
.tv { position: relative; border-radius: 18px; padding: 10px; background: linear-gradient(180deg, #23292d, #15191c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 120px -30px rgba(79, 194, 185, .35); }
.tv img { border-radius: 9px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 26%; height: 16px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(#1a1f22, #101315); }
.phone { position: absolute; right: -2%; bottom: 0; width: 25%; min-width: 120px; border-radius: 26px; padding: 7px; background: #1b2024; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -10px rgba(0, 0, 0, .8); }
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background: #111416; }
@media (min-width: 980px) {
  .hero { padding: 84px 0 64px; }
  .hero-grid { grid-template-columns: 1fr 1.18fr; gap: 56px; }
}

/* Player-only note */
.note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); color: var(--soft); font-size: var(--t-s); }
.note strong { color: var(--ink); }
.note svg { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 980px) { section { padding: 104px 0; } }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head p { color: var(--soft); margin-top: 16px; font-size: var(--t-lead); }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Feature showcase rows */
.show { display: grid; gap: 34px; align-items: center; }
.show + .show { margin-top: 84px; }
.show-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; font-weight: 740; }
.show-copy p { color: var(--soft); margin-top: 14px; font-size: var(--t-lead); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 5px; border-radius: 3px; background: var(--teal); }
.ticks li:nth-child(2)::before { width: 11px; } .ticks li:nth-child(3)::before { width: 6px; }
.shot { border-radius: var(--r-m); overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.shot img { width: 100%; }
.shot-tv img { aspect-ratio: 16 / 9; object-fit: cover; }
.shot-pad { padding: 26px; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 0%, rgba(79,194,185,.10), transparent 70%), var(--panel); }
.shot-pad img { border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.phone-solo { width: min(300px, 70%); margin-inline: auto; border-radius: 30px; padding: 8px; background: #1b2024; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -10px rgba(0,0,0,.8); }
.phone-solo img { border-radius: 23px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.caption { font-size: var(--t-xs); color: var(--muted); margin-top: 10px; }
@media (min-width: 900px) {
  .show { grid-template-columns: 1fr 1.25fr; gap: 64px; }
  .show.flip .show-copy { order: 2; }
}

/* Feature grid */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.cell { background: var(--bg); padding: 26px 24px 28px; }
.sec-alt .cell { background: var(--bg-2); }
.cell svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 16px; }
.cell p { color: var(--muted); margin-top: 8px; font-size: var(--t-s); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Devices */
.devices { display: grid; gap: 14px; }
.device { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); }
.device svg { width: 34px; height: 34px; color: var(--teal); flex: none; }
.device p { color: var(--muted); font-size: var(--t-s); margin-top: 4px; }
@media (min-width: 720px) { .devices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .devices { grid-template-columns: repeat(4, 1fr); } .device { flex-direction: column; } }

/* Install block */
.install { display: grid; gap: 20px; }
.card { border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line); padding: 28px; }
.card h3 { font-size: 1.35rem; }
.card > p { color: var(--soft); margin-top: 10px; }
.code-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #15302e 0%, #12191c 55%); border-color: #234642; }
.code-card::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 180px; height: 186px; background: url(img/mark.svg) no-repeat center / contain; opacity: .05; pointer-events: none; }
.code-card > * { position: relative; z-index: 1; }
.code-label { color: var(--soft); margin-top: 18px; font-size: var(--t-s); }
.code { display: grid; grid-template-columns: repeat(7, minmax(0, 56px)); gap: clamp(4px, 1vw, 8px); margin-top: 10px; font-variant-numeric: tabular-nums; }
.code span { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: clamp(8px, 1.4vw, 12px); background: rgba(0,0,0,.35); border: 1px solid rgba(79,194,185,.35); font-size: clamp(1.4rem, 4.4vw, 2.3rem); font-weight: 760; color: var(--ink); }
.code-alt { margin-top: 16px; color: var(--muted); font-size: var(--t-s); }
.code-alt code, code.inline { font-family: inherit; font-weight: 650; color: var(--ink); background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: var(--r-xs); }
.copy { margin-top: 18px; }
.steps-mini { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--soft); }
.steps-mini li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--teal); font-weight: 700; font-size: var(--t-s); }
.card .btn { margin-top: 22px; }
@media (min-width: 960px) { .install { grid-template-columns: 1.45fr 1fr 1fr; } }

/* Privacy teaser */
.split { display: grid; gap: 28px; }
.list-card { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.list-card li { background: var(--panel); padding: 16px 18px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--soft); }
.list-card li b { color: var(--ink); font-weight: 650; }
.yes::before, .no::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; }
.yes::before { background: radial-gradient(circle, var(--teal) 0 4px, rgba(79,194,185,.18) 5px); }
.no::before { background: radial-gradient(circle, var(--orange) 0 4px, rgba(240,165,74,.18) 5px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 650; font-size: var(--t-lead); position: relative; border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .a { padding: 0 22px 22px; color: var(--soft); }
.faq .a p + p { margin-top: 10px; }

/* Help */
.help { display: grid; gap: 20px; align-items: center; padding: 34px; border-radius: var(--r-l); background: linear-gradient(120deg, var(--panel) 0%, #142624 100%); border: 1px solid var(--line); }
.help p { color: var(--soft); margin-top: 10px; }
@media (min-width: 860px) { .help { grid-template-columns: 1fr auto; padding: 44px; } }

/* Footer */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-s); }
.foot-grid { display: grid; gap: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { max-width: 760px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1fr auto; } }

/* Inner pages (install, privacy, terms) */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 80% 0%, rgba(79,194,185,.10), transparent 70%); }
.page-head p { color: var(--soft); font-size: var(--t-lead); margin-top: 16px; max-width: 40em; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc { padding: 48px 0 80px; }
.doc-grid { display: grid; gap: 40px; }
.toc { position: sticky; top: 90px; align-self: start; display: none; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: var(--t-s); }
.toc a:hover { color: var(--ink); border-left-color: var(--teal); }
@media (min-width: 980px) { .doc-grid { grid-template-columns: 220px 1fr; gap: 64px; } .toc { display: block; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { color: var(--soft); margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: var(--t-s); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.prose th { color: var(--ink); font-weight: 650; background: var(--panel); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 22px; }
.table-scroll table { margin: 0; }
.updated { color: var(--muted); font-size: var(--t-s); margin-top: 12px; }

/* Install guide */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs a { padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--soft); text-decoration: none; font-weight: 600; }
.tabs a:hover { border-color: var(--teal); color: var(--ink); }
.guide { padding: 30px; border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 90px; }
.guide + .guide { margin-top: 24px; }
.guide h2 { font-size: 1.7rem; display: flex; align-items: center; gap: 12px; }
.guide h2 svg { width: 30px; height: 30px; color: var(--teal); }
.guide > p { color: var(--soft); margin-top: 10px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 58px; color: var(--soft); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid #2c5552; color: var(--teal); font-weight: 760; }
.steps > li::after { content: ""; position: absolute; left: 18.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line-2); }
.steps > li:last-child { padding-bottom: 0; } .steps > li:last-child::after { display: none; }
.steps b { color: var(--ink); font-weight: 650; display: block; margin-bottom: 4px; font-size: var(--t-lead); }
.path { display: inline; font-weight: 600; color: var(--ink); }
.tip { margin-top: 22px; padding: 14px 16px; border-radius: var(--r-s); background: rgba(240,165,74,.08); border: 1px solid rgba(240,165,74,.25); color: var(--soft); font-size: var(--t-s); }
.tip strong { color: var(--orange); }
.code-inline { display: inline-flex; gap: 4px; vertical-align: middle; }
.code-inline span { display: inline-grid; place-items: center; min-width: 28px; height: 36px; padding: 0 4px; border-radius: var(--r-xs); background: var(--bg); border: 1px solid rgba(79,194,185,.4); color: var(--ink); font-weight: 760; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .big { font-size: clamp(5rem, 18vw, 9rem); font-weight: 860; letter-spacing: -0.05em; line-height: 1; color: var(--teal); }
.lost p { color: var(--soft); margin: 18px auto 28px; max-width: 30em; }
.lost .hero-ctas { justify-content: center; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* Large TV browsers: bigger focus, more room */
@media (min-width: 1700px) { body { font-size: 19px; } :root { --wrap: 1320px; } }
