/* ───────────────────────────────────────────────────────────────────
   /agents — Agent recruiting landing page
   Page-scoped styles. Reuses design-system tokens + shared components
   (.stat/.stats.proof, .service-card, .btn, .eyebrow, .section-header).
   Only NEW primitives unique to this page live here.
   ─────────────────────────────────────────────────────────────────── */

/* ─── 1 · Hero ─────────────────────────────────────────── */
.agents-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + clamp(64px, 12vw, 132px)) 0 clamp(64px, 9vw, 112px);
  text-align: center;
}
.agents-hero .mesh-bg { z-index: 0; }
.agents-hero .container { position: relative; z-index: 1; }
.agents-hero-inner { max-width: 920px; margin: 0 auto; }
.agents-hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px auto 0;
  max-width: 16ch;
}
.agents-hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 24px auto 0;
  line-height: 1.6;
}
.agents-hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 26px auto 0;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--gold-soft);
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 56ch;
  line-height: 1.45;
  text-align: left;
}
.agents-hero-trust svg { color: var(--gold-bright); flex-shrink: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

/* ─── 2 · Numbers strip (reuses .stats.proof grid) ─────── */
.agents-numbers { padding-bottom: clamp(56px, 7vw, 88px); }
.agents-numbers .stat { text-align: center; }
.agents-numbers .stat-unit {
  font-size: 0.46em;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
}
.agents-numbers .stat-value-sm {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.1;
}

/* ─── 3 · The math table ───────────────────────────────── */
.plan-table-wrap { max-width: 760px; margin: 0 auto; }
.plan-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.plan-table th,
.plan-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.plan-table thead th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: var(--bg-2);
  text-transform: none;
}
.plan-table tbody th {
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
}
.plan-table .num-col {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-table tbody tr:last-child th,
.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table tr.is-exl {
  background: linear-gradient(90deg, var(--primary-dim), transparent);
}
.plan-table tr.is-exl th { color: var(--gold-bright); font-weight: 700; }
.plan-table tr.is-exl .num-col {
  color: var(--gold-bright);
  font-size: 1.25rem;
}
.plan-caption {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
}

/* ─── 4 · What's included ──────────────────────────────── */
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.included-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.included-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.included-item .check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--primary-dim);
  color: var(--gold-bright);
}
.included-item .check svg { width: 17px; height: 17px; }
.included-item h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.included-item p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* ─── 5 · Why EXL (reuses .service-card) ───────────────── */
.why-grid { grid-template-columns: repeat(2, 1fr); }
.why-grid .service-card { min-height: auto; }

/* ─── 6 · Proof band headline (avoid the .stats grid trap) ─ */
.agents-proof { padding-bottom: clamp(56px, 7vw, 88px); }
.agents-proof .container.proof-head-wrap {
  display: block;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.proof-headline {
  font-family: var(--font-serif);
  font-weight: 380;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 auto;
}
.agents-proof .stat { text-align: center; }

/* ─── 7 · Who it's for / not for ───────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.split-card {
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
}
.split-card .split-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.split-card .split-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
}
.split-card p { color: var(--text-dim); line-height: 1.6; }
.split-card.is-for { border-color: rgba(52,211,153,0.30); }
.split-card.is-for .split-tag { color: var(--success); }
.split-card.is-for .split-tag::before { background: var(--success); box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.split-card.is-not .split-tag { color: var(--text-muted); }
.split-card.is-not .split-tag::before { background: var(--text-muted); }

/* ─── 8 · FAQ ──────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  padding: 24px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p { color: var(--text-dim); line-height: 1.6; }

/* ─── 9 · Final CTA ────────────────────────────────────── */
.agents-cta { text-align: center; }
.agents-cta-inner { max-width: 760px; margin: 0 auto; }
.agents-cta h2 { margin: 18px auto 0; max-width: 20ch; }
.agents-cta .final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* ─── 10 · Compliance footer (page-level) ──────────────── */
.agents-compliance {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.agents-compliance p {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 900px;
}

/* ─── Income calculator (extends homepage .calc-* from style.css) ─── */
.agents-calc .calc-panel { display: flex; flex-direction: column; gap: 22px; }
.ag-calc-controls { display: grid; gap: 20px; }
.ag-calc-field .calc-label { display: block; margin-bottom: 10px; }
.ag-calc-field .form-select { width: 100%; }
.ag-calc-annual {
  text-align: center;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--primary-dim), transparent);
  border: 1px solid var(--line-strong);
}
.ag-annual-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ag-annual-val {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--gold-bright);
}
.ag-annual-sub { margin-top: 10px; font-size: 0.85rem; color: var(--text-dim); }

/* ─── Detailed comparison table ────────────────────────── */
.compare-wrap { max-width: 920px; }
.compare-table { width: 100%; }
.compare-table th[scope="col"],
.compare-table td { text-align: center; white-space: nowrap; }
.compare-table th[scope="row"] { text-align: left; white-space: normal; color: var(--text-dim); font-weight: 500; }
.compare-table .exl-col { background: linear-gradient(180deg, var(--primary-dim), transparent); color: var(--gold-bright); font-weight: 700; }
.compare-table thead th { font-family: var(--font-display); font-size: 0.8rem; }

/* ─── Application form ─────────────────────────────────── */
.apply-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
}
.apply-group { border: none; margin: 0 0 8px; padding: 0; }
.apply-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-top: 18px;
}
.apply-step {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--primary-dim);
  color: var(--gold-bright);
  font-size: 0.85rem;
}
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-hint { display: block; margin-top: -8px; font-size: 0.78rem; color: var(--text-muted); }
.form-optional { color: var(--text-muted); font-weight: 400; }
.apply-understand {
  margin: 8px 0 4px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.apply-understand-head { font-weight: 600; margin-bottom: 12px; }
.apply-understand ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.apply-understand li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.apply-understand li::before {
  content: "";
  position: absolute;
  left: 2px; top: 4px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: rotate(-45deg);
}
.apply-agree { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.apply-agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.form-consent { font-size: 0.78rem; color: var(--text-muted); margin: 16px 0 4px; line-height: 1.5; }
.form-consent a { color: var(--gold-bright); }
.apply-helper { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }
#apGlobalError { display: none; color: var(--error); font-size: 0.88rem; margin-top: 14px; padding: 10px 14px; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); border-radius: var(--r); }
#apGlobalError.visible { display: block; }

/* Form success + spinner (cloned from contact.css) */
.btn-submitting .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: 28px 0; animation: fade-in 0.4s var(--ease-out); }
.form-success.visible { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.success-check { width: 76px; height: 76px; border-radius: 50%; background: rgba(52,211,153,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border: 1.5px solid rgba(52,211,153,0.45); }
.form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { font-size: 0.95rem; color: var(--text-dim); max-width: 360px; margin: 0 auto 22px; line-height: 1.6; }
.reset-link { display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--primary); cursor: pointer; background: none; border: none; padding: 8px 16px; border-radius: var(--r-full); transition: background var(--dur), color var(--dur); }
.reset-link:hover { color: var(--primary-h); background: rgba(127,168,255,0.08); }

/* ─── Plan tiers (pricing) ─────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.plan-card.plan-featured {
  border-color: rgba(127,168,255,0.45);
  background: linear-gradient(180deg, var(--primary-dim), var(--bg-1) 60%);
  box-shadow: var(--shadow-glow-primary);
}
.plan-badge {
  position: absolute;
  top: -11px; left: 28px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--gold-bright);
  padding: 4px 12px;
  border-radius: var(--r-full);
}
.plan-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.plan-price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1;
  margin: 8px 0 2px;
}
.plan-per { font-size: 0.34em; font-family: var(--font-body); color: var(--text-muted); letter-spacing: 0; }
.plan-tagline { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 20px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 4px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: rotate(-45deg);
}
.plan-card .btn { margin-top: auto; }
.plans-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin: 22px auto 0; max-width: 620px; line-height: 1.5; }

/* ─── Agent guides cross-link ──────────────────────────── */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.guide-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.guide-link:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.guide-title { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.guide-sub { font-size: 0.85rem; color: var(--text-dim); line-height: 1.45; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 760px) {
  .included-grid,
  .why-grid,
  .split-grid,
  .apply-grid,
  .plans-grid,
  .guides-grid { grid-template-columns: 1fr; }
  .agents-hero-trust { text-align: center; }
  .plan-table th, .plan-table td { padding: 14px 16px; }
  .plan-table thead th { font-size: 0.72rem; }
}
@media (max-width: 680px) {
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 560px; }
}
