/* TiviMaster website. Light theme, plain CSS, no external requests. */
:root {
  --ink: #0b1526;
  --ink-2: #3b4658;
  --ink-3: #6b7587;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eaf3fd;
  --line: #e3e9f2;
  --brand: #1677d2;
  --brand-dark: #0f5fae;
  --brand-ink: #0b4a8a;
  --gold: #f2a91f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .04), 0 12px 32px -12px rgba(11, 21, 38, .14);
  --shadow-lg: 0 30px 80px -30px rgba(11, 40, 80, .35);
  --max: 1160px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
:focus-visible { outline: 3px solid #7fb8f0; outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
summary, .btn { cursor: pointer; }
a:hover { color: var(--brand-dark); }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ── Header ─────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
header.site .logo img { height: 30px; width: auto; }
header.site nav { display: flex; align-items: center; gap: 28px; }
header.site nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }
header.site nav a.btn { color: #fff; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #fff;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 24px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(22, 119, 210, .6);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.light {
  background: #fff; color: var(--ink); box-shadow: none;
  border: 1px solid var(--line);
}
.btn.light:hover { background: var(--bg-soft); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, #dcecfd 0%, rgba(220, 236, 253, 0) 70%),
    radial-gradient(700px 380px at 0% 10%, #eef6ff 0%, rgba(238, 246, 255, 0) 70%),
    var(--bg);
  padding: 72px 0 40px;
}
.hero .wrap.grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .4px;
  color: var(--brand-ink); background: var(--bg-tint);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
.hero h1 {
  text-wrap: balance;
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04;
  letter-spacing: -1.8px; margin: 20px 0 18px; font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(90deg, #1268c0, #1f86e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
  color: var(--ink-3); font-size: 14px;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: #18a058; }

/* Device mockups, drawn in CSS with made-up channels. */
.devices { position: relative; height: 440px; }
.tv {
  position: absolute; left: 0; top: 10px; width: 92%;
  aspect-ratio: 16 / 9; background: #0b0f16; border-radius: 16px;
  padding: 10px; box-shadow: var(--shadow-lg);
}
.tv::after {
  content: ""; position: absolute; left: 38%; right: 38%; bottom: -22px;
  height: 12px; border-radius: 0 0 10px 10px; background: #c9d3e1;
}
.screen {
  width: 100%; height: 100%; border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 22% 40% 38%;
  background: #0d1117; font-size: 10px; color: #e6e9ee;
}
.rail { background: #161a20; padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.rail b { font-size: 13px; color: #2f8de4; margin: 2px 6px 8px; letter-spacing: -.3px; }
.rail span { padding: 6px 8px; border-radius: 6px; color: #9aa3b2; }
.rail span.on { background: #fff; color: #0b0f16; font-weight: 700; }
.list { padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid #1d222a; }
.row { display: grid; grid-template-columns: 16px 22px 1fr; gap: 7px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.row.on { background: #fff; color: #0b0f16; }
.row em { font-style: normal; color: #6e7686; font-size: 9px; }
.row.on em { color: #556; }
.logo-chip { width: 22px; height: 16px; border-radius: 4px; }
.row small { display: block; color: #4ea3f0; font-size: 8.5px; }
.row.on small { color: #1677d2; }
.bar { height: 2px; background: #262b33; border-radius: 2px; margin-top: 3px; }
.bar i { display: block; height: 100%; background: #2f8de4; border-radius: 2px; }
.preview { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.video {
  aspect-ratio: 16 / 9; border-radius: 6px;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 196, 120, .9), rgba(255, 140, 60, 0) 40%),
    linear-gradient(160deg, #1f4d7a 0%, #0f2a45 55%, #3b2a4f 100%);
  position: relative;
}
.video::after {
  content: "LIVE"; position: absolute; left: 6px; top: 6px;
  background: #e5484d; color: #fff; font-weight: 800; font-size: 7px;
  padding: 2px 5px; border-radius: 3px; letter-spacing: .5px;
}
.preview h4 { margin: 0; font-size: 11px; }
.preview p { margin: 0; color: #8a93a3; font-size: 9px; line-height: 1.5; }

.phone {
  position: absolute; right: 0; bottom: 0; width: 30%;
  aspect-ratio: 9 / 19; background: #0b0f16; border-radius: 30px;
  padding: 8px; box-shadow: var(--shadow-lg);
  border: 1px solid #222;
}
.phone .screen { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; border-radius: 23px; }
.p-top { padding: 14px 12px 6px; font-weight: 800; font-size: 12px; color: #fff; }
.p-video { margin: 0 8px; aspect-ratio: 16 / 9; border-radius: 8px;
  background: linear-gradient(150deg, #285e93 0%, #13324f 60%, #4a2f5a 100%); }
.p-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.p-list .row { grid-template-columns: 20px 1fr; }
.p-tabs { display: flex; justify-content: space-around; padding: 8px 4px 12px; background: #161a20; color: #7d8697; font-size: 8px; }
.p-tabs b { color: #fff; }

/* Real app screenshots in a phone frame. */
.phone-shot {
  background: #0e1116; border-radius: 34px; padding: 9px;
  box-shadow: var(--shadow-lg); border: 1px solid #1f242c;
}
.phone-shot img { width: 100%; height: auto; border-radius: 26px; display: block; }
.hero-shots { position: relative; height: 640px; }
.hero-shots .phone-shot { position: absolute; width: 250px; }
.hero-shots .front { right: 12%; top: 0; z-index: 2; }
.hero-shots .back { right: 46%; top: 50px; transform: rotate(-6deg); opacity: .96; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.gal { margin: 0; }
.gal .phone-shot { border-radius: 28px; padding: 7px; }
.gal .phone-shot img { border-radius: 22px; }
.gal figcaption { text-align: center; margin-top: 16px; }
.gal figcaption b { display: block; font-size: 17px; }
.gal figcaption span { color: var(--ink-3); font-size: 14.5px; }

/* TV screenshots in a slim TV frame. */
.tv-frame {
  background: #0b0e13; border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow-lg); max-width: 980px; margin: 0 auto; position: relative;
}
.tv-frame img { width: 100%; height: auto; display: block; border-radius: 8px; }
.tv-frame:not(.small)::after {
  content: ""; position: absolute; left: 40%; right: 40%; bottom: -16px; height: 10px;
  border-radius: 0 0 10px 10px; background: #c9d3e1;
}
.tv-frame.small { border-radius: 12px; padding: 7px; box-shadow: var(--shadow); }
.tv-frame.small img { border-radius: 5px; }
.tv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 46px auto 0; }
.tv-row figure { margin: 0; }
.tv-row figcaption { text-align: center; margin-top: 12px; font-weight: 600; color: var(--ink-2); }

/* ── Notice strip ───────────────────────────────────────── */
.notice {
  margin: 34px auto 0; max-width: 880px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  color: var(--ink-2); font-size: 14.5px; text-align: center;
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.head h2 { text-wrap: balance; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -1px; line-height: 1.12; margin: 12px 0; }
.head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(11,21,38,.04), 0 22px 40px -18px rgba(11,21,38,.22); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--bg-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.feature .tag {
  display: inline-block; white-space: nowrap; margin-left: 6px; vertical-align: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: #8a5a00; background: #fff3d6; padding: 2px 7px; border-radius: 999px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel {
  border-radius: 26px; padding: 38px; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel.blue { background: linear-gradient(160deg, #1677d2 0%, #0c4f95 100%); color: #fff; border: 0; }
.panel.blue p, .panel.blue li { color: rgba(255, 255, 255, .86); }
.panel h3 { font-size: 26px; letter-spacing: -.5px; margin: 0 0 10px; }
.panel p { color: var(--ink-2); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; color: var(--ink-2); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }
.panel.blue .checks svg { color: #9fd0ff; }

/* ── How it works ─────────────────────────────────────── */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: h; }
.how div {
  counter-increment: h; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.how div::before {
  content: counter(h); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  background: var(--brand); color: #fff; font-weight: 800;
}
.how h3 { margin: 0 0 6px; font-size: 18px; }
.how p { margin: 0; color: var(--ink-2); font-size: 15px; }
.center-cta { text-align: center; margin-top: 36px; }

/* ── Feature groups ─────────────────────────────────────── */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.group .ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--bg-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.group .ic svg { width: 26px; height: 26px; }
.group h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.2px; }
.group > p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
.group .checks li { font-size: 15px; margin: 8px 0; }
.group .checks svg { width: 18px; height: 18px; margin-top: 3px; }
.group .tag {
  display: inline-block; white-space: nowrap; margin-left: 6px; vertical-align: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: #8a5a00; background: #fff3d6; padding: 2px 7px; border-radius: 999px;
}

/* ── Comparison table ───────────────────────────────────── */
.compare-title { text-align: center; font-size: 24px; margin: 56px 0 18px; letter-spacing: -.4px; }
.table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { background: var(--bg-tint); color: var(--brand-ink); font-size: 14px; letter-spacing: .3px; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes svg { width: 20px; height: 20px; color: var(--brand); margin: 0 auto; }
.compare td.no { color: #b6bdc8; }
.compare td:last-child { background: rgba(22, 119, 210, .04); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Pricing ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.plan.premium { border: 2px solid var(--brand); position: relative; }
.plan.premium .badge {
  position: absolute; top: -14px; right: 26px;
  background: var(--gold); color: #3a2600; font-weight: 800; font-size: 12px;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .3px;
}
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 15px; color: var(--ink-3); margin: 6px 0 20px; }
.plan .price b { font-size: 34px; color: var(--ink); letter-spacing: -1px; }
.plan .options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.plan .options span { font-size: 13px; font-weight: 600; background: var(--bg-tint); color: var(--brand-ink); padding: 6px 11px; border-radius: 999px; }
.plan .trial {
  background: #fff8e6; border: 1px solid #f6dfa6; color: #5c4300;
  border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 18px;
}
.plan .note { font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 0 22px; margin: 10px 0; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 650; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 24px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ── Download band ──────────────────────────────────────── */
.band {
  border-radius: 30px; padding: 56px; text-align: center;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #1677d2 0%, #0b3f7a 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.band h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; letter-spacing: -1px; }
.band p { color: rgba(255, 255, 255, .85); margin: 0 auto 26px; max-width: 560px; }
.band .btn { background: #fff; color: var(--brand-ink); box-shadow: none; }
.band .btn:hover { background: #eef6ff; color: var(--brand-ink); }

/* ── Document pages (privacy, terms…) ───────────────────── */
.doc { padding: 64px 0 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -1px; margin: 0 0 8px; line-height: 1.1; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin: 0 0 32px; }
.doc .lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.3px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout {
  background: var(--bg-tint); border: 1px solid #cfe3fa; border-radius: 16px;
  padding: 18px 22px; color: var(--brand-ink); margin: 24px 0;
}
.callout p { color: var(--brand-ink); margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: s; position: relative; padding: 14px 18px 14px 62px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0;
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}

/* ── Footer ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer.site img { height: 26px; width: auto; margin-bottom: 12px; }
footer.site h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
footer.site p, footer.site a { color: var(--ink-3); font-size: 14px; }
footer.site a { display: block; margin: 6px 0; }
footer.site a:hover { color: var(--ink); }
footer.site .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 13px; color: var(--ink-3); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero .wrap.grid { grid-template-columns: 1fr; }
  .devices { height: 380px; max-width: 640px; width: 100%; margin: 0 auto; }
  .hero-shots { height: 480px; max-width: 520px; width: 100%; margin: 10px auto 0; }
  .hero-shots .front { right: 8%; }
  .hero-shots .back { right: auto; left: 8%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tv-row { grid-template-columns: 1fr; max-width: 520px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split, .plans, .how { grid-template-columns: 1fr; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  header.site nav a:not(.btn) { display: none; }
  .hero { padding: 44px 0 24px; }
  .devices { height: 290px; }
  .hero-shots { height: 400px; }
  .hero-shots .phone-shot { width: 190px; }
  .gallery { gap: 16px; }
  .screen { font-size: 7px; }
  .features { grid-template-columns: 1fr; }
  .groups { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 10px; font-size: 14px; }
  section { padding: 64px 0; }
  .panel, .plan { padding: 26px; }
  .band { padding: 38px 22px; border-radius: 24px; }
  footer.site .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
