/* ==========================================================================
   ZOOTOM COMPARISON PAGE STYLES & MOBILE OVERRIDES
   ========================================================================== */

/* Universal Logo Display Enforcements (Exact mirror of style.css proportions) */
.brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  background-image: none !important;
  overflow: visible !important;
}

.footer-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  background-image: none !important;
  overflow: visible !important;
}

.visible-logo-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Page Wrapper */
.comp-page-wrapper {
  background: #fbfcfe;
  padding-bottom: 70px;
  position: relative;
}

/* Hero Section */
.comp-hero {
  padding: 50px 0 24px;
}

.comp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
}

.comp-hero-copy {
  max-width: 560px;
}

.comp-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.comp-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #0f172a;
  margin-bottom: 16px;
}

.comp-title-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.comp-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.comp-pills-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.comp-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.comp-pill-icon {
  font-size: 1.1rem;
}

.comp-pill-text strong {
  display: block;
  font-size: 0.825rem;
  line-height: 1.1;
  color: #1e293b;
}

.comp-pill-text span {
  font-size: 0.75rem;
  color: #64748b;
}

/* Hero Visual Stage */
.comp-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-floating-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
}

.kids-hover-target {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(99, 102, 241, 0.08));
  transition: transform 0.4s ease;
  will-change: transform;
}

.hero-floating-stage:hover .kids-hover-target {
  animation: kidsBobbing 3.5s ease-in-out infinite;
}

@keyframes kidsBobbing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Category Filter Tabs */
.comp-filters-container {
  margin: 30px auto 20px;
}

.comp-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comp-filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.2s ease;
  cursor: pointer;
}

.comp-filter-btn:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

.comp-filter-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Matrix Table */
.comp-table-wrapper {
  margin-top: 20px;
}

.comp-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.comp-matrix-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: center;
}

.comp-matrix-table th {
  padding: 22px 14px;
  vertical-align: middle;
}

.col-head-feature {
  width: 32%;
  text-align: left;
  padding-left: 28px !important;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.col-head-brand {
  width: 13.5%;
}

.brand-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.table-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.table-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.col-highlight {
  background-color: #f6f9fe;
}

.comp-matrix-table th.col-highlight {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: #f1f6fe;
}

.comp-category-row td {
  padding: 16px 28px !important;
  background-color: #fafbfc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

.comp-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4f46e5;
}

.comp-matrix-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}

.feat-name {
  text-align: left;
  padding-left: 28px !important;
  font-weight: 500;
  color: #334155;
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.check-plain {
  color: #10b981;
  font-weight: 700;
  font-size: 1.1rem;
}

.check-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.check-badge-premium small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.comp-dash {
  color: #cbd5e1;
  font-weight: 700;
}

/* Where Zootom goes further */
.comp-further-section {
  margin-top: 40px;
}

.comp-further-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.further-left-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.further-shield-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #6366f1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.further-left-copy h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.further-left-copy p {
  font-size: 0.85rem;
  color: #64748b;
}

.further-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.further-mini-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.further-mini-card strong {
  font-size: 0.78rem;
  color: #1e293b;
}

.further-mini-card small {
  font-size: 0.68rem;
  color: #64748b;
}

/* Ecosystem preview card */
.comp-eco-preview-section {
  margin-top: 40px;
}

.comp-eco-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  align-items: center;
}

.eco-preview-left h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 12px;
}

.eco-preview-left p {
  color: #64748b;
  font-size: 0.925rem;
  margin-bottom: 24px;
}

.eco-preview-right-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.eco-feature-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.eco-feature-box .box-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.color-social { background: #ede9fe; color: #7c3aed; }
.color-search { background: #e0f2fe; color: #0284c7; }
.color-ai { background: #f3e8ff; color: #9333ea; }
.color-media { background: #fee2e2; color: #ef4444; }
.color-vr { background: #e0e7ff; color: #4338ca; }
.color-retail { background: #fef3c7; color: #d97706; }

.eco-feature-box strong {
  display: block;
  font-size: 0.85rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.eco-feature-box p {
  font-size: 0.72rem;
  color: #64748b;
}

/* Bottom CTA Banner */
.comp-bottom-cta {
  margin-top: 40px;
}

.bottom-cta-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 50%, #eff6ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.banner-handwriting {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6366f1;
}

.cta-banner-center h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.cta-banner-center p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Mobile Header & Drawer Overrides */
@media (max-width: 900px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: #ffffff !important;
  }

  .mobile-toggle {
    display: flex !important;
    position: relative !important;
    z-index: 100000 !important;
    cursor: pointer !important;
  }

  .nav-actions .btn {
    display: none !important;
  }

  .mobile-nav-drawer {
    display: none;
    position: fixed !important;
    top: var(--header-height, 70px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 99998 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  }

  .mobile-nav-drawer.open {
    display: flex !important;
  }

  .comp-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .comp-hero-copy {
    margin: 0 auto;
  }

  .comp-pills-row {
    justify-content: center;
  }

  .comp-eco-preview-card {
    grid-template-columns: 1fr;
  }

  .bottom-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}