/* Diagnostic content remains fully visible without JavaScript or animation. */
.diagnosis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 100px;
  border-bottom: 1px solid var(--line);
}
.diagnosis-copy h2 {
  max-width: 520px;
}
.diagnosis-copy > p:not(.eyebrow) {
  margin-top: 24px;
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.benefit-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.benefit-list svg {
  width: 16px;
  height: 16px;
  color: #5d7484;
}
.diagnosis-copy .diagnosis-criteria {
  font-size: 14px;
}
.diagnosis-copy .text-link {
  margin-top: 20px;
}
.priority-matrix {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  min-width: 0;
}
.matrix-axis {
  color: var(--muted);
  font-size: 11px;
}
.matrix-axis-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 9px;
}
.matrix-axis-y > span:first-child {
  font-weight: 600;
}
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-left: 1px solid #a7b2ba;
  border-bottom: 1px solid #a7b2ba;
  padding: 0 0 9px 9px;
}
.matrix-quadrant {
  background: #f5f7f8;
  border: 1px solid #e1e7eb;
  border-radius: 12px;
  padding: 22px 18px;
  min-height: 172px;
  position: relative;
}
.matrix-marker {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 15px;
  font-size: 20px;
  color: #5f7483;
}
.matrix-marker svg {
  width: 16px;
  height: 16px;
}
.matrix-quadrant h3 {
  font-size: 17px;
  line-height: 1.25;
}
.matrix-quadrant p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 9px;
}
.matrix-priority {
  background: linear-gradient(135deg, #e6eef3, #f3f7f9);
  border-color: #8da4b4;
}
.matrix-priority .matrix-marker {
  background: #263e4d;
  color: #fff;
  border-radius: 50%;
}
.matrix-axis-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 12px;
}
.matrix-axis-x > span:first-child {
  font-weight: 600;
}
.priority-matrix figcaption {
  grid-column: 2;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.steps {
  position: relative;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.steps::after {
  background: #839aaa;
  transform-origin: left;
}
.steps article {
  border-top: 0;
  position: relative;
  padding-top: 27px;
}
.step-number {
  position: relative;
  z-index: 1;
}
.step-delivery {
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px dashed var(--line);
}
.step-delivery > span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.step-delivery > p {
  margin-top: 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
@media screen {
  [data-theme="dark"] .matrix-quadrant {
    background: #1c242a;
    border-color: #394650;
  }
  [data-theme="dark"] .matrix-priority {
    background: linear-gradient(135deg, #2c414f, #24323c);
    border-color: #819eaf;
  }
  [data-theme="dark"] .matrix-marker,
  [data-theme="dark"] .benefit-list svg {
    color: #bad1df;
  }
  [data-theme="dark"] .matrix-priority .matrix-marker {
    background: #d2e4ef;
    color: #203541;
  }
}
@media (max-width: 1100px) {
  .diagnosis {
    gap: 40px;
  }
  .matrix-quadrant {
    padding: 18px 14px;
  }
}
@media (max-width: 800px) {
  .diagnosis {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 65px;
  }
  .priority-matrix {
    width: 100%;
    max-width: 580px;
    justify-self: center;
  }
  .step-delivery > p {
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .diagnosis {
    padding-block: 50px;
    gap: 30px;
  }
  .diagnosis-copy h2 {
    font-size: 31px;
  }
  .benefit-list {
    gap: 12px;
  }
  .benefit-list li {
    font-size: 12px;
    gap: 7px;
  }
  .priority-matrix {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 5px;
  }
  .matrix-grid {
    gap: 6px;
    padding-left: 6px;
  }
  .matrix-quadrant {
    padding: 14px 10px;
    min-height: 172px;
    border-radius: 9px;
  }
  .matrix-quadrant h3 {
    font-size: 15px;
  }
  .matrix-quadrant p {
    font-size: 11px;
  }
  .matrix-axis {
    font-size: 10px;
  }
  .priority-matrix figcaption {
    font-size: 10px;
  }
  .steps::before,
  .steps::after {
    top: 0;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .steps::after {
    transform-origin: top;
  }
  .steps article {
    padding-top: 0;
  }
  .step-number {
    width: 31px;
    height: 31px;
    padding-top: 4px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .step-delivery {
    grid-column: 2;
    margin-top: 8px;
    padding-top: 12px;
  }
  [data-theme="dark"] .step-number {
    background: #111416;
  }
}
/* Only elements that enter the viewport animate, once, in under four seconds.
   No page text is hidden while waiting for the observer or JavaScript. */
@media screen and (prefers-reduced-motion: no-preference) {
  .product-visual.is-visible:not(.motion-complete) .dashboard {
    animation: enter-surface 0.65s both;
  }
  .product-visual.is-visible:not(.motion-complete) .chat-window {
    animation: enter-surface 0.55s 0.3s both;
  }
  .product-visual.is-visible:not(.motion-complete) .bubble {
    animation: enter-message 0.35s both;
  }
  .product-visual.is-visible:not(.motion-complete) .bubble:nth-child(1) {
    animation-delay: 0.8s;
  }
  .product-visual.is-visible:not(.motion-complete) .bubble:nth-child(2) {
    animation-delay: 1.3s;
  }
  .product-visual.is-visible:not(.motion-complete) .bubble:nth-child(3) {
    animation-delay: 1.8s;
  }
  .product-visual.is-visible:not(.motion-complete) .bubble:nth-child(4) {
    animation-delay: 2.3s;
  }
  .product-visual.is-visible:not(.motion-complete) .n-one {
    animation: enter-surface 0.45s 2.8s both;
  }
  .product-visual.is-visible:not(.motion-complete) .n-two {
    animation: enter-surface 0.45s 3.3s both;
  }
  .priority-matrix.is-visible:not(.motion-complete) .matrix-priority {
    animation: priority-focus 1.2s 0.15s both;
  }
  .priority-matrix.is-visible:not(.motion-complete)
    .matrix-priority
    .matrix-marker {
    animation: enter-message 0.4s 0.55s both;
  }
  .steps.is-visible:not(.motion-complete)::after {
    animation: connect-steps 1.5s ease-out both;
  }
  .steps.is-visible:not(.motion-complete) article {
    animation: enter-surface 0.6s both;
  }
  .steps.is-visible:not(.motion-complete) article:nth-child(2) {
    animation-delay: 0.35s;
  }
  .steps.is-visible:not(.motion-complete) article:nth-child(3) {
    animation-delay: 0.7s;
  }
  .service-card {
    transition:
      translate 0.2s,
      box-shadow 0.2s;
  }
  .theme-toggle {
    transition:
      background 0.2s,
      color 0.2s;
  }
  @media (hover: hover) {
    .service-card:hover {
      translate: 0 -3px;
      box-shadow: 0 12px 28px #23394b0c;
    }
  }
  @media (max-width: 520px) {
    .steps.is-visible:not(.motion-complete)::after {
      animation-name: connect-steps-vertical;
    }
  }
}
@keyframes enter-surface {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes enter-message {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes priority-focus {
  from {
    outline: 0 solid transparent;
    outline-offset: 7px;
  }
  55% {
    outline: 3px solid #8da4b488;
    outline-offset: 3px;
  }
  to {
    outline: 0 solid transparent;
    outline-offset: 0;
  }
}
@keyframes connect-steps {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes connect-steps-vertical {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@media print {
  .diagnosis {
    padding-block: 25px;
  }
  .matrix-quadrant {
    break-inside: avoid;
  }
}
