/* Tivora Player website — light, modern design system (v2). */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #0b1324;
  --text-2: #334155;
  --muted: #5b6478;
  --line: #e4e7ef;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-50: #eef2ff;
  --violet: #7c3aed;
  --accent: #f59e0b;
  --accent-50: #fff7e6;
  --success: #059669;
  --success-50: #ecfdf5;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --info: #0284c7;
  --info-50: #f0f9ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(30, 41, 99, .18), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, .28);
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
ul, ol { color: var(--text-2); padding-left: 1.2em; }
li + li { margin-top: .35em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
::selection { background: #c7d2fe; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px; }
.container-md { max-width: 960px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-50); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.dropdown-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current="true"] { background: var(--primary-50); color: var(--primary); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: .85rem; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }

@media (max-width: 980px) {
  .nav-links, .nav-actions .hide-mobile { display: none; }
  .menu-toggle { display: block; }
  /* Anchor the menu to the full-width header, not to the small button. */
  .dropdown.menu-toggle { position: static; }
  .mobile-menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 70px); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; }
  .mobile-menu a { display: block; padding: 12px 6px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; width: 100%; display: flex; justify-content: center; border-bottom: 1px solid transparent; }
}
@media (min-width: 981px) { .menu-toggle, .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-gradient { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .8); }
.btn-gradient:hover { color: #fff; filter: brightness(1.06); }
.btn-accent { background: var(--accent); color: #1f1300; }
.btn-accent:hover { background: #e08e00; color: #1f1300; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7cce0; color: var(--text); background: #fbfbfe; }
.btn-soft { background: var(--primary-50); color: var(--primary); }
.btn-soft:hover { background: #e0e7ff; }
.btn-danger { background: var(--danger-50); color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; color: #b91c1c; }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(99, 102, 241, .20), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(236, 72, 153, .16), transparent 70%),
    radial-gradient(40% 50% at 70% 85%, rgba(245, 158, 11, .16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--success); }
.page-hero { padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 0%, rgba(99, 102, 241, .14), transparent 70%);
}
.page-hero p.lead { max-width: 680px; margin: 0 auto; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 48px; } }

/* TV mock-up used in the hero */
.tv-mock { position: relative; border-radius: 22px; padding: 12px; background: #0f172a; box-shadow: var(--shadow-lg); }
.tv-mock::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: -16px; height: 10px; border-radius: 0 0 12px 12px; background: #1e293b; }
.tv-screen { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, #0b1437, #1b1060 55%, #3a0f4f); position: relative; color: #fff; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5d9ea; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--primary-50); color: var(--primary); }
.icon-box svg { width: 24px; height: 24px; }
.icon-box.amber { background: var(--accent-50); color: #b45309; }
.icon-box.pink { background: #fdf2f8; color: #be185d; }
.icon-box.green { background: var(--success-50); color: var(--success); }
.icon-box.sky { background: var(--info-50); color: var(--info); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--gradient);
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; }

/* Pricing */
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -13px; left: 24px; background: var(--gradient); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; margin: 0; color: var(--text-2); }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Plan picker (radio cards) */
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.choice .choice-body strong { display: block; }
.choice .choice-body span { color: var(--muted); font-size: .88rem; }
.choice input:checked + .choice-body { border-color: var(--primary); background: var(--primary-50); }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(79, 70, 229, .4); outline-offset: 2px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--primary); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: .9rem; color: var(--text); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border-radius: 12px; border: 1px solid #d6dae6; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.input.mono { letter-spacing: .06em; text-transform: uppercase; }
.input-pin { max-width: 160px; letter-spacing: .5em; text-align: center; font-weight: 800; }
.textarea { min-height: 120px; resize: vertical; }
.help { font-size: .84rem; color: var(--muted); }
.error { font-size: .85rem; color: var(--danger); font-weight: 600; }
.input.is-invalid { border-color: #fca5a5; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.segmented { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 4px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.segmented input:checked + span { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------- Alerts, badges, tables ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-weight: 600; font-size: .95rem; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert ul { margin: 0; padding-left: 1.1em; color: inherit; }
.alert-success { background: var(--success-50); border-color: #a7f3d0; color: #065f46; }
.alert-error { background: var(--danger-50); border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--info-50); border-color: #bae6fd; color: #075985; }
.alert-warning { background: var(--accent-50); border-color: #fde68a; color: #92400e; }
.flash-stack { display: grid; gap: 10px; margin: 20px auto 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-warning { background: var(--accent-50); color: #b45309; }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-primary { background: var(--primary-50); color: var(--primary); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfe; font-weight: 800; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.kv dd { margin: 0; font-weight: 700; word-break: break-all; }

.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat .stat-label { color: var(--muted); font-size: .85rem; font-weight: 700; }
.stat .stat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--text-2); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Panel layout (customer + reseller) ---------- */
.panel { padding: 36px 0 72px; }
.panel-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .panel-grid { grid-template-columns: 1fr; } }
.panel-side { position: sticky; top: 90px; display: grid; gap: 16px; }
@media (max-width: 980px) { .panel-side { position: static; } }
.device-list { display: grid; gap: 8px; }
.device-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.device-item.active { border-color: var(--primary); background: var(--primary-50); }
.device-item button { all: unset; cursor: pointer; flex: 1; font-weight: 700; font-size: .9rem; }
.device-item .mono { font-size: .85rem; }
.playlist { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.playlist + .playlist { margin-top: 12px; }
.playlist-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.playlist-title { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.playlist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.playlist-actions form { margin: 0; }
.playlist-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: 14px; }

.auth-wrap { min-height: calc(100vh - 70px - 260px); display: grid; place-items: center; padding: 56px 0; }
.auth-card { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; }
.auth-card > div { padding: 40px; }
.auth-side { background: var(--gradient); color: #fff; }
.auth-side h2, .auth-side p, .auth-side li { color: #fff; }
.auth-side ol { padding-left: 1.2em; }
@media (max-width: 860px) { .auth-card { grid-template-columns: 1fr; } .auth-card > div { padding: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b1324; color: #cbd5e1; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid li + li { margin: 0; }
.footer-brand p { color: #94a3b8; font-size: .92rem; max-width: 320px; }
.footer-brand .brand { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1e293b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #94a3b8; }
.footer-powered { margin-left: 10px; white-space: nowrap; }
.footer-powered a { color: #cbd5e1; font-weight: 600; }
.footer-powered a:hover { color: #fff; }
.footer-note { font-size: .82rem; color: #94a3b8; max-width: 760px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* CTA band */
.cta-band { border-radius: 24px; padding: 48px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { opacity: .9; margin-top: 8px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; }

/* Prose (legal pages, guides) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.02rem; }

.spacer-sm { height: 12px; }
.spacer { height: 24px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hide { display: none !important; }
.lang-btn svg, .icon-sm { width: 16px; height: 16px; }

/* marketing */
.mock-home { display: flex; flex-direction: column; padding: 4.5% 5%; gap: 5%; }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: clamp(.7rem, 1.6vw, 1rem); }
.mock-logo { display: inline-flex; align-items: center; gap: 8px; }
.mock-logo .brand-mark { width: 24px; height: 24px; }
.mock-clock { opacity: .8; font-weight: 700; }
.mock-tiles { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4%; }
.mock-tile { border-radius: 10px; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; font-size: clamp(.6rem, 1.4vw, .9rem); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mock-tile svg { width: 26%; height: auto; max-width: 34px; }
.mock-tile-big { grid-row: span 2; outline: 3px solid #f59e0b; outline-offset: 2px; }
.mock-tile.t1 { background: linear-gradient(150deg, #4f46e5, #7c3aed); }
.mock-tile.t2 { background: linear-gradient(150deg, #db2777, #9d174d); }
.mock-tile.t3 { background: linear-gradient(150deg, #0891b2, #155e75); }
.mock-tile.t4 { background: linear-gradient(150deg, #d97706, #92400e); }
.mock-tile.t5 { background: linear-gradient(150deg, #059669, #065f46); }
.mock-epg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: clamp(.55rem, 1.2vw, .8rem); background: rgba(0, 0, 0, .28); padding: 2.5% 3%; border-radius: 10px; }
.mock-bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: 62%; background: #f59e0b; }
.muted-light { opacity: .7; }
.contact-card { display: flex; flex-direction: column; gap: 10px; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.timeline { display: grid; gap: 22px; }
.release-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.release-head h2 { font-size: 1.35rem; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.guide-section { scroll-margin-top: 90px; }
.guide-section + .guide-section { margin-top: 40px; }
.code-box { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 1.1rem; padding: 8px 14px; border-radius: 10px; background: var(--primary-50); color: var(--primary); word-break: break-all; }
.choice .choice-body svg { width: 28px; height: 28px; flex: none; color: var(--primary); }
.kv dd.mono { word-break: normal; white-space: nowrap; font-size: .9rem; }

/* Elements toggled with the hidden attribute (playlist type fields, PIN
   inputs) must stay hidden even when a class sets display: grid/flex. */
[hidden] { display: none !important; }

/* Download page: code for the "Downloader" app on Android TV / Fire TV. */
.downloader-box { border: 1px solid var(--line); border-left: 4px solid var(--primary); background: var(--primary-50); border-radius: var(--radius-sm); padding: 16px 18px; }
.downloader-head { display: flex; align-items: center; gap: 14px; }
.downloader-head .icon-box { background: #fff; flex: none; }
.downloader-title { margin: 0; font-weight: 700; color: var(--text); font-size: 1.05rem; line-height: 1.5; }
.downloader-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; letter-spacing: .08em; color: var(--primary); background: #fff; border: 1px dashed var(--primary); border-radius: 8px; padding: 1px 10px; margin: 0 2px; white-space: nowrap; }
.downloader-steps { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .95rem; }
@media (max-width: 640px) { .downloader-head { align-items: flex-start; } .downloader-head .icon-box { display: none; } .downloader-box { padding: 14px; } }
