/* Section 2 — shared "Why / patient journey" shell (home + product pillars) */

.ev-s2-why {
  background: var(--ev-section-2-bg, linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%));
  padding: 44px 0 48px;
}

.ev-s2-why > .ev-wrap {
  max-width: var(--ev-section-wrap-max, 1250px);
}

.ev-s2-eyebrow {
  display: table;
  margin: 0 auto 20px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a5fa8;
  background: #eef6fc;
  border: 1px solid #cfe3f5;
  border-radius: 999px;
}

.ev-s2-why--home .ev-s2-eyebrow,
.ev-s2-why--product .ev-s2-eyebrow:has(svg) {
  padding: 8px 18px 8px 14px;
}

.ev-s2-eyebrow-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ev-s2-eyebrow svg {
  flex-shrink: 0;
}

.ev-s2-title {
  margin: 0 auto 12px;
  max-width: var(--ev-section-title-max, 760px);
  text-align: center;
  font-family: var(--ev-section-title-font);
  font-size: var(--ev-section-title-size);
  font-weight: var(--ev-section-title-weight);
  line-height: var(--ev-section-title-line-height);
  letter-spacing: var(--ev-section-title-letter-spacing);
  color: var(--ev-section-title-color);
}

.ev-s2-title .ev-accent {
  color: #2f80ff;
}

.ev-s2-lead {
  margin: 0 auto 40px;
  max-width: var(--ev-section-lead-max, 760px);
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: #5c6b7a;
}

.ev-s2-lead + .ev-s2-lead {
  margin-top: -28px;
}

.ev-s2-lead--second {
  margin-bottom: 40px;
}

/* Product pages — 3 benefit cards, full section width */
.ev-s2-cards--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 28px;
  align-items: stretch;
}

.ev-s2-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 20px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(11, 35, 64, 0.06);
}

.ev-s2-card-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  object-fit: contain;
}

.ev-s2-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0b163f;
}

.ev-s2-card p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5c6b7a;
}

.ev-s2-card p a {
  color: #2f80ff;
  font-weight: 600;
  text-decoration: none;
}

.ev-s2-card p a:hover {
  text-decoration: underline;
}

.ev-s2-cards--3 .ev-s2-card p {
  min-height: calc(13px * 1.55 * 3);
  max-height: calc(13px * 1.55 * 3);
  overflow: hidden;
}

/* Home — 4-step patient journey */
.ev-s2-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}

.ev-s2-journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 20px 16px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(11, 35, 64, 0.06);
}

.ev-s2-journey-art {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 97px;
  height: auto;
  margin: 6px auto 14px;
  object-fit: contain;
}

.ev-patient-sources .ev-source-art--3d-google {
  max-height: 108px;
}

.ev-patient-sources .ev-source-art--3d-ai {
  max-height: 97px;
}

.ev-s2-journey-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b163f;
}

.ev-s2-journey-card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #3d4f63;
  min-height: calc(14px * 1.45 * 3);
  max-height: calc(14px * 1.45 * 3);
  overflow: hidden;
}

.ev-s2-flow-arrow {
  position: relative;
  flex: 1 1 28px;
  min-width: 16px;
  max-width: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 0;
  padding: 0;
  z-index: 2;
}

.ev-s2-flow-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: #d3dde7;
  z-index: 0;
}

.ev-s2-flow-arrow img {
  position: relative;
  z-index: 1;
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Home section 2 — reuse scorecard CTA band layout */
.ev-s2-why .ev-three-scores-cta {
  width: 100%;
  max-width: none;
  margin: 28px auto 0;
  background: #fff;
  border: 1px solid #d9e8f5;
  box-shadow: 0 8px 24px rgba(11, 22, 63, 0.05);
}
.ev-s2-close {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 52rem;
  margin: 28px auto 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(11, 35, 64, 0.05);
}

.ev-s2-close-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ev-s2-close-copy {
  min-width: 0;
}

.ev-s2-close-lead {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
  color: #0b163f;
}

.ev-s2-close-lead strong {
  font-weight: 800;
}

.ev-s2-close-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5c6b7a;
}

.ev-s2-close-sub a {
  color: #2f80ff;
  font-weight: 600;
  text-decoration: none;
}

.ev-s2-close-sub a:hover {
  text-decoration: underline;
}

.ev-s2-close--cta {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-top: 28px;
}

.ev-s2-close-title {
  margin: 0 0 10px;
  font-family: "Inter Tight", var(--font, "Inter", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0b163f;
}

.ev-s2-close--cta .ev-s2-close-lead {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: #5c6b7a;
}

.ev-s2-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
}

.ev-s2-close-btn:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .ev-s2-flow {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .ev-s2-journey-card {
    flex: 1 1 calc(50% - 24px);
    max-width: 252px;
  }

  .ev-s2-flow-arrow {
    display: none;
  }

  .ev-s2-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ev-s2-cards--3 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .ev-s2-why {
    padding: 36px 0 40px;
  }

  .ev-s2-lead {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .ev-s2-lead + .ev-s2-lead {
    margin-top: -16px;
  }

  .ev-s2-lead--second {
    margin-bottom: 28px;
  }

  .ev-s2-cards--3 {
    max-width: 400px;
  }

  .ev-s2-journey-card {
    flex: 1 1 100%;
    max-width: 306px;
  }

  .ev-s2-close {
    padding: 16px 18px;
  }

  .ev-s2-close--cta {
    margin-top: 28px;
  }

  .ev-s2-close--cta .ev-s2-close-lead {
    font-size: 15px;
  }
}
