/* ============================================
   EPIX IPTV — Light Botanica Design System
   epixsiptv.com | v1.0
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Palette — Light theme, user-supplied */
  --brand-olive: #7D8650;            /* CTA fill — WCAG AA on white (4.6:1) */
  --brand-olive-light: #AEB877;      /* Olive green — links, borders, decorative */
  --brand-olive-hover: #6A7344;      /* Darker hover for CTAs */
  --brand-sage: #A5C89E;             /* Sage green — subheadings, button hover bg, section bg */
  --brand-lime: #D8E983;             /* Lime green — highlights, badges, accents */
  --brand-pale: #FFFBB1;             /* Pale yellow — soft cards, banner strips */
  --brand-olive-subtle: rgba(174, 184, 119, 0.12);
  --brand-olive-deep: rgba(125, 134, 80, 0.08);

  /* Backgrounds */
  --bg-primary: #FFFFFF;             /* Pure white base */
  --bg-secondary: #FBFBF5;            /* Whisper-warm off-white for section rhythm */
  --bg-tertiary: #FFFBB1;            /* Pale yellow soft fill */
  --bg-elevated: #FFFFFF;
  --bg-sage-soft: rgba(165, 200, 158, 0.18);

  /* Text */
  --text-primary: #1A1A1A;           /* Near-black for body — 17.5:1 on white */
  --text-secondary: #4A4A4A;         /* Dark gray for descriptive copy */
  --text-muted: #6B7280;             /* Muted gray for captions */
  --text-accent: var(--brand-olive);
  --text-on-dark: #FFFFFF;

  /* Borders & Glass */
  --border-subtle: rgba(26, 26, 26, 0.08);
  --border-medium: rgba(174, 184, 119, 0.28);
  --border-accent: var(--brand-olive-light);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(14px);

  /* Functional */
  --success: #2F8F4A;
  --danger: #C0392B;
  --info: #2563EB;
  --warning: #D97706;

  /* Typography */
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-heading: 'Manrope', var(--font-body);

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-fast: 0.15s ease;
  --ease-base: 0.25s ease;
  --ease-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 18px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 14px 44px rgba(26, 26, 26, 0.1);
  --shadow-glow: 0 0 32px rgba(174, 184, 119, 0.35);
  --shadow-card-hover: 0 18px 50px rgba(26, 26, 26, 0.12), 0 0 24px rgba(174, 184, 119, 0.18);

  /* Layout */
  --container-max: 1280px;
  --header-height: 76px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

a {
  color: var(--brand-olive);
  text-decoration: none;
  transition: color var(--ease-fast);
}

a:hover {
  color: var(--brand-olive-hover);
}

p a,
.faq-answer a,
.section-subtitle a {
  text-decoration: underline;
  text-decoration-color: rgba(174, 184, 119, 0.5);
  text-underline-offset: 3px;
  transition: color var(--ease-fast), text-decoration-color var(--ease-fast);
}

p a:hover,
.faq-answer a:hover,
.section-subtitle a:hover {
  text-decoration-color: var(--brand-olive);
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 4vw, 2.625rem); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-olive);
  margin-bottom: var(--space-md);
  padding: 6px 16px;
  background: var(--brand-olive-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--pale {
  background: var(--brand-pale);
}

.section--sage {
  background: var(--bg-sage-soft);
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--border-subtle), 0 6px 24px rgba(26, 26, 26, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .header__logo img {
    height: 40px;
    max-width: 200px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--ease-fast);
  position: relative;
  padding: 6px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-olive);
  transition: width var(--ease-base);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--brand-olive);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 0 auto;
  transition: transform var(--ease-base), opacity var(--ease-base);
}

.header__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.open span:nth-child(2) { opacity: 0; }
.header__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  transition: all var(--ease-base);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--brand-olive);
  color: var(--text-on-dark);
  box-shadow: 0 6px 18px rgba(125, 134, 80, 0.28);
}

.btn--primary:hover {
  background: var(--brand-olive-hover);
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(125, 134, 80, 0.36);
}

.btn--secondary {
  background: var(--brand-sage);
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(165, 200, 158, 0.36);
}

.btn--secondary:hover {
  background: #8FB789;
  color: #1A1A1A;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--brand-olive);
  border: 2px solid var(--brand-olive-light);
}

.btn--outline:hover {
  background: var(--brand-olive-subtle);
  color: var(--brand-olive-hover);
  border-color: var(--brand-olive);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: var(--brand-olive-subtle);
  color: var(--brand-olive);
}

.btn--large {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-pale) 0%, #FFFFFF 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(216, 233, 131, 0.4) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(165, 200, 158, 0.4) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content { max-width: 640px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--brand-olive);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: normal;
  color: var(--brand-olive);
  background: linear-gradient(120deg, var(--brand-olive) 0%, #5e6839 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero__pill strong { color: var(--brand-olive); font-weight: 800; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.hero__stars {
  color: #F59E0B;
  font-size: var(--text-base);
  letter-spacing: 2px;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__media-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
}

.hero__media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-lime) 0%, var(--brand-sage) 60%, var(--brand-pale) 100%);
  opacity: 0.35;
  z-index: 0;
}

.hero__media-card > * { position: relative; z-index: 1; }

.hero__media-logo {
  display: block;
  max-width: 280px;
  width: 80%;
  margin: 0 auto var(--space-lg);
}

.hero__media-stat {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border-medium);
}

.hero__media-stat-item strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--brand-olive);
  line-height: 1;
}

.hero__media-stat-item span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ---------- Trending Slider ---------- */
.trending {
  padding: var(--space-3xl) 0 var(--space-4xl);
  background: var(--bg-secondary);
  overflow: hidden;
}

.trending__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.trending__strip {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trending__track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: scroll-left 50s linear infinite;
}

.trending__strip:hover .trending__track { animation-play-state: paused; }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trending__card {
  position: relative;
  width: clamp(140px, 14vw, 220px);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.trending__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.trending__card:hover img { transform: scale(1.05); }

.trending__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26, 26, 26, 0.75) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 12px;
  color: #fff;
}

.trending__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--brand-lime);
  color: #1A1A1A;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
}

.trending__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
}

/* ---------- Live Events Ticker ---------- */
.events-ticker {
  padding: var(--space-md) 0;
  background: linear-gradient(90deg, var(--brand-pale) 0%, var(--brand-lime) 50%, var(--brand-pale) 100%);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  overflow: hidden;
}

.events-ticker__strip {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.events-ticker__track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: scroll-left 60s linear infinite;
}

.events-ticker__strip:hover .events-ticker__track { animation-play-state: paused; }

.events-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  white-space: nowrap;
  flex-shrink: 0;
}

.events-ticker__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--text-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

.events-ticker__pill--live { background: #C0392B; }

.events-ticker__pill--live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.events-ticker__match {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Pricing ---------- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: var(--space-xl) auto var(--space-2xl);
  padding: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.pricing-tab {
  padding: 10px 22px;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--ease-fast);
}

.pricing-tab:hover { color: var(--brand-olive); }

.pricing-tab.active {
  background: var(--brand-olive);
  color: #fff;
  box-shadow: 0 4px 12px rgba(125, 134, 80, 0.28);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.pricing-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-olive-light);
}

.pricing-card--popular {
  border-color: var(--brand-olive);
  border-width: 2px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--brand-pale) 100%);
  box-shadow: 0 12px 36px rgba(125, 134, 80, 0.14);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: var(--brand-olive);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(125, 134, 80, 0.3);
}

.pricing-card__duration {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.pricing-card__note {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.pricing-card__price .currency {
  font-size: var(--text-lg);
  vertical-align: super;
  color: var(--brand-olive);
}

.pricing-card__price .period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-card__features li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--brand-sage);
  color: #1A1A1A;
  font-weight: 800;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--ease-base);
}

.feature-card:hover {
  border-color: var(--brand-olive-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--brand-olive-subtle);
  color: var(--brand-olive);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 28px;
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: var(--text-base);
}

/* ---------- How It Works (Steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-olive-light) 0, var(--brand-olive-light) 8px, transparent 8px, transparent 14px);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--ease-base);
}

.step:hover {
  border-color: var(--brand-olive);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--brand-lime);
  color: var(--brand-olive-hover);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  font-size: var(--text-3xl);
  font-weight: 800;
  margin: 0 auto var(--space-md);
  box-shadow: 0 6px 18px rgba(216, 233, 131, 0.55);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- Channels Grid ---------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.channel-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--ease-base);
}

.channel-card:hover {
  border-color: var(--brand-olive-light);
  transform: translateY(-3px);
  background: var(--brand-pale);
}

.channel-card__icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
}

.channel-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.channel-card__count {
  color: var(--brand-olive);
  font-weight: 700;
  font-size: var(--text-sm);
}

/* ---------- Devices Grid ---------- */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.device-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--ease-base);
}

.device-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-olive);
}

.device-card__icon { font-size: 42px; margin-bottom: var(--space-sm); }

.device-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.device-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.testimonial {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--ease-base);
}

.testimonial:hover {
  border-color: var(--brand-olive-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial__stars {
  color: #F59E0B;
  font-size: var(--text-base);
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.testimonial__text {
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-sage), var(--brand-olive-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.testimonial__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.testimonial__role {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* ---------- Comparison Table ---------- */
.comparison-wrap {
  margin-top: var(--space-2xl);
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison th,
.comparison td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison thead th {
  background: var(--brand-pale);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison th:first-child { font-weight: 700; }

.comparison .yes { color: var(--success); font-weight: 800; }
.comparison .no { color: var(--danger); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
}

.faq-item.open {
  border-color: var(--brand-olive-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--brand-olive);
  transition: transform var(--ease-base);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease-slow);
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 44px;
  padding-right: 24px;
  list-style: disc outside;
}

.faq-answer ol { list-style: decimal outside; }

.faq-answer li { margin-bottom: 6px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-sage) 0%, var(--brand-lime) 100%);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--space-3xl) 0;
}

.cta-banner h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.cta-banner p {
  color: var(--text-primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: var(--brand-olive);
  color: #fff;
}

.cta-banner .btn:hover { background: var(--brand-olive-hover); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: var(--text-secondary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand img {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 320px;
}

.footer__col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__col ul li {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--ease-fast);
}

.footer__col a:hover { color: var(--brand-olive); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer__bottom a {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-left: var(--space-md);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-olive);
  box-shadow: 0 0 0 3px rgba(125, 134, 80, 0.18);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--danger);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  color: var(--danger);
  font-size: var(--text-sm);
  margin-top: 4px;
}

.form-help {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* intl-tel-input on light theme */
.iti { width: 100%; }
.iti__selected-flag { background: transparent; }
.iti__selected-flag:hover,
.iti__selected-flag:focus { background: var(--brand-olive-subtle); }
.iti__country-list {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
}
.iti__country.iti__highlight,
.iti__country:hover {
  background-color: var(--brand-olive-subtle);
  color: var(--text-primary);
}

.iti__divider { border-bottom-color: var(--border-subtle); }
.iti__dial-code { color: var(--text-muted); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  z-index: 2000;
  max-width: 320px;
}

.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(180deg, var(--brand-pale) 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(165, 200, 158, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 { margin-bottom: var(--space-md); }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: var(--text-lg); }

/* ---------- Legal page typography ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-xl);
  list-style: disc outside;
}

.legal-content ol { list-style: decimal outside; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text-primary); }
.legal-updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-pale);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-olive);
  margin-bottom: var(--space-xl);
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.blog-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--ease-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-olive-light);
}

.blog-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-sage), var(--brand-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-olive-hover);
  font-size: 56px;
}

.blog-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.blog-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.blog-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  flex: 1;
}

.blog-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.blog-article {
  max-width: 820px;
  margin: 0 auto;
}

.blog-article h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.blog-article h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.blog-article p {
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.blog-article ul,
.blog-article ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  list-style: disc outside;
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.blog-article ol { list-style: decimal outside; }
.blog-article li { margin-bottom: 8px; }

.blog-article blockquote {
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--brand-olive);
  background: var(--brand-pale);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-article blockquote p { font-style: italic; margin-bottom: 0; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.blog-meta__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-pale);
  color: var(--brand-olive);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Checkout layout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.checkout-form-card,
.checkout-summary {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.checkout-summary {
  background: var(--brand-pale);
  border-color: var(--brand-olive-light);
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  align-self: start;
}

.checkout-summary h3 { margin-bottom: var(--space-md); }
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-medium);
}

.checkout-summary__row:last-of-type {
  border-bottom: 0;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--text-primary);
  font-weight: 800;
  font-size: var(--text-lg);
}

/* ---------- Mobile (<= 960px) ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero__media { order: -1; }
  .hero__media-card { max-width: 360px; }

  .footer__grid { grid-template-columns: 1.4fr 1fr; }

  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before { display: none; }

  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ---------- Mobile (<= 768px) ---------- */
@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .header__toggle { display: flex; }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - var(--header-height));
    background: var(--bg-primary);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
    transition: right var(--ease-base);
    overflow-y: auto;
    z-index: 999;
  }

  .header__nav.open { right: 0; }

  .header__nav a {
    font-size: var(--text-base);
    color: var(--text-primary);
    width: 100%;
  }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .section { padding: var(--space-3xl) 0; }
}

/* ---------- Mobile (<= 480px) — Edge padding mandatory ---------- */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-lg); }

  .footer__grid { grid-template-columns: 1fr; }

  .hero { padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card { padding: var(--space-lg); }

  .features-grid,
  .testimonials-grid,
  .devices-grid,
  .channels-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-lg); }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .nav-overlay { display: none; }
  body { background: #fff; color: #000; }
}
