/* ============================================================
   DESIGN TOKENS — rebrand colours & font here
   ============================================================ */
:root {
  --brand: #1162e8;          /* primary */
  --brand-600: #0b4fc4;
  --brand-50: #eef5ff;
  --brand-100: #d9e8ff;
  --accent: #0ea5e9;         /* secondary */
  --ok: #10b981;
  --ink: #0a1628;
  --ink-2: #2b3140;
  --ink-soft: #5c6475;
  --ink-mute: #8a91a3;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --line: #eaecf2;
  --line-2: #dfe2ea;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --sh-1: 0 1px 2px rgba(10,13,20,.05);
  --sh-2: 0 1px 2px rgba(10,13,20,.04), 0 8px 24px rgba(10,13,20,.06);
  --sh-3: 0 2px 4px rgba(10,13,20,.04), 0 24px 64px rgba(10,13,20,.12);
  --grad: linear-gradient(100deg, #0b3d91, #1162e8 50%, #19a7ff);
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Readex Pro", system-ui, sans-serif;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::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(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.muted { color: var(--ink-soft); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* ---------- Atoms ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: .85rem; color: var(--ink-2); box-shadow: var(--sh-1); }
.pill b { background: var(--brand-50); color: var(--brand); padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--brand); letter-spacing: .02em; margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 640px; line-height: 1.55; }
.center .lead { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 14px rgba(10,13,20,.18); }
.btn-primary:hover { background: #1d2230; transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(17,98,232,.35); }
.btn-brand:hover { background: var(--brand-600); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-secondary:hover { border-color: #c9cdd8; }
.btn-sm { height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); flex: none; }
.icon svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: #c9cdd8; font-size: .85rem; text-align: center; padding: 9px 16px; }
.announce a { color: #fff; font-weight: 600; }
#site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
#site-header.scrolled { border-color: var(--line); }
.nav-wrap { height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.1rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 8px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.main-nav ul a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav ul a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: 0 auto; transition: .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
[aria-expanded="true"] .bars { background: transparent; }
[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 16px; overflow-y: auto; border-top: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 8px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 8px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { height: 48px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 50% at 50% 0%, rgba(17,98,232,.10), transparent 70%), radial-gradient(40% 40% at 85% 25%, rgba(14,165,233,.10), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%); }
@media (min-width: 900px) { .hero { padding-top: 104px; } }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-copy h1 { margin: 22px 0 22px; }
.hero-copy .btn-row { justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--ink-mute); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero-note span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* ---------- Product mockup (pure CSS) ---------- */
.mock-wrap { position: relative; margin: 64px auto 0; max-width: 1080px; }
.mock-wrap::before { content: ""; position: absolute; inset: 10% 8% -4%; background: var(--grad); filter: blur(70px); opacity: .22; z-index: -1; border-radius: 50%; }
.mock { background: #fff; border: 1px solid var(--line-2); border-radius: 18px 18px 0 0; box-shadow: var(--sh-3); overflow: hidden; border-bottom: 0; }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3e5ec; }
.mock-url { margin: 0 auto; font-size: .75rem; color: var(--ink-mute); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 40px; }
.mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; font-size: .78rem; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fcfcfe; }
.mock-side .ms-logo { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); margin: 0 6px 18px; }
.mock-side .ms-logo span { width: 18px; height: 18px; border-radius: 5px; background: var(--grad); }
.mock-side li { padding: 7px 8px; border-radius: 7px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.mock-side li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--line-2); }
.mock-side li.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.mock-side li.on::before { background: var(--brand); }
.mock-main { padding: 20px; display: grid; gap: 14px; align-content: start; background: #fff; }
.mm-head { display: flex; justify-content: space-between; align-items: center; }
.mm-head strong { font-size: 1.05rem; color: var(--ink); }
.mm-head em { font-style: normal; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 7px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kpi small { color: var(--ink-mute); display: block; }
.kpi b { font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.kpi i { font-style: normal; color: var(--ok); font-size: .7rem; margin-left: 4px; }
.mm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.panel h5 { margin: 0 0 10px; font-size: .78rem; color: var(--ink); }
.chart { height: 120px; display: flex; align-items: flex-end; gap: 6px; }
.chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5b9bff, #cfe1ff); }
.chart span:nth-child(9) { background: var(--grad); }
.rooms { display: grid; gap: 6px; }
.rooms div { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 6px; background: var(--bg-soft); }
.st { font-size: .68rem; padding: 2px 7px; border-radius: 999px; background: #d1fae5; color: #047857; font-weight: 600; }
.st.w { background: #fef3c7; color: #b45309; }
@media (max-width: 760px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .mm-grid { grid-template-columns: 1fr; }
  .mock-url { padding: 3px 16px; }
}

/* ---------- Logo strip ---------- */
.logos { padding: 48px 0; border-bottom: 1px solid var(--line); }
.logos p { text-align: center; color: var(--ink-mute); font-size: .85rem; margin-bottom: 22px; }
.logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 48px; }
.logos li { font: 700 1.05rem/1 var(--display); color: #a3a9b8; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.logos li::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: #d5d9e3; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(6, 1fr); } .b-4 { grid-column: span 4; } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; } }
.tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.tile:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.tile h3 { margin-top: 18px; }
.tile p { color: var(--ink-soft); margin: 0; }
.tile-art { margin-top: 24px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); padding: 16px; flex: 1; min-height: 140px; display: flex; align-items: center; justify-content: center; }
.epg { width: 100%; display: grid; gap: 6px; font-size: .75rem; }
.epg div { display: grid; grid-template-columns: 60px 1fr 1fr 1fr; gap: 6px; }
.epg span { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.epg span.ch { font-weight: 700; color: var(--ink); }
.epg span.now { background: var(--brand); color: #fff; border-color: var(--brand); }
.welcome-art { width: 100%; border-radius: 10px; padding: 18px; color: #fff; background: radial-gradient(100% 120% at 100% 0%, #7c3aed, transparent 60%), radial-gradient(80% 100% at 0% 100%, #0ea5e9, transparent 60%), #111827; }
.welcome-art small { opacity: .7; } .welcome-art strong { display: block; font: 700 1.4rem/1.1 var(--display); }
.cast-art { display: flex; align-items: center; gap: 18px; }
.phone { width: 44px; height: 80px; border-radius: 10px; border: 3px solid var(--ink); background: #fff; position: relative; }
.phone::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 5px; height: 3px; border-radius: 3px; background: var(--ink); }
.tvbox { width: 110px; height: 66px; border-radius: 8px; border: 3px solid var(--ink); background: var(--grad); }
.waves { display: flex; gap: 4px; } .waves i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .3; animation: pulse 1.4s infinite; } .waves i:nth-child(2) { animation-delay: .2s; } .waves i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 50% { opacity: 1; } }
.alert-art { width: 100%; display: grid; gap: 8px; }
.alert-art div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .8rem; display: flex; gap: 10px; align-items: center; }
.alert-art div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.alert-art div.red::before { background: #ef4444; }

/* ---------- Feature rows ---------- */
.row { display: grid; gap: 48px; align-items: center; }
.row + .row { margin-top: 96px; }
@media (min-width: 960px) { .row { grid-template-columns: 1fr 1.1fr; gap: 80px; } .row.flip > :first-child { order: 2; } }
.checks li { position: relative; padding-left: 30px; margin: 14px 0; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231162e8' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid var(--brand-100); }
.card-ui { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 20px; }
.ui-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.ui-list { display: grid; gap: 8px; font-size: .88rem; }
.ui-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ui-list li .grow { flex: 1; min-width: 0; }
.ui-list li small { display: block; color: var(--ink-mute); font-size: .78rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.toggle { width: 36px; height: 20px; border-radius: 999px; background: var(--brand); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle.off { background: var(--line-2); } .toggle.off::after { right: auto; left: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 32px 24px; }
.stat b { display: block; font: 700 clamp(2rem, 4vw, 2.75rem)/1 var(--display); letter-spacing: -.04em; color: var(--ink); margin-bottom: 8px; }
.stat span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .int-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .int-grid { grid-template-columns: repeat(4, 1fr); } }
.int { display: flex; gap: 12px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.int strong { display: block; color: var(--ink); font-size: .95rem; }
.int small { color: var(--ink-mute); font-size: .8rem; }

/* ---------- Platforms ---------- */
.platforms { display: grid; gap: 16px; }
@media (min-width: 640px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .platforms { grid-template-columns: repeat(4, 1fr); } }
.plat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.plat-screen { aspect-ratio: 16/10; border-radius: 10px; margin-bottom: 18px; border: 4px solid var(--ink); display: grid; place-items: center; color: #fff; font: 700 1.1rem/1 var(--display); }
.plat h3 { margin-bottom: 4px; }
.plat p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 12px; }
.chip { display: inline-block; font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); margin: 2px 2px 0 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.stepc { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.stepc::before { counter-increment: s; content: "0" counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 .85rem/1 var(--display); margin-bottom: 18px; }
.stepc p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- Testimonial ---------- */
.quote-big { max-width: 880px; margin: 0 auto; text-align: center; }
.quote-big blockquote { margin: 0; font: 600 clamp(1.4rem, 2.8vw, 2rem)/1.35 var(--display); letter-spacing: -.02em; color: var(--ink); }
.quote-big figcaption { margin-top: 28px; display: inline-flex; gap: 12px; align-items: center; text-align: left; }
.quote-big figcaption small { display: block; color: var(--ink-mute); }
.quotes { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.q p { color: var(--ink-2); }
.q footer { display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.q footer small { display: block; color: var(--ink-mute); }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(17,98,232,.15); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan .muted { font-size: .95rem; }
.plan ul { margin: 18px 0 24px; flex: 1; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding: 0 40px 22px 0; margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 64px 24px; text-align: center; color: #c9cdd8; background: var(--ink); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 20% 0%, rgba(17,98,232,.55), transparent 70%), radial-gradient(50% 80% at 85% 100%, rgba(14,165,233,.45), transparent 70%); }
.cta h2 { color: #fff; }
.cta .lead { color: #b5bccb; margin: 0 auto 32px; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
@media (min-width: 900px) { .cta { padding: 96px 48px; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; padding: 88px 0 72px; text-align: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgba(17,98,232,.10), transparent 70%); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); margin: 18px auto 18px; max-width: 860px; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; padding: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.tabs a:hover { background: #fff; box-shadow: var(--sh-1); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-3); }
@media (min-width: 640px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-weight: 500; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(17,98,232,.14); }
.was-validated :invalid { border-color: #ef4444; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.checkbox input { width: 16px; height: 16px; margin-top: 3px; box-shadow: none; flex: none; }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.4em; font-size: .92rem; }
.form-status.ok { color: #047857; } .form-status.error { color: #dc2626; }
.form-card .btn { width: 100%; margin-top: 20px; height: 50px; }

.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; } }
.info { display: grid; gap: 12px; margin-top: 28px; }
.info li { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.info strong { display: block; color: var(--ink); font-size: .92rem; }
.info a, .info span { color: var(--ink-soft); }

/* ---------- Screenshot tour ---------- */
.shots { display: grid; gap: 20px; }
@media (min-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot { margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e1e4eb; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
#site-footer { border-top: 1px solid var(--line); padding: 72px 0 0; background: #fff; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; grid-template-columns: repeat(2, 1fr); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid p { color: var(--ink-soft); font-size: .92rem; max-width: 300px; margin-top: 14px; }
.footer-h { font: 600 .85rem/1 var(--font); color: var(--ink); margin-bottom: 16px; letter-spacing: 0; }
#site-footer li { margin-bottom: 10px; font-size: .92rem; }
#site-footer li a, #site-footer li span { color: var(--ink-soft); }
#site-footer li a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 16px 32px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-mute); }
@media (min-width: 768px) { .footer-bottom { padding-left: 32px; padding-right: 32px; } }
.footer-bottom p { margin: 0; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #d1fae5; }

/* ---------- Real screenshots ---------- */
.tvframe { position: relative; border-radius: 18px; padding: 10px; background: #0a0d14; box-shadow: var(--sh-3); }
.tvframe img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.tvframe::after { content: ""; position: absolute; left: 38%; right: 38%; bottom: -14px; height: 14px; background: linear-gradient(#1b2030, #0a0d14); border-radius: 0 0 8px 8px; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--sh-3); }
.browser .bbar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser .bbar i { width: 10px; height: 10px; border-radius: 50%; background: #e1e4eb; }
.browser .bbar span { margin: 0 auto; font-size: .72rem; color: var(--ink-mute); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 28px; }
.browser img { width: 100%; height: auto; }
.hero-shot { margin: 64px auto 0; max-width: 1080px; position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 12% 6% -6%; background: var(--grad); filter: blur(80px); opacity: .25; z-index: -1; border-radius: 50%; }
.hero-shot .browser { border-radius: 18px 18px 0 0; border-bottom: 0; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-2); font-size: .85rem; color: var(--ink); }
.float small { display: block; color: var(--ink-mute); font-size: .75rem; }
.float .icon { width: 32px; height: 32px; }
.float.f1 { left: -24px; top: 24%; } .float.f2 { right: -24px; top: 58%; }
@media (max-width: 1100px) { .float { display: none; } }

/* Gallery tabs */
.gallery-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0 auto 28px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; box-shadow: var(--sh-1); }
.gallery-tabs button { font: 500 .92rem/1 var(--font); border: 0; background: none; padding: 10px 14px; border-radius: 10px; cursor: pointer; color: var(--ink-soft); }
.gallery-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.gallery-panel { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .gallery-panel { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.gallery-panel[hidden] { display: none; }

/* Video */
.video-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0a0d14; box-shadow: var(--sh-3); border: 1px solid var(--line-2); }
.video-card video { width: 100%; height: auto; display: block; }

/* Problem cards */
.pain { display: grid; gap: 16px; }
@media (min-width: 720px) { .pain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .pain { grid-template-columns: repeat(4, 1fr); } }
.pain article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pain .icon { background: #fef2f2; color: #dc2626; border-color: #fee2e2; }
.pain h3 { margin-top: 16px; }
.pain p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Compare table */
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row > div { padding: 16px 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.compare-row > div:first-child { color: var(--ink-soft); border-right: 1px solid var(--line); }
.compare-row > div:last-child { color: var(--ink); font-weight: 500; background: #fafaff; }
.compare-head > div { border-top: 0; font-weight: 700 !important; font-size: .82rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--ink) !important; background: var(--bg-soft) !important; }
@media (max-width: 600px) { .compare-row > div { padding: 12px 14px; font-size: .88rem; } }

.mini-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-shots figure { margin: 0; }
.mini-shots img { border-radius: 10px; border: 1px solid var(--line); width: 100%; height: auto; }
.mini-shots figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

.platform-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.platform-cloud span { padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .92rem; box-shadow: var(--sh-1); }

@media (max-width: 600px) {
  .announce { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .announce .hide-sm, .pill .hide-sm { display: none; }
  .pill { padding-right: 6px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Brand wordmark ---------- */
.wordmark { font: 800 1.2rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.wordmark em { font-style: normal; color: var(--brand); }
.logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(17,98,232,.25)); }
.btn-primary { background: var(--ink); }
.btn-primary:hover { background: var(--brand); }
.hero h1 { letter-spacing: -.05em; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.announce { background: linear-gradient(90deg, #0a1628, #0b3d91); }

/* ---------- Square, sharp buttons ---------- */
.btn, .btn-sm, .nav-toggle, .gallery-tabs, .gallery-tabs button, .tabs, .tabs a { border-radius: 0 !important; }
.btn { height: 48px; padding: 0 26px; font-weight: 600; letter-spacing: .01em; text-transform: none; box-shadow: none !important; transform: none !important; }
.btn-sm { height: 40px; padding: 0 18px; }
.btn-primary { background: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-secondary { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn svg { transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.cta .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn-primary:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.cta .btn-secondary { border-color: rgba(255,255,255,.5); }
.cta .btn-secondary:hover { background: #fff; color: var(--ink); }
.gallery-tabs { padding: 0; gap: 0; }
.gallery-tabs button { padding: 14px 18px; border-right: 1px solid var(--line); }
.gallery-tabs button:last-child { border-right: 0; }

/* ---------- Supported devices ---------- */
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; }
@media (min-width: 900px) { .devices { grid-template-columns: repeat(4, 1fr); } }
.dev { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.dev:hover { background: var(--brand-50); }
.dev-ic { width: 64px; height: 48px; color: var(--ink); margin-bottom: 16px; }
.dev:hover .dev-ic { color: var(--brand); }
.dev strong { font: 700 1.1rem/1.2 var(--display); color: var(--ink); }
.dev small { color: var(--ink-mute); font-size: .82rem; margin-top: 4px; }
.platform-cloud span { border-radius: 0; }

/* ---------- Brand logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; max-width: 1000px; margin: 0 auto; }
@media (min-width: 760px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.logo-wall li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 150px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.logo-wall img { height: 44px; width: auto; max-width: 70%; opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-wall span { font-size: .78rem; font-weight: 600; color: var(--ink-mute); letter-spacing: .02em; }
.logo-wall li:hover { background: var(--bg-soft); }
.logo-wall li:hover img { opacity: 1; }
.logo-wall li { height: 130px; }
.logo-wall img { width: 132px; height: 40px; max-width: 70%; object-fit: contain; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s; }
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); border-color: var(--brand); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 16px; }
.notfound .code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--display); letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media print { #site-header, .announce, .to-top, #site-footer, .cta, video { display: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }

/* HEADEND wordmark */
.wordmark { font: 800 1.15rem/1 var(--display); letter-spacing: .14em; color: var(--ink); }

/* Readex Pro tuning */
h1, h2 { letter-spacing: -.03em; }
.hero h1 { letter-spacing: -.035em; }
h1, h2, h3 { font-weight: 600; }
.wordmark { font-weight: 700; }

/* ============================================================
   RESPONSIVE REFINEMENTS — phones, tablets, touch, notches
   ============================================================ */
html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
img, video { height: auto; }

/* Guest-screen tabs: swipeable strip on small screens */
@media (max-width: 720px) {
  .gallery-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery-tabs::-webkit-scrollbar { display: none; }
  .gallery-tabs button { flex: none; white-space: nowrap; scroll-snap-align: start; padding: 14px 16px; }
  .gallery-panel h3 { font-size: 1.3rem !important; }
}

/* Before / after table: stacked cards on phones */
@media (max-width: 560px) {
  .compare { border: 0; background: none; display: grid; gap: 12px; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; border: 1px solid var(--line); background: #fff; }
  .compare-row > div { border: 0 !important; padding: 14px 16px; }
  .compare-row > div:first-child { padding-bottom: 6px; text-decoration: line-through; text-decoration-color: rgba(220,38,38,.5); }
  .compare-row > div:first-child::before { content: "Today"; display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 4px; text-decoration: none; }
  .compare-row > div:last-child { padding-top: 10px; border-top: 1px solid var(--line) !important; }
  .compare-row > div:last-child::before { content: "With HEADEND"; display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 4px; }
}

/* Small phones (≤ 380px) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  h1 { font-size: 2.15rem; }
  .page-hero h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .stat { padding: 22px 16px; }
  .stat b { font-size: 1.7rem; }
  .logo-wall li { height: 110px; }
  .form-card { padding: 20px; }
  .tvframe { padding: 6px; border-radius: 12px; }
  .wordmark { font-size: 1rem; letter-spacing: .1em; }
}

/* Phones */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 40px; }
  .row + .row { margin-top: 64px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta { padding: 48px 20px; border-radius: 0; }
  .page-hero { padding: 64px 0 48px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1 1 auto; text-align: center; }
  .footer-grid { gap: 32px 20px; }
  .faq summary { font-size: .98rem; padding: 18px 36px 18px 0; }
}

/* Tablets (601–1023px) */
@media (min-width: 601px) and (max-width: 1023px) {
  .section { padding: 88px 0; }
  .hero-copy h1 { font-size: clamp(2.6rem, 6.5vw, 3.6rem); }
  .row { gap: 40px; }
  .gallery-panel { gap: 28px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: auto !important; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 40px; }
}

/* Tablet landscape / small laptops: two-column rows only when there's room */
@media (min-width: 900px) and (max-width: 1023px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row.flip > :first-child { order: 2; }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 32px; }
  .main-nav { top: 68px; }
}

/* Touch devices: no hover-lift, bigger tap targets */
@media (hover: none) {
  .tile:hover, .card:hover, .btn-primary:hover { transform: none; }
  .logo-wall img { opacity: .8; }
  .main-nav ul a, .gallery-tabs button, .tabs a { min-height: 44px; }
}

/* Notched devices */
@supports (padding: env(safe-area-inset-left)) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .to-top { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { @supports (padding: env(safe-area-inset-left)) { .container { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); } } }

/* Large screens */
@media (min-width: 1600px) { :root { --max: 1320px; } body { font-size: 17px; } }
