/* Maxvify — Clean modern corporate-tech IPTV theme
   Design DNA cloned from primeiptvcanada.com:
   white bg + #046bd2 blue accent + slate text + Roboto fonts. */

:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfb;
  --bg-dark: #111111;
  --text: #111111;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #046bd2;
  --primary-hover: #0356a8;
  --primary-light: #e8f1fb;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --success: #16a34a;
  --warning: #f59e0b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 36px rgba(4, 107, 210, 0.15);
  --container: 1200px;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-hover); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.logo span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.cta-link {
  background: var(--primary);
  color: #fff;
  margin-left: 6px;
  padding: 10px 18px;
}
.nav a.cta-link:hover { background: var(--primary-hover); color: #fff; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 20px;
}
.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: 11px; opacity: .6; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 110;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 12px; font-size: 14px; }

/* lang switch */
.lang-switch { display: inline-flex; gap: 6px; margin-left: 8px; }
.lang-switch a {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.lang-switch a.active { background: var(--primary); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all .2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fbfbfb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(4,107,210,0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  color: var(--text);
}
.hero h1 .accent { color: var(--primary); }
.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-flag { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--text-muted); font-size: 17px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(4,107,210,0.2); }
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 50px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.stat-num .plus { color: var(--primary); }
.stat-label { color: #cbd5e1; font-size: 14px; margin-top: 8px; }

/* ---------- Pricing ---------- */
.pricing-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.pricing-tab {
  padding: 10px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(4,107,210,0.3); }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.price-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.price-card .price { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1; margin: 14px 0 4px; }
.price-card .price .currency { font-size: 22px; vertical-align: top; }
.price-card .period { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; display: block; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.price-card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Reviews badge ---------- */
.reviews-badge { text-align: center; margin-bottom: 14px; }
.reviews-badge .stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.reviews-badge .verified { color: var(--text-muted); font-size: 13px; margin-left: 8px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 26px; color: var(--primary); transition: transform .25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item .faq-body { padding: 18px 22px; color: var(--text-muted); font-size: 15px; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 24px; margin-bottom: 8px; text-align: center; }
.form-card .trust { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4,107,210,0.15);
}
.form-row.hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
.form-trust-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.form-message {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
}
.form-message--success { background: #dcfce7; color: #166534; }
.form-message--error { background: #fee2e2; color: #991b1b; }

/* ---------- Channels grid ---------- */
.channel-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.channel-cat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.channel-cat h3 { color: var(--primary); font-size: 18px; margin-bottom: 12px; }
.channel-cat ul { list-style: none; padding: 0; }
.channel-cat ul li { padding: 5px 0; font-size: 14.5px; color: var(--text-muted); }

/* ---------- Device compatibility ---------- */
.devices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.device-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s, transform .2s;
}
.device-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.device-tile .icon { font-size: 32px; margin-bottom: 8px; display: block; color: var(--primary); }

/* ---------- Guarantee strip ---------- */
.guarantee {
  background: linear-gradient(135deg, #046bd2 0%, #0356a8 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.guarantee h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.guarantee p { color: rgba(255,255,255,0.92); font-size: 17px; max-width: 720px; margin: 0 auto; }

/* ---------- Page title bar ---------- */
.page-title {
  background: var(--bg-alt);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-title h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-title p { color: var(--text-muted); font-size: 17px; max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.breadcrumb a { color: var(--primary); }

/* ---------- Article / legal layout ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; color: var(--text); font-weight: 700; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; font-weight: 700; }
.prose p { margin-bottom: 16px; color: var(--text); line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul li, .prose ol li { margin-bottom: 8px; line-height: 1.7; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  background: var(--bg-alt);
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 60px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: var(--primary); }
.site-footer .brand-tagline { color: #94a3b8; max-width: 320px; line-height: 1.7; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #64748b;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .features, .steps, .channel-cats { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .devices { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 14px 18px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-top: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .features, .steps, .channel-cats, .pricing { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .hero h1 { font-size: 32px; }
}
