/* ============================================================================
   Homepage sections under the hero: the capture tour, the agent list, the
   file wall, the extension cards and the three hosts. One claim, one picture,
   two lines at most.
   ============================================================================ */

.section-head h2,
.split__copy h2 {
  font-size: clamp(25px, 3.1vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.section-head p {
  text-wrap: pretty;
}
.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 14px;
}

/* A capture belongs to one theme; the other one is not loaded into layout. */
:root[data-theme="dark"] .only-light,
:root:not([data-theme="dark"]) .only-dark {
  display: none;
}

/* --- Tour: four kinds of work, one capture of the whole app ------------------ */
.tour__tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}
.tour__tabs::-webkit-scrollbar {
  display: none;
}
.tour__tabs button {
  appearance: none;
  flex: none;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: none;
  padding: 10px 14px;
  font: 500 14.5px/1 var(--sans);
  color: var(--muted);
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--edge);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tour__tabs button:hover {
  color: var(--fg);
}
.tour__tabs button[aria-selected="true"] {
  color: var(--fg);
  background: var(--overlay-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--edge));
}
.tour__tabs button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.tour__panels {
  margin-top: 18px;
}
.tour__panel {
  margin: 0;
}
.tour__shot {
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--overlay-bg);
  box-shadow: var(--shadow);
}
.tour__shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* The capture's line, in the hero caption's voice. Two lines are reserved so
   the page below never moves. */
.tour__panel figcaption {
  margin: 20px auto 0;
  max-width: 640px;
  min-height: 2.9em;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}
/* Without JS every capture shows, one under the other. With it they share
   one place and cross-fade. */
.tour__panel + .tour__panel {
  margin-top: 32px;
}
.tour--js .tour__panels {
  display: grid;
}
.tour--js .tour__panel {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.tour--js .tour__panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
@media (max-width: 700px) {
  .tour__panel figcaption {
    font-size: 15px;
    min-height: 4.4em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour--js .tour__panel,
  .tour--js .tour__panel.is-active {
    transition: none;
  }
}

/* --- Split: copy beside a quiet visual --------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split--flip .split__copy {
  order: 1;
}
.split__copy h2,
.section-head h2 {
  margin-top: 0;
}
.split__copy > p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 460px;
  text-wrap: pretty;
}
.split__copy > a {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
}
.points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  max-width: 460px;
  font-size: 14.5px;
  color: var(--muted);
}
.points li {
  position: relative;
  padding-left: 18px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.agent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--overlay-bg);
  overflow: hidden;
}
.agent-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 500;
}
.agent-list li + li {
  border-top: 1px solid var(--edge);
}
.agent-list .glyph {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.agent-list small {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
}

.file-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.file-wall li {
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--overlay-bg);
  padding: 15px 4px;
  text-align: center;
  font: 500 13px/1 var(--mono);
  color: var(--muted);
}

/* --- Hosts ------------------------------------------------------------------- */
.hosts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hosts .workspace-host {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 12px;
}
.hosts .workspace-host > svg {
  margin: 0;
}
.hosts .workspace-host > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hosts .workspace-host__detail {
  margin-top: auto;
  padding-top: 16px;
}

@media (max-width: 900px) {
  .hosts {
    grid-template-columns: minmax(0, 1fr);
  }
  .hosts .workspace-host {
    flex-direction: row;
  }
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip .split__copy {
    order: 0;
  }
  .file-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .agent-list small {
    display: none;
  }
}
