/* Pathfinder public website — consumes the Goal 2 design tokens directly. */
:root {
  --site-shell-max: 1240px;
  --site-copy-max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.site-page {
  min-width: 320px;
  background: var(--pf-color-canvas);
  color: var(--pf-color-text);
}

.site-page main {
  overflow: hidden;
}

.site-page a:focus-visible,
.site-page button:focus-visible {
  outline: 2px solid var(--pf-color-border-focus);
  outline-offset: 3px;
}

.site-page h1,
.site-page h2,
.site-page h3,
.site-page p {
  overflow-wrap: anywhere;
}

.site-shell,
.shell {
  width: min(var(--site-shell-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-eyebrow,
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--pf-space-2);
  margin: 0 0 var(--pf-space-4);
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-12);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-eyebrow > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pf-color-accent);
}

.site-hero {
  min-height: calc(100svh - 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(470px, .98fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding-block: clamp(64px, 9vh, 96px);
}

.site-hero > * {
  min-width: 0;
}

.site-hero__copy {
  max-width: 690px;
}

.site-hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.3vw, 72px);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.site-hero__lead {
  max-width: 660px;
  margin: var(--pf-space-6) 0 0;
  color: var(--pf-color-text-secondary);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
}

.site-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--pf-space-2);
  margin-top: var(--pf-space-6);
}

.site-actions .pf-button {
  min-width: 126px;
}

.site-secondary-action {
  border-color: transparent;
  background: transparent;
}

.site-secondary-action:hover {
  border-color: var(--pf-color-border);
}

.site-review-note {
  max-width: 620px;
  display: flex;
  align-items: flex-start;
  gap: var(--pf-space-2);
  margin: var(--pf-space-5) 0 0;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-12);
  line-height: 1.6;
}

.site-review-note__mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--pf-color-accent-border);
  border-radius: 50%;
  background: var(--pf-color-accent-soft);
  color: var(--pf-color-accent);
  font-size: 11px;
  font-weight: 800;
}

.path-visual {
  margin: 0;
  overflow: hidden;
  border: var(--pf-border-strong);
  border-radius: var(--pf-radius-xl);
  background: var(--pf-color-surface-1);
}

.path-visual__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pf-space-4);
  padding: 0 var(--pf-space-5);
  border-bottom: var(--pf-border-hairline);
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-13);
  font-weight: 650;
}

.path-visual__header small {
  color: var(--pf-color-text-muted);
  font-family: var(--pf-font-mono);
  font-size: var(--pf-font-size-11);
  font-weight: 500;
}

.path-visual__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-visual__list li {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pf-space-3);
  padding: 10px var(--pf-space-5);
  border-bottom: var(--pf-border-hairline);
  color: var(--pf-color-text-secondary);
}

.path-visual__list li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: transparent;
  content: "";
}

.path-visual__list li.is-active {
  background: var(--pf-color-accent-soft);
  color: var(--pf-color-text);
}

.path-visual__list li.is-active::before {
  background: var(--pf-color-accent);
}

.path-visual__index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text-muted);
  font-family: var(--pf-font-mono);
  font-size: 10px;
}

.is-active .path-visual__index {
  border-color: var(--pf-color-accent-border);
  color: var(--pf-color-accent);
}

.path-visual__list li > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--pf-space-3);
}

.path-visual__list strong {
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-14);
}

.path-visual__list li > div > span,
.path-visual__list li > small {
  font-size: var(--pf-font-size-12);
}

.path-visual__list li > small {
  color: var(--pf-color-text-muted);
  white-space: nowrap;
}

.path-visual__status {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: var(--pf-space-3);
  padding: var(--pf-space-3) var(--pf-space-5);
  background: var(--pf-color-canvas-deep);
}

.path-visual__status > div {
  display: grid;
  gap: 2px;
}

.path-visual__status small {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
}

.path-visual__status strong {
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-12);
}

.path-visual__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pf-color-accent);
  box-shadow: 0 0 0 5px var(--pf-color-accent-soft);
}

.site-section {
  padding-block: clamp(76px, 9vw, 112px);
  border-top: var(--pf-border-hairline);
}

.site-section__heading {
  max-width: var(--site-copy-max);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.site-section__heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: clamp(32px, 6vw, 80px);
}

.site-section__heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 610;
  line-height: 1.12;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.site-section__heading > p:not(.site-eyebrow),
.site-section__heading--split > p {
  margin: var(--pf-space-5) 0 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-16);
  line-height: 1.7;
}

.site-section__heading--split > p {
  margin: 0 0 4px;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-14);
}

.continuity-section,
.workflow-section {
  background: var(--pf-color-canvas-deep);
}

.continuity-path {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: var(--pf-border-hairline);
  list-style: none;
}

.continuity-path li {
  position: relative;
  min-width: 0;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--pf-space-1);
  padding: var(--pf-space-5) var(--pf-space-4);
  border-right: var(--pf-border-hairline);
}

.continuity-path li:first-child {
  padding-left: 0;
}

.continuity-path li:last-child {
  padding-right: 0;
  border-right: 0;
}

.continuity-path li::after {
  position: absolute;
  top: 30px;
  right: -4px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pf-color-border-strong);
  content: "";
}

.continuity-path li:last-child::after {
  background: var(--pf-color-accent);
}

.continuity-path li > span {
  margin-bottom: auto;
  color: var(--pf-color-text-disabled);
  font-family: var(--pf-font-mono);
  font-size: var(--pf-font-size-11);
}

.continuity-path strong {
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-14);
}

.continuity-path small {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-12);
  line-height: 1.5;
}

.products-section {
  background: var(--pf-color-canvas);
}

.site-section__action {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--pf-space-5);
}

.audience-list {
  border-top: var(--pf-border-hairline);
}

.audience-list article {
  min-height: 112px;
  display: grid;
  grid-template-columns: 56px minmax(150px, .5fr) minmax(300px, 1.35fr) minmax(180px, .55fr);
  align-items: center;
  gap: var(--pf-space-5);
  padding: var(--pf-space-5) 0;
  border-bottom: var(--pf-border-hairline);
  transition: background-color var(--pf-motion-fast) var(--pf-ease);
}

.audience-list article:hover {
  background: var(--pf-color-surface-1);
}

.audience-list article > span {
  color: var(--pf-color-text-disabled);
  font-family: var(--pf-font-mono);
  font-size: var(--pf-font-size-11);
}

.audience-list h3 {
  margin: 0;
  font-size: var(--pf-font-size-18);
  font-weight: 620;
}

.audience-list p {
  margin: 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-14);
  line-height: 1.65;
}

.audience-list small {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-12);
  text-align: right;
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: var(--pf-border-strong);
  list-style: none;
}

.workflow-line li {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--pf-space-2);
  padding: var(--pf-space-5) var(--pf-space-4) var(--pf-space-6);
  border-bottom: var(--pf-border-hairline);
}

.workflow-line li:first-child {
  padding-left: 0;
}

.workflow-line li:last-child {
  padding-right: 0;
}

.workflow-line li::before {
  position: absolute;
  top: -5px;
  left: var(--pf-space-4);
  width: 9px;
  height: 9px;
  border: 2px solid var(--pf-color-canvas-deep);
  border-radius: 50%;
  background: var(--pf-color-border-strong);
  content: "";
}

.workflow-line li:first-child::before {
  left: 0;
}

.workflow-line li:nth-child(4)::before,
.workflow-line li:last-child::before {
  background: var(--pf-color-accent);
}

.workflow-line li > span {
  color: var(--pf-color-text-muted);
  font-family: var(--pf-font-mono);
  font-size: var(--pf-font-size-11);
}

.workflow-line strong {
  font-size: var(--pf-font-size-14);
}

.workflow-line small {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-12);
  line-height: 1.55;
}

.workflow-boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--pf-space-8);
  border-block: var(--pf-border-hairline);
}

.workflow-boundary > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--pf-space-4);
  padding: var(--pf-space-4) 0;
}

.workflow-boundary > div + div {
  padding-left: var(--pf-space-6);
  border-left: var(--pf-border-hairline);
}

.workflow-boundary span {
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-13);
  font-weight: 650;
}

.workflow-boundary p {
  margin: 0;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-13);
}

.trust-section {
  background: var(--pf-color-surface-1);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.trust-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 610;
  line-height: 1.13;
  letter-spacing: -.04em;
}

.trust-copy ul {
  display: grid;
  gap: var(--pf-space-3);
  margin: var(--pf-space-8) 0 0;
  padding: 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-14);
  list-style: none;
}

.trust-copy li {
  display: flex;
  align-items: flex-start;
  gap: var(--pf-space-3);
}

.trust-copy li span {
  color: var(--pf-color-accent);
  font-weight: 800;
}

.trust-action {
  padding-left: var(--pf-space-8);
  border-left: var(--pf-border-strong);
}

.trust-action__label {
  color: var(--pf-color-accent);
  font-size: var(--pf-font-size-12);
  font-weight: 700;
}

.trust-action h3 {
  margin: var(--pf-space-3) 0 0;
  font-size: var(--pf-font-size-28);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.trust-action p {
  margin: var(--pf-space-4) 0 0;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-14);
}

/* Product center */
.products-page .pf-products-main {
  width: min(var(--site-shell-max), calc(100% - 48px));
  padding-bottom: 96px;
}

.products-page .pf-page-header {
  min-height: 300px;
  align-items: end;
  padding-block: 72px 56px;
  border-bottom: var(--pf-border-hairline);
}

.products-page .pf-page-header > div {
  max-width: 820px;
}

.products-page pathfinder-product-launcher {
  display: block;
  margin-top: var(--pf-space-8);
}

.products-page .pf-products-boundary {
  margin-top: var(--pf-space-12);
  padding-block: var(--pf-space-6);
  border-bottom: var(--pf-border-hairline);
}

.products-page .pf-products-boundary + .pf-products-boundary {
  margin-top: 0;
}

/* Legal and error pages remain part of the same public shell. */
.legal-page {
  max-width: 900px;
  padding-block: 88px 120px;
}

.legal-page h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 610;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.legal-lead {
  max-width: 760px;
  margin: var(--pf-space-6) 0 var(--pf-space-12);
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-16);
}

.legal-page section {
  padding-block: var(--pf-space-6);
  border-top: var(--pf-border-hairline);
}

.legal-page h2 {
  margin: 0;
  font-size: var(--pf-font-size-18);
}

.legal-page section p {
  margin: var(--pf-space-3) 0 0;
  color: var(--pf-color-text-muted);
}

.not-found {
  min-height: calc(100dvh - 170px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: var(--pf-space-16);
}

.not-found__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--pf-radius-md);
  background: var(--pf-color-accent);
  color: var(--pf-color-text-inverse);
}

.not-found__mark svg {
  width: 30px;
  fill: currentColor;
}

.not-found .site-eyebrow {
  margin-top: var(--pf-space-6);
}

.not-found h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -.045em;
}

.not-found > p:not(.site-eyebrow) {
  color: var(--pf-color-text-muted);
}

.not-found .pf-button {
  margin-top: var(--pf-space-5);
}

@media (max-width: 1080px) {
  .site-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: var(--pf-space-12);
  }

  .site-hero__copy {
    max-width: 820px;
  }

  .path-visual {
    max-width: 820px;
  }

  .continuity-path,
  .workflow-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .continuity-path li:nth-child(3) {
    border-right: 0;
  }

  .continuity-path li:nth-child(-n + 3) {
    border-bottom: var(--pf-border-hairline);
  }

  .continuity-path li:nth-child(4) {
    padding-left: 0;
  }

  .workflow-line li:nth-child(4) {
    padding-left: 0;
  }

  .audience-list article {
    grid-template-columns: 48px minmax(150px, .55fr) minmax(0, 1.45fr);
  }

  .audience-list small {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --site-shell-max: 100%;
  }

  .site-shell,
  .shell,
  .products-page .pf-products-main {
    width: calc(100% - 32px);
  }

  .site-hero {
    gap: var(--pf-space-10);
    padding-block: 56px 72px;
  }

  .site-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .site-hero__lead {
    line-height: 1.68;
  }

  .path-visual__header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-block: 10px;
  }

  .path-visual__list li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .path-visual__list li > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .path-visual__list li > small {
    grid-column: 2;
    white-space: normal;
  }

  .site-section {
    padding-block: 72px;
  }

  .site-section__heading--split {
    grid-template-columns: 1fr;
    gap: var(--pf-space-4);
  }

  .site-section__heading--split > p {
    margin: 0;
  }

  .site-section__heading h2,
  .trust-copy h2 {
    font-size: 36px;
  }

  .continuity-path,
  .workflow-line {
    grid-template-columns: 1fr;
  }

  .continuity-path li,
  .continuity-path li:first-child,
  .continuity-path li:nth-child(4),
  .continuity-path li:last-child {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(110px, .55fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--pf-space-3);
    padding: var(--pf-space-4) 0;
    border-right: 0;
    border-bottom: var(--pf-border-hairline);
  }

  .continuity-path li > span {
    margin: 0;
  }

  .continuity-path li::after {
    top: auto;
    right: auto;
    bottom: -4px;
    left: 13px;
  }

  .audience-list article {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: var(--pf-space-3);
  }

  .audience-list p,
  .audience-list small {
    grid-column: 2;
  }

  .workflow-line li,
  .workflow-line li:first-child,
  .workflow-line li:nth-child(4),
  .workflow-line li:last-child {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: var(--pf-space-1) var(--pf-space-3);
    padding: var(--pf-space-4) 0;
  }

  .workflow-line li::before,
  .workflow-line li:first-child::before {
    top: -5px;
    left: 0;
  }

  .workflow-line small {
    grid-column: 2;
  }

  .workflow-boundary,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .workflow-boundary > div,
  .workflow-boundary > div + div {
    grid-template-columns: 1fr;
    gap: var(--pf-space-1);
    padding: var(--pf-space-4) 0;
    border-left: 0;
    border-bottom: var(--pf-border-hairline);
  }

  .trust-layout {
    gap: var(--pf-space-10);
  }

  .trust-action {
    padding: var(--pf-space-6) 0 0;
    border-top: var(--pf-border-strong);
    border-left: 0;
  }

  .products-page .pf-page-header {
    min-height: 0;
    padding-block: 56px 40px;
  }

  .legal-page {
    padding-block: 64px 96px;
  }
}

@media (max-width: 480px) {
  .site-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-actions .pf-button {
    width: 100%;
  }

  .path-visual__list li {
    padding-inline: var(--pf-space-4);
  }

  .path-visual__status {
    padding-inline: var(--pf-space-4);
  }

  .site-section__heading h2,
  .trust-copy h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
