/* tvport.app – brand colours of the logo and the app (navy ground, magenta → violet → blue → cyan) */
:root {
  --bg: #070b1f;
  --bg-2: #0b1130;
  --card: rgba(255, 255, 255, 0.04);
  --card-hi: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9ebf7;
  --muted: #a3abcf;
  --magenta: #c026d3;
  --violet: #7c5cff;
  --blue: #3f8cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--magenta), var(--violet) 40%, var(--blue) 75%, var(--cyan));
  --radius: 18px;
  --shadow: 0 30px 80px rgba(3, 6, 25, 0.65);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  /* soft violet / blue / turquoise light fields along the page (static, no animation) */
  background:
    radial-gradient(1100px 620px at 88% 0, rgba(63, 140, 255, 0.2), transparent 62%),
    radial-gradient(900px 560px at 0 4%, rgba(192, 38, 211, 0.17), transparent 62%),
    radial-gradient(900px 700px at 6% 30%, rgba(34, 211, 238, 0.08), transparent 65%),
    radial-gradient(1000px 700px at 100% 48%, rgba(124, 92, 255, 0.11), transparent 65%),
    radial-gradient(900px 700px at 0 72%, rgba(63, 140, 255, 0.09), transparent 65%),
    radial-gradient(1000px 600px at 90% 96%, rgba(34, 211, 238, 0.08), transparent 65%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* content width grows with the screen: ~1330 px at 1440, 1600 px from ~1800 up */
.wrap { width: min(1600px, 100% - clamp(32px, 8vw, 160px)); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.ic { width: 26px; height: 26px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0;
  background: linear-gradient(100deg, var(--violet), var(--blue));
  color: #fff; font-weight: 650; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(92, 92, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(92, 92, 255, 0.45); }
.btn-sm { padding: 9px 16px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--card-hi); box-shadow: none; }
.is-disabled { opacity: 0.75; cursor: default; }
.is-disabled:hover { transform: none; }
.link { color: var(--cyan); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 31, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 92px; }
.brand img { height: 74px; width: auto; }
.nav-desk { margin-left: auto; display: flex; align-items: center; gap: clamp(22px, 2.4vw, 40px); }
.nav-desk a, .nav-mob nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-desk a:hover, .nav-desk a[aria-current], .nav-mob nav a:hover, .nav-mob nav a[aria-current] { color: var(--text); }
.nav-mob { display: none; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a { padding: 5px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { background: var(--card-hi); color: var(--text); }

@media (max-width: 960px) {
  .nav-desk { display: none; }
  .nav-mob { display: block; order: 3; }
  .langs { margin-left: auto; }
  .nav summary { display: grid; gap: 5px; place-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; list-style: none; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav summary span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav nav { position: absolute; left: 0; right: 0; top: 92px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 20px; background: #070b1f; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55); }
  .nav-mob nav { display: flex; }
  .nav-mob nav a { padding: 11px 4px; font-size: 17px; }
}
@media (max-width: 600px) {
  .top-in { height: 76px; gap: 12px; }
  .nav nav { top: 76px; }
  .brand img { height: 58px; }
}
@media (max-width: 359px) {
  .brand img { height: 50px; }
  .langs a { padding: 5px 8px; }
}

/* hero */
.hero { padding: clamp(40px, 5vw, 80px) 0 clamp(36px, 4vw, 64px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: clamp(40px, 4vw, 80px); align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 104px); font-weight: 850; letter-spacing: -0.035em; line-height: 1.02; text-shadow: 0 10px 40px rgba(124, 92, 255, 0.25); }
.hero h1 .grad { display: inline-block; padding-bottom: 0.06em; text-shadow: none; filter: drop-shadow(0 8px 30px rgba(124, 92, 255, 0.35)); }
.lead { margin-top: 24px; font-size: clamp(17px, 1.25vw, 20px); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; padding: 0 4% 30px 0; }
.hero-art::before { content: ""; position: absolute; inset: 8% 6% 14% 4%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.45), rgba(63, 140, 255, 0.18) 60%, transparent); filter: blur(40px); z-index: -1; }
@media (max-width: 980px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
}

/* device frames (pure CSS) */
.screen { position: relative; display: block; overflow: hidden; background: #000; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 38%); pointer-events: none; }
.tv { position: relative; margin: 0 0 30px; padding: 10px 10px 16px; border-radius: 14px; background: linear-gradient(180deg, #252c4a, #0d1128 55%, #151a35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow); }
.tv .screen { border-radius: 5px; box-shadow: 0 0 0 1px #000; }
.tv::before { content: ""; position: absolute; left: 50%; bottom: -18px; width: 7%; height: 18px; transform: translateX(-50%); background: linear-gradient(90deg, #0b0e22, #2a3152, #0b0e22); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 34%; height: 8px; transform: translateX(-50%); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #313a60, #0f1330); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55); }
.phone { position: relative; margin: 0; width: 30%; padding: 3.2%; border-radius: 15% / 7%; background: linear-gradient(150deg, #3a4266, #10142c 30%, #0a0d20 70%, #2b3254); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 3px #04060e, var(--shadow); }
.phone .screen { border-radius: 12% / 5.6%; }
.phone::before { content: ""; position: absolute; top: calc(3.2% + 6px); left: 50%; width: 6%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2c3560, #020308 65%); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6); z-index: 2; }
.phone::after { content: ""; position: absolute; right: -2px; top: 22%; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #3a4266, #1a1f3a); }
.hero-art .phone { position: absolute; right: 0; bottom: 0; width: 27%; }
@media (max-width: 980px) { .hero-art .phone { width: 29%; } }

/* notice band */
.notice-band { border-block: 1px solid var(--line); background: rgba(124, 92, 255, 0.08); }
.notice-band p { display: flex; gap: 12px; align-items: flex-start; justify-content: center; padding: 16px 0; color: #d7dbf2; font-size: 16px; }
.notice-band .ic { color: var(--cyan); margin-top: 3px; }

/* sections */
.sec { padding: clamp(56px, 5vw, 88px) 0; }
.sec-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03)); border-block: 1px solid var(--line); }
.sec-title { font-size: clamp(30px, 3vw, 48px); font-weight: 800; }
.sec-lead { margin-top: 10px; color: var(--muted); font-size: clamp(17px, 1.2vw, 19px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* feature cards: bento grid, gradient hairline border, wide cards carry a small visual */
.feats { list-style: none; padding: 0; margin: clamp(28px, 2.6vw, 44px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.4vw, 24px); }
.feat {
  position: relative; display: flex; gap: clamp(24px, 2.4vw, 44px); padding: clamp(24px, 2.2vw, 38px); border-radius: var(--radius); overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #0f1638, #0a0f29) padding-box,
    linear-gradient(140deg, rgba(192, 38, 211, 0.55), rgba(124, 92, 255, 0.25) 35%, rgba(255, 255, 255, 0.06) 65%, rgba(34, 211, 238, 0.35)) border-box;
}
.feat::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; background: radial-gradient(closest-side, rgba(63, 140, 255, 0.2), transparent); pointer-events: none; }
.feat-wide { grid-column: span 2; align-items: center; }
.feat-txt { position: relative; flex: 1; min-width: 0; }
.feat-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(140deg, rgba(192, 38, 211, 0.3), rgba(63, 140, 255, 0.3)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: #fff; }
.feat-n { position: absolute; top: 4px; right: 0; font: 700 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; color: rgba(163, 171, 207, 0.55); }
.feat-wide .feat-n { display: none; }
.feat h3 { margin-top: 18px; font-size: clamp(19px, 1.35vw, 22px); }
.feat p, .steps p, .dev p:not(.req), .sup p, .qa p { font-size: clamp(16px, 1.1vw, 17.5px); }
.feat p { margin-top: 8px; color: var(--muted); max-width: 38em; }
.feat-vis { position: relative; flex: none; width: 42%; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 22px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.chips span { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); }
.chips span:first-child { background: linear-gradient(100deg, var(--magenta), var(--violet)); border-color: transparent; }
.keys { flex-direction: column; align-items: center; gap: 14px; }
.krow { display: flex; gap: 12px; justify-content: center; width: 100%; }
.k { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.05); }
.k-r { background: #e5484d; } .k-g { background: #30a46c; } .k-y { background: #f5d90a; } .k-b { background: #3e63dd; }
.kc { flex: 1; max-width: 120px; text-align: center; padding: 7px 0; border-radius: 10px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.epg { flex-direction: column; justify-content: center; }
.epg-row { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 15px; font-weight: 700; }
.epg-row span { width: 64px; color: var(--muted); }
.epg-row i { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.epg-row i.now::after { content: ""; position: absolute; inset: 0 38% 0 0; background: var(--grad); border-radius: inherit; }
@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .feat-wide, .feat:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .feats { grid-template-columns: 1fr; }
  .feat-wide, .feat:last-child { grid-column: auto; }
  .feat-wide { flex-direction: column; align-items: stretch; }
  .feat-wide .feat-n { display: block; }
  .feat-vis { width: auto; }
  .sec { padding: 52px 0; }
}

.how-in { display: grid; grid-template-columns: minmax(0, 780px) clamp(230px, 18vw, 320px); justify-content: center; gap: clamp(40px, 8vw, 160px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: clamp(16px, 1.4vw, 22px); border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; }
.steps h3 { font-size: clamp(19px, 1.35vw, 22px); }
.steps p { margin-top: 4px; color: var(--muted); }
.phone-solo { width: 100%; }
@media (max-width: 820px) { .how-in { grid-template-columns: 1fr; } .phone-solo { width: 62%; max-width: 280px; margin-inline: auto; } }

.devs { list-style: none; padding: 0; margin: clamp(28px, 2.6vw, 44px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.4vw, 24px); }
.dev { padding: clamp(24px, 2.2vw, 38px); display: flex; flex-direction: column; gap: 6px; }
.dev-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(140deg, rgba(192, 38, 211, 0.28), rgba(63, 140, 255, 0.28)); margin-bottom: 10px; }
.dev h3 { font-size: clamp(21px, 1.5vw, 24px); }
.req { color: var(--cyan); font-size: 15.5px; font-weight: 600; }
.dev p:not(.req) { color: var(--muted); flex: 1; }
.stores { display: grid; gap: 10px; margin-top: 18px; }
.store { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; background: #03050f; border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-weight: 700; font-size: 16.5px; line-height: 1.15; }
.store small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.store .ic { width: 24px; height: 24px; }
.store.is-disabled { opacity: 0.55; cursor: not-allowed; }
.app-lang { margin-top: 16px; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .devs { grid-template-columns: 1fr; } .stores { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stores { grid-template-columns: 1fr; } }

/* support + contact */
.sups { list-style: none; padding: 0; margin: clamp(28px, 2.6vw, 44px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.4vw, 24px); }
.sup { padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; gap: 8px; }
.sup .dev-ic { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 8px; }
.sup h3 { font-size: clamp(18px, 1.25vw, 21px); }
.sup p { color: var(--muted); flex: 1; }
.sup .link { margin-top: 8px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .sups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sups { grid-template-columns: 1fr; } }

.priv { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.priv-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--grad); color: #fff; }
.priv-ic .ic { width: 36px; height: 36px; }
.priv p { margin-top: 14px; color: var(--muted); font-size: clamp(17px, 1.2vw, 18px); max-width: 46em; }
.priv .badge { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fde68a; background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.3); }
@media (max-width: 600px) { .priv { grid-template-columns: 1fr; } }

.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
@media (max-width: 900px) { .faq-in { grid-template-columns: 1fr; gap: 20px; } }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; font-size: clamp(17px, 1.2vw, 19px); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--cyan); font-weight: 400; }
.qa[open] summary::after { content: "–"; }
.qa p { padding: 0 0 20px; color: var(--muted); }

/* legal pages */
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: #cdd2ea; overflow-wrap: break-word; hyphens: auto; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--cyan); }
.legal-note, .updated { margin-top: 14px; color: var(--muted); font-size: 15px; }
.updated { margin-top: 40px; }
.missing { background: rgba(250, 204, 21, 0.2); color: #fde68a; padding: 1px 6px; border-radius: 6px; }

/* footer */
.foot { position: relative; border-top: 1px solid var(--line); padding-top: 52px; background: #050817; }
.foot::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--grad); opacity: 0.6; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { height: clamp(64px, 5vw, 84px); width: auto; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 22em; }
.foot-brand .foot-plat { margin-top: 6px; font-size: 14.5px; color: #6f789f; }
.foot-col h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.foot-col ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 16px; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--text); }
.foot-notice { display: flex; gap: 10px; margin-top: 36px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(124, 92, 255, 0.06); color: var(--muted); font-size: 15.5px; }
.foot-notice .ic { margin-top: 3px; color: var(--cyan); }
.foot-bar { margin-top: 28px; border-top: 1px solid var(--line); }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 18px 0 22px; color: #6f789f; font-size: 14.5px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* language chooser / 404 */
.chooser main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; }
.chooser-logo { width: min(420px, 80vw); }
.chooser-logo.small { width: 200px; margin-bottom: 20px; }
.chooser p { color: var(--muted); }
.chooser p + p { margin-top: 10px; }
