/* =====================================================
   Senior Plans Page — v2.0 LEAN
   Color palette: Internet & Phone (#054162 #0899e6 #38bdf8 #7dd3fc)
   Prefix: sp-  (inherits wp- base from wireless-plans.css)
   ===================================================== */

/* =====================================================
   Hero — unique background
   ===================================================== */
.sp-hero-bg {
  background-image: url('../../images/sp-hero.webp');
  background-size: cover;
  background-position: center top;
  position: absolute;
  inset: 0;
}

/* =====================================================
   When Plans Work / Don't Work — comparison cards
   ===================================================== */
.sp-compare-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
}

.sp-compare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(5, 65, 98, 0.06);
  border-color: rgba(8, 153, 230, 0.2);
}

.sp-compare-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #054162, #0899e6, #38bdf8);
  border-radius: 20px 20px 0 0;
}

.sp-compare-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0f9ff;
  color: #0899e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(8, 153, 230, 0.1);
}

.sp-compare-card h4 {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.sp-compare-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* Don't Work cards — red accent */
.sp-compare-card.sp-dont::before {
  background: linear-gradient(90deg, #b91c1c, #ef4444, #f87171);
}

.sp-compare-card.sp-dont .sp-compare-icon {
  background: #fef2f2;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.12);
}

/* =====================================================
   Simple vs Smartphone — Split image cards
   ===================================================== */
.sp-phone-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
  transition: transform 0.35s cubic-bezier(.165, .84, .44, 1), box-shadow 0.35s ease;
}

.sp-phone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(5, 65, 98, 0.18);
}

.sp-phone-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(.165, .84, .44, 1);
}

.sp-phone-card:hover .sp-phone-card-bg {
  transform: scale(1.06);
}

.sp-phone-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(4, 10, 24, 0.08) 0%,
      rgba(4, 10, 24, 0.20) 30%,
      rgba(4, 10, 24, 0.75) 65%,
      rgba(4, 10, 24, 0.95) 100%);
  transition: background 0.3s ease;
}

.sp-phone-card:hover .sp-phone-card-overlay {
  background: linear-gradient(180deg,
      rgba(4, 10, 24, 0.12) 0%,
      rgba(4, 10, 24, 0.25) 30%,
      rgba(4, 10, 24, 0.80) 65%,
      rgba(4, 10, 24, 0.97) 100%);
}

.sp-phone-card-body {
  position: relative;
  z-index: 2;
  padding: 2rem 2.25rem 2.25rem;
}

.sp-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(8, 153, 230, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(8px);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 0.85rem;
}

.sp-phone-card h4 {
  font-family: var(--fh);
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.sp-phone-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.sp-phone-card .sp-best-for {
  font-size: 0.8rem;
  font-weight: 700;
  color: #67e8f9;
  line-height: 1.55;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-phone-card .sp-best-for strong {
  color: #38bdf8;
}

/* =====================================================
   Decision Framework — comparison table style
   ===================================================== */
.sp-decision-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.2s ease;
}

.sp-decision-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.sp-decision-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(8, 153, 230, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  margin-bottom: 1.25rem;
}

.sp-decision-card h4 {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.sp-decision-card p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 767px) {
  .sp-phone-card {
    min-height: 400px;
  }

  .sp-phone-card h4 {
    font-size: 1.15rem;
  }
}