/* ==========================================================================
   ONE IPTV — Premium streaming design system
   one-iptv.website
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #07070a;
  --bg-2:          #0b0b10;
  --surface:       #101017;
  --surface-2:     #16161f;
  --charcoal:      #1c1c26;

  /* Accent */
  --red:           #e50914;
  --red-bright:    #ff2b3b;
  --red-deep:      #8f0009;
  --red-soft:      rgba(229, 9, 20, 0.14);
  --red-line:      rgba(229, 9, 20, 0.32);

  /* Text */
  --text:          #ffffff;
  --text-muted:    #b7b7c4;
  --text-dim:      #83838f;

  /* Glass */
  --glass:         rgba(255, 255, 255, 0.045);
  --glass-strong:  rgba(255, 255, 255, 0.075);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.32s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* Layout */
  --wrap: 1200px;
  --wrap-wide: 1440px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 76px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.6);
  --shadow-red: 0 14px 44px rgba(229, 9, 20, 0.28);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) so the sticky header keeps working */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Decorative glow blobs must never widen the page */
.section, .hero, .page-hero, .article-hero, .site-footer { overflow: clip; }

body.no-scroll { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.7vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; color: var(--text-muted); }

ul, ol { color: var(--text-muted); }

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

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Wider container for sections that need the horizontal room (pricing 4-up) */
.wrap--wide { max-width: var(--wrap-wide); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-head p { font-size: 1.03rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: var(--r-pill);
  padding: 0.42rem 0.95rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
}

.text-red { color: var(--red-bright); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Ambient glow blobs */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.glow--red { background: radial-gradient(circle, rgba(229,9,20,0.5), transparent 70%); }
.glow--dim { background: radial-gradient(circle, rgba(229,9,20,0.22), transparent 70%); }

.section > .wrap { position: relative; z-index: 1; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t),
              border-color var(--t), color var(--t);
  white-space: nowrap;
  text-align: center;
  background: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 26px rgba(229, 9, 20, 0.32);
}
.btn--primary:hover { box-shadow: 0 14px 38px rgba(229, 9, 20, 0.48); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--glass-strong); border-color: var(--red-line); }

.btn--outline {
  border-color: var(--red-line);
  color: var(--red-bright);
  background: var(--red-soft);
}
.btn--outline:hover { background: rgba(229, 9, 20, 0.2); border-color: var(--red-bright); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck {
  background: rgba(7, 7, 10, 0.93);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  flex: none;
}
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--red-bright), var(--red-deep));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09), 0 6px 18px rgba(229,9,20,0.4);
  flex: none;
}
.logo__mark svg { width: 19px; height: 19px; }
.logo__text { white-space: nowrap; }
.logo__text b { color: var(--red-bright); font-weight: 900; }

/* Nav */
.nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: #fff; background: var(--glass); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.78rem; right: 0.78rem; bottom: 0.16rem;
  height: 2px;
  border-radius: 2px;
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--glass);
  transition: border-color var(--t), background var(--t);
}
.header-phone:hover { border-color: var(--red-line); background: var(--red-soft); }
.header-phone svg { width: 15px; height: 15px; color: var(--red-bright); }

/* Hamburger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex: none;
}
.burger span {
  display: block;
  width: 19px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform var(--t), background var(--t-fast);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t), top var(--t), opacity var(--t-fast);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 890;
  background: rgba(7, 7, 10, 0.985);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.mobile-nav a.mnav-link:hover, .mobile-nav a.mnav-link.is-active { color: #fff; }
.mobile-nav a.mnav-link span { color: var(--red-bright); opacity: 0.7; }
.mobile-nav .mnav-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(229, 9, 20, 0.28), transparent 62%),
    radial-gradient(700px 480px at 8% 78%, rgba(229, 9, 20, 0.13), transparent 65%),
    linear-gradient(180deg, #0a0a0f 0%, var(--bg) 65%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 78%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, #fff 8%, #ff8a92 38%, var(--red-bright) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 56ch;
  color: var(--text-muted);
  margin-bottom: 1.9rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.9rem; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 550;
  letter-spacing: 0.02em;
}
.trust-line li { list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-line { padding: 0; margin: 0; }
.trust-line li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
}

/* Hero visual — cinematic TV */
.hero-visual { position: relative; }
.hero-visual__glow {
  position: absolute;
  inset: 12% -8% -6% -8%;
  background: radial-gradient(closest-side, rgba(229,9,20,0.42), transparent 78%);
  filter: blur(52px);
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.tv {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  padding: 11px;
  background: linear-gradient(150deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 45%, rgba(229,9,20,0.16));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 70px rgba(229, 9, 20, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform var(--t-slow);
}
.tv:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.tv__screen {
  border-radius: 15px;
  overflow: hidden;
  background: #0a0a0e;
  position: relative;
  aspect-ratio: 16 / 10;
}
.tv__screen img { width: 100%; height: 100%; object-fit: cover; }
.tv__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.tv__stand {
  width: 32%;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
}

.hero-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: rgba(16, 16, 23, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  animation: floaty 5s ease-in-out infinite;
}
.hero-badge strong { display: block; font-size: 0.9rem; line-height: 1.2; }
.hero-badge small { color: var(--text-dim); font-size: 0.73rem; }
.hero-badge__icon {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: var(--red-bright);
}
.hero-badge__icon svg { width: 16px; height: 16px; }
.hero-badge--a { left: -6%; bottom: 16%; animation-delay: -1.5s; }
.hero-badge--b { right: -4%; top: 9%; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- 7. Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.7rem;
  background: linear-gradient(160deg, var(--glass-strong), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
  overflow: hidden;
  height: 100%;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--red-line);
  box-shadow: var(--shadow), 0 0 40px rgba(229, 9, 20, 0.1);
}
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.945rem; }

.card__icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  background: linear-gradient(145deg, rgba(229,9,20,0.22), rgba(229,9,20,0.04));
  border: 1px solid var(--red-line);
  color: var(--red-bright);
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover .card__icon {
  box-shadow: 0 0 26px rgba(229, 9, 20, 0.35);
  transform: scale(1.05);
}
.card__icon svg { width: 24px; height: 24px; }

/* ---------- 8. Content carousel ---------- */
.carousel-shell { position: relative; }
.carousel {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0 1.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 99px; }
.carousel::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

.tile {
  position: relative;
  flex: 0 0 clamp(215px, 27vw, 285px);
  scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: block;
}
.tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--red-line);
  box-shadow: var(--shadow), 0 0 42px rgba(229, 9, 20, 0.2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(7,7,10,0.05) 30%, rgba(7,7,10,0.88) 82%);
}
.tile__tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  margin-bottom: auto;
}
.tile__overlay h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.tile__overlay p { font-size: 0.83rem; margin: 0; color: var(--text-dim); }

.carousel-nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin-bottom: 1rem; }
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.carousel-btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.07); }
.carousel-btn svg { width: 17px; height: 17px; }

/* ---------- 9. Devices ---------- */
.device-card {
  text-align: center;
  padding: 1.8rem 1.1rem;
}
.device-card__art {
  width: 76px; height: 76px;
  margin: 0 auto 1.1rem;
  border-radius: 20px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(229,9,20,0.28), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  color: #fff;
  transition: box-shadow var(--t), border-color var(--t);
}
.card:hover .device-card__art { box-shadow: 0 0 30px rgba(229,9,20,0.32); border-color: var(--red-line); }
.device-card__art svg { width: 36px; height: 36px; }
.device-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.device-card p { font-size: 0.875rem; }

/* ---------- 10. Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 2.1rem 1.8rem;
  border-radius: var(--r-xl);
}
.plan--featured {
  border-color: var(--red-line);
  background:
    linear-gradient(165deg, rgba(229,9,20,0.14), rgba(255,255,255,0.02) 52%),
    var(--surface);
  box-shadow: var(--shadow-red);
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--red-bright), transparent 45%, rgba(229,9,20,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan__badge {
  position: absolute;
  top: 1.3rem; right: 1.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 4px 16px rgba(229,9,20,0.45);
}
.plan__name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.7rem;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.plan__price .amount {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}
.plan__price .per { font-size: 0.87rem; color: var(--text-dim); }
.plan__tagline { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.plan__list {
  flex: 1 1 auto;
  list-style: none;
  padding: 0;
  margin: 0 0 1.7rem;
  display: grid;
  gap: 0.72rem;
  font-size: 0.92rem;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
}
.plan__list li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--red-bright); }
.plan .btn { margin-top: auto; }

.pricing-note {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 2rem;
  max-width: 62ch;
  margin-inline: auto;
}

/* Billing toggle / plan selector */
.plan-switch {
  display: inline-flex;
  gap: 0.28rem;
  padding: 0.3rem;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--border);
  margin: 0 auto 2.5rem;
  justify-self: center;
}
.plan-switch__btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-pill);
  font-size: 0.87rem;
  font-weight: 620;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.plan-switch__btn[aria-selected="true"] {
  background: linear-gradient(130deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 5px 18px rgba(229,9,20,0.35);
}
.switch-wrap { display: grid; justify-items: center; }

/* ---------- 11. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq-item {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.faq-item.is-open { border-color: var(--red-line); background: rgba(229,9,20,0.05); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 640;
  color: #fff;
  line-height: 1.4;
}
.faq-q__icon {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  position: relative;
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.faq-q__icon::before, .faq-q__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.faq-q__icon::before { width: 11px; height: 2px; }
.faq-q__icon::after  { width: 2px; height: 11px; }
.faq-item.is-open .faq-q__icon {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(180deg);
}
.faq-item.is-open .faq-q__icon::after { opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-a__inner { padding: 0 1.35rem 1.3rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a p { font-size: 0.95rem; }

/* ---------- 12. Contact / CTA ---------- */
.cta-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  overflow: hidden;
  border: 1px solid var(--red-line);
  background:
    radial-gradient(700px 320px at 82% 15%, rgba(229,9,20,0.3), transparent 65%),
    linear-gradient(150deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow);
}
.cta-panel h2 { margin-bottom: 0.7rem; }

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem 0.85rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--red-line);
  background: rgba(229, 9, 20, 0.11);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t);
}
.phone-cta:hover {
  transform: translateY(-2px);
  background: rgba(229, 9, 20, 0.2);
  box-shadow: 0 12px 32px rgba(229,9,20,0.28);
}
.phone-cta__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  flex: none;
  box-shadow: 0 0 20px rgba(229,9,20,0.5);
}
.phone-cta__icon svg { width: 19px; height: 19px; }
.phone-cta small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.phone-cta strong { font-size: 1.08rem; letter-spacing: 0.01em; }

/* Contact form */
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.42rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6a6a76; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.16);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7b7c4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 17px;
  padding-right: 2.5rem;
}
.field select option { background: #14141b; color: #fff; }
.field-error {
  font-size: 0.78rem;
  color: #ff6b76;
  min-height: 0;
}
.field.has-error input, .field.has-error select { border-color: #ff4d5a; }

/* ---------- 13. Checkout modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.82);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 240px at 88% -8%, rgba(229,9,20,0.26), transparent 62%),
    linear-gradient(165deg, #14141c, #0b0b11);
  box-shadow: 0 30px 90px rgba(0,0,0,0.75), 0 0 60px rgba(229,9,20,0.1);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  transform: translateY(22px) scale(0.97);
  transition: transform var(--t);
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__panel::-webkit-scrollbar { width: 6px; }
.modal__panel::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.modal__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.modal__close svg { width: 17px; height: 17px; }

.modal h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 0.35rem; }
.modal__lead { font-size: 0.92rem; margin-bottom: 1.5rem; }

.plan-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.plan-opt {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
  padding: 0.9rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.plan-opt:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt__label { display: block; font-weight: 700; font-size: 0.93rem; }
.plan-opt__price { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 0.15rem; }
.plan-opt:has(input:checked) {
  border-color: var(--red);
  background: rgba(229, 9, 20, 0.15);
  box-shadow: 0 0 0 1px var(--red), 0 8px 24px rgba(229,9,20,0.2);
}
.plan-opt:has(input:checked) .plan-opt__price { color: #ffb3b8; }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--red-bright); outline-offset: 2px; }

/* Phone number with country-code selector */
.phone-row { display: flex; gap: 0.5rem; }
.phone-cc {
  flex: 0 0 106px;
  width: 106px;
  padding: 0.85rem 1.7rem 0.85rem 0.8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
  color: #fff;
  font-size: 0.92rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7b7c4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 15px;
}
.phone-cc:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,9,20,0.16); }
.phone-cc option { background: #14141b; color: #fff; }
.phone-row input { flex: 1; min-width: 0; }

/* Payment method selector (2×2) */
.pay-methods {
  border: 0;
  padding: 0;
  margin: 0.2rem 0 1.4rem;
}
.pay-methods legend {
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0;
  margin-bottom: 0.6rem;
}
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.pay-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.pay-opt:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt__icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pay-opt__icon svg { width: 18px; height: 18px; }
.pay-opt__label { font-size: 0.92rem; font-weight: 600; }
.pay-opt:has(input:checked) {
  border-color: var(--red);
  background: rgba(229, 9, 20, 0.14);
  box-shadow: 0 0 0 1px var(--red);
}
.pay-opt:has(input:checked) .pay-opt__icon { color: var(--red-bright); border-color: var(--red-line); background: var(--red-soft); }
.pay-opt:has(input:focus-visible) { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.modal__cancel {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.5rem;
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--t-fast);
}
.modal__cancel:hover { color: #fff; }

@media (max-width: 420px) {
  .pay-grid { grid-template-columns: 1fr; }
}

.summary {
  border-radius: var(--r-md);
  border: 1px dashed var(--red-line);
  background: rgba(229, 9, 20, 0.06);
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0;
}
.summary h3 {
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.85rem;
}
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.32rem 0;
  color: var(--text-muted);
}
.summary__row span:last-child { color: #fff; font-weight: 600; text-align: right; }
.summary__row--total {
  border-top: 1px solid var(--border);
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  font-size: 1.02rem;
}
.summary__row--total span:last-child { color: var(--red-bright); font-weight: 800; font-size: 1.15rem; }

.modal__note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.55;
}
.modal__note svg { width: 13px; height: 13px; vertical-align: -2px; color: var(--red-bright); }

.modal-success { text-align: center; padding: 1rem 0; }
.modal-success__icon {
  width: 66px; height: 66px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 0 40px rgba(229,9,20,0.5);
}
.modal-success__icon svg { width: 30px; height: 30px; color: #fff; }
.modal-success .summary { text-align: left; }
[hidden] { display: none !important; }

/* ---------- 14. Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.post-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}
.post-card__meta .tag {
  color: var(--red-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.post-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.post-card p { font-size: 0.9rem; flex: 1; }
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.87rem;
  font-weight: 650;
  color: var(--red-bright);
  margin-top: 0.5rem;
}
.post-card__link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.post-card:hover .post-card__link svg { transform: translateX(4px); }

/* Article page */
.article-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 340px at 20% 0%, rgba(229,9,20,0.22), transparent 65%);
  z-index: -1;
}
.article-hero h1 { max-width: 20ch; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
  padding: 0;
  list-style: none;
}
.breadcrumb li { display: inline-flex; gap: 0.45rem; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: #4a4a55; }
.breadcrumb a:hover { color: var(--red-bright); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.83rem;
  color: var(--text-dim);
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.prose { max-width: 760px; margin-inline: auto; }
.prose > * { max-width: 100%; }
.prose h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  margin-top: 2.6rem;
  padding-top: 0.4rem;
}
.prose h3 { font-size: clamp(1.08rem, 2vw, 1.28rem); margin-top: 1.9rem; }
.prose p, .prose li { font-size: 1.015rem; line-height: 1.78; color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.3rem; display: grid; gap: 0.55rem; }
.prose li::marker { color: var(--red-bright); }
.prose strong { color: #fff; font-weight: 650; }
.prose a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

/* Buttons inside article prose are not body links — keep their own styling */
.prose .btn, .prose .btn:hover { text-decoration: none; }
.prose .btn--primary, .prose .btn--primary:hover { color: #fff; }
.prose .btn--ghost, .prose .btn--ghost:hover { color: var(--text); }
.prose .btn--outline, .prose .btn--outline:hover { color: var(--red-bright); }
.prose img { border-radius: var(--r-md); border: 1px solid var(--border); margin: 1.8rem 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.6rem 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.95rem;
}
.prose thead th {
  text-align: left;
  background: var(--glass);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.prose tbody td {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody td:first-child { color: #fff; font-weight: 600; }
@media (max-width: 620px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tbody tr {
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 0;
  }
  .prose tbody tr:last-child { border-bottom: none; }
  .prose tbody td { border-bottom: none; padding: 0.35rem 1rem; }
}

.callout {
  border-radius: var(--r-md);
  border: 1px solid var(--red-line);
  background: rgba(229, 9, 20, 0.07);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--red-bright); }

.toc {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--glass);
  padding: 1.3rem 1.5rem;
  margin-bottom: 2.2rem;
}
.toc h2 {
  font-size: 0.78rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.8rem !important;
  padding: 0 !important;
}
.toc ol { margin: 0; padding-left: 1.1rem; gap: 0.4rem; }
.toc a { color: var(--text-muted); text-decoration: none; font-size: 0.94rem; }
.toc a:hover { color: var(--red-bright); }

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ---------- 15. Steps / setup lists ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative;
  padding-left: 3.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--red-bright);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
}
.step h3 { font-size: 1.03rem; margin-bottom: 0.3rem; padding-top: 0.35rem; }
.step p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- 16. Stats strip ---------- */
.strip {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(229,9,20,0.06), transparent 45%, rgba(229,9,20,0.06));
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  padding: 2.2rem 0;
  text-align: center;
}
.strip__item h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 0.2rem;
  background: linear-gradient(120deg, #fff, var(--red-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip__item p {
  font-size: 0.83rem;
  margin: 0;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), #050508);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: min(620px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: 2.6rem;
}
.footer-brand p { font-size: 0.9rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-col a:hover { color: var(--red-bright); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-bottom a:hover { color: #fff; }

.disclaimer {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.022);
  padding: 1.2rem 1.35rem;
  margin-bottom: 2rem;
}
.disclaimer p {
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text-muted); }

/* ---------- 18. Floating call button (mobile) ---------- */
.fab-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 800;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(229,9,20,0.5);
  animation: ring 3.6s ease-in-out infinite;
}
.fab-call svg { width: 23px; height: 23px; }
@keyframes ring {
  0%, 72%, 100% { transform: rotate(0); }
  76% { transform: rotate(-11deg); }
  80% { transform: rotate(11deg); }
  84% { transform: rotate(-8deg); }
  88% { transform: rotate(8deg); }
  92% { transform: rotate(0); }
}

/* ---------- 19. Scroll reveal ---------- */
/* Only hide for the animation when JS is available to reveal it again.
   Without JS (or if the observer fails) everything renders normally. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20. Utilities ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  z-index: 1200;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 650;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.mb-0 { margin-bottom: 0; }
.lead { font-size: clamp(1rem, 1.5vw, 1.1rem); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 380px at 50% -10%, rgba(229,9,20,0.28), transparent 66%),
    linear-gradient(180deg, #0a0a0f, var(--bg));
  z-index: -1;
}
.page-hero p { max-width: 62ch; margin-inline: auto; }
.page-hero .breadcrumb { justify-content: center; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 0.5rem 0.6rem; font-size: 0.86rem; }
  .header-phone { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav, .header-actions .btn { display: none; }
  .burger { display: grid; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; width: 100%; }
  .tv { transform: none; }
  .hero-badge--a { left: 0; bottom: 6%; }
  .hero-badge--b { right: 0; top: 4%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fab-call { display: grid; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 3.4rem 0; }
  .card { padding: 1.4rem; }
  .plan { padding: 1.7rem 1.4rem; }
  .plan-picker { grid-template-columns: 1fr; }
  .plan-opt { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 0.85rem 1rem; }
  .plan-opt__price { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .carousel-nav { display: none; }
  .article-nav .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-cta .btn { width: 100%; }
}

/* ---------- 22. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .fab-call, .modal, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   23. TMDB film & series rows
   ========================================================================== */
.tmdb-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.6rem, 3vw, 2.4rem); }
/* Grid/flex items default to min-width:auto and would expand to the full
   content width, breaking horizontal scroll. Force them to clip instead. */
.tmdb-row { min-width: 0; }
.tmdb-row .carousel-shell { min-width: 0; max-width: 100%; overflow: hidden; }
.tmdb-row .film-track { max-width: 100%; }
.tmdb-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tmdb-row__head h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0;
}
.tmdb-row__head .tmdb-row__nav { display: flex; gap: 0.5rem; }

.film-track {
  display: flex;
  gap: clamp(0.7rem, 1.4vw, 1.05rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.film-track::-webkit-scrollbar { height: 6px; }
.film-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 99px; }
.film-track::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

.film {
  flex: 0 0 clamp(132px, 15vw, 168px);
  scroll-snap-align: start;
  cursor: pointer;
  border: none;
  background: none;
  transition: transform var(--t);
}
.film:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; border-radius: 14px; }
.film:hover { transform: translateY(-6px); }

.film__poster {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.film:hover .film__poster {
  border-color: var(--red-line);
  box-shadow: var(--shadow), 0 0 34px rgba(229, 9, 20, 0.24);
}
.film__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.film__score {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.22rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: #ffd54a;
}
.film__score svg { width: 12px; height: 12px; fill: #ffd54a; }

.film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7,7,10,0.1), rgba(7,7,10,0.55));
  opacity: 0;
  transition: opacity var(--t);
}
.film:hover .film__play, .film:focus-visible .film__play { opacity: 1; }
.film__play svg {
  width: 46px; height: 46px;
  fill: #fff;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  padding: 10px;
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.6);
}
.film__meta { padding: 0.7rem 0.2rem 0; text-align: left; }
.film__title {
  font-size: 0.9rem;
  font-weight: 640;
  margin: 0 0 0.15rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.film__sub { font-size: 0.78rem; color: var(--text-dim); margin: 0; }

/* Skeleton shimmer while TMDB loads */
.tmdb-rows.is-loading .film-track { overflow: hidden; }
.skeleton {
  flex: 0 0 clamp(132px, 15vw, 168px);
  aspect-ratio: 2 / 3;
  border-radius: 13px;
  border: 1px solid var(--border);
  background:
    linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.02) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }

/* Full-bleed auto-scrolling poster strip (no text) */
.film-strip {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(1.2rem, 2vw, 1.8rem);
  overflow: clip;
}
.film-marquee-shell { position: relative; min-width: 0; max-width: 100%; overflow: hidden; }
.film-marquee {
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  padding: 0.4rem clamp(1.15rem, 4vw, 2.5rem);
  scroll-snap-type: none;
}
.film-marquee .film {
  flex: 0 0 clamp(180px, 17vw, 250px);
}
.film-marquee .film__meta { display: none; }   /* text-free */
.film-marquee .film__score { display: none; }
.film-marquee .film__poster {
  border-radius: 16px;
}
.film-marquee .film__play svg { width: 58px; height: 58px; padding: 13px; }
/* edge fades so posters melt into the background at both ends */
.film-strip__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8vw, 120px);
  pointer-events: none;
  z-index: 2;
}
.film-strip__fade--l { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.film-strip__fade--r { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.skeleton--poster {
  flex: 0 0 clamp(180px, 17vw, 250px);
}

.tmdb-attr {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 1.4rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tmdb-attr img { height: 14px; width: auto; opacity: 0.85; }
.tmdb-attr a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.tmdb-attr a:hover { color: var(--red-bright); }

/* ==========================================================================
   24. Device brand tiles
   ========================================================================== */
.device-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.7rem 1.2rem;
}
.device-brand__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  min-height: 46px;
  margin-bottom: 1.15rem;
}
.brand-chip {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.brand-chip svg { width: 24px; height: 24px; fill: #fff; opacity: 0.92; transition: opacity var(--t); }
.card:hover .brand-chip { border-color: var(--red-line); background: rgba(229,9,20,0.08); }
.card:hover .brand-chip svg { opacity: 1; }
.brand-chip--wide { width: auto; padding: 0 0.85rem; }
.brand-chip--wide svg { width: auto; height: 18px; }

.device-brand__art {
  width: 62px; height: 62px;
  border-radius: 17px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  background: radial-gradient(circle at 30% 25%, rgba(229,9,20,0.3), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  color: #fff;
  transition: box-shadow var(--t), border-color var(--t);
}
.card:hover .device-brand__art { box-shadow: 0 0 28px rgba(229,9,20,0.32); border-color: var(--red-line); }
.device-brand__art svg { width: 30px; height: 30px; }
.device-brand h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.device-brand p { font-size: 0.875rem; margin: 0; }

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  padding: 1.6rem 0;
}
.brand-strip svg {
  height: 26px; width: auto;
  fill: var(--text-muted);
  opacity: 0.6;
  transition: opacity var(--t), fill var(--t), transform var(--t);
}
.brand-strip a { display: inline-flex; }
.brand-strip a:hover svg, .brand-strip svg:hover { opacity: 1; fill: #fff; transform: translateY(-2px); }

/* ==========================================================================
   25. Pricing: connection stepper + 4-up grid
   ========================================================================== */
.pricing-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
@media (min-width: 1080px) {
  .pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1240px) {
  .pricing-grid--4 { gap: 1.7rem; }
  .pricing-grid--4 .plan { padding: 2.2rem 2rem; }
}
/* Four narrow columns: the note needs a fourth reserved line at this width */
@media (min-width: 1080px) and (max-width: 1239px) {
  .pricing-grid--4 .plan__conn-note { min-height: 5.8em; }
}

/* ---------- Welcome offer popup ---------- */
.promo__panel { max-width: 560px; padding-top: 2.4rem; }

.promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}
.promo__title {
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 1.3rem 0 0.8rem;
}
.promo__title span { display: block; }
.promo__title-accent { color: var(--red-bright); }
.promo__lead { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 1.5rem; }

.promo__list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.85rem; }
.promo__list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.promo__list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #7df3b0; }
.promo__list span { font-size: 0.93rem; color: var(--text-muted); line-height: 1.55; }
.promo__list b { color: #fff; font-weight: 700; }

.promo__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.promo__amount {
  font-size: clamp(2.3rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red-bright);
  white-space: nowrap;
}
.promo__per { font-size: 1rem; color: var(--text-muted); white-space: nowrap; }
.promo__permonth { font-size: 0.83rem; color: var(--text-dim); margin: 0.5rem 0 1.5rem; }

.promo__form-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.8rem;
}
.promo__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 520px) { .promo__row { grid-template-columns: 1fr; } }
.promo__form .btn { margin-top: 0.4rem; }

.promo__compare {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.4rem;
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo__compare:hover { color: #fff; }

.modal__promo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-bright);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: var(--r-md);
  padding: 0.75rem 0.95rem;
  margin: 0 0 1.1rem;
}
.modal__promo[hidden] { display: none; }

.plan__bonus {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7df3b0;
  margin-left: 0.4rem;
}
.plan__term { font-size: 0.9rem; color: var(--text-muted); margin: -0.2rem 0 0.9rem; }

/* Fixed plan geometry: the price and the connection note both change length as the
   stepper is used (longer totals, an added "you save X"). Reserving their height
   keeps every card the same size at any connection count. */
.plan__price {
  /* Always two fixed lines: amount, then term. Nothing re-flows as the total
     grows with the connection stepper, so the card height never changes. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.15rem;
  margin-bottom: 1.6rem;
  min-height: calc(clamp(2.1rem, 4vw, 2.7rem) + 1.5rem);
}
.plan__price .amount { white-space: nowrap; line-height: 1.05; }
.plan__price .per { white-space: nowrap; line-height: 1.2; }

.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  margin: 0 0 0.9rem;
}
.stepper__btn {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.stepper__btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__val {
  flex: 1;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.stepper__val b { display: block; font-size: 1.05rem; color: #fff; font-weight: 700; }
.plan__conn-note {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  min-height: 4.35em;   /* 3 lines — the "you save X" clause appears from 2 connections */
}
.plan__conn-note b { color: #7df3b0; font-weight: 650; }
.plan__save {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7df3b0;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.28);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 640px) {
  .film { flex-basis: 40vw; }
  .tmdb-row__head .tmdb-row__nav { display: none; }
}

/* ==========================================================================
   26. "How it works" timeline
   ========================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.tl-step { position: relative; display: flex; flex-direction: column; }

.tl-step__top {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  margin-bottom: 1rem;
}
.tl-num {
  position: relative;
  z-index: 2;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 0 0 6px rgba(229, 9, 20, 0.1), 0 10px 26px rgba(229, 9, 20, 0.4);
  transition: transform var(--t), box-shadow var(--t);
}
.tl-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--red-line);
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
}
.tl-step:hover .tl-num {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(229, 9, 20, 0.16), 0 14px 34px rgba(229, 9, 20, 0.55);
}
.tl-step:hover .tl-num::after { opacity: 1; transform: scale(1.15); }

/* Connecting line runs from this badge toward the next step */
.tl-line {
  position: absolute;
  left: 52px; right: -1.5rem;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--red), rgba(229, 9, 20, 0.05));
  z-index: 1;
}
.tl-line::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--red);
  opacity: 0.6;
}
.tl-step:last-child .tl-line { display: none; }

.tl-card {
  position: relative;
  flex: 1;
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
  background: linear-gradient(160deg, var(--glass-strong), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.tl-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), transparent 70%);
  opacity: 0;
  transition: opacity var(--t);
}
.tl-step:hover .tl-card {
  transform: translateY(-6px);
  border-color: var(--red-line);
  box-shadow: var(--shadow), 0 0 40px rgba(229, 9, 20, 0.12);
}
.tl-step:hover .tl-card::before { opacity: 1; }
.tl-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  margin-bottom: 1rem;
  color: var(--red-bright);
  background: linear-gradient(145deg, rgba(229,9,20,0.22), rgba(229,9,20,0.04));
  border: 1px solid var(--red-line);
  transition: box-shadow var(--t), transform var(--t);
}
.tl-icon svg { width: 22px; height: 22px; }
.tl-step:hover .tl-icon { box-shadow: 0 0 22px rgba(229,9,20,0.35); transform: scale(1.05); }
.tl-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.tl-card p { font-size: 0.92rem; margin: 0; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  /* only hide the line at the end of each row (2nd, 4th) */
  .tl-step:nth-child(2n) .tl-line { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-step { flex-direction: row; gap: 1.1rem; }
  .tl-step__top {
    flex-direction: column;
    height: auto;
    align-self: stretch;
    margin-bottom: 0;
  }
  .tl-num { width: 46px; height: 46px; font-size: 1.15rem; }
  .tl-line {
    display: block !important;
    left: 50%; right: auto; top: 52px; bottom: -1rem;
    width: 2px; height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--red), rgba(229,9,20,0.05));
  }
  .tl-line::before { display: none; }
  .tl-step:last-child .tl-line { display: none !important; }
  .tl-card { width: 100%; }
}
