.agents-page .agent-hero {
  min-height: 0;
  padding: 112px 0 24px;
}

.agents-page .agent-hero-copy {
  max-width: 850px;
}

.agents-page .agent-hero h1 {
  font-size: 52px;
  line-height: 1.12;
}

.agents-page .agent-lead {
  margin: 16px 0 10px;
  font-size: 26px;
  line-height: 1.35;
}

.agents-page .agent-hero-copy > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
}

.agents-page .agent-label {
  letter-spacing: 0;
}

.agents-page .agent-label span {
  animation: none;
}

.agent-trial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 54px;
  padding: 28px 0 72px;
  scroll-margin-top: 96px;
}

.agent-trial [hidden] {
  display: none !important;
}

.agent-trial-guide {
  min-width: 0;
}

.agent-trial .agent-label {
  margin-bottom: 12px;
  font-size: 13px;
}

.agent-trial h2 {
  margin: 0;
  color: #30343a;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.agent-trial-intro {
  margin: 12px 0 0;
  color: #555e65;
  font-size: 16px;
  line-height: 1.6;
}

.agent-trial-robot {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 619;
  margin: 12px 0 0;
  transition: transform 400ms ease;
}

.agent-trial-robot-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 65%;
  animation: agentTrialIdle 5.6s ease-in-out infinite;
  animation-play-state: var(--robot-motion, paused);
}

.agent-trial-robot.is-in-view {
  --robot-motion: running;
}

.agent-trial-robot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(42, 101, 229, 0.08));
}

.agent-trial-highlight {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 250ms ease, box-shadow 250ms ease;
  pointer-events: none;
}

.agent-trial-highlight.is-mail {
  left: 22.2%;
  top: 8%;
  width: 14%;
  height: 18%;
  color: #e91e8f;
}

.agent-trial-highlight.is-prices {
  left: 14.4%;
  top: 38.5%;
  width: 14%;
  height: 32%;
  color: #12816e;
}

.agent-trial-highlight.is-document {
  left: 76%;
  top: 33%;
  width: 13%;
  height: 22%;
  color: #bf8306;
}

.agent-trial[data-stage="read"] .is-mail,
.agent-trial[data-stage="prices"] .is-prices,
.agent-trial[data-stage="calculate"] .is-prices,
.agent-trial[data-stage="write"] .is-document,
.agent-trial[data-stage="done"] .is-document {
  opacity: 1;
  border-color: currentColor;
  box-shadow: 0 0 16px color-mix(in srgb, currentColor, transparent 78%);
}

.agent-trial.is-working .agent-trial-robot-scene {
  animation: agentTrialWorking 1.1s ease-in-out 4;
  animation-play-state: var(--robot-motion, paused);
}

.agent-trial[data-stage="done"] .agent-trial-robot-scene {
  animation: agentTrialDone 850ms ease-in-out both, agentTrialIdle 5.6s 850ms ease-in-out infinite;
  animation-play-state: var(--robot-motion, paused);
}

.agent-trial-status {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 0 0 18px;
  border-left: 3px solid #e91e8f;
  padding: 10px 16px;
  background: #fff;
  color: #343943;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.agent-trial[data-stage="done"] .agent-trial-status {
  border-color: #309348;
  background: #f1faf3;
}

.agent-trial-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-trial-steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 59px;
  padding: 8px 0;
  border-bottom: 1px solid #e2eaf0;
  color: #57616c;
  transition: color 200ms ease;
}

.agent-trial-steps li:last-child {
  border-bottom: 0;
}

.agent-trial-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #cfdae5;
  border-radius: 50%;
  color: #57616c;
  font-size: 11px;
  font-weight: 750;
  transition: color 200ms ease, background 200ms ease;
}

.agent-trial-steps strong,
.agent-trial-steps small {
  display: block;
  line-height: 1.45;
}

.agent-trial-steps strong {
  font-size: 14px;
}

.agent-trial-steps small {
  margin-top: 2px;
  color: #65707a;
  font-size: 12px;
}

.agent-trial-steps .is-active {
  color: #2457c0;
}

.agent-trial-steps .is-active > span {
  border-color: #2a65e5;
  background: #2a65e5;
  color: #fff;
}

.agent-trial-steps .is-done > span {
  border-color: #92c69f;
  background: #e7f5eb;
  color: #26743a;
}

.agent-trial-workspace {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  min-height: 676px;
  overflow: hidden;
  border: 1px solid #dce6ef;
  border-top: 3px solid #2a65e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(50, 85, 120, 0.08);
}

.agent-trial-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 59px;
  padding: 14px 26px;
  border-bottom: 1px solid #e5ebef;
  color: #46525e;
  font-size: 13px;
  font-weight: 650;
}

.agent-trial-demo-label {
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff4d4;
  color: #815e05;
  font-size: 11px;
}

.agent-trial-request,
.agent-trial-result {
  flex: 1;
  padding: 26px;
}

.agent-trial-request {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.agent-trial-eyebrow {
  margin: 0 0 8px;
  color: #2457c0;
  font-size: 12px;
  font-weight: 750;
}

.agent-trial h3 {
  margin: 0;
  color: #26313c;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: 0;
}

.agent-trial-email {
  margin: 22px 0;
  border-top: 1px solid #e5ebef;
  border-bottom: 1px solid #e5ebef;
  padding: 18px 0;
  color: #4d5862;
  font-size: 15px;
  line-height: 1.6;
}

.agent-trial-email p {
  margin: 0 0 14px;
}

.agent-trial-email p:last-child {
  margin-bottom: 0;
}

.agent-trial-email p:first-child {
  font-size: 13px;
}

.agent-trial-email p:first-child span {
  display: block;
  margin-top: 3px;
}

.agent-trial-quantity {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 5px 16px;
  align-items: center;
  margin: 0 0 24px;
}

.agent-trial-quantity label {
  color: #364452;
  font-size: 14px;
  font-weight: 650;
}

.agent-trial-quantity input {
  grid-row: span 2;
  width: 100%;
  min-height: 46px;
  border: 1px solid #a8bccc;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #26313c;
  font: inherit;
  font-size: 18px;
}

.agent-trial-quantity small {
  color: #65707a;
  font-size: 12px;
  line-height: 1.5;
}

.agent-trial .button {
  gap: 10px;
  min-height: 48px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.agent-trial .button svg {
  flex-shrink: 0;
}

.agent-trial-start {
  margin-top: 0;
}

.agent-trial button:disabled,
.agent-trial input:disabled {
  cursor: default;
  opacity: 0.7;
}

.agent-trial button:disabled:hover {
  transform: none;
}

.agent-trial-disclaimer {
  margin: 12px 0 0;
  color: #68747e;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.agent-trial-text-button {
  align-self: center;
  min-height: 44px;
  border: 0;
  padding: 8px;
  background: transparent;
  color: #2457c0;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.agent-trial-result {
  animation: agentTrialReveal 350ms ease both;
}

.agent-trial-result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.agent-trial-ready {
  border-radius: 4px;
  padding: 6px 8px;
  background: #e7f5eb;
  color: #26743a;
  font-size: 11px;
  font-weight: 700;
}

.agent-trial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #364452;
}

.agent-trial-table th,
.agent-trial-table td {
  padding: 12px 0;
  text-align: left;
  line-height: 1.5;
}

.agent-trial-table thead {
  border-bottom: 1px solid #e5ebef;
  color: #68747e;
  font-size: 12px;
}

.agent-trial-table tbody tr {
  border-bottom: 1px solid #e5ebef;
}

.agent-trial-table th:last-child,
.agent-trial-table td:last-child {
  padding-left: 14px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.agent-trial-table small {
  display: block;
  color: #68747e;
  font-size: 12px;
}

.agent-trial-table tfoot th,
.agent-trial-table tfoot td {
  padding: 5px 0;
  font-weight: 500;
}

.agent-trial-table tfoot tr:first-child > * {
  padding-top: 16px;
}

.agent-trial-table .agent-trial-total > * {
  padding-top: 9px;
  color: #26313c;
  font-size: 18px;
  font-weight: 750;
}

.agent-trial-mail-draft {
  margin-top: 22px;
  border-left: 3px solid #dfaf26;
  padding-left: 14px;
}

.agent-trial-mail-draft h4 {
  margin: 0 0 8px;
  color: #364452;
  font-size: 13px;
  line-height: 1.5;
}

.agent-trial-mail-draft p,
.agent-trial-control {
  margin: 0;
  color: #56616b;
  font-size: 13px;
  line-height: 1.6;
}

.agent-trial-control {
  margin-top: 18px;
  color: #26743a;
  font-size: 12px;
}

.agent-trial-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.agent-trial-result-actions > a {
  flex: 1;
}

.agent-trial-icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #d0dce6;
  border-radius: 8px;
  background: #fff;
  color: #46525e;
  cursor: pointer;
}

.agent-trial-icon-button:hover {
  background: #edf4fa;
}

.agent-trial :is(a, button, input):focus-visible {
  outline: 3px solid #2a65e5;
  outline-offset: 4px;
}

.agent-trial-takeaway {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 32px;
  margin-top: 8px;
  border-top: 1px solid #dce6ef;
  border-bottom: 1px solid #dce6ef;
  padding: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}

.agent-trial-takeaway p {
  flex: 1;
  margin: 0;
  color: #56616b;
}

.agent-trial-takeaway strong {
  color: #26313c;
}

.agent-trial-takeaway a {
  flex: 0 1 255px;
  color: #2457c0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.agent-trial-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes agentTrialIdle {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-5px) rotate(0.35deg); }
}

@keyframes agentTrialWorking {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) rotate(0.5deg); }
}

@keyframes agentTrialDone {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-8px) rotate(-1.2deg); }
  65% { transform: translateY(-3px) rotate(0.7deg); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .agent-trial-robot:hover {
    transform: translateY(-2px) scale(1.015);
  }
}

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

@media (max-width: 1120px) {
  .agents-page .site-nav:not(.is-open) { visibility: hidden; }
}

@media (max-width: 1000px) {
  .agent-trial { gap: 28px; }
  .agent-trial h2 { font-size: 28px; }
  .agent-trial-request, .agent-trial-result { padding: 22px; }
}

@media (max-width: 760px) {
  .agents-page .agent-hero { padding-top: 118px; padding-bottom: 28px; }
  .agents-page .agent-hero h1 { font-size: 40px; }
  .agents-page .agent-lead { font-size: 22px; }
  .agent-trial { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; padding-bottom: 48px; }
  .agent-trial-guide { display: contents; }
  .agent-trial-robot { max-width: 460px; margin: 6px auto; }
  .agent-trial-status { min-height: 72px; margin-bottom: 24px; }
  .agent-trial-workspace { grid-row: 6; width: 100%; min-height: 660px; }
  .agent-trial-start { min-height: 60px; }
  .agent-trial-steps { grid-row: 7; margin: 24px 0; }
  .agent-trial-takeaway { display: block; margin-top: 0; }
  .agent-trial-takeaway a { display: inline-block; margin-top: 12px; }
}

@media (max-width: 400px) {
  .agents-page .agent-hero h1 { font-size: 34px; }
  .agent-trial h2 { font-size: 26px; }
  .agent-trial h3 { font-size: 20px; }
  .agent-trial-bar { padding: 14px 18px; }
  .agent-trial-request, .agent-trial-result { padding: 20px 16px; }
  .agent-trial-result-actions .button { font-size: 13px; }
  .agent-trial-table { font-size: 13px; }
  .agent-trial-table .agent-trial-total > * { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .agents-page { scroll-behavior: auto; }
  .agent-trial *, .agent-trial *::before, .agent-trial *::after {
    animation: none !important;
    transition: none !important;
  }
}
