/* =================================================
   MAPLESTREAM IPTV — Premium Stylesheet
   Light luxury theme with Canadian accents
   ================================================= */

:root {
  --ink: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-200: #E5E9EE;
  --slate-100: #F4F6F8;
  --slate-50:  #FAFBFC;
  --maple: #D52B1E;
  --maple-dark: #B8231A;
  --maple-tint: #FFF1EF;
  --royal: #1E3A8A;
  --royal-light: #3B82F6;
  --royal-tint: #EFF4FB;
  --gold: #D4A017;
  --success: #16A34A;

  --shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-float: 0 20px 60px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Radial gradient utility */
.bg-gradient-radial {
  background: radial-gradient(circle at center, rgba(213, 43, 30, 0.06) 0%, transparent 70%);
}

/* =================================================
   HEADER & NAVIGATION
   ================================================= */
.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.98);
}

.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--maple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.mobile-link:hover {
  background: var(--slate-50);
  color: var(--ink);
}

/* =================================================
   BUTTONS
   ================================================= */
.btn-primary,
.btn-outline,
.btn-inverse,
.btn-ghost-light,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 16px;
}

.btn-primary {
  background: var(--maple);
  color: white;
  box-shadow: 0 4px 14px rgba(213, 43, 30, 0.25);
}
.btn-primary:hover {
  background: var(--maple-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(213, 43, 30, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--slate-200);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}

.btn-inverse {
  background: white;
  color: var(--maple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-inverse:hover {
  background: var(--maple-tint);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-link {
  background: transparent;
  color: var(--maple);
  padding: 8px 0;
  border-radius: 0;
}
.btn-link:hover {
  color: var(--maple-dark);
  gap: 12px;
}

.btn-block {
  width: 100%;
  margin-top: 24px;
}

/* =================================================
   SECTION DEFAULTS
   ================================================= */
.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}
@media (max-width: 768px) {
  .section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maple);
  padding: 6px 14px;
  background: var(--maple-tint);
  border-radius: 9999px;
  margin-bottom: 20px;
}
.eyebrow-blue {
  color: var(--royal);
  background: var(--royal-tint);
}

.section-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
}
@media (max-width: 768px) {
  .section-heading {
    font-size: 30px;
    letter-spacing: -0.02em;
  }
}

.section-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate-600);
  margin-top: 20px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .section-sub { font-size: 16px; }
}

/* =================================================
   HERO SECTION — Image-based illustration
   ================================================= */
.hero-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.12));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap img { animation: none; }
}

/* Avatar circles */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid white;
}

/* =================================================
   TRUST BADGES
   ================================================= */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  transition: opacity 0.2s;
}
.trust-badge:hover { opacity: 1; }

/* =================================================
   WHY CHOOSE US — Feature Cards
   ================================================= */
.feature-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.65;
}

/* =================================================
   FEATURES GRID — Mini Features
   ================================================= */
.mini-feature {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mini-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--royal-tint);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.mini-feature h3 {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}
.mini-feature p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.55;
}

/* =================================================
   DEVICE COMPATIBILITY
   ================================================= */
.device-tile {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.25s;
  cursor: default;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.device-tile:hover {
  transform: scale(1.05);
  background: white;
  box-shadow: var(--shadow-card);
  border-color: var(--slate-200);
}
.device-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.device-tile:hover .device-img {
  transform: scale(1.1);
}
.device-tile span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
}

/* =================================================
   CHANNELS CATEGORIES
   ================================================= */
.channel-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s;
}
.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.channel-emoji,
.channel-img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: inline-block;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.channel-card:hover .channel-img {
  transform: scale(1.08) rotate(-2deg);
}
.channel-card h3 {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 8px;
}
.channel-card p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.6;
}

.counter-box {
  text-align: center;
  padding: 20px;
}
.counter-num {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 36px;
  color: var(--maple);
  letter-spacing: -0.03em;
  line-height: 1;
}
.counter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* =================================================
   VOD POSTERS
   ================================================= */
.vod-stat {
  text-align: left;
}
.vod-num {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.vod-label {
  font-size: 13px;
  color: var(--slate-600);
  font-weight: 600;
  margin-top: 4px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  perspective: 1000px;
}
.poster {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
  object-fit: cover;
}
.poster:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-float);
  z-index: 2;
}
.poster-offset {
  transform: translateY(12px);
}
.poster-offset:hover {
  transform: translateY(4px) scale(1.02);
}

/* =================================================
   PRICING CARDS
   ================================================= */
.pricing-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-featured {
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
  box-shadow:
    0 0 0 2px var(--maple),
    0 20px 50px rgba(213, 43, 30, 0.15);
  transform: scale(1.03);
  z-index: 2;
}
@media (max-width: 768px) {
  .pricing-featured { transform: scale(1); }
}

.featured-ribbon,
.value-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 7px 16px;
  border-radius: 9999px;
  color: white;
  white-space: nowrap;
}
.featured-ribbon {
  background: var(--maple);
  box-shadow: 0 6px 16px rgba(213, 43, 30, 0.35);
}
.value-ribbon {
  background: var(--ink);
  font-size: 10px;
}

.plan-label {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 14px;
  color: var(--maple);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pricing-card:not(.pricing-featured) .plan-label { color: var(--royal); }

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.plan-price .currency {
  font-family: 'Plus Jakarta Sans';
  font-size: 24px;
  font-weight: 600;
  color: var(--slate-600);
}
.plan-price .amount {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.plan-price .period {
  font-size: 14px;
  color: var(--slate-400);
  font-weight: 500;
  margin-left: 4px;
}
.plan-tagline {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--slate-800);
}
.plan-features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* =================================================
   FREE TRIAL FORM
   ================================================= */
.trial-step {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.trial-num {
  width: 44px;
  height: 44px;
  background: var(--maple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 19px;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(213, 43, 30, 0.3);
}
.trial-step p {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-800);
}

.trial-form-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-float);
}
@media (max-width: 768px) {
  .trial-form-wrap { padding: 24px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 12px;
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-input,
.form-select {
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input::placeholder { color: var(--slate-400); }
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--maple);
  box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.form-submit {
  height: 56px;
  border-radius: var(--radius);
  padding: 0 22px;
}

.form-microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate-400);
  text-align: center;
}

/* =================================================
   HOW IT WORKS — Step Cards
   ================================================= */
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 64px;
  color: var(--maple);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--maple) 0%, var(--maple-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal);
  box-shadow: var(--shadow-soft);
}
.step-card h3 {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.55;
  max-width: 240px;
  margin: 0 auto;
}

/* =================================================
   TESTIMONIALS
   ================================================= */
.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.t-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.testimonial blockquote {
  font-size: 15px;
  color: var(--slate-800);
  line-height: 1.65;
  margin: 0 0 20px;
  font-style: normal;
  quotes: none;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-author strong {
  display: block;
  font-family: 'Plus Jakarta Sans';
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.t-author span {
  display: block;
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 2px;
}

.agg-num {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.agg-label {
  font-size: 13px;
  color: var(--slate-600);
  font-weight: 600;
  margin-top: 6px;
}
.agg-divider {
  width: 1px;
  height: 40px;
  background: var(--slate-200);
}
@media (max-width: 640px) {
  .agg-divider { display: none; }
}

/* =================================================
   FAQ
   ================================================= */
.faq-item {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--slate-400); }
.faq-item[open] {
  border-color: var(--maple);
  box-shadow: 0 4px 12px rgba(213, 43, 30, 0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--maple);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-600);
}

/* =================================================
   SEO CONTENT BLOCK
   ================================================= */
.prose-content p {
  font-size: 16px;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.prose-content h3 {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 22px;
  color: var(--royal);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* =================================================
   FINAL CTA
   ================================================= */
.final-cta {
  position: relative;
  background: linear-gradient(135deg, #D52B1E 0%, #B8231A 100%);
  overflow: hidden;
}

/* =================================================
   FOOTER
   ================================================= */
.newsletter-input {
  flex: 1;
  height: 52px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.12);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--slate-600);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-links a:hover { color: var(--maple); }

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  transition: all 0.2s;
}
.social-icon:hover {
  background: var(--maple);
  color: white;
  transform: translateY(-2px);
}

.payment-chip {
  padding: 4px 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  color: var(--slate-600);
}

/* =================================================
   SCROLL REVEAL ANIMATIONS
   ================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Stagger children */
.grid > .reveal:nth-child(1) { transition-delay: 0s; }
.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.40s; }
.grid > .reveal:nth-child(7) { transition-delay: 0.48s; }
.grid > .reveal:nth-child(8) { transition-delay: 0.56s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .live-dot, .phone-frame, .float-badge {
    animation: none;
  }
  html { scroll-behavior: auto; }
}

/* =================================================
   RESPONSIVE TWEAKS
   ================================================= */
@media (max-width: 1024px) {
  .hero-image-wrap { max-width: 480px; margin-top: 24px; }
}
@media (max-width: 640px) {
  .section-heading { font-size: 28px; }
  .feature-card, .channel-card, .testimonial { padding: 24px; }
  .pricing-card { padding: 32px 24px; }
  .plan-price .amount { font-size: 44px; }
}

/* Selection */
::selection {
  background: var(--maple);
  color: white;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--maple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =================================================
   ADDITIONAL PAGE STYLES — Tutorial & Blog
   ================================================= */

/* Active nav link */
.nav-link-active {
  color: var(--ink);
}
.nav-link-active::after {
  transform: scaleX(1) !important;
}

/* =================================================
   TUTORIAL PAGE — Accordion-based installation cards
   ================================================= */

.iptv-install {
  width: 100%;
  max-width: 100%;
  background: #fff;
  padding: clamp(40px, 6svh, 80px) 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  contain: layout;
}
.iptv-install * { box-sizing: border-box; max-width: 100%; }

/* Background ambient gradients + subtle dot pattern */
.iptv-install::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(213, 43, 30, 0.08), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(30, 58, 138, 0.06), transparent 45%);
  pointer-events: none;
}
.iptv-install::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.12) 1.2px, transparent 1.4px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.iptv-install-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .iptv-install-wrap { padding: 0 24px; }
}

/* Hero header */
.iptv-install-head {
  text-align: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 32px;
}
.iptv-install-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--maple);
  padding: 7px 14px;
  background: var(--maple-tint);
  border-radius: 100px;
  margin-bottom: 18px;
}
.iptv-install-lbl::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--maple);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.22);
  flex-shrink: 0;
}
.iptv-install h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  word-wrap: break-word;
}
.iptv-install h1 span {
  background: linear-gradient(135deg, var(--maple) 0%, var(--maple-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.iptv-install-sub {
  color: var(--slate-600);
  line-height: 1.65;
  font-size: clamp(15px, 2vw, 17px);
  margin: 0 auto;
  max-width: 720px;
  word-wrap: break-word;
}
.iptv-install-sub strong {
  color: var(--ink);
  font-weight: 700;
}

/* 4-step quick process */
.iptv-quick-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 32px 0 48px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(213, 43, 30, 0.06), rgba(213, 43, 30, 0.02));
  border: 1px solid rgba(213, 43, 30, 0.15);
  border-radius: 20px;
  width: 100%;
}
.iptv-quick-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.iptv-quick-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maple) 0%, var(--maple-dark) 100%);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(213, 43, 30, 0.30);
}
.iptv-quick-text {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  padding-top: 4px;
  min-width: 0;
  word-wrap: break-word;
}
.iptv-quick-text strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 2px;
  font-weight: 800;
}

@media (min-width: 560px) {
  .iptv-quick-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
  }
}
@media (min-width: 768px) {
  .iptv-quick-steps {
    grid-template-columns: repeat(4, 1fr);
    padding: 28px;
    gap: 20px;
  }
}

/* Devices section */
.iptv-devices { margin: 48px 0; }
.iptv-devices-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: center;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--ink) !important;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-wrap: break-word;
}
.iptv-devices-sub {
  text-align: center;
  color: var(--slate-600);
  font-size: clamp(14px, 1.8vw, 16px);
  margin: 0 0 28px;
  word-wrap: break-word;
}

/* Device grid */
.iptv-device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}
@media (min-width: 768px) {
  .iptv-device-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .iptv-device-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Device card (accordion) */
.iptv-device-card {
  background: #fff;
  border: 1.5px solid rgba(213, 43, 30, 0.15);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 20px rgba(213, 43, 30, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}
.iptv-device-card:hover {
  border-color: rgba(213, 43, 30, 0.35);
  box-shadow: 0 14px 28px rgba(213, 43, 30, 0.10);
}
.iptv-device-card[open] {
  border-color: var(--maple);
  box-shadow: 0 14px 30px rgba(213, 43, 30, 0.15);
}

/* Card summary (clickable header) */
.iptv-device-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  outline: none;
  min-width: 0;
}
.iptv-device-summary::-webkit-details-marker { display: none; }
.iptv-device-summary::marker { display: none; }

@media (min-width: 768px) {
  .iptv-device-summary { padding: 18px 22px; gap: 14px; }
}

.iptv-device-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maple) 0%, var(--maple-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(213, 43, 30, 0.28);
}
.iptv-device-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.iptv-device-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.iptv-device-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800 !important;
  color: var(--ink) !important;
  font-size: clamp(15px, 2.2vw, 16.5px) !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 2px;
  padding: 0;
  word-wrap: break-word;
}
.iptv-device-apps {
  font-size: clamp(12px, 1.7vw, 13px);
  color: var(--slate-600);
  font-weight: 500;
  line-height: 1.4;
  word-wrap: break-word;
}

.iptv-device-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--maple-tint);
  color: var(--maple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.iptv-device-card[open] .iptv-device-arrow {
  transform: rotate(45deg);
  background: var(--maple);
  color: white;
}

/* Card body (expanded) */
.iptv-device-body {
  padding: 0 18px 20px;
  border-top: 1px solid var(--slate-100);
  margin-top: 2px;
  min-width: 0;
}
@media (min-width: 768px) {
  .iptv-device-body { padding: 0 22px 22px; }
}
.iptv-device-body-intro {
  color: var(--slate-600);
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.65;
  margin: 18px 0;
  word-wrap: break-word;
}
.iptv-device-body-intro strong {
  color: var(--ink);
  font-weight: 700;
}

/* Numbered step list */
.iptv-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  width: 100%;
}
.iptv-steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 42px;
  color: var(--slate-800);
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.55;
  border-bottom: 1px dashed var(--slate-200);
  word-wrap: break-word;
  min-width: 0;
}
.iptv-steps li:last-child { border-bottom: none; }
.iptv-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--maple) 0%, var(--maple-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(213, 43, 30, 0.25);
}
.iptv-steps li strong {
  color: var(--ink);
  font-weight: 700;
}
.iptv-steps li code {
  background: var(--slate-100);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace !important;
  font-size: 0.9em;
  color: var(--maple);
  font-weight: 600;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
}

/* Tip box (after steps) */
.iptv-steps-tip {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 10px;
  font-size: clamp(13px, 1.8vw, 14px);
  color: #78350f;
  line-height: 1.5;
  word-wrap: break-word;
}
.iptv-steps-tip strong {
  color: #78350f;
  font-weight: 800;
}
.iptv-steps-tip code {
  background: rgba(255, 255, 255, 0.6);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace !important;
  font-size: 0.92em;
  color: #92400e;
  font-weight: 700;
}

/* Bottom CTA — Help block */
.iptv-install-cta {
  margin-top: 48px;
  padding: 28px 24px;
  background: linear-gradient(165deg, var(--ink) 0%, var(--maple) 100%);
  border-radius: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 40px rgba(213, 43, 30, 0.25);
  width: 100%;
}
@media (min-width: 768px) {
  .iptv-install-cta { padding: 36px 28px; }
}
.iptv-install-cta h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0 0 10px !important;
  font-size: clamp(20px, 3vw, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: white !important;
  line-height: 1.3;
  text-align: center;
}
.iptv-install-cta p {
  margin: 0 0 20px;
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.iptv-cta-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.iptv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 2vw, 15px);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.iptv-cta-btn.wa {
  background: #25D366;
  color: white !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.30);
}
.iptv-cta-btn.wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}
.iptv-cta-btn.sub {
  background: white;
  color: var(--maple) !important;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.20);
}
.iptv-cta-btn.sub:hover {
  transform: translateY(-2px);
  filter: brightness(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .iptv-device-card, .iptv-device-arrow, .iptv-cta-btn { transition: none; }
}

/* =================================================
   BLOG PAGE
   ================================================= */

/* Category filter chips */
.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.cat-chip:hover {
  background: white;
  border-color: var(--slate-200);
  color: var(--ink);
}
.cat-chip-active {
  background: var(--ink);
  color: white;
}
.cat-chip-active:hover {
  background: var(--ink);
  color: white;
  border-color: transparent;
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.featured-post:hover { box-shadow: var(--shadow-hover); }
@media (max-width: 900px) {
  .featured-post {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.featured-image {
  position: relative;
  background: linear-gradient(135deg, #FFF1EF 0%, #EFF4FB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.featured-img {
  width: 60%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--maple);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 9999px;
}
.featured-content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .featured-content { padding: 32px; }
}

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-category {
  display: inline-block;
  background: var(--maple-tint);
  color: var(--maple);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat-sports { background: var(--royal-tint); color: var(--royal); }
.cat-comparison { background: #FEF3C7; color: #92400E; }
.cat-tutorial { background: #DCFCE7; color: #166534; }
.cat-guides { background: var(--maple-tint); color: var(--maple); }
.cat-reviews { background: #FAE8FF; color: #6B21A8; }
.cat-news { background: var(--slate-100); color: var(--ink); }
.post-dot {
  color: var(--slate-200);
}
.post-meta time {
  color: var(--slate-600);
  font-weight: 500;
}
.post-meta time + .post-dot + span,
.post-meta time + span {
  color: var(--slate-600);
  font-weight: 500;
}

/* Featured title & excerpt */
.featured-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.featured-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.featured-title a:hover { color: var(--maple); }
@media (max-width: 640px) {
  .featured-title { font-size: 24px; }
}
.featured-excerpt {
  font-size: 16px;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Post author */
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
}
.post-author strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.post-author span {
  display: block;
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 2px;
}

/* Blog card */
.blog-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.blog-card-image {
  display: block;
  background: linear-gradient(135deg, var(--maple-tint) 0%, var(--royal-tint) 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.blog-card-image img {
  width: 50%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-image img {
  transform: translate(-50%, -50%) scale(1.06);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.blog-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card-body h3 a:hover { color: var(--maple); }
.blog-card-body p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--maple);
  transition: gap 0.2s;
  align-self: flex-start;
}
.blog-card:hover .read-more { gap: 10px; }

/* Pagination */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination-btn:hover {
  border-color: var(--maple);
  color: var(--maple);
}
.pagination-current {
  background: var(--maple);
  color: white;
  border-color: var(--maple);
}
.pagination-current:hover {
  background: var(--maple);
  color: white;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--slate-400);
}
.pagination-next {
  font-size: 18px;
  padding: 0 16px;
  width: auto;
}
