/* Path finder — interactive placement (pairs with path_finder.html) */

.dm-page-path-finder .dm-pf-hero {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  background: linear-gradient(
    165deg,
    rgba(243, 246, 255, 0.98) 0%,
    #ffffff 52%,
    rgba(249, 250, 252, 0.95) 100%
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dm-page-path-finder .dm-pf-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-heading);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.dm-page-path-finder .dm-pf-hero__lede {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  color: var(--hs-body);
  font-size: 1.02rem;
}

.dm-pf-shell {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.dm-pf-shell--outcome {
  max-width: 52rem;
}

/* Progress */
.dm-pf-progress {
  margin-bottom: 1.75rem;
  transition: opacity 0.35s ease;
}

.dm-pf-progress.is-complete .dm-pf-progress__track {
  opacity: 0.35;
}

.dm-pf-progress__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.dm-pf-progress__fill {
  height: 100%;
  width: 33.333%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hs-primary) 0%, var(--hs-secondary) 100%);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-pf-progress__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--hs-body);
}

.dm-pf-progress__step-label {
  font-weight: 700;
  color: var(--hs-heading);
  letter-spacing: 0.02em;
}

.dm-pf-progress__hint {
  text-align: right;
  max-width: 16rem;
  line-height: 1.35;
}

/* Wizard card */
.dm-pf-wizard {
  background: var(--hs-white, #fff);
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(25, 35, 53, 0.07);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.dm-pf-panel[hidden] {
  display: none !important;
}

.dm-pf-panel {
  animation: dmPfPanelIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dmPfPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-pf-panel {
    animation: none;
  }
}

.dm-pf-panel__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-primary-dark);
  margin-bottom: 0.35rem;
}

.dm-pf-panel__title {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--hs-heading);
  margin-bottom: 0.35rem;
}

.dm-pf-panel__lede {
  font-size: 0.9375rem;
  color: var(--hs-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.dm-pf-grid {
  display: grid;
  gap: 0.65rem;
}

/* Choice buttons */
.dm-pf-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  margin: 0;
  border: 2px solid rgba(15, 23, 42, 0.09);
  border-radius: 0.85rem;
  background: rgba(248, 250, 252, 0.65);
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.18s ease;
  font: inherit;
}

.dm-pf-choice:hover {
  border-color: rgba(47, 87, 239, 0.32);
  background: #fff;
  transform: translateY(-1px);
}

.dm-pf-choice:focus-visible {
  outline: 3px solid rgba(47, 87, 239, 0.35);
  outline-offset: 2px;
}

.dm-pf-choice:active {
  transform: translateY(0);
}

.dm-pf-choice.is-pressed {
  border-color: rgba(47, 87, 239, 0.55);
  background: linear-gradient(145deg, rgba(47, 87, 239, 0.08), rgba(185, 102, 231, 0.06));
  box-shadow: 0 12px 32px rgba(47, 87, 239, 0.14);
}

.dm-pf-choice__ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(47, 87, 239, 0.1);
  color: var(--hs-primary-dark);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.dm-pf-choice.is-pressed .dm-pf-choice__ico {
  background: var(--hs-primary);
  color: #fff;
}

.dm-pf-choice__main {
  min-width: 0;
}

.dm-pf-choice__title {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--hs-heading);
}

.dm-pf-choice__subtitle {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--hs-body);
  margin-top: 0.15rem;
}

.dm-pf-choice__chevron {
  color: rgba(15, 23, 42, 0.22);
  font-size: 1.15rem;
  transition: transform 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}

.dm-pf-choice:hover .dm-pf-choice__chevron {
  color: var(--hs-primary);
  transform: translateX(3px);
}

.dm-pf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.dm-pf-nav-hint {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--hs-body);
  line-height: 1.4;
  margin: 0;
  text-align: right;
}

.dm-pf-nav .btn-link {
  color: var(--hs-body);
  text-decoration: none;
  font-weight: 600;
  padding-left: 0;
}

.dm-pf-nav .btn-link:hover {
  color: var(--hs-primary-dark);
}

/* Outcome */
.dm-pf-outcome {
  border-radius: 1rem;
  border: 1px solid rgba(47, 87, 239, 0.22);
  background: linear-gradient(165deg, rgba(47, 87, 239, 0.07), #fff 42%);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: 0 20px 50px rgba(47, 87, 239, 0.08);
  animation: dmPfOutcomeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dmPfOutcomeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-pf-outcome {
    animation: none;
  }
}

.dm-pf-outcome[hidden] {
  display: none !important;
}

.dm-pf-outcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  margin-bottom: 0.75rem;
}

.dm-pf-outcome__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .dm-pf-outcome__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
    align-items: start;
  }
}

.dm-pf-outcome__title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-heading);
  margin-bottom: 0.5rem;
}

.dm-pf-outcome__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hs-body);
  margin-bottom: 1.25rem;
}

.dm-pf-outcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dm-pf-recap {
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(25, 35, 53, 0.05);
}

.dm-pf-recap__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-heading);
  margin-bottom: 0.65rem;
}

.dm-pf-recap__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--hs-body);
}

.dm-pf-recap__list li + li {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.dm-pf-recap__list strong {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hs-heading);
  margin-bottom: 0.12rem;
}

.dm-pf-footnote {
  font-size: 0.8125rem;
  color: var(--hs-body);
  line-height: 1.55;
  margin-top: 1.75rem;
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
