/* ==========================================================
   subpage.css — Asurgo
   Shared styles for final expense sub-pages and similar
   deep-content pages. Import after components.css.
   ========================================================== */

/* ============================
   BREADCRUMB
   ============================ */

.subpage-breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px var(--side-padding) 0;
}
.subpage-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--color-dark);
  opacity: 0.7;
}
.subpage-breadcrumb__list li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
  opacity: 0.5;
}
.subpage-breadcrumb__list a {
  color: var(--color-blue);
  text-decoration: none;
}
.subpage-breadcrumb__list a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

/* ============================
   COMPACT HERO
   ============================ */

.subpage-hero {
  background: var(--color-tan);
  padding: 40px 0 64px;
}
.subpage-hero .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}
.subpage-hero__eyebrow {
  font: 700 11px/1 var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-orange);
  display: block;
  margin-bottom: 16px;
}
.subpage-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 700px;
}
.subpage-hero__sub {
  font-size: 17px;
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

/* ============================
   CONTENT SECTIONS
   ============================ */

.sp-section {
  padding: 80px 0;
}
.sp-section--tan   { background: var(--color-tan); }
.sp-section--white { background: var(--color-white); }
.sp-section--light { background: var(--color-light); }
.sp-section--blue  { background: var(--color-blue); }

.sp-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}
.sp-inner--wide {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.sp-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.sp-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--color-blue);
  margin-bottom: 20px;
  line-height: 1.15;
}
.sp-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-dark);
  margin-bottom: 18px;
}
.sp-section p:last-child { margin-bottom: 0; }
.sp-section a:not(.btn):not(.btn--ghost-white) {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sp-section a:not(.btn):not(.btn--ghost-white):hover { color: var(--color-orange); }
.sp-section h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-blue);
  margin: 32px 0 12px;
  line-height: 1.25;
}

/* ============================
   KEY FACTS (3-stat strip)
   ============================ */

.key-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0 0;
  border: 1.5px solid var(--color-secondary-tan);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
}
.key-fact {
  padding: 28px 24px;
  border-right: 1.5px solid var(--color-secondary-tan);
  text-align: center;
}
.key-fact:last-child { border-right: none; }
.key-fact__icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}
.key-fact__value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 4px;
  line-height: 1.2;
}
.key-fact__label {
  font-size: 13px;
  color: var(--color-dark);
  opacity: 0.75;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .key-facts { grid-template-columns: 1fr; }
  .key-fact {
    border-right: none;
    border-bottom: 1.5px solid var(--color-secondary-tan);
    padding: 20px 24px;
  }
  .key-fact:last-child { border-bottom: none; }
}

/* ============================
   PROCESS STEPS
   ============================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
  position: relative;
}
.process-steps--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.process-steps--5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-orange) 0, var(--color-orange) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(16,73,117,0.06);
  position: relative;
  z-index: 1;
}
.sp-section--tan .process-step { background: var(--color-white); }
.sp-section--white .process-step { background: var(--color-tan); }
.process-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(16,73,117,0.25);
}
.process-step h3 {
  font-size: 15px;
  color: var(--color-blue);
  margin: 0 0 10px;
}
.process-step p {
  font-size: 13px;
  color: var(--color-dark);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .process-steps::before { display: none; }
}

/* ============================
   COMPARE TABLE (mobile cards)
   ============================ */

.compare-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--color-secondary-tan);
  margin: 32px 0;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.compare-table th {
  background: var(--color-blue);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}
.compare-table td {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-secondary-tan);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: var(--color-tan); }
.compare-table td:first-child {
  font-weight: 600;
  color: var(--color-blue);
}

@media (max-width: 600px) {
  .compare-wrap {
    overflow-x: unset;
    border: none;
    border-radius: 0;
  }
  .compare-table { min-width: unset; }
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1.5px solid var(--color-secondary-tan);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-white);
  }
  .compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--color-secondary-tan);
  }
  .compare-table tr td:last-child { border-bottom: none; }
  .compare-table td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 100px;
  }
  .compare-table td:first-child {
    background: var(--color-blue);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 15px;
    display: block;
  }
  .compare-table td:first-child::before { display: none; }
  .compare-table tbody tr:nth-child(even) td { background: transparent; }
  .compare-table tbody tr:nth-child(even) td:first-child { background: var(--color-blue); }
}

/* ============================
   WHO / ELIGIBILITY CARDS
   ============================ */

.who-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 36px 0;
}
.who-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 20px;
  border-left: 4px solid var(--color-blue);
  box-shadow: 0 2px 12px rgba(16,73,117,0.06);
}
.sp-section--white .who-card { background: var(--color-tan); }
.who-card__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-orange);
  margin-bottom: 8px;
}
.who-card h3 {
  font-size: 16px;
  color: var(--color-blue);
  margin: 0 0 10px;
}
.who-card p {
  font-size: 14px;
  color: var(--color-dark);
  line-height: 1.6;
  margin: 0;
}

.who-cards--4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ============================
   MYTH / FACT CARDS
   ============================ */

.myth-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
.myth-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(16,73,117,0.06);
}
.myth-card__header {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #C0392B;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.myth-card__header::before {
  content: '✕';
  font-size: 14px;
  flex-shrink: 0;
}
.myth-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 10px;
}
.myth-card p {
  font-size: 14px;
  color: var(--color-dark);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) { .myth-cards { grid-template-columns: 1fr; } }

/* ============================
   INLINE CTA (blue band)
   ============================ */

.inline-cta {
  background: var(--color-blue);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 48px 0;
}
.inline-cta__text { flex: 1; }
.inline-cta__text h3 {
  font-size: 20px;
  color: var(--color-white);
  margin: 0 0 6px;
}
.inline-cta__text p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.btn--ghost-white {
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 768px) {
  .inline-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
    text-align: center;
  }
  .btn--ghost-white { text-align: center; }
}

/* ============================
   PLAN TYPE CARDS
   ============================ */

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.plan-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 20px;
  border: 2px solid transparent;
  box-shadow: 0 2px 12px rgba(16,73,117,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.plan-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 8px 32px rgba(16,73,117,0.12);
}
.plan-card--featured { border-color: var(--color-orange); }
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-orange);
  color: white;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.plan-card h3 {
  font-size: 16px;
  color: var(--color-blue);
  margin: 0 0 6px;
}
.plan-card__sub {
  font-size: 12px;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.plan-card p {
  font-size: 14px;
  color: var(--color-dark);
  line-height: 1.55;
  margin-bottom: 12px;
}
.plan-card__pros {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan-card__pros li {
  font-size: 13px;
  color: var(--color-dark);
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.45;
}
.plan-card__pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 700;
  font-size: 12px;
}

.plan-cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============================
   PROS / CONS CARDS
   ============================ */

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.pros-cons-card {
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(16,73,117,0.06);
}
.pros-cons-card--pro {
  background: var(--color-light);
  border-top: 4px solid #27AE60;
}
.pros-cons-card--con {
  background: var(--color-white);
  border-top: 4px solid #C0392B;
}
.pros-cons-card__header {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.pros-cons-card--pro .pros-cons-card__header { color: #27AE60; }
.pros-cons-card--con .pros-cons-card__header { color: #C0392B; }
.pros-cons-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros-cons-card li {
  font-size: 14px;
  color: var(--color-dark);
  line-height: 1.55;
  padding: 6px 0 6px 22px;
  position: relative;
}
.pros-cons-card--pro li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27AE60;
  font-weight: 800;
}
.pros-cons-card--con li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #C0392B;
  font-weight: 800;
}

@media (max-width: 768px) { .pros-cons-grid { grid-template-columns: 1fr; } }

/* ============================
   COST BAR CHART
   ============================ */

.cost-chart { margin: 40px 0; }
.cost-chart__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 20px;
}
.cost-chart__legend {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--color-dark);
  font-weight: 500;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cost-row { margin-bottom: 20px; }
.cost-row__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.cost-row__age {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue);
}
.cost-row__range {
  font-size: 13px;
  color: var(--color-dark);
  opacity: 0.7;
}
.cost-bar-track {
  background: rgba(204,198,187,0.4);
  border-radius: 100px;
  height: 28px;
  overflow: hidden;
  position: relative;
}
.cost-bar {
  height: 100%;
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.cost-bar--10k { background: var(--color-blue); }
.cost-bar--20k { background: var(--color-orange); }
.cost-bar.animated { width: var(--bar-width); }

/* ============================
   RELATED TOPICS GRID
   ============================ */

.related-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.related-topics .card { text-decoration: none; }
.related-topics .card h3 { font-size: 18px; margin-bottom: 8px; }
.related-topics .card p {
  font-size: 15px;
  color: var(--color-dark);
  opacity: 0.8;
  margin: 0;
}

/* auto-fit handles responsive columns */

/* ============================
   RESPONSIVE SPACING
   ============================ */

@media (max-width: 768px) { .sp-section { padding: 56px 0; } }
@media (max-width: 480px) { .sp-section { padding: 40px 0; } }
