/* Automation page: four sample requests with their routes shown, then the trial. */

.au-page {
  --au-a: var(--green);
  --au-b: var(--orange);
  --au-c: var(--blue);
}

/* ---- Sample requests and routes (carbon) ---- */
.au-sort {
  background: var(--sv-bg2);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 5.5vw, 80px);
}

.au-sort-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px clamp(24px, 5vw, 80px);
  align-items: end;
}

.au-sort-head > * {min-width: 0}

.au-sort-head h2 {
  margin: 0;
  max-width: 16ch;
  font: 400 clamp(28px, 3.1vw, 44px)/1.08 var(--sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.au-sort-head p {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.52;
  color: #c5c9cc;
}

.au-tasks {
  list-style: none;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.au-task {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(16px, 1.8vw, 22px) 20px;
  background: var(--sv-bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rail);
}

.au-task--a {border-top-color: var(--au-a)}
.au-task--b {border-top-color: var(--au-b)}
.au-task--c {border-top-color: var(--au-c)}

.au-task q {
  quotes: "“" "”";
  font: 400 clamp(18px, 1.5vw, 21px)/1.28 var(--sans);
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: pretty;
}

.au-task p {margin: 0}

/* Route sits at the same height in every card so the four line up. */
.au-route {
  margin-top: auto;
  padding-top: 16px;
  font: 600 16px/1.3 var(--sans);
}

.au-task--a .au-route {color: var(--au-a)}
.au-task--b .au-route {color: var(--au-b)}
.au-task--c .au-route {color: var(--au-c)}

.au-wrong {
  margin-top: 6px;
  min-height: 4.5em;
  font-size: 15px;
  line-height: 1.5;
  color: #c7cbce;
}

.au-wrong b {
  font-weight: 600;
  color: var(--text);
}

/* ---- Trial (paper) ---- */
.au-trial h2 {
  margin: 0 0 clamp(24px, 3vw, 38px);
  max-width: 22ch;
  font: 400 clamp(28px, 3.1vw, 44px)/1.08 var(--sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.au-steps {
  list-style: none;
  counter-reset: au;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}

.au-steps li {
  counter-increment: au;
  min-width: 0;
  padding-top: 14px;
  border-top: 2px solid var(--sv-paper-strong);
  font: 400 clamp(18px, 1.5vw, 21px)/1.3 var(--sans);
  letter-spacing: -0.02em;
  text-wrap: pretty;
  color: var(--sv-ink);
}

.au-steps li::before {
  content: counter(au);
  display: block;
  margin-bottom: 6px;
  font: 600 15px/1 var(--sans);
  color: var(--sv-accent-paper);
}

.au-steps li:last-child {border-top-color: var(--sv-accent-paper)}

.au-samples {
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--sv-paper-rule);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sv-ink2);
}

.au-samples a {
  color: var(--sv-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sv-paper-rule);
  text-underline-offset: 4px;
}

.au-samples a:hover {color: var(--sv-accent-paper)}

/* Questions: three across, each answer visible under its question. */
.au-page .sv-faq-band {padding-block: clamp(40px, 4.4vw, 60px)}

.au-page .sv-faq-band h2 {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font: 400 clamp(26px, 2.8vw, 40px)/1.1 var(--sans);
  letter-spacing: -0.04em;
}

.au-page .au-faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 44px);
}

.au-page .au-faq > div,
.au-page .au-faq > div:first-child {
  min-width: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.au-page .au-faq dt {font-size: clamp(17px, 1.45vw, 20px)}

.au-page .au-faq dd {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .au-page .au-faq {grid-template-columns: 1fr}
  .au-page .au-faq > div,
  .au-page .au-faq > div:first-child {padding-block: 14px}
}

@media (max-width: 960px) {
  .au-sort-head {grid-template-columns: 1fr}
  .au-tasks {grid-template-columns: repeat(2, minmax(0, 1fr))}
}

@media (max-width: 600px) {
  .au-tasks, .au-steps {grid-template-columns: 1fr}
  .au-steps {gap: 14px}
  .au-wrong {min-height: 0}
}
