/* ─── Subpage Hero ─── */
.subpage-hero {
  background-color: #0A2540;
  background-size: cover;
  background-position: center;
  padding: 80px 0 56px;
  text-align: center;
}

.subpage-hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: balance;
}

.subpage-hero h1 mark {
  background: none;
  color: #FBBF24;
}

.subpage-hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.subpage-hero__eyebrow {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FBBF24;
  margin: 0 0 12px;
}

.subpage-hero .hcp-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}

/* ─── Pain Points ─── */
.subpage-pain-points {
  padding: 72px 0;
}

.subpage-pain-points h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0A2540;
  text-align: center;
  margin: 0 0 12px;
}

.subpage-pain-points__intro {
  font-size: 17px;
  color: #4b5563;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}

.pain-card {
  background: #F5F7FA;
  border-radius: 8px;
  padding: 28px 24px;
}

.pain-card__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.pain-card__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A2540;
  margin: 0 0 8px;
}

.pain-card__desc {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ─── Solutions for this trade ─── */
.subpage-solutions {
  padding: 72px 0;
  background: #F5F7FA;
}

.subpage-solutions h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0A2540;
  text-align: center;
  margin: 0 0 40px;
}

/* ─── How It Works ─── */
.subpage-how-it-works {
  padding: 72px 0;
}

.subpage-how-it-works h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0A2540;
  text-align: center;
  margin: 0 0 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  text-align: center;
  padding: 0 16px;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0A2540;
  color: #FBBF24;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A2540;
  margin: 0 0 8px;
}

.step-card__desc {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ─── Problem section (solution pages) ─── */
.subpage-problem {
  padding: 72px 0;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 768px) {
  .problem-layout { grid-template-columns: 1.4fr 1fr; }
}

.problem-content h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #0A2540;
  margin: 0 0 16px;
}

.problem-content p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 12px;
}

.problem-content ul {
  padding-left: 20px;
  margin: 0;
}

.problem-content li {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 6px;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: #0A2540;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
}

.stat-card__value {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #FBBF24;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ─── Benefits ─── */
.subpage-benefits {
  padding: 72px 0;
  background: #F5F7FA;
}

.subpage-benefits h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0A2540;
  text-align: center;
  margin: 0 0 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  border: 1px solid #e5e7eb;
}

.benefit-card__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.benefit-card__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A2540;
  margin: 0 0 8px;
}

.benefit-card__desc {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ─── Related Trades ─── */
.subpage-trades {
  padding: 72px 0;
}

.subpage-trades h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0A2540;
  text-align: center;
  margin: 0 0 32px;
}

.trades-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.trade-pill {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0A2540;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.trade-pill:hover {
  border-color: #FBBF24;
  background: rgba(251,191,36,0.08);
}

/* ─── Dark mode (existing components) ─── */
[data-theme="dark"] .subpage-pain-points h2,
[data-theme="dark"] .subpage-solutions h2,
[data-theme="dark"] .subpage-how-it-works h2,
[data-theme="dark"] .subpage-problem .problem-content h2,
[data-theme="dark"] .subpage-benefits h2,
[data-theme="dark"] .subpage-trades h2 {
  color: #F0F2F5;
}

[data-theme="dark"] .subpage-pain-points__intro,
[data-theme="dark"] .pain-card__desc,
[data-theme="dark"] .step-card__desc,
[data-theme="dark"] .problem-content p,
[data-theme="dark"] .problem-content li,
[data-theme="dark"] .benefit-card__desc {
  color: #9CA3AF;
}

[data-theme="dark"] .pain-card {
  background: #162232;
}

[data-theme="dark"] .pain-card__title,
[data-theme="dark"] .step-card__title,
[data-theme="dark"] .benefit-card__title {
  color: #F0F2F5;
}

[data-theme="dark"] .subpage-solutions {
  background: #0F1923;
}

[data-theme="dark"] .subpage-benefits {
  background: #0F1923;
}

[data-theme="dark"] .benefit-card {
  background: #162232;
  border-color: #1E3148;
}

[data-theme="dark"] .step-card__number {
  background: #162232;
  color: #FBBF24;
}

[data-theme="dark"] .trade-pill {
  color: #F0F2F5;
  border-color: #1E3148;
}

[data-theme="dark"] .trade-pill:hover {
  border-color: #FBBF24;
  background: rgba(251,191,36,0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .subpage-pain-points h2,
  :root:not([data-theme="light"]) .subpage-solutions h2,
  :root:not([data-theme="light"]) .subpage-how-it-works h2,
  :root:not([data-theme="light"]) .subpage-problem .problem-content h2,
  :root:not([data-theme="light"]) .subpage-benefits h2,
  :root:not([data-theme="light"]) .subpage-trades h2 {
    color: #F0F2F5;
  }

  :root:not([data-theme="light"]) .subpage-pain-points__intro,
  :root:not([data-theme="light"]) .pain-card__desc,
  :root:not([data-theme="light"]) .step-card__desc,
  :root:not([data-theme="light"]) .problem-content p,
  :root:not([data-theme="light"]) .problem-content li,
  :root:not([data-theme="light"]) .benefit-card__desc {
    color: #9CA3AF;
  }

  :root:not([data-theme="light"]) .pain-card {
    background: #162232;
  }

  :root:not([data-theme="light"]) .pain-card__title,
  :root:not([data-theme="light"]) .step-card__title,
  :root:not([data-theme="light"]) .benefit-card__title {
    color: #F0F2F5;
  }

  :root:not([data-theme="light"]) .subpage-solutions {
    background: #0F1923;
  }

  :root:not([data-theme="light"]) .subpage-benefits {
    background: #0F1923;
  }

  :root:not([data-theme="light"]) .benefit-card {
    background: #162232;
    border-color: #1E3148;
  }

  :root:not([data-theme="light"]) .step-card__number {
    background: #162232;
    color: #FBBF24;
  }

  :root:not([data-theme="light"]) .trade-pill {
    color: #F0F2F5;
    border-color: #1E3148;
  }

  :root:not([data-theme="light"]) .trade-pill:hover {
    border-color: #FBBF24;
    background: rgba(251,191,36,0.1);
  }
}


/* ═══════════════════════════════════════════════════════════
   NEW COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* ─── Phone Mockup ─── */
.phone-mockup {
  width: 280px;
  margin: 0 auto;
  background: #1C1C1E;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

.phone-mockup__screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding-bottom: 16px;
}

.phone-mockup__screen::before {
  content: '';
  display: block;
  width: 120px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-mockup__header {
  text-align: center;
  padding: 8px 16px 12px;
  border-bottom: 1px solid #E5E5EA;
}

.phone-mockup__contact {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.phone-mockup__messages {
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-msg {
  max-width: 82%;
  padding: 9px 14px;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.phone-msg--sent {
  background: #0A84FF;
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

.phone-msg--received {
  background: #E5E5EA;
  color: #1C1C1E;
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
}

.phone-msg__time {
  display: block;
  text-align: center;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  color: #8E8E93;
  padding: 6px 0 2px;
}

/* Phone Mockup — dark mode */
[data-theme="dark"] .phone-mockup__screen {
  background: #000;
}

[data-theme="dark"] .phone-mockup__contact {
  color: #fff;
}

[data-theme="dark"] .phone-mockup__header {
  border-bottom-color: #3A3A3C;
}

[data-theme="dark"] .phone-msg--received {
  background: #3A3A3C;
  color: #F0F2F5;
}

[data-theme="dark"] .phone-msg__time {
  color: #636366;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone-mockup__screen {
    background: #000;
  }

  :root:not([data-theme="light"]) .phone-mockup__contact {
    color: #fff;
  }

  :root:not([data-theme="light"]) .phone-mockup__header {
    border-bottom-color: #3A3A3C;
  }

  :root:not([data-theme="light"]) .phone-msg--received {
    background: #3A3A3C;
    color: #F0F2F5;
  }

  :root:not([data-theme="light"]) .phone-msg__time {
    color: #636366;
  }
}


/* ─── Before / After ─── */
.before-after {
  padding: 72px 0;
}

.before-after .container {
  max-width: 960px;
  margin: 0 auto;
}

.before-after__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .before-after__grid { grid-template-columns: repeat(2, 1fr); }
}

.before-after__col {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 32px;
}

.before-after__col--before {
  border-left: 4px solid #EF4444;
}

.before-after__col--after {
  border-left: 4px solid #22C55E;
}

.before-after__heading {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A2540;
  margin: 0 0 20px;
}

.before-after__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.before-after__item {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
}

.before-after__item:last-child {
  margin-bottom: 0;
}

.before-after__item::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 16px;
  font-weight: 700;
}

.before-after__col--before .before-after__item::before {
  content: '\2717';
  color: #EF4444;
}

.before-after__col--after .before-after__item::before {
  content: '\2713';
  color: #22C55E;
}

/* Before/After — dark mode */
[data-theme="dark"] .before-after__col {
  background: #162232;
  border-color: #1E3148;
}

[data-theme="dark"] .before-after__col--before {
  border-left-color: #EF4444;
}

[data-theme="dark"] .before-after__col--after {
  border-left-color: #22C55E;
}

[data-theme="dark"] .before-after__heading {
  color: #F0F2F5;
}

[data-theme="dark"] .before-after__item {
  color: #9CA3AF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .before-after__col {
    background: #162232;
    border-color: #1E3148;
  }

  :root:not([data-theme="light"]) .before-after__col--before {
    border-left-color: #EF4444;
  }

  :root:not([data-theme="light"]) .before-after__col--after {
    border-left-color: #22C55E;
  }

  :root:not([data-theme="light"]) .before-after__heading {
    color: #F0F2F5;
  }

  :root:not([data-theme="light"]) .before-after__item {
    color: #9CA3AF;
  }
}


/* ─── Split Feature ─── */
.split-feature {
  padding: 72px 0;
}

.split-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 768px) {
  .split-feature__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.split-feature--image-right .split-feature__image {
  order: 0;
}

@media (min-width: 768px) {
  .split-feature--image-right .split-feature__image {
    order: 2;
  }
}

.split-feature__image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.split-feature__content h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #0A2540;
  margin: 0 0 16px;
}

.split-feature__content p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 12px;
}

.split-feature__cta {
  display: inline-block;
  margin-top: 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FBBF24;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.split-feature__cta:hover {
  color: #FCD34D;
}

/* Split Feature — dark mode */
[data-theme="dark"] .split-feature__content h2 {
  color: #F0F2F5;
}

[data-theme="dark"] .split-feature__content p {
  color: #9CA3AF;
}

[data-theme="dark"] .split-feature__image img {
  box-shadow: 0 8px 30px rgba(0,0,0,0.30);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .split-feature__content h2 {
    color: #F0F2F5;
  }

  :root:not([data-theme="light"]) .split-feature__content p {
    color: #9CA3AF;
  }

  :root:not([data-theme="light"]) .split-feature__image img {
    box-shadow: 0 8px 30px rgba(0,0,0,0.30);
  }
}


/* ─── Stats Bar ─── */
.stats-bar {
  background: #0A2540;
  padding: 48px 24px;
}

.stats-bar__grid {
  display: flex;
  justify-content: space-around;
  max-width: 1060px;
  margin: 0 auto;
}

.stats-bar__item {
  text-align: center;
}

.stats-bar__value {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #FBBF24;
}

.stats-bar__label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  max-width: 160px;
  margin: 4px auto 0;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}


/* ─── Section Heading Utility ─── */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0A2540;
  margin: 0 0 12px;
}

.section-heading p {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Section Heading — dark mode */
[data-theme="dark"] .section-heading h2 {
  color: #F0F2F5;
}

[data-theme="dark"] .section-heading p {
  color: #9CA3AF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-heading h2 {
    color: #F0F2F5;
  }

  :root:not([data-theme="light"]) .section-heading p {
    color: #9CA3AF;
  }
}
