/* hero.css — candidate hero sections (signup / api / agent).
   Loaded from inside each section_hero_* define. Scoped classes only
   (hs- / ha- / hg-); tokens and primitives come from app.css. */

/* ---------- shared split layout ---------- */
.hs-grid, .ha-grid, .hg-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 8px;
}
.hs-left, .hs-right, .ha-left, .ha-right, .hg-left, .hg-right { min-width: 0; }
.hs-grid h1, .ha-grid h1, .hg-grid h1 { font-size: clamp(32px, 4.2vw, 46px); }
.hs-sub, .hg-sub { color: var(--muted); font-size: 17px; max-width: 46ch; margin-bottom: 26px; }
.hs-sub b, .hg-sub b { color: var(--fg); font-weight: 600; }
.hs-sub { margin-bottom: 22px; }
.ha-grid .cta-row, .hg-grid .cta-row { margin-top: 0; }
@media (max-width: 860px) {
  .hs-grid, .ha-grid, .hg-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
}

/* ---------- hero-signup: inline email form ---------- */
.hs-form { display: flex; gap: 10px; max-width: 470px; }
.hs-email {
  flex: 1; min-width: 0; margin: 0;
  font: 400 14.5px "Inter", system-ui, sans-serif;
  color: var(--fg); background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px;
}
.hs-email:focus { outline: none; border-color: var(--accent); }
.hs-submit {
  margin: 0; white-space: nowrap; border-radius: 10px;
  background: var(--accent); color: #fff;
  padding: 11px 20px; font-size: 15px;
}
.hs-submit:hover { background: var(--accent); filter: brightness(1.06); }
.hs-notes { margin: 0; }
.hs-notes .hs-note { margin-top: 8px; }
.hs-note { font-size: 13px; margin: 0; }
.hs-note[hidden] { display: none; }
.hs-sent { color: var(--up); }
.hs-err { color: var(--down); }
.hs-alt { margin-top: 2px; }
@media (max-width: 460px) {
  .hs-form { flex-direction: column; }
  .hs-email { font-size: 16px; }
  .hs-submit { width: 100%; }
}

/* ---------- hero-signup: live quote + websocket widget ---------- */
.hs-quote { padding: 8px 20px 0; overflow: hidden; }
.hs-symtabs {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 8px 0 10px; border-bottom: 1px solid var(--border);
}
.hs-symtab {
  border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; font: 500 13px var(--mono);
  padding: 5px 10px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.hs-symicon {
  width: 16px; height: 16px;
  display: block; object-fit: contain;
  position: relative; top: 1px;
}
.hs-symtab:hover { color: var(--fg); background: rgba(38,38,34,.05); }
.hs-symtab-active, .hs-symtab-active:hover { background: rgba(23,107,74,.12); color: var(--accent); }
.hs-pricerow { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.hs-px { font: 600 32px/1.1 var(--mono); letter-spacing: -.03em; border-radius: 4px; }
.hs-chg { font: 500 13px var(--mono); white-space: nowrap; }
.hs-chg:not(.up):not(.down) { color: var(--muted); font-size: 12px; }
.hs-spark { height: 90px; margin-top: 6px; }
.hs-spark canvas { width: 100%; height: 100%; display: block; }
.hs-ws { margin: 12px -20px 0; border-top: 1px solid var(--border); background: #FBFAF7; }
.hs-ws-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-bottom: 1px solid var(--border);
  font: 500 11px var(--mono); color: var(--muted);
}
.hs-ws-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 8px; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-ws-live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--up); flex: none; }
.hs-ws-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--up);
  animation: hs-pulse 2.2s ease-in-out infinite;
}
.hs-ws-live[data-status="connecting"], .hs-ws-live[data-status="reconnecting"] { color: var(--muted); }
.hs-ws-live[data-status="connecting"] i, .hs-ws-live[data-status="reconnecting"] i { background: var(--muted); }
.hs-ws-live[data-status="offline"] { color: var(--down); }
.hs-ws-live[data-status="offline"] i { background: var(--down); }
.hs-ws-live[data-status="stale"] { color: var(--down); }
.hs-ws-live[data-status="stale"] i { background: var(--down); }
@keyframes hs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hs-ws-body {
  height: 140px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px 14px 10px;
  font: 400 11px/1.75 var(--mono); color: var(--muted);
}
.hs-ws-line {
  flex: none; min-height: 20px; padding: 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: hs-row-in .32s cubic-bezier(.2,.75,.35,1) both;
}
@keyframes hs-row-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-ws-line { animation: none; }
}

/* ---------- hero-api ---------- */
.ha-points { list-style: none; margin: 0 0 26px; display: grid; gap: 9px; }
.ha-points li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.ha-points li::before { content: "⏺"; color: var(--accent); font-size: 9px; flex: none; }
.ha-points code {
  font: 500 12.5px var(--mono); color: var(--accent);
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 0 6px;
}
.ha-term { margin-top: 0; }
.ha-term .term-body { font-size: 12.5px; }
.ha-term .curl-line { font-size: 12.5px; overflow-wrap: anywhere; }
.ha-resp {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 12.5px; line-height: 1.7;
}

/* ---------- hero-agent ---------- */
.hg-card { padding: 18px 20px 16px; }
.hg-card .chat { margin-bottom: 10px; }
.hg-tool {
  max-width: 85%;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.hg-tool-head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 12px; border-bottom: 1px solid var(--border);
  font: 600 11.5px var(--mono);
}
.hg-tool-glyph { color: var(--accent); }
.hg-tool-kind { margin-left: auto; font-weight: 400; font-size: 10.5px; color: var(--muted); }
.hg-tool-args {
  padding: 9px 12px; background: #FBFAF7;
  font: 400 12px/1.7 var(--mono);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.hg-result {
  max-width: 85%;
  padding: 7px 12px; border-radius: 10px;
  font: 500 12px var(--mono); color: var(--up);
  background: rgba(61,139,95,.08); border: 1px solid rgba(61,139,95,.30);
}
.hg-check { font-weight: 600; }
.hg-card .tag { margin-bottom: 0; }
