/* For agencies (/agencies): the splash page for agencies, designers and
   developers. Tokens from shared/base.css. */
/* Code stays in Switzer (DESIGN.md, the One Face Rule); the tint marks it. */
.ag code {
  font-family: var(--font);
  font-size: 0.94em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}
.ag :where(div, section, figure) {
  min-width: 0;
}
.ag-path img {
  width: 36px;
  height: 36px;
}
.ag-path svg {
  width: 22px;
  height: 22px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The install command, as on /skill. */
.ag-command {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--white);
}
.ag-command code {
  flex: 1;
  padding: 0;
  background: none;
  overflow-wrap: break-word;
  font-size: 15px;
}
.ag-copy {
  flex-shrink: 0;
  /* Fits "Copied" as well as "Copy", so the button keeps its width. */
  min-width: 76px;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 14px var(--font);
  cursor: pointer;
}
.ag-copy:hover {
  border-color: var(--muted);
}
.ag-status {
  /* Holds one line even when empty, so a message moves nothing below it. */
  min-height: 1.5em;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
}
.ag-qs {
  padding: 96px 0;
}
.ag-qs .sec-head {
  margin-bottom: 28px;
}
.ag-qs .ag-command {
  margin-top: 14px;
}
.ag-more {
  margin-top: 12px;
}

.ag-hero {
  padding: 88px 0 56px;
  text-align: center;
}
.ag-path {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 28px;
}
.ag-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15ch;
  margin: 0 auto 22px;
}
.ag-hero .lead {
  font-size: 19px;
  max-width: 60ch;
  margin: 0 auto 30px;
}
.ag-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
/* The widget sits half on white, half on the ink band below it. */
.ag-stage {
  background: linear-gradient(to bottom, var(--white) 0 180px, var(--ink) 180px);
  color: #d8d6d3;
  padding-bottom: 96px;
}
.ag-stage .wrap {
  max-width: 1200px;
}
.ag-shot {
  margin: 0;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.55);
}
.ag-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2680 / 820;
  object-fit: cover;
  object-position: center 42%;
}
.ag-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 72px;
}
.ag-card {
  padding-top: 20px;
  border-top: 2px solid var(--amber);
}
.ag-card h2 {
  color: var(--white);
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.ag-card p {
  margin: 0;
}
.ag-card .plan-tag {
  background: var(--amber);
  color: var(--ink);
}
.ag-card .plan-tag::before {
  background: var(--amber-deep);
}
.ag-quote {
  max-width: 760px;
  margin: 80px auto 0;
  text-align: center;
}
.ag-quote blockquote {
  color: var(--white);
}
.ag-quote figcaption {
  color: #a1a1a6;
}
.ag-match {
  padding: 104px 0 0;
}
.ag-match-grid,
.ag-dev-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
}
.ag-match .sec-head,
.ag-dev .sec-head {
  margin-bottom: 16px;
}
.ag-product {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.ag-dev {
  padding: 104px 0 0;
}
.ag-dev-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.ag-skill {
  padding: 28px;
  border-radius: 16px;
  background: var(--amber-wash);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
}
.ag-skill h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.ag-skill .ag-command {
  margin-top: 16px;
}
/* The copy message sits in the card's bottom padding, so the card reserves
   no empty line for it and nothing moves when it appears. */
.ag-skill {
  position: relative;
}
.ag-skill .ag-status {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 4px;
  min-height: 0;
  margin: 0;
}
.ag-qs .wrap {
  max-width: 1200px;
}
.ag-faq {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 900px) {
  .ag-three,
  .ag-match-grid,
  .ag-dev-grid,
  .ag-faq {
    grid-template-columns: 1fr;
  }
  .ag-three {
    gap: 28px;
    margin-top: 48px;
  }
  .ag-match-grid,
  .ag-dev-grid {
    gap: 32px;
  }
  .ag-hero {
    padding-top: 56px;
  }
  .ag-stage {
    background: linear-gradient(to bottom, var(--white) 0 80px, var(--ink) 80px);
  }
  /* Phones show the first two reviews at a readable size. */
  .ag-shot img {
    aspect-ratio: 1080 / 800;
    object-position: left 45%;
  }
}
