/* Audience cards, the agent lifecycle, and the Features / Vibe coders / Agent managers pages. Uses the site's tokens. */

/* Home: who it is for */
.audience {
  padding: 30px 0 80px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--pale);
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.audience-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.audience-card h3 {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 450;
}
.audience-card h3 span {
  color: #91998b;
}
.audience-card > p {
  font-size: 14px;
  line-height: 1.8;
  color: #737a74;
  max-width: 480px;
}
.audience-card .check-list {
  margin-top: 4px;
}
.audience-card .text-link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--green);
}

/* Short lists with a check mark */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #5f6660;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.check-list strong {
  font-weight: 600;
  color: var(--page-text, #222523);
}

/* Home: the whole agent lifecycle */
.lifecycle {
  border-top: 1px solid var(--line);
  padding: 76px 0 82px;
}
.lifecycle-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.lifecycle-grid li {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lifecycle-grid .step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px var(--mono);
  color: #959a96;
}
.lifecycle-grid .step-top svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}
.lifecycle-grid h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 18px 0 8px;
}
.lifecycle-grid p {
  font-size: 13px;
  line-height: 1.75;
  color: #838d79;
}

/* Inner pages */
.page-intro {
  padding: 64px 0 56px;
}
.page-intro h1 {
  font-size: 76px;
  line-height: 1.05;
  font-weight: 550;
  margin: 24px 0 26px;
  max-width: 1120px;
}
.page-intro h1 span {
  color: #8a918b;
}
.page-intro .lead {
  font-size: 17px;
  line-height: 1.75;
  color: #737a74;
  max-width: 700px;
}
.vibe-agent-lead strong {
  font-weight: 700;
  color: var(--page-text);
}
.vibe-agent-lead .hero-agent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  vertical-align: -0.16em;
}
.vibe-agent-lead .hero-agent-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
  color: var(--page-text);
}
.vibe-agent-lead .hero-agent-icon--codex {
  filter: invert(1);
  mix-blend-mode: multiply;
}
[data-theme="dark"] .vibe-agent-lead .hero-agent-icon--codex {
  filter: none;
  mix-blend-mode: screen;
}
.vibe-agent-lead .agent-opaya {
  color: var(--green);
}
.vibe-agent-lead .agent-claude {
  color: #a95740;
}
.vibe-agent-lead .agent-codex {
  color: #242925;
}
.vibe-agent-lead .agent-hermes {
  color: #3e6899;
}
[data-theme="dark"] .vibe-agent-lead .agent-claude {
  color: #e2a08b;
}
[data-theme="dark"] .vibe-agent-lead .agent-codex {
  color: #f0f1ef;
}
[data-theme="dark"] .vibe-agent-lead .agent-hermes {
  color: #9dbce2;
}
.page-intro .intro-actions {
  margin-top: 32px;
  flex-wrap: wrap;
}
.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
}
.download-hero-intro h1 {
  font-size: clamp(48px, 4.6vw, 68px);
}
.download-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-background, #fff);
}
.download-panel h2 {
  margin: 13px 0 8px;
  font-size: 29px;
  font-weight: 550;
}
.download-panel > p {
  margin: 0 0 25px;
  color: #737a74;
  font-size: 13px;
  line-height: 1.6;
}
.download-panel-primary {
  display: flex;
  justify-content: flex-start;
  min-height: 72px;
  padding: 12px 16px;
  font-size: 15px;
}
.download-panel-primary > span:nth-child(2) {
  flex: 1;
}
.download-panel-primary small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  opacity: .8;
}
.download-panel-primary svg,
.download-panel-secondary svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.download-panel-platform-label {
  margin: 26px 0 8px;
  color: #737b75;
  font: 11px var(--mono);
  text-transform: uppercase;
}
.download-panel-secondary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 550;
}
.download-panel-secondary + .download-panel-secondary {
  margin-top: 8px;
}
.download-panel-secondary:hover {
  border-color: var(--green);
}
.download-panel-secondary svg {
  margin-left: auto;
}
.download-panel-note {
  display: block;
  margin-top: 18px;
  color: #737b75;
  font-size: 11px;
}
.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font: 11px var(--mono);
  color: #737b75;
}
.page-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-facts svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.page-toc a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: #555c57;
  background: var(--page-background, #fff);
  transition:
    border-color 0.18s,
    color 0.18s;
}
.page-toc a:hover {
  border-color: var(--green);
  color: var(--green);
}

/* A feature told with a real screenshot: text on one side, the app on the other */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.story.flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.story.flip .story-copy {
  order: 2;
}
.story-copy h2 {
  font-size: 34px;
  margin: 18px 0 16px;
}
.story-copy > p {
  font-size: 14px;
  line-height: 1.85;
  color: #737a74;
  margin-bottom: 22px;
}
.story .vibe-window img {
  cursor: zoom-in;
}
.story-note {
  display: block;
  margin-top: 20px;
  font: 11px var(--mono);
  color: #959a96;
}

/* Tag cloud: agents, providers, install methods */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: #555c57;
  background: var(--page-background, #fff);
}
.tag-cloud .vendor-icon {
  width: 16px;
  height: 16px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}
.support-grid h3 {
  font: 10px var(--mono);
  color: #737b75;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-cards {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}

/* Full-size screenshot on click */
.shot-zoom {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(10, 12, 10, 0.82);
  cursor: zoom-out;
}
.shot-zoom img {
  max-width: min(1600px, 100%);
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Dark theme */
[data-theme="dark"] .audience-card > p,
[data-theme="dark"] .story-copy > p,
[data-theme="dark"] .page-intro .lead,
[data-theme="dark"] .lifecycle-grid p,
[data-theme="dark"] .check-list li {
  color: var(--text-secondary);
}
[data-theme="dark"] .audience-card h3 span,
[data-theme="dark"] .page-intro h1 span {
  color: var(--text-muted);
}
[data-theme="dark"] .page-toc a,
[data-theme="dark"] .tag-cloud span {
  color: var(--text-secondary);
}
[data-theme="dark"] .page-facts,
[data-theme="dark"] .support-grid h3,
[data-theme="dark"] .lifecycle-grid .step-top {
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .download-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
  }
  .lifecycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story,
  .story.flip {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .story.flip .story-copy {
    order: 0;
  }
  .page-intro h1 {
    font-size: 60px;
  }
}
@media (max-width: 800px) {
  .download-hero {
    grid-template-columns: 1fr;
  }
  .download-panel {
    max-width: 520px;
  }
  .audience-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .audience-card {
    padding: 26px 22px;
  }
  .page-intro {
    padding: 40px 0 36px;
  }
  .page-intro h1 {
    font-size: 42px;
  }
  .story {
    padding: 52px 0;
  }
  .story-copy h2 {
    font-size: 28px;
  }
}
@media (max-width: 580px) {
  .lifecycle-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .audience-card {
    transition: none;
  }
}
