/* Agent uses the same heading scale as the preceding 1280px case-study artboard. */
.ls-agent {
  --agent-accent: #b4d6dc;
  --agent-muted: #8e949d;
  --agent-line: #ffffff12;
  --agent-heading-size: clamp(22px, 2.34375cqw, 30px);
  --agent-body-size: clamp(11px, .9375cqw, 12px);
  --agent-hero-width: min(100%, max(64.0625cqw, 600px), 820px);
  --agent-study-width: min(100%, max(75cqw, 720px), 960px);
  width: 100%;
  padding: 0 4.296875cqw;
  background: #131315;
  color: #fff;
}

.ls-agent .ls-agent__page {
  padding: 48px 0 56px;
  border-top: 1px solid var(--agent-line);
}

.ls-agent .ls-agent__chapter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ls-agent .ls-agent__eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--agent-muted);
  font: 400 10px/1.6 "Inter About", Inter, sans-serif;
  letter-spacing: .16em;
}

.ls-agent__eyebrow > span {
  color: var(--agent-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.ls-agent .ls-agent__ownership {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #b4d6dc30;
  border-radius: 999px;
  color: var(--agent-accent);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.ls-agent__ownership > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.ls-agent .ls-agent__intro-heading,
.ls-agent .ls-agent__section-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 48px;
  margin: 22px 0 30px;
}

.ls-agent .ls-agent__intro-heading h3 {
  font-size: var(--agent-heading-size);
  line-height: 1.4;
  font-weight: 200;
  letter-spacing: 0;
}

.ls-agent__intro-heading h3 > span {
  font-family: "Inter About", Inter, sans-serif;
  font-weight: 300;
}

.ls-agent .ls-agent__subtitle {
  margin-top: 10px;
  color: #a5a9b0;
  font-size: clamp(13px, 1.09375cqw, 14px);
  font-weight: 200;
  line-height: 1.5;
}

.ls-agent .ls-agent__description {
  max-width: 400px;
  color: #ccc;
  font-size: var(--agent-body-size);
  font-weight: 200;
  line-height: 1.7;
  text-wrap: pretty;
}

.ls-agent .ls-agent__hero-screen {
  width: var(--agent-hero-width);
  margin: 0 auto;
  aspect-ratio: 1440 / 813;
  box-shadow: 0 18px 48px #0003;
}

.ls-agent .ls-agent__screen-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: var(--agent-hero-width);
  margin: 14px auto 0;
  color: var(--agent-muted);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.6;
}

.ls-agent__screen-caption > :last-child {
  font-family: "Inter About", Inter, sans-serif;
  font-size: 9px;
  letter-spacing: .16em;
}

.ls-agent .ls-agent__section-heading {
  margin-top: 22px;
  margin-bottom: 30px;
}

.ls-agent .ls-agent__section-heading h3 {
  font-size: var(--agent-heading-size);
  font-weight: 200;
  line-height: 1.4;
}

.ls-agent__evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 26%);
  align-items: start;
  gap: 24px;
  width: var(--agent-study-width);
  margin: 0 auto;
}

.ls-agent__demo {
  min-width: 0;
}

.ls-agent__view-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.ls-agent__view-switch button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--agent-muted);
  font: 400 11px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ls-agent__view-switch button[aria-pressed="true"] {
  border-color: #b4d6dc26;
  background: #b4d6dc0d;
  color: #d7e9ec;
}

.ls-agent__view-switch button:hover {
  color: #fff;
  background: #ffffff09;
}

.ls-agent__view-switch button > span {
  margin-left: 6px;
}

.ls-agent__views,
.ls-agent .ls-agent__answer-screen {
  width: 100%;
  aspect-ratio: 1440 / 813;
}

.ls-agent .ls-agent__demo-caption {
  margin-top: 12px;
  color: var(--agent-muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
}

.ls-agent__reference-detail {
  min-width: 0;
  margin-top: 52px;
}

.ls-agent__detail-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ls-agent__detail-mark {
  color: var(--agent-accent);
  font: 400 16px/1 "Inter About", Inter, sans-serif;
  white-space: nowrap;
}

.ls-agent h4 {
  margin: 0;
  color: #e4e7eb;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.ls-agent .ls-agent__detail-heading p {
  margin-top: 6px;
  color: var(--agent-muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
}

.ls-agent .ls-agent__reference-screen {
  width: 100%;
  aspect-ratio: 640 / 520;
}

.ls-agent .ls-agent__reference-note {
  margin-top: 14px;
  color: var(--agent-muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.8;
}

/* Restore the original three-card composition, at the quieter case-study scale. */
.ls-agent__detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: var(--agent-study-width);
  margin: 0 auto;
}

.ls-agent__detail-card {
  min-width: 0;
}

.ls-agent__detail-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(220px, 21.875cqw, 280px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--agent-line);
  border-radius: 20px;
  background: #1b1c1f;
}

.ls-agent .ls-agent__detail-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 580 / 650;
  border-radius: 12px;
  box-shadow: 0 10px 24px #0003;
}

.ls-agent__detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ls-agent__detail-stage--delete {
  padding: 18px 12px;
  background: #242629;
}

.ls-agent .ls-agent__detail-stage--delete .ls-agent__detail-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1040 / 560;
}

.ls-agent__detail-card figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 18px;
}

.ls-agent__detail-number {
  padding-top: 3px;
  color: var(--agent-accent);
  font: 400 10px/1.5 "Inter About", Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}

.ls-agent .ls-agent__detail-card figcaption p {
  margin-top: 8px;
  color: var(--agent-muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.8;
}

.ls-agent .ls-agent__endnote {
  margin-top: 36px;
  color: #646a74;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 1000px) and (min-width: 701px) {
  .ls-agent .ls-agent__intro-heading,
  .ls-agent .ls-agent__section-heading {
    gap: 30px;
  }

  .ls-agent__evidence-layout {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 28%);
    gap: 20px;
  }

  .ls-agent h4 {
    font-size: 14px;
  }

  .ls-agent__detail-grid {
    gap: 16px;
  }

  .ls-agent__detail-stage {
    height: 220px;
    padding: 14px;
  }
}

@media (max-width: 700px) {
  .ls-agent {
    --agent-heading-size: 24px;
    --agent-body-size: 13px;
    --agent-hero-width: 100%;
    --agent-study-width: 100%;
    padding: 0 22px;
  }

  .ls-agent .ls-agent__page {
    padding: 36px 0 44px;
  }

  .ls-agent .ls-agent__chapter-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ls-agent .ls-agent__eyebrow {
    gap: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .ls-agent .ls-agent__intro-heading,
  .ls-agent .ls-agent__section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 20px 0 24px;
  }

  .ls-agent .ls-agent__subtitle {
    margin-top: 10px;
    font-size: 14px;
  }

  .ls-agent .ls-agent__description {
    font-size: 13px;
    line-height: 1.85;
  }

  .ls-agent .ls-agent__screen-caption {
    margin-top: 14px;
    font-size: 10px;
  }

  .ls-agent__screen-caption > :last-child {
    display: none;
  }

  .ls-agent__evidence-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ls-agent__view-switch {
    gap: 4px;
    margin-bottom: 16px;
  }

  .ls-agent__view-switch button {
    min-height: 44px;
    padding: 10px 12px;
  }

  .ls-agent__reference-detail {
    margin-top: 0;
  }

  .ls-agent .ls-agent__reference-screen {
    max-width: 260px;
  }

  .ls-agent__detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ls-agent__detail-stage {
    height: 280px;
    padding: 20px;
  }

  .ls-agent__detail-stage--delete {
    height: 200px;
    padding: 16px;
  }

  .ls-agent .ls-agent__endnote {
    margin-top: 28px;
    text-align: left;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ls-agent__view-switch button {
    transition: none;
  }
}
