/* Shared type and spacing for the two public homepages. */
.homepage,
.lp {
  --home-section-space: 80px;
  --home-section-stack: 36px;
  --home-heading-gap: 14px;
  --home-heading-size: clamp(28px, 3vw, 38px);
  --home-heading-tracking: -0.025em;
  --home-intro-size: 16px;
  --home-intro-leading: 1.65;
  --home-action-height: 52px;
  --home-hero-min: clamp(560px, calc(100svh - 176px), 820px);
  --home-muted: var(--text-dim, var(--dim));
  --home-caption: var(--text-mute, var(--mute));
}

@media (max-width: 960px) {
  .homepage,
  .lp {
    --home-section-space: 64px;
    --home-section-stack: 32px;
  }
}

@media (max-width: 640px) {
  .homepage,
  .lp {
    --home-section-space: 52px;
    --home-section-stack: 28px;
    --home-heading-size: 24px;
    --home-intro-size: 15px;
  }
}

.home-example {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.home-example-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--home-caption);
  font: 10px/1.7 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-example .home-example-question {
  justify-self: end;
  max-width: 90%;
  padding: 8px 16px;
  border-radius: 16px;
  background: var(--border);
  color: var(--text);
  font: 14px/1.6 var(--prose);
  overflow-wrap: anywhere;
}

.home-example-answer,
.home-example-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.home-example-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.04em;
}

.home-example .home-example-result :is(p, dl),
.home-example .home-example-answer > p {
  margin: 0;
  font: 15px/1.65 var(--prose);
}

.home-example .home-example-result :is(.agent21-step, .ans-step) {
  padding: 8px 12px;
  border-left: 2px solid rgba(247, 147, 26, 0.35);
  background: rgba(247, 147, 26, 0.08);
  color: var(--home-muted);
  font: 12px/1.6 var(--mono);
}

.home-example .home-example-result :is(.agent21-figures, .ans-figures) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  font: 11px/1.4 var(--mono);
}

.home-example :is(.agent21-figure, .ans-figure) {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #060610;
  color: var(--home-caption);
  font-variant-numeric: tabular-nums;
}

.home-example :is(.agent21-figure dt, .ans-figure-label) {
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-example .agent21-figure dd {
  display: grid;
  align-content: start;
  gap: 4px;
  margin: 0;
}

.home-example :is(.agent21-figure, .ans-figure) strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.home-example :is(.agent21-figure dd span, .ans-change, .ans-change span) {
  color: var(--home-muted);
  font: inherit;
}

.home-answer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
}

.home-example .home-answer-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: auto;
  color: var(--accent);
  font: 500 12px/1.4 var(--mono);
  white-space: nowrap;
}

.home-example .home-answer-link:hover {
  color: #fff;
}

.home-answer-short {
  display: none;
}

@container (width < 430px) {
  .home-example .home-example-result :is(.agent21-figures, .ans-figures) {
    gap: 4px;
  }

  .home-example :is(.agent21-figure, .ans-figure) {
    padding: 10px 5px;
  }

  .home-example :is(.agent21-figure, .ans-figure) strong {
    font-size: 15px;
  }
}

@container (width < 312px) {
  .home-example .home-answer-link {
    font-size: 11px;
  }

  .home-answer-long {
    display: none;
  }

  .home-answer-short {
    display: inline;
  }
}

@container (width < 284px) {
  .home-example .home-example-result :is(.agent21-figures, .ans-figures) {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-example :is(.agent21-figure, .ans-figure) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 2px 10px;
    padding: 8px 12px;
  }

  .home-example :is(.agent21-figure dt, .ans-figure-label, .agent21-figure dd) {
    grid-column: 1 / -1;
  }

  .home-example .agent21-figure dd {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
  }

  .home-example :is(.agent21-figure dd span, .ans-change) {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .home-example {
    padding: 18px 16px;
  }

  .home-example .home-example-question {
    max-width: 92%;
  }
}

@media (max-width: 768px) {
  .home-footer .home-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin-bottom: 32px;
  }

  .home-footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .home-footer .home-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px), (pointer: coarse) {
  .home-footer .home-footer-links {
    gap: 0;
  }

  .home-footer .home-footer-title {
    margin-bottom: 6px;
  }

  .home-footer :is(.home-footer-links, .home-footer-legal) a {
    display: flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
  }
}
