/* Access layer: homepage blocks (partials/home-access.php, home-agents-teaser.php,
   home-two-doors.php) and the /agents/ page (page-agents.php). Builds on the
   layout tokens in main.css (--sec-*, --panel-*, --fs-*). */

/* ---------- dark block on the homepage ---------- */
.ax-why { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ax-h { color: var(--white); }
.ax-h span { display: block; color: #7fe0ee; font-style: italic; }
.ax-lead { margin-top: 22px; max-width: 520px; font-weight: 300; font-size: var(--fs-lead, 18px); line-height: 1.5; color: rgba(255,255,255,0.78); }

.ax-bench { margin: 0; padding: 22px 24px; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; background: rgba(255,255,255,0.03); }
.ax-bench figcaption { font-weight: 300; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.ax-bench figcaption b { display: block; font-family: var(--serif); font-weight: 300; font-size: 52px; line-height: 1; color: var(--white); margin-bottom: 6px; }
.ax-bench ul { list-style: none; display: grid; gap: 9px; }
.ax-bench li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.75); }
.ax-bench li i { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.ax-bench li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: linear-gradient(90deg, #06b6d4, #7fe0ee); border-radius: 3px; }
.ax-bench li b { font-weight: 500; text-align: right; color: var(--white); }
.ax-src { margin-top: 14px; font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,0.45); }

/* ---------- light teaser on the homepage ---------- */
.ax-chat { margin: 0; padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--border2, #ece9e0);
  box-shadow: 0 30px 60px -36px rgba(10,17,26,0.35); display: grid; gap: 12px; }
.ax-chat-ex { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ax-chat-q { justify-self: end; max-width: 82%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--white); font-size: 15px; line-height: 1.45; }
.ax-chat-q--short { padding: 10px 16px; }
.ax-chat-a { justify-self: start; max-width: 88%; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--warm); font-size: 15px; line-height: 1.5; color: var(--ink); display: grid; gap: 8px; }
.ax-chat-a b { font-weight: 600; }
.ax-chat-a--done { background: rgba(6,182,212,0.1); }
.ax-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.ax-teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ax-teaser-copy { display: grid; gap: 18px; }
.ax-acts { list-style: none; display: grid; gap: 0; margin-top: 6px; border-top: 1px solid var(--border); }
.ax-acts li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.45; color: var(--muted); }
.ax-acts b { font-weight: 600; color: var(--ink); }
.ax-link { justify-self: start; font-weight: 500; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--cyan); padding-bottom: 2px; }

.ax-code { margin: 0; border-radius: 18px; background: var(--ink); color: #dfe7ee; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,17,26,0.45); }
.ax-code-top { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.08); }
.ax-code pre { margin: 0; padding: 18px; overflow-x: auto; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ax-code .c { color: #8a99a8; }
.ax-code .k { color: #a2e75d; }
.ax-code .s { color: #7fe0ee; }

@media (max-width: 1024px) {
  .ax-why, .ax-teaser-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .ax-bench li { grid-template-columns: 104px minmax(0, 1fr) 36px; gap: 8px; font-size: 12px; }
  .ax-bench figcaption b { font-size: 42px; }
  .ax-acts li { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; font-size: 14px; }
  .ax-code pre { font-size: 11.5px; }
}

/* ---------- /agents/ page ---------- */
.ag-hero { min-height: 0; display: block; background: var(--ink); color: var(--white); padding: 168px var(--edge, 222px) 96px; background-image: radial-gradient(90% 120% at 100% 0%, rgba(6,182,212,0.24), transparent 60%); }
.ag-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1400px; }
.ag-kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #7fe0ee; margin-bottom: 20px; }
.ag-h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4vw, 62px); line-height: 1.06; letter-spacing: -0.5px; }
.ag-h1 em { color: #7fe0ee; }
.ag-sub { margin-top: 22px; max-width: 540px; font-weight: 300; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: rgba(255,255,255,0.8); }
.ag-ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 32px; }
.ag-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; font-size: 16px; }
.ag-btn:hover { background: #e9fbfe; }
.ag-btn-2 { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 2px; font-size: 15.5px; }

.ag-sec { padding: var(--sec-y) var(--sec-x); }
.ag-sec-inner { padding: var(--panel-pt) var(--panel-x) var(--panel-pb); background: var(--warm); }
.ag-sec--plain .ag-sec-inner { background: none; }
.ag-h2 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: var(--lh-h2); max-width: 760px; }
.ag-lead { margin-top: 16px; max-width: 640px; font-weight: 300; font-size: var(--fs-lead, 18px); line-height: 1.5; color: var(--muted); }
.ag-grid { display: grid; gap: var(--grid-gap, 20px); margin-top: 40px; }
.ag-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag-card { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); display: grid; gap: 10px; align-content: start; }
.ag-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.ag-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.ag-card .ag-verb { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.ag-card .ag-stat { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1; color: var(--ink); }
.ag-note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.ag-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px; }
.ag-list { list-style: none; border-top: 1px solid var(--border); }
.ag-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.5; color: var(--muted); }
.ag-list b { color: var(--ink); font-weight: 600; }
.ag-spec { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.ag-spec li a, .ag-spec li span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); font-size: 14px; color: var(--ink); }
.ag-spec li a:hover { border-color: var(--ink); }

.ag-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ag-form { display: grid; gap: 14px; padding: 28px; border-radius: 18px; background: var(--white); color: var(--ink); }
.ag-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.ag-form input, .ag-form select, .ag-form textarea { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; font-size: 15px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--ink); }
.ag-form textarea { min-height: 96px; resize: vertical; }
.ag-form .ag-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ag-form button { justify-self: start; padding: 15px 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 500 16px var(--sans); cursor: pointer; }
.ag-form button[disabled] { opacity: .5; }
.ag-err { color: #b42318; font-size: 14px; }
.ag-done { padding: 28px; border-radius: 18px; background: var(--white); color: var(--ink); font-size: 17px; line-height: 1.5; }
.ag-hp { position: absolute; left: -9999px; }

@media (max-width: 1024px) {
  .ag-hero { padding: 132px var(--edge, 24px) 72px; }
  .ag-hero-grid, .ag-two, .ag-form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .ag-grid--3, .ag-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ag-grid--3, .ag-grid--4, .ag-grid--2 { grid-template-columns: 1fr; }
  .ag-list li { grid-template-columns: 1fr; gap: 4px; }
  .ag-form .ag-row { grid-template-columns: 1fr; }
}

/* Homepage "Why now" (partials/home-agents-teaser.php): the two numbers, then the agent beat. */
.ax-teaser .ax-shift-h { max-width: 22ch; }
.ax-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ax-stats p { display: grid; gap: 8px; padding: 28px 32px 28px 0; }
.ax-stats p + p { padding-left: 32px; border-left: 1px solid var(--border); }
.ax-stats b { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -1.5px; color: var(--ink); }
.ax-stats span { max-width: 30ch; font-size: 16px; line-height: 1.45; color: var(--muted); }
.ax-shift-h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -0.3px; color: var(--ink); }
.ax-teaser .ax-src { margin-top: 0; color: var(--muted); opacity: 0.8; }
@media (max-width: 768px) {
  .ax-stats { grid-template-columns: 1fr; }
  .ax-stats p { padding: 22px 0; }
  .ax-stats p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* /agents/ hero: no photo; a dark field and the request -> Tely -> practice exchange. */
.ag-hero2 { background: var(--ink); }
.ag-hero2-bg {
  background:
    radial-gradient(50% 60% at 78% 50%, rgba(6,182,212,0.16), rgba(6,182,212,0) 70%),
    radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--ink);
}
.ag-hero2 .hero-content { align-items: center; justify-content: space-between; gap: 56px; }
.ag-hero2 .sv-hero-left { flex: 1 1 0; max-width: 620px; }
.ag-viz { position: relative; flex: 0 0 clamp(380px, 32vw, 500px); margin: 0; display: grid; gap: 0; }
.ag-viz-card { border-radius: 18px; padding: 20px 22px; }
.ag-viz-req { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ag-viz-k { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ag-viz-res .ag-viz-k { color: var(--muted); }
.ag-viz-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.ag-viz-dot--ok { background: var(--green); }
.ag-viz-req dl { margin: 14px 0 0; display: grid; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.ag-viz-req dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.ag-viz-req dt { color: #7fe0ee; }
.ag-viz-req dd { margin: 0; color: rgba(255,255,255,0.9); }
.ag-viz-hub { display: grid; justify-items: center; padding: 0; }
.ag-viz-line { width: 1px; height: 22px; background: linear-gradient(rgba(127,224,238,0.2), rgba(127,224,238,0.8)); }
.ag-viz-node { display: grid; place-items: center; padding: 10px 18px; border-radius: 999px; background: rgba(10,17,26,0.9); border: 1px solid rgba(127,224,238,0.5); box-shadow: 0 0 0 6px rgba(6,182,212,0.08), 0 0 40px rgba(6,182,212,0.25); }
.ag-viz-node img { display: block; height: 18px; width: auto; }
.ag-viz-res { background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.ag-viz-name { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.ag-viz-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.ag-viz-checks li { display: flex; gap: 10px; align-items: baseline; }
.ag-viz-checks li::before { content: '✓'; flex-shrink: 0; font-weight: 700; color: #0c7a8c; }
.ag-viz-sent { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: rgba(6,182,212,0.1); font-size: 13.5px; font-weight: 500; }
.ag-viz-ex { position: absolute; top: -26px; right: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
@media (max-width: 1024px) {
  .ag-hero2 .hero-content { flex-direction: column; align-items: stretch; }
  .ag-viz { flex: none; width: 100%; max-width: 520px; margin-top: 16px; }
}
@media (max-width: 768px) {
  .ag-viz-card { padding: 16px; }
  .ag-viz-req dl div { grid-template-columns: 80px minmax(0, 1fr); }
  .ag-viz-ex { top: -22px; }
}
