/* Hero */
.hero {
  padding: calc(var(--header-height) + 4rem) 1rem 5rem;
  min-height: min(860px, 100vh);
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(216, 27, 96, 0.14), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(106, 27, 154, 0.1), transparent 30%),
    linear-gradient(180deg, #fff 0%, #faf8fc 100%);
}

.hero-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(106, 27, 154, 0.18);
  border-radius: 999px;
  background: rgba(106, 27, 154, 0.06);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
}

.hero-highlight {
  color: var(--magenta);
}

.hero p {
  margin-top: 1rem;
  color: #374151;
  font-size: 1.125rem;
}

.hero .hero-lead {
  max-width: 640px;
  font-size: 1.1rem;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-buttons a {
  text-decoration: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-trust li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: #16a34a;
  font-weight: 900;
}

.hero-preview {
  position: relative;
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  padding: 1.1rem;
  border: 1px solid rgba(106, 27, 154, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(67, 31, 82, 0.16);
  backdrop-filter: blur(16px);
}

.preview-header,
.preview-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.preview-header {
  align-items: center;
  padding: 0.25rem 0.25rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-status {
  color: #15803d;
  font-size: 0.72rem;
}

.preview-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #22c55e;
}

.preview-card {
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
}

.preview-card-featured {
  border-color: rgba(216, 27, 96, 0.24);
  background: linear-gradient(135deg, rgba(216, 27, 96, 0.07), white);
}

.preview-card strong,
.preview-label {
  display: block;
}

.preview-card strong {
  color: #111827;
  font-size: 0.94rem;
}

.preview-label {
  margin-bottom: 0.15rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.preview-price {
  flex-shrink: 0;
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-link {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0.4rem 0.25rem;
  color: var(--purple);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-link:visited {
  color: var(--purple);
}

.category-section {
  padding: 5rem 1rem;
  background: var(--surface-muted);
}

.category-grid {
  display: grid;
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--text-muted);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:visited {
  color: var(--text-muted);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 27, 96, 0.25);
  box-shadow: var(--shadow-md);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}

.category-kicker {
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-card strong {
  margin: 0.2rem 0 0.35rem;
  color: #111827;
  font-size: 1.25rem;
}

.category-count {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.8rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(216, 27, 96, 0.08);
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 800;
}

.category-link {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 800;
}

.category-card:visited .category-link {
  color: var(--purple);
}

.step-number-static {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--magenta);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.comparison-cta {
  padding: 1rem;
  background: white;
}

.recommended-section {
  padding: 5rem 1rem;
  background:
    radial-gradient(circle at 15% 15%, rgba(216, 27, 96, 0.08), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(106, 27, 154, 0.08), transparent 34%),
    var(--surface-muted);
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.home-recommended-card {
  padding-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.home-recommended-card .operator-badge {
  align-self: flex-start;
}

.category-pill {
  align-self: flex-start;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(106, 27, 154, 0.08);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recommended-category-link {
  margin-top: 0.75rem;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.recommended-category-link:hover {
  color: var(--magenta);
}

.recommended-category-link:visited {
  color: var(--purple);
}

.comparison-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #23152b, #451a4d);
  color: white;
}

.comparison-cta h2 {
  margin: 0.25rem 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.comparison-cta p:not(.kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.error-page {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 3rem) 1rem 4rem;
  place-items: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(216, 27, 96, 0.12), transparent 35%),
    var(--surface-muted);
}

.error-card {
  max-width: 720px;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.error-code {
  display: block;
  color: rgba(106, 27, 154, 0.12);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
}

.error-card h1 {
  margin: 0.5rem 0 0.75rem;
  color: #111827;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.15;
}

.error-card > p:not(.kicker) {
  color: var(--text-muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* How It Works Section */
.how-it-works {
  padding: calc(var(--header-height) + 1rem) 1rem 4rem 1rem;
}

.how-it-works-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--white);
  border-radius: 16px;
}

.step-card a.btn-primary:hover{
  text-decoration: none;
  color: white;
  background-color: var(--orange);
}

.step-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-icon-wrapper {
  position: relative;
  display: inline-block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.step-description {
  color: #4b5563;
  line-height: 1.6;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  margin-top: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: #4b5563;
}

/* Tabs */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 12px;
}

.tab-button {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
}

.tab-button.active {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #111827;
}

.tab-button:not(.active):hover {
  color: #111827;
}

/* Mobile Section */
.mobile-section {
  background: var(--fog);
  padding: calc(var(--header-height) + 1rem) 1rem 4rem 1rem;
}

/* Internet Section */
.internet-section {
  background: white;
  padding: calc(var(--header-height) + 1rem) 1rem 4rem 1rem;
}

.subsection {
  margin-bottom: 4rem;
}

.subsection:last-child {
  margin-bottom: 0;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* FAQ */
.faq-container {
  max-width: 896px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 1rem) 1rem 4rem 1rem;
  background: var(--fog);
}

.faq-list {
  margin-top: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--magenta);
  user-select: none;
}

.faq-answer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  display: none;
}

details[open] .faq-answer {
  display: block;
}

details[open] .faq-toggle {
  transform: rotate(45deg);
}

/* Responsive */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    width: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.45rem 0.65rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 5vw, 4.75rem);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
  }

  .compare-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  #compare-bar {
    bottom: 0.75rem;
    width: calc(100vw - 1rem);
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    white-space: normal;
  }

  #compare-bar-label {
    display: none;
  }

  #compare-bar-go {
    margin-left: auto;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2.5rem);
  }

  .hero-buttons,
  .hero-buttons a,
  .error-actions,
  .error-actions a {
    width: 100%;
  }

  .preview-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .recommended-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ─────────────────────────────────────────
   FILTER LAYOUT — aside + main content
───────────────────────────────────────── */

.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.filter-drawer-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--charcoal);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.filter-active-count {
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--magenta);
  color: white;
  line-height: 22px;
  font-size: 0.72rem;
  text-align: center;
}

.catalog-status {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

/* Sidebar */
.filter-aside {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filter-heading h3 {
  margin-bottom: 0;
}

.filter-drawer-close {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--charcoal);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.filter-aside h3 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Each filter group */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-group > label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Operator checkboxes */
.operator-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.operator-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.operator-option:hover {
  background: var(--fog);
}

.operator-option input[type="checkbox"] {
  accent-color: var(--magenta);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.op-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Price & Data range slider */
.range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 600;
}

.filter-range {
  width: 100%;
  accent-color: var(--magenta);
  cursor: pointer;
}

/* Sort select */
.filter-select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s;
}

.filter-select:focus {
  border-color: var(--magenta);
}

/* Results count + reset */
.filter-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-count {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 600;
  text-align: center;
}

.filter-reset-btn {
  width: 100%;
  padding: 0.45rem 0;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-reset-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Plans content area */
.plans-content {
  flex: 1;
  min-width: 0;
}

/* Unified plans grid (all operators mixed) */
.plans-grid-all {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  grid-auto-rows: 8px;
  gap: 1.5rem;
  align-items: start;
}

.plans-grid-all .plan-card {
  width: 100%;
  align-self: start;
}

.plans-grid-all[aria-busy="true"] {
  pointer-events: none;
}

/* Operator badge on each card */
.operator-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 0.6rem;
}

/* Hidden card */
.plan-card.is-hidden {
  display: none;
}

/* Animate card reveal */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plan-card:not(.is-hidden) {
  animation: cardIn 0.2s ease both;
}

.plan-skeleton {
  min-height: 330px;
  overflow: hidden;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ececf1 25%, #f7f7fa 50%, #ececf1 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

.skeleton-badge {
  width: 34%;
  height: 22px;
}

.skeleton-title {
  width: 72%;
  height: 20px;
}

.skeleton-price {
  width: 48%;
  height: 34px;
  margin: 1rem 0 1.5rem;
}

.skeleton-button {
  height: 42px;
  margin-top: 2rem;
}

@keyframes skeletonPulse {
  to { background-position: -200% 0; }
}

.inline-retry {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--magenta);
  border-radius: 8px;
  background: white;
  color: var(--magenta);
  font-weight: 750;
  cursor: pointer;
}

/* No results */
.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 500;
}

.no-results.visible {
  display: block;
}

/* Responsive: collapse aside on mobile */
@media (max-width: 768px) {
  .filter-drawer-toggle {
    display: inline-flex;
  }

  .page-layout {
    flex-direction: column;
  }

  .plans-content {
    width: 100%;
  }

  .plans-grid-all {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .plans-grid-all .plan-card {
    width: 100%;
    grid-row-end: auto;
  }

  .filter-aside {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 300;
    width: min(90vw, 380px);
    height: 100dvh;
    padding: 1.25rem;
    border: 0;
    border-radius: 18px 0 0 18px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    box-shadow: -16px 0 45px rgba(17, 24, 39, 0.2);
  }

  .filter-aside.is-open {
    transform: translateX(0);
  }

  .filter-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(2px);
  }

  .filter-drawer-open {
    overflow: hidden;
  }

  .catalog-toolbar {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 30;
    padding: 0.5rem 1rem;
    background: rgba(246, 246, 248, 0.9);
    backdrop-filter: blur(10px);
  }
}

@media (min-width: 560px) and (max-width: 768px) {
  .plans-grid-all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 8px;
    gap: 1rem;
  }

  .plans-grid-all .plan-card {
    grid-row-end: auto;
  }

  .plan-card {
    padding: 1.25rem;
  }
}

/* ─────────────────────────────────────────
   COMPARE — floating bar & compare page
───────────────────────────────────────── */

/* ── Floating compare bar (shown on plan pages) ── */
#compare-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  z-index: 100;
  background: var(--charcoal);
  color: white;
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast-region {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, calc(100vw - 2rem));
}

.toast {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
  animation: toastIn 0.22s ease both;
}

.toast-success {
  border-left-color: #16a34a;
}

.toast-warning {
  border-left-color: var(--orange);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
}

#compare-bar.visible {
  transform: translateX(-50%) translateY(0);
}

#compare-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
}

#compare-bar-slots {
  display: flex;
  gap: 0.4rem;
}

.compare-slot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  transition: background 0.2s;
}

.compare-slot.filled {
  background: white;
  border-color: white;
}

#compare-bar-go {
  background: var(--magenta);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

#compare-bar-go:hover {
  background: #c01455;
}

#compare-bar-clear {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

#compare-bar-clear:hover {
  color: white;
}

/* ── Compare button on each plan card ── */
.compare-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.compare-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.compare-btn.selected {
  background: var(--magenta);
  border-color: var(--magenta);
  color: white;
}

/* ── Compare page layout ── */
.compare-page {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  background: var(--fog);
}

.compare-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.compare-page .section-header {
  margin-bottom: 2rem;
}

.compare-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.compare-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compare-share-btn,
.compare-clear-btn {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-weight: 750;
  cursor: pointer;
}

.compare-share-btn {
  border: 1px solid var(--purple);
  background: var(--purple);
  color: white;
}

.compare-clear-btn {
  border: 1px solid var(--border);
  background: white;
  color: #6b7280;
}

/* Empty state */
.compare-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #9ca3af;
}

.compare-empty h3 {
  margin-bottom: 0.35rem;
  color: #111827;
  font-size: 1.35rem;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.compare-empty .secondary-empty-link {
  border: 1px solid var(--purple);
  background: transparent;
  color: var(--purple);
}

.compare-empty .secondary-empty-link:visited {
  color: var(--purple);
}

.compare-empty p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.compare-empty a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--magenta);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.compare-empty a:hover {
  background: #c01455;
}

.compare-empty .secondary-empty-link:hover {
  /* background: rgba(106, 27, 154, 0.08); */
  /* color: var(--purple); */
  background: var(--purple);
  color: white;
}

/* Table wrapper — horizontal scroll on small screens */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  min-width: 480px;
  table-layout: fixed;
}

.compare-table-1 {
  min-width: min(560px, 100%);
}

.compare-table-2 {
  min-width: min(760px, 100%);
}

.compare-table-3 {
  min-width: 900px;
}

.compare-table-4 {
  min-width: 1080px;
}

/* Header row */
.compare-table thead th {
  padding: 1.25rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid #f3f4f6;
}

.compare-table thead th:first-child {
  width: 160px;
  background: var(--fog);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  vertical-align: middle;
}

.compare-table thead th:not(:first-child),
.compare-table tbody td {
  width: calc((100% - 160px) / var(--compare-count, 1));
}

.compare-table-1 thead th:first-child {
  width: 180px;
}

.compare-table-1 thead th:not(:first-child),
.compare-table-1 tbody td {
  width: calc(100% - 180px);
}

/* Plan column header */
.compare-plan-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.compare-plan-header .operator-badge {
  align-self: flex-start;
}

.compare-plan-name {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.compare-plan-price-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}

.compare-plan-period {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.compare-remove-btn {
  margin-top: 0.5rem;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.compare-remove-btn:hover {
  border-color: #fca5a5;
  color: #dc2626;
}

/* Body rows */
.compare-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: #fafafa;
}

.compare-table tbody tr.has-difference {
  background: rgba(216, 27, 96, 0.025);
}

.compare-table tbody th {
  padding: 0.85rem 1rem;
  background: var(--fog);
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.difference-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(216, 27, 96, 0.1);
  color: var(--magenta);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: top;
}

.compare-feature-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1rem;
}

.compare-feature-list li {
  line-height: 1.4;
}

/* Highlight best value in a row */
.compare-table td.best-value {
  color: #16a34a;
  font-weight: 700;
}


/* CTA row */
.compare-cta-row td {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

/* Add plan column */
.compare-add-col {
  min-width: 180px;
  text-align: center;
  vertical-align: middle;
}

.compare-add-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  width: 100%;
}

.compare-add-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.compare-add-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Modern refinement pass */
.hero {
  min-height: min(780px, 100vh);
  background:
    linear-gradient(135deg, rgba(91, 33, 182, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7f4fb 56%, var(--surface-muted) 100%);
}

.hero h1,
.section-title,
.error-card h1 {
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero-highlight {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-eyebrow,
.kicker,
.category-kicker,
.step-number-static {
  letter-spacing: 0.08em;
}

.hero-preview {
  border-color: rgba(227, 231, 239, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.preview-card,
.category-card,
.step-card,
.faq-list,
.filter-aside,
.compare-toolbar,
.compare-table-wrap {
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.preview-card,
.category-card,
.step-card {
  border-radius: var(--radius-md);
}

.category-section,
.recommended-section,
.mobile-section,
.compare-page,
.faq-container {
  background: var(--surface-muted);
}

.category-card,
.step-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover,
.step-card:hover {
  border-color: rgba(214, 31, 105, 0.22);
  box-shadow: var(--shadow-sm);
}

.category-icon {
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.16);
}

.comparison-cta-inner {
  background: var(--gradient-dark);
  box-shadow: var(--shadow-md);
}

.tabs {
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-xs);
}

.tab-button.active {
  color: var(--magenta);
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.08);
}

.catalog-toolbar {
  min-height: 52px;
}

.filter-drawer-toggle,
.filter-select,
.filter-reset-btn,
.inline-retry,
.compare-share-btn,
.compare-clear-btn,
.compare-remove-btn,
.compare-add-btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.filter-drawer-toggle:hover,
.filter-reset-btn:hover,
.inline-retry:hover,
.compare-share-btn:hover,
.compare-clear-btn:hover,
.compare-remove-btn:hover,
.compare-add-btn:hover {
  transform: translateY(-1px);
}

.filter-aside {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.operator-option {
  border: 1px solid transparent;
}

.operator-option:hover {
  border-color: var(--border);
  background: var(--surface-muted);
}

.filter-select,
.filter-reset-btn {
  min-height: 40px;
  border-radius: var(--radius-sm);
}

.filter-select:focus {
  border-color: var(--magenta);
  box-shadow: var(--focus-ring);
}

#compare-bar {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(20, 24, 33, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

#compare-bar-go,
.compare-share-btn {
  background: var(--gradient-accent);
  box-shadow: 0 10px 22px rgba(214, 31, 105, 0.22);
}

.compare-btn {
  min-height: 42px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-muted);
}

.compare-btn:hover {
  background: var(--surface-tinted);
}

.compare-btn.selected {
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(214, 31, 105, 0.18);
}

.toast {
  border-radius: var(--radius-md);
}

.compare-toolbar {
  border-radius: var(--radius-md);
}

.compare-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
}

.compare-table {
  border-radius: var(--radius-lg);
}

.compare-table thead th {
  background: #fff;
}

.compare-table thead th:first-child,
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8f9fc;
}

.compare-table tbody tr:hover {
  background: #fbfcff;
}

.compare-table tbody tr.has-difference {
  background: rgba(214, 31, 105, 0.035);
}

.difference-badge {
  background: var(--accent-soft);
}

.compare-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-xs);
}

.compare-empty a {
  border-radius: var(--radius-sm);
}
