/* NABS Player website. Colours follow the app's default Ember theme (apps/tv/src/App.module.css). */

:root {
  --bg: #110f13;
  --bg-raised: #1a1519;
  --surface: #2c2227;
  --line: rgba(255, 236, 222, .1);
  --text: #fff8f1;
  --soft: #ecdcd2;
  --muted: #c9b9b3;
  --accent: #f5a66b;
  --accent-hover: #ffbf8a;
  --accent-tint: rgba(245, 166, 107, .12);
  --accent-gradient: linear-gradient(145deg, #f8b984, #d9784c);
  --on-accent: #2b1717;
  --radius: 18px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--on-accent); border-radius: 8px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(17, 15, 19, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .nav-cta { color: var(--on-accent); background: var(--accent-gradient); font-weight: 650; margin-left: 6px; }
.nav .nav-cta:hover { color: var(--on-accent); background: var(--accent-gradient); filter: brightness(1.06); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta):not(.nav-keep) { display: none; }
}

/* ---------- Buttons and pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn-primary { background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 10px 30px rgba(245, 166, 107, .25); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 166, 107, .2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(60% 60% at 70% 20%, rgba(245, 166, 107, .18), transparent 70%), radial-gradient(40% 50% at 10% 10%, rgba(129, 140, 248, .1), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 18px; }
.hero h1 span { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 920px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- TV mockup (themes come from data-theme, mirroring the app) ---------- */
.tv { --t-bg: #110f13; --t-surface: #2c2227; --t-text: #fff8f1; --t-muted: #c9b9b3; --t-accent: #f5a66b; --t-grad: linear-gradient(145deg, #f8b984, #d9784c); --t-art: url("themes/ember.svg"); }
.tv[data-theme="aurora"] { --t-bg: #070d18; --t-surface: #0f1a2b; --t-text: #eef6ff; --t-muted: #8fa6c2; --t-accent: #5eead4; --t-grad: linear-gradient(145deg, #7dd3fc, #2dd4bf 55%, #818cf8); --t-art: url("themes/aurora.svg"); }
.tv[data-theme="neon"] { --t-bg: #0b0618; --t-surface: #170c2a; --t-text: #fdf2ff; --t-muted: #b39ad1; --t-accent: #ff3fb4; --t-grad: linear-gradient(145deg, #ffcf5c, #ff6a88 45%, #ff3fb4); --t-art: url("themes/neon.svg"); }
.tv[data-theme="daylight"] { --t-bg: #e6ddcf; --t-surface: #f3ede3; --t-text: #1f1b24; --t-muted: #5f5664; --t-accent: #d94f27; --t-grad: linear-gradient(145deg, #f78e5f, #d94f27); --t-art: url("themes/daylight.svg"); }
.tv[data-theme="monmon"] { --t-bg: #021b1d; --t-surface: #072a2c; --t-text: #ecfffb; --t-muted: #86b5ae; --t-accent: #2fd3bd; --t-grad: linear-gradient(145deg, #a6f7e6, #2fd3bd 50%, #0e9488); --t-art: url("themes/monmon.svg"); }
.tv[data-theme="sakura"] { --t-bg: #140c17; --t-surface: #24172a; --t-text: #fff4f8; --t-muted: #bc9fb0; --t-accent: #ff8fb8; --t-grad: linear-gradient(145deg, #ffd1e0, #ff8fb8 50%, #e05a8e); --t-art: url("themes/sakura.svg"); }
.tv[data-theme="grove"] { --t-bg: #08130e; --t-surface: #13231a; --t-text: #f2fbe9; --t-muted: #94ad98; --t-accent: #b9e46a; --t-grad: linear-gradient(145deg, #f3f7a0, #b9e46a 50%, #5fae55); --t-art: url("themes/grove.svg"); }
.tv[data-theme="dune"] { --t-bg: #161129; --t-surface: #241c3a; --t-text: #fff6ec; --t-muted: #b3a4bf; --t-accent: #f6b65e; --t-grad: linear-gradient(145deg, #ffe2a0, #f6b65e 45%, #e5764d); --t-art: url("themes/dune.svg"); }

.tv-frame { position: relative; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, #2a2a2e, #141416); box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tv-frame::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 30%; height: 16px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #1c1c1f, #0d0d0f); }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--t-art) center / cover no-repeat, var(--t-bg); color: var(--t-text); font-size: clamp(7px, 1.05vw, 12px); transition: background .4s ease, color .4s ease; }
.screen * { transition: background .4s ease, color .4s ease, border-color .4s ease; }
.s-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 9%; display: flex; flex-direction: column; align-items: center; gap: 7%; padding-top: 5%; }
.s-mark { width: 52%; aspect-ratio: 1; border-radius: 26%; background: var(--t-grad); }
.s-ico { width: 34%; aspect-ratio: 1; border-radius: 30%; background: var(--t-muted); opacity: .45; }
.s-ico.on { background: var(--t-accent); opacity: 1; }
.s-main { position: absolute; left: 11%; right: 4%; top: 6%; bottom: 4%; }
.s-eyebrow { color: var(--t-accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8em; }
.s-title { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; margin: .2em 0 .25em; }
.s-sub { color: var(--t-muted); font-size: .95em; max-width: 52%; }
.s-btns { display: flex; gap: .7em; margin-top: 1em; }
.s-btn { padding: .45em 1.2em; border-radius: 999px; font-weight: 700; background: var(--t-grad); color: #1d1416; }
.s-btn.alt { background: color-mix(in srgb, var(--t-surface) 80%, transparent); color: var(--t-text); }
.s-shelf { margin-top: 1.4em; }
.s-shelf-title { font-weight: 700; font-size: 1em; margin-bottom: .55em; }
.s-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2%; }
.s-card { position: relative; aspect-ratio: 2 / 3; border-radius: .7em; background: linear-gradient(160deg, color-mix(in srgb, var(--t-accent) 55%, var(--t-surface)), var(--t-surface) 70%); overflow: hidden; }
.s-card:nth-child(2) { background: linear-gradient(200deg, color-mix(in srgb, var(--t-accent) 25%, #3b3b6b), var(--t-surface)); }
.s-card:nth-child(3) { background: linear-gradient(170deg, color-mix(in srgb, var(--t-accent) 35%, #2a6a6a), var(--t-surface)); }
.s-card:nth-child(4) { background: linear-gradient(150deg, color-mix(in srgb, var(--t-accent) 20%, #6b3b4b), var(--t-surface)); }
.s-card:nth-child(5) { background: linear-gradient(190deg, color-mix(in srgb, var(--t-accent) 40%, #4b5b2b), var(--t-surface)); }
.s-card:nth-child(6) { background: linear-gradient(140deg, color-mix(in srgb, var(--t-accent) 30%, #2b3b6b), var(--t-surface)); }
.s-card.focus { outline: .22em solid var(--t-accent); outline-offset: .18em; transform: scale(1.04); }
.s-card .bar { position: absolute; left: 8%; right: 8%; bottom: 8%; height: .32em; border-radius: 1em; background: rgba(255, 255, 255, .25); }
.s-card .bar::after { content: ""; display: block; width: var(--p, 40%); height: 100%; border-radius: inherit; background: var(--t-accent); }
.s-row.wide { grid-template-columns: repeat(4, 1fr); }
.s-row.wide .s-card { aspect-ratio: 16 / 9; }

.theme-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); color: var(--soft); font: 600 14px var(--font); cursor: pointer; }
.theme-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .2); }
.theme-chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-tint); }
.theme-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-raised), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.platform svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.platform h3 { font-size: 19px; margin-bottom: 6px; }
.platform p { color: var(--muted); font-size: 15px; }
.status { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; background: var(--accent-tint); color: var(--accent-hover); }
.status.later { background: rgba(255, 255, 255, .06); color: var(--muted); }
@media (max-width: 920px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .platforms { grid-template-columns: minmax(0, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Themes gallery */
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.theme-card { margin: 0; }
.theme-card .screen { border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); font-size: clamp(5px, .62vw, 8px); }
.theme-card figcaption { margin-top: 12px; }
.theme-card strong { display: block; font-size: 16px; }
.theme-card span { color: var(--muted); font-size: 14px; }
@media (max-width: 920px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .theme-card .screen { font-size: clamp(5px, 1.2vw, 9px); } }
@media (max-width: 480px) { .themes { grid-template-columns: minmax(0, 1fr); } .theme-card .screen { font-size: 2.2vw; } }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.promises { display: grid; gap: 12px; }
.promise { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--bg-raised); border: 1px solid var(--line); }
.promise svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.promise strong { display: block; }
.promise span { color: var(--muted); font-size: 15px; }
@media (max-width: 920px) { .privacy-band { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; background: var(--accent-gradient); color: var(--on-accent); font-weight: 800; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.notice { display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(245, 166, 107, .3); background: var(--accent-tint); color: var(--soft); font-size: 15px; }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }
.faq details p + p { margin-top: -10px; }

/* CTA */
.cta { text-align: center; padding: 64px 24px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, rgba(245, 166, 107, .2), transparent 70%), var(--bg-raised); }
.cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 36em; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.footer-top p { max-width: 30em; margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-links h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.footer-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 6px; }

/* ---------- Legal and support pages ---------- */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 800px; }
.doc-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(34px, 5vw, 48px); margin: 10px 0 12px; }
.doc-head p { color: var(--muted); }
.doc h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: 84px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--text); }
.summary-box { padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(245, 166, 107, .3); background: var(--accent-tint); }
.summary-box h2 { margin-top: 0 !important; font-size: 18px !important; }
.summary-box ul { margin-bottom: 0; }
.toc { margin: 28px 0 0; padding: 20px 24px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 8px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--soft); }
th { background: var(--bg-raised); color: var(--text); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; margin-top: 16px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); }
.contact-card p { color: var(--muted) !important; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: clamp(56px, 10vw, 96px); background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: var(--muted); margin: 8px 0 24px; }
