/* Agents page: contents nav + scrollspy, reveal, apply form.
   Scoped under .agents-page so other pages are untouched. */

.agents-page .sd-hero { padding: 44px 0 22px; }
.agents-page .sd-section { padding: 30px 0; }
.agents-page .sd-section .sd-kicker + h2 { margin-top: 10px; }
.agents-page .sd-card h3 { margin: 0 0 8px; font-size: 17px; }
.agents-page .sd-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.agents-page .sd-section ol { line-height: 1.85; }

/* ---------- Contents bar (sticky under the site header) ---------- */
.ag-toc {
  position: sticky;
  top: var(--ag-toc-top, 62px);
  z-index: 55;
  padding: 8px 0 6px;
  background: transparent;
}
.ag-toc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(28, 42, 51, 0.07);
  padding: 4px 10px 4px 18px;
}
.ag-toc-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-right: 12px;
  border-right: 1px solid var(--border);
}
.ag-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ag-toc-list::-webkit-scrollbar { display: none; }
.ag-toc-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ag-toc-list a:hover { color: var(--text); background: var(--surface-2); }
.ag-toc-list a.is-active {
  color: var(--accent);
  background: rgba(10, 124, 174, 0.08);
  border-color: rgba(10, 124, 174, 0.28);
  font-weight: 650;
}
.ag-toc-num {
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.agents-page section.sd-section[id] { scroll-margin-top: var(--ag-offset, 120px); }

/* ---------- Subtle reveal on scroll ---------- */
.agents-page [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.agents-page [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .agents-page [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Application form ---------- */
.ag-apply { padding: 26px 28px; border-radius: 16px; margin-top: 18px; }
.ag-apply-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ag-apply-head h3 { margin: 0 0 4px; font-size: 19px; }
.ag-apply-head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.req { color: var(--bad); }

.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ag-field { display: grid; gap: 6px; margin-bottom: 15px; }
.ag-field label,
.ag-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.ag-field .input,
.ag-field .select,
.ag-field .textarea {
  width: 100%;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
}
.ag-field .input::placeholder,
.ag-field .textarea::placeholder { color: #9aa39e; }
.ag-field .textarea { resize: vertical; min-height: 74px; line-height: 1.55; }

.ag-fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.ag-fieldset legend { margin-bottom: 9px; padding: 0; }
.ag-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ag-opt input { margin-top: 3px; accent-color: var(--accent); }
.ag-opt-box strong { display: block; font-size: 14px; color: var(--text); line-height: 1.4; }
.ag-opt-box small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ag-opt:hover { border-color: rgba(10, 124, 174, 0.45); }
.ag-opt:has(input:checked) {
  border-color: var(--accent);
  background: rgba(10, 124, 174, 0.06);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.ag-opt:focus-within { outline: 2px solid rgba(10, 124, 174, 0.35); outline-offset: 1px; }

.ag-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}
.ag-consent input { margin-top: 2px; accent-color: var(--accent); }

.ag-status { display: none; margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.55; }
.ag-status.is-show { display: block; }
.ag-status.is-err { background: rgba(195, 82, 63, 0.1); color: #9a3324; border: 1px solid rgba(195, 82, 63, 0.32); }
.ag-status.is-ok { background: rgba(31, 143, 192, 0.1); color: #0c5b63; border: 1px solid rgba(31, 143, 192, 0.32); }

.ag-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ag-actions .sd-btn { min-height: 46px; padding: 12px 28px; border-radius: 12px; font-size: 15px; }
.ag-actions .sd-btn[disabled] { opacity: 0.6; cursor: default; }
.ag-note { color: var(--muted); font-size: 12.5px; }

@media (max-width: 720px) {
  .ag-grid, .ag-opts { grid-template-columns: 1fr; }
  .ag-toc-label { display: none; }
  .ag-apply { padding: 20px 18px; }
  .agents-page .sd-hero { padding: 34px 0 18px; }
}


/* Live vs launching band + hero benefits (agents page) */
.ag-band { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-band-col { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.ag-band-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.ag-band-col:first-child .ag-band-tag { background: rgba(31, 143, 192, 0.12); color: #0c5b63; }
.ag-band-col:last-child .ag-band-tag { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.ag-band-col p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.ag-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ag-benefits span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 13px; color: var(--text);
}
.ag-benefits span::before { content: "\2713"; color: var(--accent); font-weight: 800; }
@media (max-width: 720px) { .ag-band { grid-template-columns: 1fr; } }
