/* Public homepage only: a trace from source data to an explainable result. */
.home-page {
  --home-ink: #172c42;
  --home-blue: #245edb;
  color: var(--home-ink);
}

.home-page ::selection {
  color: #fff;
  background: #245edb;
}

.home-page .hero {
  padding-top: 66px;
  padding-bottom: 95px;
}

.home-page .hero h1 {
  letter-spacing: -.04em;
}

.home-page .hero-lead {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.72;
  color: #455d76;
}

.home-page .evidence-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 23px 50px -35px rgba(13, 43, 83, .44);
}

.home-page .evidence-preview::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #245edb, transparent);
  transform: translateX(-105%);
  pointer-events: none;
}

.home-page .preview-foot {
  position: relative;
  z-index: 1;
}

.home-page .workflow {
  padding-top: 54px;
}

.home-page .workflow h2,
.home-page .home-section-intro h2,
.home-page .home-trace h2,
.home-page .home-final h2 {
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.home-page .workflow-grid {
  gap: 38px;
  margin-top: 36px;
}

.home-page .workflow-grid article+article {
  padding-left: 30px;
}

.home-page .workflow-grid h3 {
  font-size: 19px;
}

.home-page .workflow-grid p {
  color: #536981;
  font-size: 15px;
  line-height: 1.67;
  max-width: 33ch;
}

.home-page .step-number {
  font-size: 11px;
  letter-spacing: .04em;
  color: #3d6698;
}

.home-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .7fr);
  align-items: end;
  gap: 56px;
}

.home-section-intro h2 {
  max-width: 17ch;
}

.home-section-intro p {
  max-width: 45ch;
  color: #536981;
  font-size: 16px;
  line-height: 1.7;
}

.home-capabilities {
  margin-top: 112px;
}

.home-capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 58px;
  row-gap: 0;
  margin-top: 46px;
}

.home-capability-list article {
  border-top: 1px solid #c9d7e7;
  padding: 23px 14px 30px 0;
  transition: border-color .25s ease, transform .25s ease;
}

.home-capability-list h3 {
  font-size: 21px;
  line-height: 1.3;
}

.home-capability-list p {
  max-width: 45ch;
  margin-top: 10px;
  color: #536981;
  font-size: 15px;
  line-height: 1.68;
}

.home-capability-list article:hover {
  border-color: var(--home-blue);
  transform: translateY(-3px);
}

.home-trace {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
  margin-top: 95px;
  padding: 54px 58px;
  border-radius: 16px;
  background: #142d48;
  color: #fff;
}

.home-trace h2 {
  max-width: 16ch;
  color: #fff;
}

.home-trace-copy p {
  max-width: 52ch;
  margin-top: 22px;
  color: #c4d6ea;
  font-size: 16px;
  line-height: 1.74;
}

.home-trace-visual {
  min-width: 0;
  border: 1px solid #47617f;
  border-radius: 12px;
  padding: 26px 27px 19px;
  background: #1d3958;
}

.trace-node {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.trace-node>span {
  font-size: 13px;
  color: #b8cde4;
}

.trace-node strong {
  font-size: 15px;
  font-weight: 650;
  text-align: right;
}

.trace-line {
  position: relative;
  height: 42px;
  margin: 16px 0 18px 7px;
  border-left: 1px solid #6a85a6;
}

.trace-line::before,
.trace-line::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91b9f6;
}

.trace-line::before { top: 0; }
.trace-line::after { bottom: 0; }

.trace-line span {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: -1px;
  width: 2px;
  background: #9bc2ff;
  transform-origin: top;
  transform: scaleY(1);
}

.trace-result {
  padding-top: 3px;
}

.trace-result strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.home-trace-visual .status-diff {
  background: #fff0f1;
  color: #8d2439;
  font-size: 11px;
}

.home-trace-visual>p {
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid #47617f;
  color: #b8cde4;
  font-size: 12px;
  line-height: 1.5;
}

.home-decisions {
  margin-top: 110px;
}

.home-decision-list {
  margin-top: 41px;
  border-top: 1px solid #c9d7e7;
}

.home-decision-list>div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #c9d7e7;
  padding: 21px 0;
}

.home-decision-list .status {
  justify-self: start;
  min-width: 90px;
  font-size: 11px;
  padding: 6px 10px;
}

.home-decision-list p {
  max-width: 68ch;
  color: #455d76;
  font-size: 16px;
  line-height: 1.6;
}

.home-page .scope-note {
  margin-top: 88px;
  border-radius: 12px;
  background: #eaf1fa;
}

.home-page .scope-note h2 {
  font-size: 18px;
}

.home-page .scope-note p,
.home-page .scope-note>.text-link {
  font-size: 14px;
  line-height: 1.65;
}

.home-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 88px;
  padding: 37px 0 6px;
  border-top: 1px solid #c9d7e7;
}

.home-final h2 {
  max-width: 19ch;
}

.home-final p {
  max-width: 62ch;
  margin-top: 12px;
  color: #536981;
  font-size: 15px;
  line-height: 1.7;
}

.home-final .button {
  flex: none;
  min-width: 199px;
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .evidence-preview::before {
    animation: home-scan 2.4s cubic-bezier(.18, .72, .16, 1) .25s 1 both;
  }

  .home-page .evidence-row {
    animation: home-row-in .55s cubic-bezier(.2, .8, .2, 1) both;
  }

  .home-page .evidence-row:nth-child(1) { animation-delay: .15s; }
  .home-page .evidence-row:nth-child(2) { animation-delay: .32s; }
  .home-page .evidence-row:nth-child(3) { animation-delay: .49s; }

  .home-page.motion-ready .home-trace:not(.is-visible) .trace-line span {
    transform: scaleY(0);
  }

  .home-page.motion-ready .home-trace .trace-line span {
    transition: transform 1.1s cubic-bezier(.18, .72, .16, 1);
  }
}

@keyframes home-scan {
  0% { transform: translateX(-105%); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateX(280%); opacity: 0; }
}

@keyframes home-row-in {
  from { opacity: .6; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .home-page .hero { gap: 35px; }
  .home-section-intro { gap: 25px; }
  .home-trace { gap: 34px; padding: 39px; }
  .home-page .workflow-grid { gap: 24px; }
}

@media (max-width: 700px) {
  .home-page .hero { padding-top: 35px; padding-bottom: 58px; }
  .home-page .hero-lead { font-size: 15px; }
  .home-page .workflow { padding-top: 40px; }
  .home-page .workflow-grid article+article { padding-left: 0; }
  .home-page .workflow-grid p { max-width: 58ch; }
  .home-section-intro,
  .home-capability-list,
  .home-trace { grid-template-columns: 1fr; }
  .home-capabilities,
  .home-decisions { margin-top: 72px; }
  .home-capability-list { margin-top: 28px; }
  .home-trace { margin-top: 70px; padding: 29px 25px; }
  .home-trace h2 { max-width: 22ch; }
  .home-page .scope-note,
  .home-final { margin-top: 65px; }
  .home-final { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .home-page .hero h1 { font-size: clamp(36px, 10vw, 42px); }
  .home-page .workflow h2,
  .home-page .home-section-intro h2,
  .home-page .home-trace h2,
  .home-page .home-final h2 { font-size: 30px; }
  .home-page .workflow-grid article { display: block; }
  .home-page .workflow-grid article+article { padding-top: 23px; }
  .home-page .workflow-grid h3 { margin-top: 10px; }
  .home-section-intro { gap: 15px; }
  .home-section-intro p,
  .home-capability-list p,
  .home-trace-copy p,
  .home-decision-list p { font-size: 14px; }
  .home-capability-list h3 { font-size: 19px; }
  .home-trace { padding: 26px 20px; }
  .home-trace-visual { padding: 20px 18px 16px; }
  .trace-node { align-items: flex-start; flex-direction: column; gap: 4px; }
  .trace-node strong { text-align: left; }
  .trace-result strong { flex-wrap: wrap; justify-content: flex-start; }
  .home-decision-list>div { grid-template-columns: 1fr; gap: 10px; }
  .home-page .scope-note>.text-link { margin-left: 0; }
  .home-final .button { width: 100%; }
}
