/* Homepage, agents first (2026-11-28): the QG, the team, the catalogue, then
   approval and budget. Loaded by the homepage only, after brand.css and
   landing.css (shared with the legal pages, never changed for this page):
   everything here is scoped to .agents-home and overrides what it must. */
.agents-home {
  --raised: #181b22;
  --ok: #3ddc84;
  --warn: #ff9f43;
  --line-soft: #1c2028;
}

/* Header: one main button, shorter on a phone. */
.agents-home .nav-cta .short {
  display: none;
}
@media (max-width: 520px) {
  .agents-home .nav-cta .long {
    display: none;
  }
  .agents-home .nav-cta .short {
    display: inline;
  }
}

/* « Voir le lancement » only shows where home.js runs (.ss-button would
   otherwise win over the hidden attribute). */
.agents-home .ss-button[hidden] {
  display: none;
}

/* Shared pieces */
.agents-home .center {
  margin-inline: auto;
  text-align: center;
}
.agents-home .center .lead {
  margin-inline: auto;
}
.agents-home .example {
  margin: 0;
  color: var(--muted);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.agents-home .face {
  --tone: var(--accent);
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #fff6, transparent 55%),
    var(--tone);
  color: #0b0d06;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.agents-home .face-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.agents-home .face-lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.agents-home .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font: 11.5px/1.5 var(--font-mono);
  white-space: nowrap;
}
.agents-home .tag-ok {
  border-color: #3ddc8459;
  color: var(--ok);
}
.agents-home .tag-wait {
  border-color: #ff9f4366;
  color: var(--warn);
}

/* Hero: the product as it is, centred */
.agents-home .hero {
  text-align: center;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.agents-home .hero h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.agents-home .hero h1 span {
  display: block;
}
.agents-home .hero .lead {
  margin-inline: auto;
}
.agents-home .hero .actions {
  justify-content: center;
}
.agents-home .hero-alt {
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
}
.agents-home .hero-alt .text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agents-home .screen {
  max-width: 1120px;
  margin: 44px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0c0f;
  box-shadow: 0 60px 140px -60px #c4f04259;
}
.agents-home .screen img {
  display: block;
  width: 100%;
  height: auto;
}
.agents-home .screen figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.5 var(--font-mono);
  text-align: left;
}
.agents-home .reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}
.agents-home .reassure li::before {
  content: '●';
  margin-right: 8px;
  color: var(--accent);
  font-size: 9px;
  vertical-align: 2px;
}
.agents-home .reassure b {
  color: var(--ink);
  font-weight: 600;
}

/* The team: one agent at a time */
.agents-home .roster-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.agents-home .roster-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-size: 14px;
  cursor: pointer;
}
.agents-home .roster-tab .face {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.agents-home .roster-tab:hover {
  border-color: #3a404c;
  color: var(--ink);
}
.agents-home .roster-tab[aria-selected='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.agents-home .roster-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.agents-home .roster-panel[hidden] {
  display: none;
}
.agents-home .convo,
.agents-home .side {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 30px;
}
.agents-home .side {
  gap: 18px;
  border-left: 1px solid var(--line);
  background: #0d0f13;
}
.agents-home .msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.agents-home .msg-me {
  justify-self: end;
  border: 1px solid var(--line);
  border-bottom-right-radius: 4px;
  background: var(--raised);
}
.agents-home .msg-ai {
  border: 1px solid #2a3410;
  border-bottom-left-radius: 4px;
  background: #13170b;
}
.agents-home .msg-ai b {
  color: var(--accent);
  font-weight: 600;
}
.agents-home .result {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px dashed #3a4416;
  border-radius: 12px;
  background: #0f1209;
  font-size: 14px;
}
.agents-home .agent-id {
  display: flex;
  gap: 14px;
  align-items: center;
}
.agents-home .agent-id h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.agents-home .agent-id p {
  margin-top: 3px;
  color: var(--soft);
  font-size: 14.5px;
}
.agents-home .ticks,
.agents-home .uses {
  margin: 0;
  padding: 0;
  list-style: none;
}
.agents-home .ticks {
  display: grid;
  gap: 10px;
}
.agents-home .ticks li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--soft);
}
.agents-home .ticks li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.agents-home .label {
  margin-bottom: 8px;
  color: var(--muted);
  font: 11px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.agents-home .uses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agents-home .uses li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font: 12px/1.5 var(--font-mono);
}
.agents-home .uses li:last-child {
  border-style: dashed;
  color: var(--muted);
}
.agents-home .side .ss-button {
  white-space: normal;
  text-align: center;
}
.agents-home .more {
  margin-top: 18px;
  color: var(--soft);
  font-size: 14px;
  text-align: center;
}
@media (max-width: 860px) {
  .agents-home .roster-panel {
    grid-template-columns: 1fr;
  }
  .agents-home .side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .agents-home .convo,
  .agents-home .side {
    padding: 22px 18px;
  }
}
@media (max-width: 560px) {
  .agents-home .roster-tab {
    font-size: 13px;
  }
  .agents-home .msg {
    max-width: 100%;
  }
}

/* The catalogue: an agent lights up the families it uses */
.agents-home .catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.agents-home .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.agents-home .chip {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-size: 14px;
  cursor: pointer;
}
.agents-home .chip:hover {
  color: var(--ink);
}
.agents-home .chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.agents-home .orbit-note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
}
.agents-home .figures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}
.agents-home .figures b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.agents-home .orbit {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.agents-home .orbit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.agents-home .orbit circle {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 0.3;
}
.agents-home .orbit line {
  stroke: #262a33;
  stroke-width: 0.25;
  stroke-dasharray: 1 1.4;
  transition: stroke 0.2s;
}
.agents-home .orbit line.lit {
  stroke: var(--lit, var(--accent));
  stroke-width: 0.5;
  stroke-dasharray: none;
}
.agents-home .core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-content: center;
  width: 32%;
  aspect-ratio: 1;
  border: 1px solid #3a4416;
  border-radius: 50%;
  background: radial-gradient(circle, #1b230a, #0e1108);
  box-shadow: 0 0 80px #c4f0422e;
  text-align: center;
  transform: translate(-50%, -50%);
}
.agents-home .core b {
  display: block;
  color: var(--accent);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.agents-home .core span {
  color: var(--soft);
  font-size: 13px;
}
.agents-home .nodes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.agents-home .node {
  --tone: var(--accent);
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.agents-home .node::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}
.agents-home .node.lit {
  border-color: var(--tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent);
}
@media (max-width: 960px) {
  .agents-home .catalog {
    grid-template-columns: 1fr;
  }
}
/* On a phone the ring would crowd the labels: the families become a list
   under the core, lit the same way. */
@media (max-width: 640px) {
  .agents-home .orbit {
    aspect-ratio: auto;
    max-width: none;
  }
  .agents-home .orbit svg {
    display: none;
  }
  .agents-home .core {
    position: static;
    width: auto;
    aspect-ratio: auto;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 14px;
    transform: none;
  }
  .agents-home .core b,
  .agents-home .core span {
    display: inline;
    margin: 0 4px;
  }
  .agents-home .nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .agents-home .node {
    position: static;
    transform: none;
    font-size: 12.5px;
  }
}

/* A catalogue, not ten subscriptions */
.agents-home .vs-title {
  margin-top: clamp(56px, 8vw, 96px);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}
.agents-home .vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.agents-home .vs-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.agents-home .vs-card h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}
.agents-home .vs-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
}
.agents-home .vs-card li {
  display: flex;
  gap: 10px;
}
.agents-home .vs-no li::before {
  content: '×';
  color: #ff5d5d;
}
.agents-home .vs-yes {
  border-color: #3a4416;
  background: #0f1209;
}
.agents-home .vs-yes li::before {
  content: '✓';
  color: var(--accent);
}
@media (max-width: 760px) {
  .agents-home .vs {
    grid-template-columns: 1fr;
  }
}

/* Approve and budget: text beside an example */
.agents-home .feat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.agents-home .feat.flip > .demo {
  order: -1;
}
.agents-home .demo {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.agents-home .decision {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
}
.agents-home .decision p {
  color: var(--soft);
  font-size: 14px;
}
.agents-home .decision p b {
  margin-right: 6px;
  color: var(--ink);
}
.agents-home .fake-buttons {
  display: flex;
  gap: 8px;
}
.agents-home .fake-buttons span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.agents-home .fake-buttons span:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.agents-home .budgets {
  gap: 18px;
}
.agents-home .spend {
  display: grid;
  gap: 8px;
}
.agents-home .spend p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.agents-home .who-line {
  display: flex;
  gap: 8px;
  align-items: center;
}
.agents-home .amount {
  color: var(--muted);
  font: 12px/1.5 var(--font-mono);
}
.agents-home .budget-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.agents-home .budget-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
@media (max-width: 860px) {
  .agents-home .feat {
    grid-template-columns: 1fr;
  }
  .agents-home .feat.flip > .demo {
    order: 0;
  }
}

/* Agencies and developers: short blocks */
.agents-home #agences h2,
.agents-home #agencies h2 {
  max-width: 520px;
}
.agents-home .dev .actions {
  margin-top: 24px;
}

/* Pricing */
.agents-home .plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.agents-home .plan {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.agents-home .plan h3 {
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
}
.agents-home .plan .big {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.agents-home .plan .big small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.agents-home .plan p {
  color: var(--soft);
  font-size: 14.5px;
}
.agents-home .plan-main {
  border-color: #3a4416;
  background: #0f1209;
}
.agents-home .price-examples {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px 40px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.agents-home .price-examples h3 {
  font-size: 16px;
}
.agents-home .price-examples .note {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .agents-home .plans,
  .agents-home .price-examples {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .agents-home .price-examples .price-list dd {
    max-width: 11em;
    white-space: normal;
  }
}
