/* ==========================================================================
   CPANELFREE MAIN SITE DESIGN UPGRADE (UNIFIED WITH /BLOG/ 2026 SYSTEM)
   ========================================================================== */

/* 1. Unified Dark-Navy Header (Matches /blog/ Signature Bar) */
.cpf-site-header {
  background: linear-gradient(135deg, #07193b 0%, #0b2a63 60%, #0e3375 100%) !important;
  border-top: 3px solid #38bdf8 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 4px 20px rgba(7, 25, 59, 0.2) !important;
}

.cpf-site-header nav a.cpf-nav-link {
  color: #e2e8f0 !important;
  border: 1px solid transparent;
  border-radius: 9999px !important;
  padding: 0.45rem 0.95rem !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cpf-site-header nav a.cpf-nav-link:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.cpf-site-header nav a.cpf-nav-link.is-active {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  font-weight: 700 !important;
}

.cpf-header-login-link {
  color: #cbd5e1 !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  transition: color 0.18s ease, background-color 0.18s ease;
  text-decoration: none;
}

.cpf-header-login-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.cpf-header-start-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9999px !important;
  padding: 0.52rem 1.15rem !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.38) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  text-decoration: none !important;
}

.cpf-header-start-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
}

.cpf-mobile-menu-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

#mobile-menu.cpf-mobile-drawer {
  background: #07193b !important;
  border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
}

#mobile-menu.cpf-mobile-drawer a.cpf-mobile-link {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#mobile-menu.cpf-mobile-drawer a.cpf-mobile-link.is-active {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

/* 2. High-Impact Deep-Navy Hero Section (Bridges Into Workbench) */
.cpf-main-hero {
  background: radial-gradient(circle at 80% 18%, rgba(56, 189, 248, 0.18) 0%, transparent 52%),
              radial-gradient(circle at 18% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
              linear-gradient(180deg, #061534 0%, #0b2a63 68%, #0e3375 100%) !important;
  position: relative;
  overflow: hidden;
  padding-bottom: 4.5rem !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.cpf-main-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

.cpf-main-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.cpf-main-hero .cpf-hero-sub {
  color: #cbd5e1 !important;
}

.cpf-main-hero .cpf-hero-status {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  color: #ecfdf5 !important;
}

.cpf-main-hero .cpf-hero-status .text-emerald-700,
.cpf-main-hero .cpf-hero-status .text-emerald-400 {
  color: #6ee7b7 !important;
}

.cpf-main-hero .cpf-hero-checks {
  color: #e2e8f0 !important;
}

.cpf-main-hero .cpf-hero-anchors a {
  color: #93c5fd !important;
}

.cpf-main-hero .cpf-hero-anchors a:hover {
  color: #ffffff !important;
}

.cpf-main-hero .cpf-hero-secondary-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.cpf-main-hero .cpf-hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

/* Pull Workbench smoothly into Hero bottom edge on desktop */
@media (min-width: 768px) {
  #workbench {
    margin-top: -2.75rem;
    position: relative;
    z-index: 10;
  }
}

/* 3. Card Elevation, Pricing Polish & Responsive Comparison Table */
#plans article,
#plans > div > div {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

#plans article:hover,
#plans > div > div:hover {
  transform: translateY(-4px);
}

#compare .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Cornerstone Guides Cards Polish */
.cpf-hub-grid a {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease !important;
}

.cpf-hub-grid a:hover {
  transform: translateY(-4px) !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 14px 30px rgba(11, 42, 99, 0.08) !important;
}

@media (max-width: 640px) {
  .cpf-main-hero {
    padding-bottom: 2.75rem !important;
  }
}
