/* ============================================
   AI PAGE — page-specific
   Loads after components.css. Adds the four-ways
   overview grid, the demo split (moved here from
   an old inline <style>), and the dark
   human-in-the-loop split with its diagram.
   ============================================ */

/* ─── FOUR-WAYS OVERVIEW ─── */
#four-ways .grid-divided { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { #four-ways .grid-divided { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { #four-ways .grid-divided { grid-template-columns: 1fr; } }

.fw-jump {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
}
.fw-jump:hover { text-decoration: underline; }

/* anchor targets clear the fixed nav */
#custom-builds, #human-in-the-loop, #your-tools, #customer-facing { scroll-margin-top: 90px; }

/* ─── DEMO SPLIT (interactive systems map) ─── */
.amx-split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.amx-split .section-intro { margin-bottom: 0; }
@media (min-width: 920px) { .amx-split { grid-template-columns: 0.82fr 1.18fr; gap: 44px; } }
.amx-map iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--faint);
  border-radius: 10px;
  background: var(--paper);
  display: block;
}
@media (max-width: 640px) { .amx-map iframe { height: 520px; } }

/* ─── HUMAN-IN-THE-LOOP (dark) SPLIT ─── */
.hitl-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hitl-split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.hitl-split .section-intro { margin-bottom: 0; }
.hitl-split figure { margin: 0; }
.hitl-split svg { width: 100%; height: auto; display: block; }

.hitl-stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 30px 0 8px; }
#human-in-the-loop .stat-val { color: #fff; }
#human-in-the-loop .stat-key { color: rgba(255, 255, 255, 0.55); }

.hitl-cap {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── PROBLEMS: OWNER-QUOTE CARDS WITH THE FIX ─── */
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .q-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .q-grid { grid-template-columns: 1fr; } }
.q-card {
  background: var(--paper);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.q-mark {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 12px;
}
.q-card > p { font-size: 15px; color: var(--ink); font-weight: 300; line-height: 1.65; margin: 0; }
/* staged reveal: quote → "What would we do?" → fix + proof link.
   Same no-JS <details> mechanism as .faq-item. */
.q-reveal { margin-top: auto; padding-top: 16px; }
.q-reveal summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: 100px;
  padding: 7px 16px;
  transition: background var(--transition), color var(--transition);
}
.q-reveal summary::-webkit-details-marker { display: none; }
.q-reveal summary::after { content: ' +'; }
.q-reveal summary:hover,
.q-reveal[open] summary { background: var(--accent-text); color: #fff; }
.q-reveal[open] summary::after { content: ' −'; }
.q-card .q-fix {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.6;
}
.q-proof {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
}
.q-proof:hover { text-decoration: underline; }
.q-foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.q-foot p { font-size: 14.5px; color: var(--mid); margin: 0; max-width: 56ch; }
.q-foot strong { color: var(--ink); font-weight: 500; }
