/* ============================================================
   Evidence page (/evidence/)
   Page-specific components only — nav, footer, buttons, fonts,
   and base tokens all come from public/css/styles.css.
   ============================================================ */

/* ---- Section scaffolding ---- */
.st-ev-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.st-ev-section--surface {
  background: var(--st-surface-dim);
}

.st-ev-header {
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
}

.st-ev-header .st-product__desc {
  margin: 16px auto 0;
}

/* Eyebrow above a heading, and the label inside a practice card */
.st-ev-label {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--st-text-secondary);
}

/* ---- Hero ---- */
.st-ev-hero {
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}

.st-ev-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.st-ev-hero .st-hero__h1 {
  max-width: 18ch;
}

.st-ev-hero .st-hero__subtitle {
  max-width: 52ch;
  color: var(--st-text-secondary);
}

.st-ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--st-border);
  border-radius: 9999px;
  background: var(--st-surface-dim);
  font-size: 14px;
  font-weight: 500;
  color: var(--st-text-secondary);
}

.st-ev-badge__star {
  width: 14px;
  height: 14px;
  fill: var(--st-star);
}

.st-ev-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--st-border);
}

.st-ev-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--st-text-secondary);
}

.st-ev-trust__item svg {
  width: 18px;
  height: 18px;
  stroke: var(--st-text-primary);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ---- Practice cards ---- */
.st-ev-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 32px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-lg);
}

.st-ev-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--st-r-md);
  background: #fff4d6; /* soft tint of --st-star */
  flex-shrink: 0;
}

.st-ev-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--st-text-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.st-ev-card__application {
  padding-top: 16px;
  border-top: 1px solid var(--st-border);
}

.st-ev-card__app-text {
  margin: 0;
  font-weight: 500;
}

.st-ev-source {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--st-border);
  font-size: 14px;
  color: var(--st-text-secondary);
}

.st-ev-source svg {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  stroke: var(--st-text-secondary);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.st-ev-source a,
.st-ev-table__source a {
  color: var(--st-text-primary);
  text-decoration: underline;
}

/* ---- Detail sections ---- */
.st-ev-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--st-border);
}

.st-ev-detail:nth-child(even) .st-ev-detail__content {
  order: 2;
}

.st-ev-detail__points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-ev-point {
  display: flex;
  align-items: start;
  gap: 12px;
}

.st-ev-point__check {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
  stroke: var(--st-text-primary);
  fill: none;
}

.st-ev-point__check circle {
  stroke-width: 1.5;
}

.st-ev-point__check path {
  stroke-width: 2.5;
}

.st-ev-detail__visual {
  padding: 32px;
  background: var(--st-surface-dim);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-lg);
}

.st-ev-detail__source {
  align-items: center;
  margin-top: 24px;
}

/* ---- Mini diagram ---- */
.st-ev-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-ev-diagram__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-md);
}

.st-ev-diagram__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--st-black);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.st-ev-diagram__arrow {
  text-align: center;
  line-height: 1;
  color: var(--st-text-secondary);
}

/* ---- Evidence table ---- */
.st-ev-table {
  overflow-x: auto;
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-lg);
  background: var(--st-surface-dim);
}

.st-ev-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.st-ev-table thead {
  background: #f4f3ef; /* one step darker than --st-surface-dim */
}

.st-ev-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--st-text-secondary);
  border-bottom: 1px solid var(--st-border);
}

.st-ev-table td {
  padding: 20px;
  font-size: 15px;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid var(--st-border);
}

.st-ev-table tbody tr:last-child td {
  border-bottom: none;
}

.st-ev-table__practice {
  font-weight: 600;
}

/* ---- CTA ---- */
.st-ev-cta {
  padding: 64px 40px;
  text-align: center;
  background: var(--st-black);
  border-radius: var(--st-r-lg);
  color: #fff;
}

.st-ev-cta__desc {
  max-width: 50ch;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.72);
}

.st-ev-cta .st-btn--ghost {
  background: transparent;
  color: #fff;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.st-ev-btn--light {
  background: #fff;
  color: var(--st-text-primary);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .st-ev-detail {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .st-ev-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .st-ev-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .st-ev-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .st-ev-detail:nth-child(even) .st-ev-detail__content {
    order: 0;
  }

  .st-ev-detail__visual {
    padding: 24px;
  }

  .st-ev-card {
    padding: 24px;
  }

  .st-ev-trust {
    gap: 16px 24px;
    margin-top: 32px;
  }

  .st-ev-trust__item {
    font-size: 13px;
  }

  .st-ev-cta {
    padding: 40px 24px;
  }

  .st-ev-table {
    overflow: visible;
    border: none;
    border-radius: 0;
    background: none;
  }

  .st-ev-table table,
  .st-ev-table tbody,
  .st-ev-table tr,
  .st-ev-table td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .st-ev-table thead {
    display: none;
  }

  .st-ev-table tr {
    padding: 20px;
    margin-bottom: 12px;
    background: var(--st-surface-dim);
    border: 1px solid var(--st-border);
    border-radius: var(--st-r-md);
  }

  .st-ev-table tr:last-child {
    margin-bottom: 0;
  }

  .st-ev-table td,
  .st-ev-table tbody tr:last-child td {
    padding: 0;
    border-bottom: none;
  }

  .st-ev-table__practice {
    margin-bottom: 4px;
  }

  .st-ev-table__source {
    margin-top: 8px;
    font-size: 14px;
  }
}
