/* ============================================================
   M3U-EDIT.COM v2 — Homepage Stylesheet (single source of truth)
   Location: assets/css/homepage.css

   This is the ONLY homepage-specific stylesheet (the former
   assets/css/home.css was merged in below during the 2026 redesign
   to drop a duplicate render-blocking request and end the two-files-
   styling-the-same-component cascade conflicts).

   Structure of this file:
   1) Design tokens — an EXTRA color scale (--primary-50…900),
      accent colors, gradients, spacing/radius/easing tokens, and
      naming aliases. It does NOT redefine main.css's core tokens
      (--primary/--bg/--text/--border/--accent/--radius/--shadow),
      so the rest of the site is unaffected. It also adds homepage-
      scoped tokens (--gradient-brand, --font-display/--font-sans, the
      --text-* type scale, --*-rgb tints) used by the merged + v2 rules.
   2) Generic homepage helpers (.container-wide, .gradient-text,
      .badge, .badge-dot, .btn-lg, .btn-xl).
   3) MERGED legacy base rules from home.css (hero base, sections,
      tools grid, features, stats banner, comparison base, FAQ base,
      signup modal) — kept in cascade order BEFORE the v2 rules so
      the newer section design still wins.
   4) The v2 section design system (2-column hero, featured cards,
      process flow, testimonials, comparison v2, final CTA, FAQ).

   ============================================================ */

:root {
  /* ---- Extra color scale (aliases — do NOT replace --primary) ---- */
  --primary-50:  #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-300: #c4b5fd;
  --primary-400: #a78bfa;
  --primary-500: #8b5cf6;   /* matches existing --accent */
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-800: #5b21b6;
  --primary-900: #4c1d95;

  /* Accent palette for tints / chips / mesh gradient */
  --accent-pink:  #ec4899;
  --accent-cyan:  #06b6d4;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;

  /* Gradients (used by hero highlight, CTA cards, mesh background) */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-cool:    linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-warm:    linear-gradient(135deg, #8b5cf6 0%, #f59e0b 100%);
  --gradient-mesh:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    radial-gradient(at 50% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);

  /* Glow shadow — for primary CTA + featured-card hover */
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.35);
  --shadow-glow-strong: 0 0 50px rgba(99, 102, 241, 0.45);

  /* Spacing scale (NEW — existing CSS uses px directly; new section
     CSS can use these for consistency) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Extra radius tokens (existing has --radius-sm/--radius/--radius-lg/--radius-xl) */
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Easing + duration tokens — used by new section transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:  200ms;
  --duration-base:  400ms;
  --duration-slow:  800ms;

  /* ---- Naming aliases (brief's convention → existing tokens) ----
     New section CSS can use --bg-primary / --text-primary /
     --border-color, OR the existing --bg / --text / --border —
     both resolve to the same value. */
  --bg-primary:    var(--bg);
  --bg-elevated:   var(--bg-card);
  --text-primary:  var(--text);
  --text-secondary: var(--text-secondary);
  --border-color:  var(--border);

  /* ---- Brand gradient (2-stop indigo→violet) ----
     Matches main.css's logo/button gradient. Defined HERE (homepage-
     scoped) on purpose: the dashboard declares its own --gradient-brand
     (violet→pink in dashboard/tokens.css), and homepage.css never loads
     on the dashboard, so the two never collide. --gradient-primary
     (above) is the 3-stop indigo→violet→pink accent — a different gradient. */
  --gradient-brand: linear-gradient(135deg, var(--primary), var(--accent));

  /* ---- RGB channels for alpha tints: rgba(var(--x-rgb), a) ----
     (--primary-rgb is declared globally in main.css.) */
  --accent-rgb: 139, 92, 246;
  --success-rgb: 16, 185, 129;
  --danger-rgb: 239, 68, 68;
  --warning-rgb: 245, 158, 11;

  /* ---- Font families ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* ---- Fluid type scale (adopted incrementally in later phases) ----
     --text-base 0.9375rem = 15px = current body size. */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 0.9375rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.25rem;
  --text-2xl:  clamp(1.375rem, 2.4vw, 1.75rem);
  --text-3xl:  clamp(1.625rem, 3.2vw, 2.25rem);
  --text-4xl:  clamp(2rem, 5vw, 3.5rem);
  --text-5xl:  clamp(2.375rem, 5vw, 4.5rem);
}

[data-theme="dark"] {
  /* Slightly cooler glow + heavier mesh in dark mode */
  --shadow-glow:        0 0 32px rgba(139, 92, 246, 0.45);
  --shadow-glow-strong: 0 0 56px rgba(139, 92, 246, 0.55);
  --gradient-mesh:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.10) 0%, transparent 50%),
    radial-gradient(at 50% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}

/* ============================================================
   MERGED FROM home.css (2026 redesign — Phase 1 consolidation)
   home.css is no longer loaded separately. These legacy base rules
   are kept in cascade order BEFORE the v2 section rules below so the
   newer design still wins on equal-specificity selectors.
   Dropped as dead (unused by current markup): .hero-eyebrow,
   .hero-inner, .hero h1, .hero-sub, .steps-grid/.step-card/.step-num,
   .compare-table thead th.us, .cta-banner. Brand gradients now use
   var(--gradient-brand) / var(--gradient-primary).
   ============================================================ */

/* ---------- HERO (legacy base padding/bg under .hero-2col) ---------- */
.hero {
  position: relative;
  padding: 56px 20px 36px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(236, 72, 153, 0.06), transparent 60%);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(236, 72, 153, 0.08), transparent 60%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
  animation: gridFloat 24s linear infinite;
}
@keyframes gridFloat {
  0%   { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-cta .btn {
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
}
.hero-cta .btn-primary {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.hero-cta .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-item .check {
  color: var(--success);
  font-weight: 800;
}

/* ---------- SECTION TITLES ---------- */
.section {
  padding: 60px 20px;
}
.section .container { max-width: 1280px; margin: 0 auto; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   TOOLS GRID (top of homepage)
   ============================================================ */
.tools-section {
  padding: 30px 20px 60px;
}
.tools-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tools-filter {
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.tools-filter:hover { color: var(--text); }
.tools-filter.active {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  overflow: hidden;
  isolation: isolate;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
  text-decoration: none;
  color: inherit;
}
.tool-card:hover::before { opacity: 1; }
.tool-card.locked {
  cursor: pointer;
}
.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tool-card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-brand);
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.tool-card-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tool-card-badge.free { background: rgba(16,185,129,0.15); color: var(--success); }
.tool-card-badge.premium { background: rgba(99,102,241,0.15); color: var(--primary); }
.tool-card-badge.soon { background: rgba(245,158,11,0.15); color: var(--warning); }
.tool-card-badge.locked { background: rgba(239,68,68,0.15); color: var(--danger); }
.tool-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tool-pricing-note {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  margin: -2px 0 8px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: block;
}
.tool-pricing-note--free {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success, #059669);
}
.tool-pricing-note--mixed {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning, #d97706);
}
.tool-pricing-note--paid {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.28);
  color: var(--primary, #4f46e5);
}
.tool-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.tool-card-cat {
  color: var(--text-muted);
  text-transform: capitalize;
}
.tool-card-arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s;
}
.tool-card:hover .tool-card-arrow {
  transform: translateX(3px);
}
.tool-card.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
  border-radius: inherit;
}
[data-theme="dark"] .tool-card.locked::after {
  background: rgba(0, 0, 0, 0.2);
}
.tool-card.locked .tool-card-icon {
  filter: grayscale(0.4);
  opacity: 0.85;
}
.lock-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  z-index: 1;
}

/* ============================================================
   FEATURES base (padding/hover/icon upgraded by .features below)
   ============================================================ */
.features {
  background: linear-gradient(180deg, transparent, var(--bg-secondary) 30%, var(--bg-secondary) 70%, transparent);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.feat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}
.feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.feat-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
  background: var(--gradient-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1), transparent 50%);
}
.stats-banner-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.2px;
}
@media (max-width: 640px) {
  .stats-banner-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============================================================
   COMPARISON TABLE base (upgraded by .compare-table--v2 below)
   ============================================================ */
.compare {
  background: var(--bg-secondary);
}
.compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table thead th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--bg-secondary); }
.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
.yes { color: var(--success); font-size: 18px; font-weight: 800; }
.no { color: var(--danger); font-size: 18px; font-weight: 800; }
.partial { color: var(--warning); font-size: 13px; font-style: italic; }

/* ============================================================
   FAQ base (refined by .faq-list .faq-* below)
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}
.faq-question {
  padding: 16px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 22px 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

/* ============================================================
   SIGNUP MODAL (for locked tools)
   ============================================================ */
.signup-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.signup-modal.show { display: flex; }
.signup-modal-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.signup-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}
.signup-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.signup-modal-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.signup-modal-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.signup-modal-perks {
  text-align: left;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 13px;
}
.signup-modal-perks-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--text);
}
.signup-modal-perks-item::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE (legacy homepage breakpoints)
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 40px 20px 30px; }
  .section { padding: 40px 16px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .tool-card { padding: 18px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 12px; font-size: 12px; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   INLINE-SVG ICONS (replaces emoji glyphs — 2026 redesign Phase 2)
   The gradient icon tiles set color:#fff, so stroke="currentColor"
   renders white; filter chips / footer / badge inherit their text
   colour. Sizes are set here (the markup just emits home_icon()).
   ============================================================ */
.tool-card-icon svg     { width: 24px; height: 24px; }
.featured-card-icon svg { width: 28px; height: 28px; }
.feat-icon svg          { width: 24px; height: 24px; }

.tools-filter { display: inline-flex; align-items: center; gap: 7px; }
.tools-filter svg { width: 16px; height: 16px; }

.tool-card-cat { display: inline-flex; align-items: center; gap: 5px; }
.tool-card-cat svg { width: 13px; height: 13px; opacity: 0.85; }

.featured-card-badge svg { width: 13px; height: 13px; }
.lock-overlay svg { width: 13px; height: 13px; }
.signup-modal-icon svg { width: 30px; height: 30px; }

/* ---- All-tools cards lifted to featured-card-level polish ----
   Replaces the legacy `transition: all 0.2s` + flat shadow with
   per-property transitions, a layered shadow (dark-mode variant),
   and an icon tilt on hover — matching .featured-card. */
.tool-card {
  transition:
    transform   var(--duration-base) var(--ease-out-expo),
    box-shadow  var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo);
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 38px -12px rgba(99, 102, 241, 0.20),
    0 6px 16px -8px rgba(99, 102, 241, 0.12);
}
[data-theme="dark"] .tool-card:hover {
  box-shadow:
    0 22px 44px -12px rgba(0, 0, 0, 0.55),
    0 8px 20px -8px rgba(139, 92, 246, 0.22);
}
.tool-card-icon {
  transition:
    transform  var(--duration-base) var(--ease-out-back),
    box-shadow var(--duration-base) var(--ease-out-expo);
}
.tool-card:hover .tool-card-icon {
  transform: rotate(8deg) scale(1.06);
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.45);
}

/* ============================================================
   GENERIC HOMEPAGE HELPERS
   (no section-specific styling yet — those land in Phase 2+)
   ============================================================ */

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient text helpers — for headline highlight words */
.gradient-text {
  background: var(--gradient-primary);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.gradient-text-cool {
  background: var(--gradient-cool);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* Hero-style badge pill (used by hero eyebrow + section eyebrows) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

[data-theme="dark"] .badge {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  animation: pulseRing 2.2s ease-out infinite;
}

.badge-dot--violet {
  background: var(--primary-500);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.45);
}

.badge-dot--cyan {
  background: var(--accent-cyan);
}

/* Larger button sizes — extend existing .btn / .btn-primary system */
.btn.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  min-height: 48px;            /* WCAG touch-target 48x48 */
}

.btn.btn-xl {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  min-height: 52px;
}

/* Glowing primary CTA — for hero + final CTA section */
.btn.btn-primary.btn-glow {
  background: var(--gradient-primary);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.55);
  transition:
    transform   var(--duration-fast) var(--ease-out-back),
    box-shadow  var(--duration-base) var(--ease-out-expo),
    background-position var(--duration-slow) var(--ease-in-out-soft);
}
.btn.btn-primary.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(139, 92, 246, 0.65), var(--shadow-glow);
  background-position: 100% 0;
}
.btn.btn-primary.btn-glow:active {
  transform: translateY(0);
}

/* Ghost button — used as secondary hero CTA */
.btn.btn-ghost-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition:
    transform   var(--duration-fast) var(--ease-out-back),
    border-color var(--duration-fast) ease,
    background  var(--duration-fast) ease;
}
.btn.btn-ghost-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

/* SVG icon sizing convenience */
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn .icon-arrow {
  width: 18px; height: 18px;
  transition: transform 220ms var(--ease-out-back);
}
.btn:hover .icon-arrow { transform: translateX(3px); }

/* (Removed the dead .homepage-shell touch-target rules — that class was
   never applied to <body>, so they never took effect. Global
   *:focus-visible in main.css already supplies keyboard focus rings, and
   homepage controls clear WCAG 2.5.8 (24px) touch targets.) */

/* Section base — adds rhythm without fighting existing .section */
.section-tight  { padding-block: 48px; }
.section-normal { padding-block: 72px; }
.section-wide   { padding-block: 96px; }

/* Decorative mesh background — drop into any section as ::before */
.has-mesh-bg {
  position: relative;
  isolation: isolate;
}
.has-mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

/* Skip-to-content link — improves accessibility score */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* ============================================================
   PHASE 2 — HEADER POLISH + 2-COLUMN HERO
   Loaded only on homepage (via $extra_css in index.php).
   All selectors are either homepage-only-by-context (loaded only
   on /) or opt-in via specific class names — nothing here cascades
   destructively to other pages.
   ============================================================ */

/* ---------- HEADER: SCROLL STATE + LOGO ENTRANCE + NAV UNDERLINE ---------- */

/* Subtle shadow grows when scrolled (class toggled by homepage.js) */
.site-header {
  transition:
    box-shadow      300ms var(--ease-out-expo),
    border-color    300ms var(--ease-out-expo),
    background      300ms var(--ease-out-expo);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -8px rgba(15, 23, 42, 0.12),
              0 2px 8px -4px rgba(15, 23, 42, 0.08);
  border-bottom-color: transparent;
}
[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5),
              0 2px 8px -4px rgba(0, 0, 0, 0.3);
}

/* Logo entrance — page-load only, won't replay on theme toggle */
.site-header .logo .logo-icon {
  animation: logoEntrance 600ms var(--ease-out-back) both;
  transform-origin: center;
}
.site-header .logo .logo-text {
  animation: fadeInLeft 700ms var(--ease-out-expo) both;
  animation-delay: 120ms;
}
@keyframes logoEntrance {
  0%   { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Nav link underline-grow on hover (skip the active link — it already has bg) */
.nav-main > a:not(.active),
.nav-dropdown-trigger:not(.active) {
  position: relative;
}
.nav-main > a:not(.active)::after,
.nav-dropdown-trigger:not(.active)::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out-expo);
}
.nav-main > a:not(.active):hover::after,
.nav-dropdown-trigger:not(.active):hover::after {
  transform: scaleX(1);
}

/* Theme toggle: enhanced icon morph (sun ↔ moon) */
.theme-toggle {
  position: relative;
  overflow: hidden;
}
.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  transition:
    transform 360ms var(--ease-out-back),
    opacity   240ms ease;
}
.theme-toggle:hover .icon-moon,
.theme-toggle:hover .icon-sun {
  transform: rotate(15deg);
}
/* JS adds .is-toggling for ~600ms after click — full 360 spin */
.theme-toggle.is-toggling .icon-moon,
.theme-toggle.is-toggling .icon-sun {
  transform: rotate(360deg);
}

/* Credits pill: one-shot pulse when value changes (JS adds .pulse-once) */
.credits-pill {
  transition: color 200ms ease;
}
.credits-pill.pulse-once {
  animation: creditsBump 600ms var(--ease-out-back) both;
}
@keyframes creditsBump {
  0%   { transform: scale(1);    color: var(--text); }
  50%  { transform: scale(1.18); color: var(--primary); }
  100% { transform: scale(1);    color: var(--text); }
}

/* ============================================================
   HERO — 2-COLUMN LAYOUT
   Markup uses BOTH .hero (legacy base padding/bg) AND .hero-2col
   (new layout). The .hero-inner-2col grid overrides the old
   centered .hero-inner.
   ============================================================ */

.hero.hero-2col {
  text-align: left;
  padding: 88px 20px 80px;
  position: relative;
}
@media (max-width: 900px) {
  .hero.hero-2col { padding: 64px 20px 56px; text-align: center; }
}

/* Mesh background overlay (sits above the legacy grid::before) */
.hero-mesh-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.hero-inner-2col {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner-2col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---- LEFT COLUMN: CONTENT ---- */
.hero-content {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
[data-theme="dark"] .hero-badge {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.38);
}
.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  position: relative;
  flex-shrink: 0;
}
.hero-badge .badge-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.35;
  animation: pulseRing 2.2s ease-out infinite;
}

/* Headline — clean SaaS typography */
.hero.hero-2col .hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: none;
  margin: 0 0 20px;
}

.hero.hero-2col .hero-title .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-pink));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

.hero.hero-2col .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.hero.hero-2col .hero-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.hero.hero-2col .hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
}

.hero.hero-2col .hero-btn-secondary {
  border-color: rgba(99, 102, 241, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[data-theme="dark"] .hero.hero-2col .hero-btn-secondary {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.28);
}

.hero.hero-2col .hero-btn-secondary:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .hero.hero-2col .hero-cta { justify-content: center; }
}

/* Reassurance microcopy under the CTAs (friction-removers) */
.hero-reassure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-reassure .dot { color: var(--border-strong); }
@media (max-width: 900px) {
  .hero-reassure { justify-content: center; }
}

.hero.hero-2col .hero-trust {
  justify-content: flex-start;
  gap: 20px 24px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .hero.hero-2col .hero-trust { justify-content: center; }
}

/* ---- RIGHT COLUMN: ANIMATED MOCKUP + FLOATING CARDS ---- */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-visual { min-height: 340px; }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 280px; }
}

/* Mockup window frame */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 16px 40px rgba(99, 102, 241, 0.12))
          drop-shadow(0 6px 14px rgba(99, 102, 241, 0.06));
  transform-origin: center;
}
[data-theme="dark"] .hero-mockup {
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35))
          drop-shadow(0 6px 14px rgba(139, 92, 246, 0.12));
}
.hero-mockup-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating info cards positioned over the mockup */
.hero-floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.12),
              0 2px 8px -4px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
  z-index: 2;
  opacity: 1;
}
[data-theme="dark"] .hero-floating-card {
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6),
              0 4px 14px -4px rgba(0, 0, 0, 0.3);
}
.hero-floating-card-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  color: var(--primary);
}
.hero-floating-card-icon svg { width: 20px; height: 20px; }
.hero-floating-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.hero-floating-card-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-floating-card-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* Positioning of the three cards */
.hero-floating-card--1 { top: 8%;   right: -8px;  animation: float 4.5s ease-in-out infinite; }
.hero-floating-card--2 { top: 45%;  left: -16px;  animation: float 5s ease-in-out infinite 0.6s; }
.hero-floating-card--3 { bottom: 8%; right: 8%;   animation: float 4s ease-in-out infinite 1.2s; }

@media (max-width: 900px) {
  /* Tighten card positions on mobile so they sit cleanly over a narrower mockup */
  .hero-floating-card { font-size: 12px; padding: 8px 12px; }
  .hero-floating-card--1 { top: 4%;   right: 4%;  }
  .hero-floating-card--2 { top: 42%;  left: 0;    }
  .hero-floating-card--3 { bottom: 6%; right: 4%; }
}
@media (max-width: 768px) {
  /* Hide floating cards on small screens — prevents overlap with the
     headline/CTA and the "bare number" problem when labels collapse. */
  .hero-floating-card { display: none; }
}

/* ---- ACCESSIBILITY: focus ring on hero CTAs ---- */
.hero-cta .btn:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.45);
  outline-offset: 3px;
}

/* ============================================================
   PHASE 3 — Social Proof Bar, Featured Tools, Process Flow,
            "Why M3U Edit" card upgrades, collapsible All-Tools
   ============================================================ */

/* ---------- LIVE SOCIAL PROOF BAR ---------- */

.social-proof-bar {
  position: relative;
  padding: 20px 20px;
  background: linear-gradient(180deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(99, 102, 241, 0.02) 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.10);
  border-bottom: 1px solid rgba(99, 102, 241, 0.10);
}
[data-theme="dark"] .social-proof-bar {
  background: linear-gradient(180deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.03) 100%);
  border-top-color: rgba(139, 92, 246, 0.20);
  border-bottom-color: rgba(139, 92, 246, 0.20);
}

.proof-stats {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 36px;
  font-size: 14px;
  color: var(--text-secondary);
}

.proof-stats .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.proof-stats .stat-value {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.proof-stats .stat-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.proof-stats .stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

@media (max-width: 700px) {
  .proof-stats { gap: 12px 20px; font-size: 13px; }
  .proof-stats .stat-value { font-size: 18px; }
  .proof-stats .stat-divider { display: none; }
}

/* Seed-data subtle hint (only visible when is_seed is true) */
.proof-stats .seed-hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  opacity: 0.65;
}

/* ============================================================
   FEATURED TOOLS — 4 hero cards
   ============================================================ */

.featured-tools-section {
  padding: 64px 20px 24px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
@media (max-width: 760px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform   var(--duration-base) var(--ease-out-expo),
    box-shadow  var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo);
  will-change: transform;
}

/* Subtle gradient wash inside card on hover (matches existing tool-card) */
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  z-index: -1;
  border-radius: inherit;
}
.featured-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow:
    0 20px 40px -10px rgba(99, 102, 241, 0.18),
    0 8px 20px -8px rgba(99, 102, 241, 0.10);
  text-decoration: none;
  color: inherit;
}
[data-theme="dark"] .featured-card:hover {
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.6),
    0 10px 24px -8px rgba(139, 92, 246, 0.25);
}
.featured-card:hover::before { opacity: 1; }

.featured-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.featured-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(99, 102, 241, 0.45);
  transition:
    transform var(--duration-base) var(--ease-out-back),
    box-shadow var(--duration-base) var(--ease-out-expo);
}
.featured-card:hover .featured-card-icon {
  transform: rotate(8deg) scale(1.08);
  box-shadow: 0 10px 24px -6px rgba(139, 92, 246, 0.55);
}

.featured-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}
.featured-card-badge--popular {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.18));
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
[data-theme="dark"] .featured-card-badge--popular {
  color: #fde68a;
}

.featured-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}

.featured-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 18px;
  flex: 1;
}

.featured-card-stat {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.featured-card-stat strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.featured-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  transition: transform var(--duration-fast) var(--ease-out-back);
}
.featured-card:hover .featured-card-cta {
  transform: translateX(3px);
}
.featured-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-out-back);
}
.featured-card:hover .featured-card-cta svg {
  transform: translateX(2px);
}

/* "View all 14 tools" toggle button + collapsible region */
.featured-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 8px;
}
.featured-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-back);
  font-family: inherit;
}
.featured-toggle-btn:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}
.featured-toggle-btn .featured-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-base) var(--ease-out-back);
}
.featured-toggle-btn[aria-expanded="true"] .featured-toggle-icon {
  transform: rotate(180deg);
}

.all-tools-collapsible {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-slow) var(--ease-out-expo);
}
.all-tools-collapsible.is-open {
  grid-template-rows: 1fr;
}
.all-tools-inner {
  overflow: hidden;
  min-height: 0;
}
/* When collapsed, prevent tabbing into hidden links (JS also sets [inert]) */
.all-tools-collapsible:not(.is-open) {
  pointer-events: none;
}
.all-tools-collapsible.is-open {
  pointer-events: auto;
}

/* ============================================================
   "WHY M3U EDIT" CARDS — copy + animation upgrade
   (keeps existing .feat-card / .feat-grid base from home.css,
    overrides only what we want — bigger card padding, icon
    rotates on hover, stagger via .reveal)
   ============================================================ */

.features .feat-card {
  padding: 30px 26px;
  transition:
    transform   var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    box-shadow  var(--duration-base) var(--ease-out-expo);
}
.features .feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px -16px rgba(99, 102, 241, 0.30);
}
.features .feat-card .feat-icon {
  transition:
    transform  var(--duration-base) var(--ease-out-back),
    box-shadow var(--duration-base) var(--ease-out-expo);
}
.features .feat-card:hover .feat-icon {
  transform: rotate(6deg) scale(1.08);
  box-shadow: 0 10px 24px -6px rgba(139, 92, 246, 0.45);
}
.features .feat-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.features .feat-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   PROCESS FLOW — animated 3-step
   ============================================================ */

.process-section {
  padding: 80px 20px;
}

.process-flow {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.process-step-visual {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(99, 102, 241, 0.50);
  transition: transform var(--duration-base) var(--ease-out-back);
}
.process-step:hover .process-step-visual {
  transform: scale(1.08) rotate(-3deg);
}
.process-step-visual svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step-number {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.10);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.process-step h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 320px;
}

/* Connector SVG between steps */
.process-connector {
  width: 100%;
  height: 8px;
  align-self: center;
  margin: 0 -8px;
  min-width: 40px;
  max-width: 160px;
}
.process-connector path {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  vector-effect: non-scaling-stroke;
}

/* When the flow becomes visible (via .reveal/.is-visible on .process-flow),
   the connectors draw themselves left-to-right with a staggered delay. */
.process-flow.is-visible .process-connector:nth-of-type(odd) path {
  animation: drawLine 1.1s var(--ease-out-expo) forwards;
}
.process-flow.is-visible .process-connector:first-of-type path { animation-delay: 350ms; }
.process-flow.is-visible .process-connector:nth-of-type(3)    path { animation-delay: 850ms; }

@media (max-width: 760px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process-connector {
    width: 8px;
    height: 36px;
    margin: 0 auto;
    transform: rotate(90deg);
    max-width: none;
  }
}

/* ============================================================
   PHASE 4 — Testimonials section + Comparison Table upgrade
            + CTA banner enhancements (floating shapes + ticker)
   ============================================================ */

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

.testimonials-section {
  padding: 80px 20px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(99, 102, 241, 0.06), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .testimonials-section {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139, 92, 246, 0.10), transparent 60%),
    var(--bg);
}

.testimonials-track {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Grid of 3 cards desktop, 1 mobile */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 26px 24px;
  position: relative;
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 36px -12px rgba(99, 102, 241, 0.22);
}

.testimonial-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.testimonial-stars .star-off { color: var(--border-strong); }

.testimonial-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 18px;
  flex: 1;
}
.testimonial-content::before {
  content: '"';
  display: inline;
  font-size: 1.5em;
  line-height: 0;
  color: var(--primary);
  font-weight: 800;
  vertical-align: -0.15em;
  margin-right: 2px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta {
  flex: 1;
  min-width: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.testimonial-location {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.testimonial-tool-tag {
  display: inline-block;
  padding: 3px 8px;
  margin-top: 4px;
  background: rgba(99, 102, 241, 0.10);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Carousel pagination dots (only shown when 4+ testimonials) */
.testimonials-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.testimonials-dot.is-active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Empty state — honest, not faked */
.testimonials-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 28px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-2xl);
}
.testimonials-empty .empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}
.testimonials-empty h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.testimonials-empty p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.testimonials-empty a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   COMPARISON TABLE — v2 upgrade
   ============================================================ */

.compare-table--v2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  font-size: 14px;
}

.compare-table--v2 thead th {
  padding: 18px 14px;
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  color: var(--text-secondary);
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table--v2 thead th:first-child {
  text-align: left;
  padding-left: 22px;
  width: 32%;
}

/* The M3U Edit column — gradient highlight */
.compare-table--v2 thead th.us-col {
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 800;
  position: relative;
}
.compare-table--v2 thead th.us-col::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Competitor headers — monospace-ish for distinct identity */
.compare-table--v2 thead th.competitor-col {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0;
}

/* Body */
.compare-table--v2 tbody td {
  padding: 14px;
  text-align: center;
  border-top: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-secondary);
  transition: background var(--duration-fast) ease;
}
.compare-table--v2 tbody td:first-child {
  text-align: left;
  padding-left: 22px;
  color: var(--text);
  font-weight: 600;
}

/* Highlight the M3U Edit column — solid tint + colored side rails so the
   eye travels down the winning column (token-based → works in both themes). */
.compare-table--v2 thead th.us-col,
.compare-table--v2 tbody td.us-col {
  box-shadow:
    inset 2px 0 0 rgba(var(--primary-rgb), 0.55),
    inset -2px 0 0 rgba(var(--primary-rgb), 0.55);
}
.compare-table--v2 tbody td.us-col {
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--text);
  font-weight: 700;
}
[data-theme="dark"] .compare-table--v2 tbody td.us-col {
  background: rgba(var(--primary-rgb), 0.16);
}

.compare-table--v2 tbody tr:hover td {
  background: rgba(var(--primary-rgb), 0.05);
}
.compare-table--v2 tbody tr:hover td.us-col {
  background: rgba(var(--primary-rgb), 0.14);
}
[data-theme="dark"] .compare-table--v2 tbody tr:hover td.us-col {
  background: rgba(var(--primary-rgb), 0.22);
}

/* Yes / No / Partial pill styling */
.compare-table--v2 .yes  { color: var(--success); font-weight: 700; display: inline-block; }
.compare-table--v2 .no   { color: var(--danger);  font-weight: 700; display: inline-block; opacity: 0.7; }
.compare-table--v2 .partial { color: var(--warning); font-weight: 700; display: inline-block; font-size: 12px; }

/* Cell micro-animations on row hover */
@keyframes cellBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-2px); }
  50%      { transform: translateX(2px); }
  75%      { transform: translateX(-2px); }
}
.compare-table--v2 tbody tr:hover .yes { animation: cellBounce 400ms var(--ease-out-back); }
.compare-table--v2 tbody tr:hover .no  { animation: cellShake 360ms ease; }

/* Mobile — horizontal scroll with edge fade + sticky feature column */
@media (max-width: 760px) {
  .compare-wrap--v2 {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-2xl);
  }
  .compare-wrap--v2::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, var(--bg-card) 80%);
    pointer-events: none;
    z-index: 3;
  }
  .compare-table--v2 {
    min-width: 720px;
    font-size: 13px;
  }
  .compare-table--v2 thead th { padding: 14px 10px; font-size: 12px; }
  .compare-table--v2 tbody td { padding: 12px 10px; }

  /* Keep the feature-label column visible while scrolling competitors */
  .compare-table--v2 th:first-child,
  .compare-table--v2 td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-card);
  }
  .compare-table--v2 thead th:first-child { background: var(--bg-secondary); }
}

/* Defensibility note + direct CTA under the comparison */
.compare-note {
  max-width: 1100px;
  margin: 14px auto 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.compare-cta {
  text-align: center;
  margin-top: 22px;
}

/* ============================================================
   FINAL CTA — scoped premium section (.m3u-final-cta)
   ============================================================ */

.m3u-final-cta {
  position: relative;
  padding: 120px 24px 130px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 48%, #db2777 100%);
}

.m3u-final-cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.m3u-final-cta-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0.14;
  filter: blur(0);
  border-radius: var(--radius-2xl, 16px);
  will-change: transform;
}

.m3u-final-cta-shape--1 {
  width: 240px;
  height: 240px;
  top: -80px;
  left: -60px;
  border-radius: 50%;
  animation: floatSlow 9s ease-in-out infinite;
}

.m3u-final-cta-shape--2 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: -50px;
  border-radius: 32% 68% 70% 30% / 30% 30% 70% 70%;
  animation: floatSlow 11s ease-in-out infinite 1.5s;
}

.m3u-final-cta-shape--3 {
  width: 140px;
  height: 140px;
  bottom: -40px;
  left: 20%;
  border-radius: 50%;
  animation: floatSlow 12s ease-in-out infinite 0.8s;
}

.m3u-final-cta-shape--4 {
  width: 110px;
  height: 110px;
  bottom: 18%;
  right: 14%;
  border-radius: 28px;
  transform: rotate(18deg);
  animation: floatSlow 10s ease-in-out infinite 2.2s;
}

.m3u-final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.m3u-final-cta-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -1.5px;
  line-height: 1.08;
  text-shadow: 0 12px 35px rgba(15, 23, 42, 0.28);
}

.m3u-final-cta-desc {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

.m3u-final-cta-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.m3u-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.m3u-final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.m3u-final-cta-btn--primary {
  background: #ffffff;
  color: #6d28d9;
  border: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.m3u-final-cta-btn--primary:hover {
  background: #ffffff;
  color: #4c1d95;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

.m3u-final-cta-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.m3u-final-cta-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  transform: translateY(-2px);
}

.m3u-final-cta-quote {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.m3u-final-cta-quote-stars {
  color: #fbbf24;
  font-size: 13px;
}

@media (max-width: 991px) {
  .m3u-final-cta {
    padding: 90px 22px;
  }
}

@media (max-width: 640px) {
  .m3u-final-cta {
    padding: 72px 18px;
  }

  .m3u-final-cta-title {
    font-size: clamp(32px, 9vw, 38px);
    letter-spacing: -1px;
  }

  .m3u-final-cta-desc {
    max-width: none;
    width: 100%;
    font-size: 16px;
    line-height: 1.55;
    padding: 0;
  }

  .m3u-final-cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 28px;
    gap: 12px;
  }

  .m3u-final-cta-btn {
    width: 100%;
  }

  .m3u-final-cta-quote {
    font-size: 12px;
    margin-top: 22px;
  }
}

/* ============================================================
   PHASE 5 — FAQ polish + final accessibility touches
   ============================================================ */

/* FAQ items — overrides legacy .faq-item / .faq-question / .faq-answer
   from home.css with smoother visuals + chevron rotation. */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-base) var(--ease-out-expo),
    transform var(--duration-fast) ease;
}
.faq-list .faq-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
}
.faq-list .faq-item[open] {
  border-color: var(--primary);
  box-shadow:
    0 8px 24px -10px rgba(99, 102, 241, 0.22),
    inset 3px 0 0 0 var(--primary);
}

.faq-list .faq-question {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  user-select: none;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
  letter-spacing: -0.005em;
}
.faq-list .faq-question::-webkit-details-marker { display: none; }
.faq-list .faq-question::marker { display: none; content: ''; }

.faq-list .faq-question::before {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.10);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition:
    transform 320ms var(--ease-out-back),
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}
.faq-list .faq-item[open] .faq-question::before {
  /* "+" rotates to "×" */
  content: '+';
  transform: translateY(-50%) rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-list .faq-question:hover {
  background: rgba(99, 102, 241, 0.04);
}

.faq-list .faq-answer {
  padding: 0 22px 18px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  animation: fadeIn 280ms ease-out;
}

@media (max-width: 540px) {
  .faq-list .faq-question { padding: 16px 52px 16px 18px; font-size: 15px; }
  .faq-list .faq-question::before { right: 14px; }
  .faq-list .faq-answer { padding: 0 18px 16px 18px; font-size: 14px; }
}

@media (max-width: 520px) {
  .hero.hero-2col {
    padding: 56px 16px 48px;
  }
  .hero.hero-2col .hero-title {
    font-size: clamp(28px, 8.5vw, 36px);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
  }
  .hero.hero-2col .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero.hero-2col .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero.hero-2col .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   BACK-TO-TOP BUTTON
   Fixed bottom-right, fades in past 320px scroll.
   Smooth scroll to top on click. Respects reduced-motion.
   ============================================================ */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;

  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;

  background: var(--gradient-primary);
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 24px -6px rgba(99, 102, 241, 0.50),
    0 4px 12px -2px rgba(139, 92, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition:
    opacity 320ms var(--ease-out-expo),
    transform 320ms var(--ease-out-back),
    box-shadow 250ms ease,
    visibility 0s linear 320ms;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 320ms var(--ease-out-expo),
    transform 320ms var(--ease-out-back),
    box-shadow 250ms ease,
    visibility 0s linear 0s;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 18px 36px -6px rgba(99, 102, 241, 0.65),
    0 8px 18px -2px rgba(236, 72, 153, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.back-to-top:active {
  transform: translateY(-1px) scale(1.02);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 540px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  .back-to-top svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 200ms ease, visibility 0s linear 200ms !important;
    transform: none !important;
  }
  .back-to-top.is-visible {
    transition: opacity 200ms ease, visibility 0s linear 0s !important;
    transform: none !important;
  }
  .back-to-top:hover { transform: none !important; }
}

/* ============================================================
   PREMIUM POLISH PASS (Phase 2 — conversion & SaaS aesthetics)
   Appended last so these intentionally override earlier rules.
   Token-only; no heavy effects (perf-safe).
   ============================================================ */

/* ---- Cards: resting elevation that deepens on hover ----
   (hover shadows defined earlier have higher specificity and still win) */
.tool-card,
.feat-card,
.trust-pillar {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -6px rgba(15, 23, 42, 0.06);
}
.featured-card {
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 8px 24px -10px rgba(15, 23, 42, 0.08);
}
[data-theme="dark"] .tool-card,
[data-theme="dark"] .feat-card,
[data-theme="dark"] .trust-pillar,
[data-theme="dark"] .featured-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}

/* ---- Icon tiles: one brand gradient + inner highlight + ring (tactile plate) ---- */
.featured-card-icon { background: var(--gradient-brand); }
.tool-card-icon,
.feat-icon,
.featured-card-icon {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30),
              0 8px 18px -5px rgba(var(--primary-rgb), 0.45);
}

/* ---- "Why M3U Edit" cards get the same hover wash the other cards have ---- */
.feat-card { isolation: isolate; }
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--accent-rgb), 0.04));
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  z-index: -1;
  border-radius: inherit;
}
.feat-card:hover::before { opacity: 1; }

/* ---- Featured-card footer: divide the proof stat from the CTA ---- */
.featured-card-stat {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

/* ---- "Popular" badge: make it the loudest badge in both themes ---- */
.featured-card-badge--popular,
[data-theme="dark"] .featured-card-badge--popular {
  background: var(--gradient-warm);
  color: #fff;
  border-color: transparent;
}

/* ---- Section eyebrow: match the hero badge's confidence (dot + bordered pill) ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  color: var(--primary);
}
.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}
[data-theme="dark"] .section-eyebrow {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.34);
}

/* ---- Section surface rhythm: break the flat-white middle ---- */
.tools-section { background: var(--bg-secondary); }
.process-section {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(var(--primary-rgb), 0.05), transparent 60%),
    var(--bg);
}
#faq { background: var(--bg-secondary); }

/* ---- Hero: scarcity progress bar (only renders when founding spots are real) ---- */
.hero-scarcity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  max-width: 360px;
}
@media (max-width: 900px) { .hero-scarcity { margin-left: auto; margin-right: auto; } }
.hero-scarcity-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.hero-scarcity-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-brand);
}
.hero-scarcity-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Hero: trust-chip ticks now use the SVG icon set ---- */
.hero-trust-item .check {
  display: inline-flex;
  color: var(--success);
}
.hero-trust-item .check svg { width: 16px; height: 16px; }

/* ---- Hero: make the primary CTA the single magnetic focal point ---- */
.hero.hero-2col .hero-btn-primary {
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.hero.hero-2col .hero-btn-primary:hover {
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.45);
}

/* ---- Trust-pillar strip (replaces the weak "reviews coming soon" empty state) ---- */
.trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.trust-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.trust-pillar h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}
.trust-pillar p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.trust-pillar a { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) { .trust-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .trust-pillars { grid-template-columns: 1fr; } }

/* ---- Comparison: "Recommended" ribbon + verdict line + calmer competitor cells ---- */
.compare-table--v2 thead th.us-col { padding-top: 26px; }
.compare-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--primary-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.compare-verdict {
  max-width: 1100px;
  margin: -6px auto 22px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
/* Mute competitor "no" cells so OUR green wins by contrast (not an attacking red) */
.compare-table--v2 .no { color: var(--text-muted); opacity: 0.8; }
.compare-table--v2 tbody tr:hover .no { animation: none; }

/* ---- Final CTA: defensible proof chips ---- */
.m3u-final-cta-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 4px;
}
.m3u-final-cta-chip {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- FAQ: two columns on desktop + confidence closer ---- */
@media (min-width: 900px) {
  .faq-list {
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .faq-list .faq-item { margin-bottom: 0; }
}
.faq-more {
  max-width: 1040px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.faq-more a { color: var(--primary); font-weight: 600; }

/* ---- Drop the theme-invisible base table shadow (v2 uses border + the tints) ---- */
.compare-table { box-shadow: none; }

/* ============================================================
   PERF — skip render/layout work for below-the-fold sections until
   they near the viewport. contain-intrinsic-size reserves space so
   there's no scrollbar jump / CLS, and the reveal observers still fire
   as the sections approach. Guarded by @supports.
   ============================================================ */
@supports (content-visibility: auto) {
  .compare,
  .testimonials-section,
  #faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
  }
}

/* ============================================================
   QC PASS — "Why M3U Edit" cards read as premium product modules
   (hover reveals a gradient top-accent; clipped to the card radius
   by the existing overflow:hidden). Reuses tokens; perf-safe.
   ============================================================ */
.feat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  pointer-events: none;
}
.feat-card:hover::after { opacity: 1; }

/* ============================================================
   HERO PREMIUM PASS (hero-only — stronger first impression)
   Layered glow background, quantified stat row, deeper product
   demo, tighter type. Token-driven (light + dark), perf-safe:
   static radial gradients only, no blur filters, reuses the
   existing pulseRing keyframe.
   ============================================================ */

/* --- Background: soft premium glow + accent highlight behind content --- */
.hero.hero-2col { position: relative; overflow: hidden; }
.hero.hero-2col::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 50% at 16% 8%,  rgba(var(--primary-rgb), 0.16), transparent 62%),
    radial-gradient(48% 46% at 90% 26%, rgba(var(--accent-rgb),  0.14), transparent 60%);
}
[data-theme="dark"] .hero.hero-2col::after {
  background:
    radial-gradient(58% 50% at 16% 8%,  rgba(var(--primary-rgb), 0.26), transparent 62%),
    radial-gradient(48% 46% at 90% 26%, rgba(139, 92, 246, 0.22), transparent 60%);
}
/* Let the new glow lead — soften the legacy mesh layer */
.hero-mesh-bg { opacity: 0.30; }

/* --- Typography: a touch larger + tighter for hero presence --- */
.hero.hero-2col .hero-title {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* --- Quantified trust stat row (replaces the text chips) --- */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 2px;
}
@media (max-width: 900px) { .hero-stats { justify-content: center; } }
.hero-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hero-stat-num {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}
.hero-stat--live .hero-stat-num { color: var(--accent-green); }
.hero-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseRing 2.2s ease-out infinite;
}
@media (max-width: 520px) {
  .hero-stat-divider { display: none; }
  .hero-stats { gap: 16px 20px; }
  .hero-stat-num { font-size: 23px; }
}

/* --- Product demo: depth, glow halo & focus --- */
.hero-mockup,
[data-theme="dark"] .hero-mockup {
  border-radius: var(--radius-2xl);
  filter: none; /* replaced by the crisp layered box-shadow on the svg below */
}
.hero-mockup::before {
  content: '';
  position: absolute;
  inset: -16%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), 0.22), transparent 75%);
}
[data-theme="dark"] .hero-mockup::before {
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.30), transparent 75%);
}
/* Richer, layered frame shadow than the base drop-shadow */
.hero-mockup-svg {
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 18px 44px -16px rgba(15, 23, 42, 0.28),
    0 6px 16px -10px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .hero-mockup-svg {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 56px -18px rgba(0, 0, 0, 0.66),
    0 8px 20px -10px rgba(139, 92, 246, 0.28);
}

/* ============================================================
   POLISH PASS 2 — founding/early-access card + comparison groups
   Token-driven, both themes, perf-safe.
   ============================================================ */

/* --- Founding / exclusive early-access card (hero, renders when spots > 0) --- */
.hero-founding {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.09), rgba(var(--primary-rgb), 0.02));
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  box-shadow: 0 10px 28px -16px rgba(var(--primary-rgb), 0.55);
}
[data-theme="dark"] .hero-founding {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.05));
  border-color: rgba(var(--primary-rgb), 0.36);
}
@media (max-width: 900px) {
  .hero-founding { margin-left: auto; margin-right: auto; }
}
.hero-founding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-founding-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-founding-left { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.hero-founding-left strong { color: var(--text); font-weight: 800; }
.hero-founding-foot { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

/* --- Comparison: feature-group separator bands (visual hierarchy) --- */
.compare-table--v2 .compare-group th {
  position: static;            /* never sticky, even in the mobile scroll view */
  text-align: left;
  padding: 13px 22px 7px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  box-shadow: none;            /* no us-col side-rails on the band */
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare-table--v2 tbody tr.compare-group:first-child th { border-top: none; }

/* --- Hero: accuracy clarifier under the tool-count stat row --- */
.hero-stats-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
@media (max-width: 900px) { .hero-stats-note { text-align: center; } }

/* ============================================================
   FINAL POLISH — trust checklist, featured-card accent, us-col emphasis
   (token-driven, both themes, perf-safe; overrides earlier rules)
   ============================================================ */

/* Hero reassurance as an intentional green-check trust checklist */
.hero-reassure { gap: 8px 18px; }
.hero-reassure-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-reassure-item svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

/* Featured (tool) cards: subtle hover top-accent for premium depth
   (matches the "Why M3U Edit" cards; clipped by the card's overflow:hidden) */
.featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  pointer-events: none;
  z-index: 1;
}
.featured-card:hover::after { opacity: 1; }

/* Comparison: a touch more emphasis on the M3U Edit column (keeps the rails) */
.compare-table--v2 tbody td.us-col { background: rgba(var(--primary-rgb), 0.10); }
[data-theme="dark"] .compare-table--v2 tbody td.us-col { background: rgba(var(--primary-rgb), 0.20); }

/* ============================================================
   END POLISH PASS.
   ============================================================ */

/* ============================================================
   COMPARISON — PREMIUM PASS
   Header, consistent status badges, elegant group bands, an
   elevated "winning" column, refined CTA + fine-print note, and
   a smoother mobile scroll. Token-driven; both themes; perf-safe.
   (Appended last so it layers cleanly over the v2 base above.)
   ============================================================ */

/* ---- Section rhythm + persuasive verdict ---- */
.compare .section-header { margin-bottom: 10px; }
.compare-verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  color: var(--text);
}
.compare-verdict::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    rgba(var(--success-rgb), 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---- Wrapper: soft elevation so the table reads as one premium card ---- */
.compare-wrap--v2 {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-2xl);
}
[data-theme="dark"] .compare-wrap--v2 {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ---- Consistent status badges (yes / partial / no) ---- */
.compare-table--v2 .yes,
.compare-table--v2 .partial,
.compare-table--v2 .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.compare-table--v2 .yes {
  color: var(--success);
  background: rgba(var(--success-rgb), 0.13);
}
.compare-table--v2 .partial {
  color: var(--warning);
  background: rgba(var(--warning-rgb), 0.15);
}
/* Keep competitor gaps non-aggressive: neutral grey, not attacking red */
.compare-table--v2 .no {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.16);
  opacity: 1;
}
/* The winning column's checks earn a slightly bolder badge */
.compare-table--v2 tbody td.us-col .yes {
  background: rgba(var(--success-rgb), 0.18);
  box-shadow: 0 1px 4px rgba(var(--success-rgb), 0.18);
}
/* Tame the hover bounce so badges don't jump out of their pill */
.compare-table--v2 tbody tr:hover .yes { animation: none; transform: none; }

/* ---- Elegant category group bands with a brand accent ---- */
.compare-table--v2 .compare-group th {
  position: relative;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding-left: 34px;
  font-size: 11px;
}
.compare-table--v2 .compare-group th::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 13px;
  border-radius: 999px;
  background: var(--gradient-primary, linear-gradient(135deg, var(--primary), var(--primary-700)));
}

/* ---- Elevated winning column: brighter rails + a soft lift ---- */
.compare-table--v2 thead th.us-col,
.compare-table--v2 tbody td.us-col {
  box-shadow:
    inset 2px 0 0 rgba(var(--primary-rgb), 0.7),
    inset -2px 0 0 rgba(var(--primary-rgb), 0.7);
}
.compare-table--v2 thead th.us-col {
  box-shadow:
    inset 2px 0 0 rgba(var(--primary-rgb), 0.7),
    inset -2px 0 0 rgba(var(--primary-rgb), 0.7),
    0 -6px 18px rgba(var(--primary-rgb), 0.28);
}
.compare-badge {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
  letter-spacing: 0.05em;
}

/* ---- Row feel: a touch more breathing room + smooth hover ---- */
.compare-table--v2 tbody td { transition: background var(--duration-fast) ease; }
.compare-table--v2 tbody td:first-child { font-weight: 600; }

/* ---- Stronger, conversion-focused CTA ---- */
.compare-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.compare-cta__line {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.compare-cta__btn {
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.30);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.compare-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.38);
}
.compare-cta__micro {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Fine-print note: smaller + lighter ---- */
.compare-note {
  margin-top: 16px;
  font-size: 11.5px;
  opacity: 0.85;
}

/* ---- Mobile: keep the scroll comfortable, never cramped ---- */
@media (max-width: 760px) {
  .compare-wrap--v2 {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  }
  .compare-table--v2 { min-width: 680px; }
  .compare-table--v2 .yes,
  .compare-table--v2 .partial,
  .compare-table--v2 .no {
    padding: 4px 9px;
    font-size: 12px;
  }
  .compare-cta__line { font-size: 15.5px; }
  .compare-cta__btn { width: 100%; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .compare-cta__btn { transition: none; }
}

/* ---- Dark mode refinements ---- */
[data-theme="dark"] .compare-table--v2 .no {
  background: rgba(148, 163, 184, 0.14);
}
[data-theme="dark"] .compare-table--v2 .compare-group th {
  background: var(--bg-tertiary);
}
[data-theme="dark"] .compare-table--v2 thead th.us-col {
  box-shadow:
    inset 2px 0 0 rgba(var(--primary-rgb), 0.8),
    inset -2px 0 0 rgba(var(--primary-rgb), 0.8),
    0 -6px 20px rgba(var(--primary-rgb), 0.4);
}
