
.why {
  padding: var(--panel-gutter);
}

.why-panel {
  background: var(--surface-panel);
  color: var(--ink-primary);
  border-radius: var(--ds-radius-16);
  padding: var(--space-section) var(--panel-inset);
}

.why-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.why-title {
  margin: 0;
  color: var(--ink-primary);
  text-wrap: balance;
}

.why-title-alt {
  color: var(--ink-brand);
}

.why-sub {
  margin: var(--space-4) 0 0;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr);
    align-items: stretch;
  }
}

.why-block {
  border-radius: var(--ds-radius-12);
  background: var(--ds-background-100);
  padding: var(--space-5);
}

.why-block-label {
  margin: 0 0 var(--space-4);
  color: var(--ink-secondary);
  text-transform: uppercase;
}

.why-conditions {
  display: flex;
  flex-direction: column;
}

.why-conditions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.why-condition-item {
  flex: 1;
  display: flex;
}

.why-condition-item + .why-condition-item {
  border-top: 1px solid var(--border-subtle);
}

.why-condition {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  margin-inline: calc(-1 * var(--space-2));
  border-radius: var(--ds-radius-6);
  color: var(--ink-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color var(--ds-duration-fast) var(--ds-ease);
}

.why-condition svg {
  flex: none;
  color: var(--ink-secondary);
  transition: translate var(--ds-duration-fast) var(--ds-ease),
    color var(--ds-duration-fast) var(--ds-ease);
}

@media (hover: hover) {
  .why-condition:hover {
    background: var(--surface-panel);
  }

  .why-condition:hover svg {
    translate: 2px 0;
    color: var(--ink-primary);
  }
}

.why-stat-card {
  border-radius: var(--ds-radius-12);
  background: var(--surface-panel);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.why-stat-card + .why-stat-card {
  margin-top: var(--space-3);
}

.why-stat-value {
  margin: 0;
  font-family: var(--ds-font-mono);
  font-weight: 500;
  font-size: clamp(30px, 24px + 1.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.why-stat-line {
  margin: var(--space-2) 0 0;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
}

.why-timeline {
  display: flex;
  align-items: center;
}

.why-steps {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .why-steps {
    justify-content: space-between;
    gap: var(--space-7);
    min-height: 320px;
  }
}

.why-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed var(--ds-gray-400);
}

.why-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
}

.why-step-dot {
  grid-column: 2;
  justify-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-accent-600);
}

.why-step-num {
  color: var(--ink-secondary);
}

.why-step-label {
  color: var(--ink-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.why-step .why-step-num {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: var(--space-2);
}

.why-step .why-step-label {
  grid-column: 3;
  grid-row: 1;
  text-align: start;
}

@media (min-width: 1024px) {
  .why-step:nth-child(even) .why-step-num {
    grid-column: 3;
    justify-self: start;
    margin-right: 0;
    margin-left: var(--space-2);
  }

  .why-step:nth-child(even) .why-step-label {
    grid-column: 1;
    text-align: end;
  }
}

[data-reveal-armed] .why-timeline .why-steps::before {
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 700ms var(--ds-ease-out) 100ms;
}

[data-reveal-armed] .why-timeline.is-revealed .why-steps::before {
  transform: scaleY(1);
}

[data-reveal-armed] .why-timeline .why-step-dot {
  opacity: 0;
  scale: 0.4;
  transition: scale 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 200ms var(--ds-ease);
}

[data-reveal-armed] .why-timeline .why-step:nth-child(1) .why-step-dot {
  transition-delay: 300ms;
}

[data-reveal-armed] .why-timeline .why-step:nth-child(2) .why-step-dot {
  transition-delay: 550ms;
}

[data-reveal-armed] .why-timeline .why-step:nth-child(3) .why-step-dot {
  transition-delay: 800ms;
}

[data-reveal-armed] .why-timeline.is-revealed .why-step-dot {
  opacity: 1;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-armed] .why-timeline .why-steps::before {
    transform: scaleY(1);
    transition: none;
  }

  [data-reveal-armed] .why-timeline .why-step-dot {
    opacity: 1;
    scale: 1;
    transition: none;
  }
}

.why-footnote {
  margin: var(--space-5) 0 0;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.why-cite {
  font-size: 11px;
  line-height: 0;
  margin-left: 2px;
}

.why-cite a,
.why-footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--ds-gray-500);
}

@media (hover: hover) {
  .why-cite a:hover,
  .why-footnote a:hover {
    text-decoration-color: var(--ink-brand);
  }
}
