/* ==========================================================================
   IPTVCAST — design system
   Ported 1:1 from the Next.js build (src/app/globals.css @theme block)
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #121414;
  --surface: #1a1d1d;
  --surface-2: #202424;
  --border: #262a2a;
  --border-strong: #353a3a;

  /* text */
  --text: #e3e2e2;
  --text-muted: #8a8f8f;
  --text-dim: #5a6060;

  /* accent */
  --accent: #00d9a3;
  --accent-2: #00b88a;
  --accent-glow: rgba(0, 217, 163, 0.35);

  --warn: #ffb547;
  --danger: #ff5454;

  /* radii */
  --r-sm: 0.375rem;
  --r: 0.75rem;
  --r-lg: 1.25rem;
  --r-xl: 2rem;
  --r-2xl: 1rem;
  --r-3xl: 1.5rem;

  /* shadows */
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px -20px rgba(0, 0, 0, 0.6);

  /* easing */
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --header-h: 4rem;
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --header-h: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent-glow); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--accent); color: var(--bg);
  padding: 0.75rem 1.25rem; border-radius: var(--r);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }
.accent { color: var(--accent); }

.h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 0.98;
}
.h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
}
.h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}
@media (min-width: 768px) { .lead { font-size: 1.125rem; } }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }

.section { position: relative; padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.section--band {
  background: rgba(26, 29, 29, 0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.stack > * + * { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Effects — glass, hairline, noise, glow, masks
   -------------------------------------------------------------------------- */

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border);
}

.hairline { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }

.glow-accent {
  box-shadow: 0 0 0 1px rgba(0, 217, 163, 0.25),
    0 12px 40px -8px rgba(0, 217, 163, 0.35);
}

.noise { position: relative; }
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.mask-sides {
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.mask-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Full-bleed background image behind a section */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.section-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.section-bg--strong img { opacity: 0.25; }
.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(18, 20, 20, 0.7), var(--bg));
}
.section--band .section-bg::after {
  background: linear-gradient(to bottom, rgba(26, 29, 29, 0.8), rgba(26, 29, 29, 0.7), rgba(26, 29, 29, 0.8));
}

.radial-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
  /* default = md */
  height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--r);
}

.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn--sm { height: 2.25rem; padding-inline: 0.75rem; font-size: 0.875rem; border-radius: var(--r-sm); }
.btn--md { height: 2.75rem; padding-inline: 1.25rem; font-size: 0.875rem; border-radius: var(--r); }
.btn--lg { height: 3.25rem; padding-inline: 1.75rem; font-size: 1rem; border-radius: var(--r-2xl); }
.btn--xl { height: 3.5rem; padding-inline: 2rem; font-size: 1rem; border-radius: var(--r-2xl); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 217, 163, 0.25), 0 12px 40px -8px rgba(0, 217, 163, 0.35);
}
.btn--primary:hover { background: var(--accent-2); color: var(--bg); }
.btn--primary:active { transform: scale(0.98); }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: rgba(26, 29, 29, 0.6); }

.btn--outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn--outline:hover { background: var(--surface); border-color: rgba(0, 217, 163, 0.4); }

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

.btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .btn-row { flex-direction: row; } }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Badge
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.badge svg { width: 0.75rem; height: 0.75rem; }
.badge--accent {
  background: rgba(0, 217, 163, 0.1);
  border-color: rgba(0, 217, 163, 0.3);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

@keyframes ips-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  animation: ips-marquee 40s linear infinite;
}
.marquee__track--slow { animation-duration: 70s; }
.marquee__track--wide { gap: 1.5rem; }

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }

/* WCAG 2.2.2 — explicit pause control */
.marquee-pause {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  transition: color 0.2s, border-color 0.2s;
}
.marquee-pause:hover { color: var(--text); border-color: var(--border-strong); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (IntersectionObserver adds .is-visible)
   -------------------------------------------------------------------------- */

/* Hidden only when JS is confirmed running (html.js is set in wp_head).
   Without this guard a JS failure would leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* SplitText */
.split-word { display: inline-block; }
.js .split-word {
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.js .split-word.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(18, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(38, 42, 42, 0.7);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.brand__mark svg { width: 1.05rem; height: 1.05rem; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover, .nav .current-menu-item > a { color: var(--text); }

.header-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .header-actions { display: flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(26, 29, 29, 0.6);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav__inner { padding-block: 1rem; display: flex; flex-direction: column; }
.mobile-nav a {
  padding-block: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(38, 42, 42, 0.6);
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav__cta { display: flex; gap: 0.75rem; padding-top: 1rem; }
.mobile-nav__cta .btn { flex: 1; }

.site-main { position: relative; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
}

.hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 217, 163, 0.1) 0%, transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, #e3e2e2 1px, transparent 1px),
    linear-gradient(to bottom, #e3e2e2 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__text { max-width: 48rem; margin-inline: auto; text-align: center; }
.hero__badge-row { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.hero__title { font-size: clamp(2.75rem, 7vw, 4.5rem); }
/* Direct children only — a descendant selector here would also turn every
   .split-word into a block and put one word per line. */
.hero__title > span { display: block; }
.hero__title .line-2 { color: var(--text-muted); }
.hero__sub { margin-top: 1.5rem; max-width: 36rem; margin-inline: auto; }
.hero__cta { margin-top: 2rem; }

.hero__media {
  margin-top: 3.5rem;
  position: relative;
  will-change: transform;
}
.hero__frame {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 80px 160px -40px rgba(0, 217, 163, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero__frame > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 20, 20, 0.4), transparent 50%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 20, 20, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}
.pill--tl { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2; }
.pill--tr { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2; display: none; }
@media (min-width: 768px) { .pill--tr { display: inline-flex; } }

.dot {
  width: 0.375rem; height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes ips-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.dot--pulse { animation: ips-pulse 2s ease-in-out infinite; }

.hero__caption {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  z-index: 2;
  border-radius: var(--r-2xl);
  background: rgba(18, 20, 20, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 0.625rem 1rem;
  display: inline-block;
  max-width: fit-content;
}
.hero__caption-kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.hero__caption-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.125rem;
}

.live-rail { margin-top: 1.5rem; }
.live-chip {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.live-chip__cat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.live-chip__name { font-family: var(--font-display); font-weight: 500; font-size: 0.875rem; }
.live-chip__viewers { font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent); }

.trust-strip {
  margin-top: 3rem;
  border-radius: var(--r-3xl);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 1.5rem; }
}
.stat { text-align: center; }
@media (min-width: 768px) { .stat { text-align: left; } }
.stat__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .stat__value { font-size: 1.875rem; } }
.stat__label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
@media (min-width: 768px) { .stat__label { font-size: 0.875rem; } }

/* --------------------------------------------------------------------------
   VALUE PROPS
   -------------------------------------------------------------------------- */

.vp-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-3xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.vp-row { background: var(--bg); padding: 1.5rem; }
@media (min-width: 768px) { .vp-row { padding: 2rem; } }
@media (min-width: 1024px) {
  .vp-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 2rem;
    align-items: start;
  }
}
.vp-row__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .vp-row__eyebrow { margin-bottom: 0; } }
.vp-row__title { font-size: 1.25rem; }
@media (min-width: 768px) { .vp-row__title { font-size: 1.5rem; } }
.vp-row__body { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.9375rem; max-width: 36rem; }
@media (min-width: 768px) { .vp-row__body { font-size: 1rem; } }
.vp-row__metric { margin-top: 1.5rem; text-align: right; }
@media (min-width: 1024px) { .vp-row__metric { margin-top: 0; } }
.vp-row__metric-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .vp-row__metric-value { font-size: 2.25rem; } }
.vp-row__metric-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   FEATURES
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(0, 217, 163, 0.3); }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r);
  background: rgba(0, 217, 163, 0.15);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 163, 0.3);
  color: var(--accent);
}
.icon-chip svg { width: 1.25rem; height: 1.25rem; }

.feature-card__title { margin-top: 1.25rem; font-size: 1.125rem; }
.feature-list { margin-top: 1rem; display: grid; gap: 0.5rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.feature-list svg {
  width: 0.875rem; height: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   CHANNELS
   -------------------------------------------------------------------------- */

.channels__head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .channels__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.2s;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.tab__count {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.tab[aria-selected="true"] .tab__count { color: rgba(18, 20, 20, 0.7); }

.channels__body {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .channels__body { grid-template-columns: 2fr 3fr; } }

.channel-panel { display: none; }
.channel-panel.is-active { display: block; }

.channel-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}
.channel-figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.channel-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(18, 20, 20, 0.4) 50%, transparent);
}
.channel-figure__meta { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2; }
.channel-figure__tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(18, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.channel-figure__count { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

.channel-hint {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.channel-hint svg { width: 0.875rem; height: 0.875rem; }

.chip-rail { overflow: hidden; }
.chip-rail__track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  transform: translate3d(8%, 0, 0);
}
.chip {
  flex-shrink: 0;
  border-radius: var(--r-2xl);
  padding: 1rem 1.25rem;
  min-width: 12rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chip__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
}
.chip__name { font-family: var(--font-display); font-weight: 500; font-size: 1rem; white-space: nowrap; }

/* --------------------------------------------------------------------------
   PRICING
   -------------------------------------------------------------------------- */

.period-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  position: relative;
  flex-wrap: wrap;
}
.period-toggle__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  opacity: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.35s var(--ease-quint), width 0.35s var(--ease-quint),
    height 0.35s var(--ease-quint);
  pointer-events: none;
  z-index: 0;
}
.period {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.period:hover { color: var(--text); }
.period[aria-selected="true"] { color: var(--bg); }
.period__save {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--accent);
}
.period[aria-selected="true"] .period__save { color: rgba(18, 20, 20, 0.7); }

.price-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .price-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.price-card {
  position: relative;
  border-radius: var(--r-3xl);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.price-card--popular {
  border-color: rgba(0, 217, 163, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 217, 163, 0.25),
    0 30px 80px -20px rgba(0, 217, 163, 0.35);
}
.price-card__badge { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2; }
.price-card__inner { padding: 2rem; }
@media (min-width: 768px) { .price-card__inner { padding: 2.25rem; } }

.price-card__streams {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-card__name {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-card__desc { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.875rem; }

.price-card__price { margin-top: 1.75rem; display: flex; align-items: baseline; gap: 0.5rem; }
.price-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card__per { color: var(--text-muted); font-size: 0.875rem; }
.price-card__equiv {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.price-card__cta { margin-top: 1.75rem; }

.price-features { margin-top: 2rem; display: grid; gap: 0.75rem; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.check-dot {
  margin-top: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem; height: 1.25rem;
  border-radius: 999px;
  background: rgba(0, 217, 163, 0.15);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 163, 0.3);
  flex-shrink: 0;
}
.check-dot svg { width: 0.75rem; height: 0.75rem; color: var(--accent); }

.price-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Pricing — two independent choices: devices, then term
   -------------------------------------------------------------------------- */

.step + .step { margin-top: 3rem; }

.step__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0, 217, 163, 0.15);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 163, 0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.step__hint {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.step__hint strong { color: var(--text); font-weight: 600; }

/* Segmented control */
.seg {
  position: relative;
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  gap: 0.2rem;
}
.seg__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  opacity: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.35s var(--ease-quint), width 0.35s var(--ease-quint),
    height 0.35s var(--ease-quint);
  pointer-events: none;
  z-index: 0;
}
.seg__btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.seg__btn:hover { color: var(--text); }
.seg__btn[aria-selected="true"] { color: var(--bg); }

.seg__btn-main { font-size: 0.9375rem; font-weight: 500; }
.seg__btn-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.seg__btn[aria-selected="true"] .seg__btn-sub { color: rgba(18, 20, 20, 0.65); }

/* Term cards */
.term-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .term-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .term-grid { grid-template-columns: repeat(4, 1fr); } }

.term-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.3s var(--ease-expo);
}
.term-card:hover { border-color: rgba(0, 217, 163, 0.3); transform: translateY(-3px); }

.term-card--best {
  border-color: rgba(0, 217, 163, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 217, 163, 0.25),
    0 30px 80px -20px rgba(0, 217, 163, 0.35);
}

.term-card__flag {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.term-card__label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.term-card__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.term-card__total {
  margin-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.term-card__equiv {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
}

.term-card__save {
  margin-top: 0.5rem;
  align-self: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 217, 163, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 163, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}
/* Keep the row when there is no saving to show, so every card's CTA lands on
   the same baseline. */
.term-card__save[hidden] { display: inline-block; visibility: hidden; }

.term-card .btn { margin-top: 1.25rem; }

/* Included list */
.included {
  margin-top: 3rem;
  border-radius: var(--r-3xl);
  border: 1px solid var(--border);
  background: rgba(26, 29, 29, 0.4);
  padding: 2rem;
}
.included__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.included__list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .included__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .included__list { grid-template-columns: repeat(3, 1fr); } }
.included__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.included__list[hidden] { display: none; }

/* --------------------------------------------------------------------------
   DEVICES
   -------------------------------------------------------------------------- */

.devices__head {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .devices__head { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.devices__figure {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}
.devices__figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.device-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .device-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .device-grid { grid-template-columns: repeat(4, 1fr); } }

.device-card {
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: rgba(26, 29, 29, 0.4);
  overflow: hidden;
  transition: transform 0.3s var(--ease-expo), border-color 0.2s, background-color 0.2s;
}
.device-card:hover {
  transform: translateY(-4px);
  background: var(--surface);
  border-color: rgba(0, 217, 163, 0.3);
}
.device-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.device-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-expo);
}
.device-card:hover .device-card__media img { transform: scale(1.05); }
.device-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 20, 20, 0.6), transparent);
}
.device-card__body { padding: 1.25rem; }
.device-card__name { font-family: var(--font-display); font-weight: 500; }
.device-card__sub {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */

.rating-row { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 0.125rem; }
.stars svg { width: 1rem; height: 1rem; color: var(--accent); fill: currentColor; }
.rating-row__text { font-size: 0.875rem; color: var(--text-muted); }
.rating-row__text strong { color: var(--text); font-weight: 500; }

.testimonial-rows { display: grid; gap: 1.5rem; }

.tcard {
  flex-shrink: 0;
  width: 22rem;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .tcard { width: 26rem; } }
.tcard__stars { display: flex; gap: 0.125rem; margin-bottom: 1rem; }
.tcard__stars svg { width: 0.875rem; height: 0.875rem; color: var(--accent); fill: currentColor; }
.tcard__quote { font-size: 1rem; line-height: 1.65; }
.tcard__foot {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tcard__avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(0, 217, 163, 0.25), rgba(0, 184, 138, 0.1));
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}
.tcard__name { font-size: 0.875rem; font-weight: 500; }
.tcard__loc { font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 2fr; gap: 5rem; } }
.faq__aside { align-self: start; }
@media (min-width: 1024px) { .faq__aside { position: sticky; top: 8rem; } }

.faq__list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  text-align: left;
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item__label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s;
}
@media (min-width: 768px) { .faq-item__label { font-size: 1.25rem; } }
.faq-item__q:hover .faq-item__label { color: var(--accent); }
.faq-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-expo);
}
.faq-item__icon svg { width: 1rem; height: 1rem; }
.faq-item__q[aria-expanded="true"] .faq-item__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: rotate(45deg);
}
.faq-item__a {
  overflow: hidden;
  height: 0;
  transition: height 0.4s var(--ease-expo);
}
.faq-item__a-inner { padding-bottom: 1.5rem; padding-right: 3rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   FINAL CTA
   -------------------------------------------------------------------------- */

.final-cta { text-align: center; }
.final-cta__inner { max-width: 56rem; margin-inline: auto; }
.final-cta__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 217, 163, 0.18) 0%, transparent 60%);
}
.reasons {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  max-width: 48rem;
  margin-inline: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reasons li { display: flex; align-items: center; gap: 0.5rem; text-align: left; }
.reasons li::before {
  content: "";
  width: 0.375rem; height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   PAGE HEADER (inner pages)
   -------------------------------------------------------------------------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 3rem;
}
.page-header__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 217, 163, 0.08) 0%, transparent 60%);
}
.page-header__inner { max-width: 48rem; }
.page-header--center .page-header__inner { margin-inline: auto; text-align: center; }
.page-header__title { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-header__sub { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Cards / prose / generic content
   -------------------------------------------------------------------------- */

.card {
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: rgba(26, 29, 29, 0.4);
  padding: 1.75rem;
}
.card--solid { background: var(--bg); box-shadow: var(--shadow-card); }

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.prose { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
}
.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--text);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.15em 0.4em;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { border-radius: var(--r-2xl); border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.625rem 0.875rem; text-align: left; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.post-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: rgba(26, 29, 29, 0.4);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s var(--ease-expo);
}
.post-card:hover { border-color: rgba(0, 217, 163, 0.3); transform: translateY(-4px); }
.post-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.post-card__meta .cat { color: var(--accent); }
.post-card__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.post-card__excerpt { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.post-card__more {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.single-hero { max-width: 48rem; margin-inline: auto; }
.single-body { max-width: 44rem; margin-inline: auto; }

.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.pagination .page-numbers:hover { color: var(--text); border-color: var(--border-strong); }
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: block; }
.field + .field { margin-top: 0.75rem; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.375rem;
}
.input, .textarea, .select,
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="url"], input[type="number"],
input[type="search"], textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(0, 217, 163, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.15);
}
textarea { resize: vertical; min-height: 8rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 8rem;
}
.site-footer__inner { padding-block: 5rem; }
.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand__tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 24rem;
  margin-top: 1.25rem;
}
.social-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(26, 29, 29, 0.6);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.social-icon:hover { color: var(--text); border-color: rgba(0, 217, 163, 0.4); }
.social-icon svg { width: 1rem; height: 1rem; }

.footer-col__title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-dim); }
.footer-bottom .status { font-family: var(--font-mono); }
.footer-bottom .status .ok { color: var(--accent); }

/* --------------------------------------------------------------------------
   WooCommerce overrides
   -------------------------------------------------------------------------- */

.woocommerce-page .site-main,
.woocommerce .site-main { padding-top: calc(var(--header-h) + 3rem); }

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-radius: var(--r) !important;
  font-weight: 500 !important;
  padding: 0.75rem 1.25rem !important;
  border: 0 !important;
  transition: background-color 0.2s !important;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover { background: var(--accent-2) !important; }

.woocommerce div.product .price,
.woocommerce ul.products li.product .price { color: var(--accent) !important; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--surface) !important;
  border-top-color: var(--accent) !important;
  color: var(--text) !important;
  border-radius: var(--r) !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; }

.woocommerce table.shop_table,
.woocommerce-cart table.cart,
.woocommerce .cart-collaterals .cart_totals table {
  border-color: var(--border) !important;
  border-radius: var(--r) !important;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-color: var(--border) !important; }

.woocommerce ul.products li.product a img { border-radius: var(--r-2xl); }

.select2-container--default .select2-selection--single,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--r-sm) !important;
}

/* ==========================================================================
   MOBILE — one alignment for everything, tighter type scale
   Below 768px every block of copy is centred so the page reads as one
   column instead of mixing left / right / centre.
   ========================================================================== */

@media (max-width: 767px) {

  /* --- type scale ------------------------------------------------------- */
  body { font-size: 15px; }

  .h1,
  .hero__title,
  .page-header__title { font-size: clamp(1.75rem, 8vw, 2.75rem); line-height: 1.06; }

  /* text-wrap:balance splits short headlines into ragged one-word lines at
     phone widths. Greedy wrapping reads far better here. */
  .h1.balance,
  .hero__title.balance,
  .page-header__title.balance,
  .h2.balance { text-wrap: pretty; }

  .h2 { font-size: clamp(1.6rem, 7.5vw, 2.25rem); line-height: 1.12; }
  .h3 { font-size: 1.125rem; }

  .lead { font-size: 0.9375rem; line-height: 1.65; }
  .eyebrow { font-size: 0.6875rem; margin-bottom: 0.75rem; }

  .section { padding-block: 3.25rem; }
  .container { padding-inline: 1.25rem; }

  /* --- global centring -------------------------------------------------- */
  .section-head,
  .page-header__inner,
  .hero__text,
  .final-cta__inner,
  .faq__aside,
  .devices__head > div,
  .channels__head > div,
  .single-hero {
    text-align: center;
    margin-inline: auto;
  }

  .section-head p,
  .page-header__inner p,
  .devices__head p,
  .faq__aside p { margin-inline: auto; }

  .lead { max-width: 34ch; margin-inline: auto; }

  .btn-row { justify-content: center; }
  .btn-row .btn { width: 100%; max-width: 20rem; }

  /* Long labels ("Buy 1000 credits") must wrap rather than blow out the grid. */
  .btn--block {
    white-space: normal;
    height: auto;
    min-height: 2.75rem;
    padding-block: 0.7rem;
    line-height: 1.3;
  }

  .rating-row { justify-content: center; }

  /* --- value props ------------------------------------------------------ */
  .vp-row { text-align: center; padding: 1.5rem 1.25rem; }
  .vp-row__eyebrow { margin-bottom: 0.75rem; }
  .vp-row__body { margin-inline: auto; }
  .vp-row__metric { text-align: center; margin-top: 1.25rem; }

  /* --- feature / device / generic cards --------------------------------- */
  .feature-card,
  .card,
  .device-card__body,
  .price-card__inner { text-align: center; }

  .feature-card .icon-chip,
  .card > .icon-chip,
  .card > .accent > svg,
  .tcard__stars { margin-inline: auto; }

  .feature-card .icon-chip,
  .card > .icon-chip { display: flex; }

  /* Reseller tier badges carry an inline align-self from the template. */
  .card > .badge { align-self: center !important; }

  .tcard__stars { justify-content: center; }

  /* Lists stay left-aligned inside a centred block — centring the rows
     themselves would make them unscannable. */
  .feature-list,
  .price-features,
  .card ul:not(.reasons) {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
  }

  /* --- channels --------------------------------------------------------- */
  .channels__head { gap: 1.5rem; margin-bottom: 2rem; }
  .tabs { justify-content: center; }
  .channel-hint { justify-content: center; }
  .channels__body > div > .lead { margin-inline: auto; }

  /* --- pricing ---------------------------------------------------------- */
  .period-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--r-lg);
  }
  .period {
    text-align: center;
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }
  .period__save { margin-left: 0; font-size: 0.5625rem; }

  /* Segmented device control — 3 equal columns, full width */
  .seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    border-radius: var(--r-lg);
  }
  .seg__btn { padding: 0.55rem 0.4rem; }
  .seg__btn-main { font-size: 0.8125rem; }
  .seg__btn-sub { font-size: 0.5625rem; }

  .step__label { justify-content: center; text-align: left; font-size: 0.9375rem; }
  .step__hint { text-align: center; }
  .step + .step { margin-top: 2.25rem; }

  .term-card { padding: 1.5rem 1.25rem; }
  .term-card__price { font-size: 2.25rem; }

  .included { padding: 1.5rem 1.25rem; text-align: center; }
  .included__list {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
  }

  .price-card__price { justify-content: center; }
  .price-card__amount { font-size: 2.5rem; }
  .price-card__inner { padding: 1.75rem 1.25rem; }
  .price-card__badge {
    position: static;
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
  }
  .price-card__badge + .price-card__inner { padding-top: 1rem; }
  .price-card__desc { margin-inline: auto; max-width: 30ch; }

  /* --- chip rail -------------------------------------------------------- */
  .chip { min-width: 9rem; padding: 0.75rem 1rem; gap: 0.5rem; }
  .chip__name { font-size: 0.875rem; }
  .live-chip { padding: 0.4rem 0.75rem 0.4rem 0.6rem; gap: 0.45rem; }
  .live-chip__name { font-size: 0.8125rem; }

  /* --- testimonials ----------------------------------------------------- */
  .tcard { width: 17rem; padding: 1.25rem; text-align: center; }
  .tcard__quote { font-size: 0.9375rem; }
  .tcard__foot { justify-content: center; }
  .marquee-pause { display: flex; margin-inline: auto; }

  /* --- FAQ -------------------------------------------------------------- */
  .faq { gap: 2rem; }
  .faq-item__q { text-align: left; padding-block: 1.125rem; gap: 0.75rem; }
  .faq-item__label { font-size: 1rem; }
  .faq-item__a-inner { padding-right: 0; text-align: left; }

  /* --- final CTA -------------------------------------------------------- */
  .reasons {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  /* --- hero ------------------------------------------------------------- */
  .hero { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2.5rem; }
  .hero__media { margin-top: 2rem; }
  .hero__frame { border-radius: var(--r-lg); }
  .hero__caption { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.5rem 0.75rem; }
  .hero__caption-title { font-size: 0.8125rem; }
  .hero__caption-kicker { font-size: 0.5625rem; }
  .pill--tl { top: 0.75rem; left: 0.75rem; font-size: 0.625rem; padding: 0.25rem 0.5rem; }
  .trust-strip { margin-top: 2rem; padding: 1.25rem; gap: 1.25rem; }
  .stat { text-align: center; }
  .stat__value { font-size: 1.375rem; }
  .stat__label { font-size: 0.6875rem; }

  /* --- blog ------------------------------------------------------------- */
  .post-card__body { text-align: center; }
  .post-card__meta { justify-content: center; }
  .post-card__more { justify-content: center; }
  .prose { text-align: left; }

  /* --- forms ------------------------------------------------------------ */
  .field__label { text-align: left; }
  form { text-align: left; }

  /* --- page header ------------------------------------------------------ */
  .page-header { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2rem; }

  /* --- footer ----------------------------------------------------------- */
  .site-footer { margin-top: 4rem; }
  .site-footer__inner { padding-block: 3rem; }
  .footer-grid { gap: 2.25rem; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand__tagline { margin-inline: auto; }
  .social-row { justify-content: center; }
  .footer-bottom { text-align: center; align-items: center; }

  /* --- installation / reseller detail rows ------------------------------ */
  details summary { flex-wrap: wrap; justify-content: center; text-align: center; }
  details summary > span:nth-child(2) { flex: 1 1 100%; }
  details ol { text-align: left; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .container { padding-inline: 1rem; }
  .price-card__amount { font-size: 2.125rem; }
  .tcard { width: 15.5rem; }
  .period { font-size: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none; }
