/* ==========================================================================
   Advanced Home Security: Upgrade Promotions Page Styles
   v1.0 LEAN Pattern Match
   ========================================================================== */

/* ── Clean & User-Friendly 2-Column Hero ── */
.hs-hero-wrap {
  background: #041222;
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Subtle background glow behind the text */
.hs-hero-wrap::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .pulse-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.hero-headline {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-headline-highlight {
  background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subhead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

/* Feature Badges */
.hero-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 2.5rem;
}

.hero-feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hero-feature-badge i {
  color: #38bdf8;
  font-size: 1.1rem;
}

/* Image styling */
.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 991px) {
  .hs-hero-wrap {
    padding: 3rem 0 4rem;
    text-align: center;
  }

  .hero-subhead {
    margin: 0 auto 2rem;
  }

  .hero-eyebrow,
  .hero-feature-badges {
    justify-content: center;
  }

  .hero-image-wrapper {
    margin-top: 3rem;
    aspect-ratio: 16/9;
  }

  .hero-image-wrapper img {
    aspect-ratio: 16/9;
  }

  .hero-floating-card {
    bottom: 10px;
    left: 10px;
    right: 10px;
    justify-content: center;
  }
}

/* ── Current Offers Callout ── */
.offers-callout-wrap {
  position: relative;
  z-index: 20;
  margin-top: -100px;
  margin-bottom: 4rem;
}

.offers-callout-premium {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.offers-title {
  font-family: var(--fh);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.offer-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s cubic-bezier(.25, .46, .45, .94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.offer-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.offer-card h4 {
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.offer-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Standard Content Sections ── */
.upgrade-section {
  padding: 5rem 0;
}

.upgrade-section.bg-light-blue {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}


/* ── Tables ── */
.table-responsive {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hs-table {
  width: 100%;
  margin-bottom: 0;
  background: #fff;
}

.hs-table th {
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--fh);
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
}

.hs-table td {
  padding: 1.25rem 1.5rem;
  color: #334155;
  font-size: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.hs-table tbody tr:last-child td {
  border-bottom: none;
}

.hs-table tbody tr:hover {
  background-color: #f8fafc;
}

.table-icon {
  color: #0ea5e9;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* ── Honest Framing Grid ── */
.framing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.framing-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.framing-card.worth-it {
  border-top: 4px solid #10b981;
}

.framing-card.not-worth-it {
  border-top: 4px solid #ef4444;
}

.framing-card h4 {
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.framing-card.worth-it h4 {
  color: #10b981;
}

.framing-card.not-worth-it h4 {
  color: #ef4444;
}

.framing-card p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.advisor-take {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 1.5rem 2rem;
  border-radius: 0 1rem 1rem 0;
  margin-top: 2rem;
}

.advisor-take h4 {
  color: #0369a1;
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advisor-take p {
  color: #334155;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Why HSC Cards ── */
.hsc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hsc-feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.hsc-feature-card:hover {
  transform: translateY(-5px);
}

.hsc-feature-icon {
  width: 60px;
  height: 60px;
  background: #f0f9ff;
  color: #0ea5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.hsc-feature-card h4 {
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.hsc-feature-card p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── FAQs ── */
.faq-accordion .accordion-item {
  border: none;
  background: #fff;
  border-radius: 1rem !important;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  padding: 1.25rem 1.5rem;
  background: #fff;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #0ea5e9;
  background: #f8fafc;
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230ea5e9' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.faq-accordion .accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  background: #f8fafc;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .framing-grid {
    grid-template-columns: 1fr;
  }

  .offers-callout {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .offers-content ul {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 767.98px) {
  .hs-hero-wrap {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .sec-h {
    font-size: 2rem;
  }

  .hs-hero-ctas {
    width: 100%;
  }

  .hs-hero-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Split Intro Math Layout ── */
.up-intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.up-intro-img-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Decorative tilted background behind image */
.up-intro-img-wrap::before {
  content: '';
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: -14px;
  right: -14px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-radius: 28px;
  z-index: -1;
  transform: rotate(-3deg);
}

.up-intro-img-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(5, 65, 98, .12);
  flex: 1;
}

.up-intro-img-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Floating badge on image */
.up-intro-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(5, 65, 98, .1);
  z-index: 3;
}

.up-intro-img-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #054162, #0899e6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(5, 65, 98, .3);
}

.up-intro-img-badge-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
}

.up-intro-img-badge-text {
  font-size: .92rem;
  font-weight: 800;
  color: #0f172a;
}

/* Content side */
.up-intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.up-intro-content .sec-p {
  text-align: left;
  margin-left: 0;
  text-align: justify;
}

/* Full Width Dark CTA Banner */
.up-mini-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
  .up-intro-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .up-intro-img-frame img {
    height: auto;
    max-height: 450px;
  }
}

/* ── Upgrade Tier Cards ── */
.upgrade-tier-card {
  position: relative;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upgrade-tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
}

.upgrade-tier-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid #f0f9ff;
}

.upgrade-tier-icon {
  position: absolute;
  top: 196px;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
  border: 4px solid #fff;
  z-index: 2;
}

.upgrade-tier-body {
  padding: 2.5rem 1.5rem 1.5rem;
  flex-grow: 1;
}

.upgrade-tier-title {
  font-family: var(--fh);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.upgrade-tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upgrade-tier-list li {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.upgrade-tier-list li strong {
  color: #0f172a;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

/* ── Upgrade Feature Dark Table ── */
.up-feature-section {
  padding: 7rem 0;
  background: #0c1524;
  position: relative;
  overflow: hidden;
}

.up-feature-bg-texture {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.up-feature-glow {
  position: absolute;
  top: -150px;
  left: 30%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.up-feature-table-wrap {
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.up-feature-table {
  width: 100%;
  border-collapse: collapse;
}

.up-feature-table thead th {
  background: rgba(14, 165, 233, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 2rem;
  text-align: left;
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
}

.up-feature-table tbody td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.up-feature-table tbody tr:last-child td {
  border-bottom: none;
}

.up-feature-table tbody td:first-child {
  font-family: var(--fh);
  font-weight: 800;
  color: #f1f5f9;
  font-size: 1rem;
  min-width: 180px;
  white-space: nowrap;
}

.up-feature-table tbody td:last-child {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.65;
}

.up-feature-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.up-feature-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.up-feature-icon i {
  color: #38bdf8;
  font-size: 1.15rem;
}

@media (max-width: 767px) {
  .up-feature-table thead {
    display: none;
  }

  .up-feature-table,
  .up-feature-table tbody,
  .up-feature-table tr,
  .up-feature-table td {
    display: block;
  }

  .up-feature-table tbody td:first-child {
    padding-bottom: 0.25rem;
    border-bottom: none;
    white-space: normal;
  }

  .up-feature-table tbody td:last-child {
    padding-top: 0.25rem;
    padding-bottom: 1.5rem;
  }

  .up-feature-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .up-feature-table tbody tr:last-child {
    border-bottom: none;
  }
}