/* AI integration service page.
   Shell, sub-nav, structure tabs, diagram frame and pricing come from
   service-page.css (.sv- prefix). Only what this page alone uses is here. */

/* ---------- Honest opener ---------- */

.ai-first {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
}
.ai-first > div { flex: 1 1 460px; }
.ai-first h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  text-transform: uppercase;
}
.ai-first p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.94rem; line-height: 1.75; }
.ai-first p:last-child { margin-bottom: 0; }
.ai-first strong { color: var(--text); }

/* ---------- Cards ---------- */

.ai-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ai-cards > .ai-card { flex: 1 1 330px; max-width: 400px; }

.ai-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}
.ai-card:hover { border-color: var(--accent-1); }
.ai-card > i { color: var(--accent-1); font-size: 1.3rem; }
.ai-card h3 {
  margin: 16px 0 12px;
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ai-card-what { margin: 0 0 14px; color: var(--text); font-size: 0.9rem; line-height: 1.65; }
.ai-card-why {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.75;
}
/* The two sections about failure are marked as cautions, not features. */
.ai-cards-warn > .ai-card { border-left: 2px solid var(--accent-2); }
.ai-cards-warn > .ai-card > i { color: var(--accent-2); }
.ai-cards-warn > .ai-card:hover { border-color: var(--accent-2); }

/* Things we have actually shipped get a slightly stronger frame. */
.ai-cards-built > .ai-card { border-color: rgba(238, 62, 201, 0.3); }

/* ---------- Diagram beside its explanation ---------- */

.ai-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; margin-bottom: 48px; }
.ai-pair:last-of-type { margin-bottom: 0; }
.ai-pair-text h3 { margin: 0 0 14px; font-size: 1.45rem; }
.ai-pair-text p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.8; }
.ai-pair-text p:last-child { margin-bottom: 0; }
.ai-pair-text strong { color: var(--text); }
.ai-pair .sv-diagram-wrap { margin: 0; }

.ai-sub { margin: 64px 0 12px; font-size: 1.45rem; }
.ai-sub-first { margin-top: 0; }
.ai-sub-p { max-width: 720px; margin: 0 0 24px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.8; }
.ai-sub-p strong { color: var(--text); }

.ai-note {
  margin: 0;
  padding: 18px 20px;
  background: var(--bg);
  border-left: 2px solid var(--accent-2);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.ai-note i { margin-right: 8px; color: var(--accent-2); }
.ai-note strong { color: var(--text); }

/* ---------- Approval gate ---------- */

.ag-box { fill: #141414; stroke: #3A3A3A; stroke-width: 1.2; }
.ag-box-on { fill: rgba(238, 62, 201, 0.1); stroke: var(--accent-1); }
.ag-gate { fill: rgba(238, 62, 201, 0.08); stroke: var(--accent-1); stroke-width: 1.6; }
.ag-t { fill: var(--text); font-family: var(--font-nav); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.ag-gate-t { fill: var(--text); font-family: var(--font-nav); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-on { fill: var(--accent-1); }
.ag-s { fill: var(--text-muted); font-family: var(--font-body); font-size: 11.5px; }
.ag-link { fill: none; stroke: #3A3A3A; stroke-width: 1.3; }
.ag-link-on { stroke: var(--accent-1); stroke-width: 1.5; }
.ag-back { fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ag-back-t { fill: var(--accent-2); font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Fallback chain ---------- */

.fc-box { fill: #141414; stroke: #3A3A3A; stroke-width: 1.2; }
.fc-box-dead { fill: #111111; stroke: rgba(255, 111, 60, 0.5); stroke-dasharray: 5 4; }
.fc-box-on { fill: rgba(238, 62, 201, 0.08); stroke: var(--accent-1); }
.fc-box-q { fill: #101010; stroke: #3A3A3A; stroke-dasharray: 4 4; }
.fc-t { fill: var(--text); font-family: var(--font-nav); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.fc-warn { fill: var(--accent-2); }
.fc-on { fill: var(--accent-1); }
.fc-s { fill: var(--text-muted); font-family: var(--font-body); font-size: 11px; }
.fc-link { fill: none; stroke: #3A3A3A; stroke-width: 1.3; }
.fc-link-warn { stroke: var(--accent-2); stroke-dasharray: 4 4; }
.fc-link-on { stroke: var(--accent-1); }

/* ---------- Data boundary ---------- */

.db-wall { stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 6 5; }
.db-head { font-family: var(--font-nav); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.db-on { fill: var(--accent-1); }
.db-warn { fill: var(--accent-2); }
.db-row { fill: #191919; stroke: #2E2E2E; stroke-width: 1; }
.db-row-out { fill: #131313; stroke: rgba(255, 111, 60, 0.4); }
.db-s { fill: var(--text); font-family: var(--font-body); font-size: 12.5px; }
.db-cross { fill: none; stroke: var(--accent-2); stroke-width: 1.6; }
.db-cap { fill: #6A6A6A; font-family: var(--font-body); font-size: 11.5px; }

/* ---------- Cost shape ---------- */

.cs-l { font-family: var(--font-nav); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cs-warn { fill: var(--accent-2); }
.cs-on { fill: var(--accent-1); }
.cs-bar { fill: #191919; stroke: #2E2E2E; stroke-width: 1; }
.cs-bar-warn { fill: rgba(255, 111, 60, 0.16); stroke: var(--accent-2); }
.cs-bar-on { fill: rgba(238, 62, 201, 0.16); stroke: var(--accent-1); }
.cs-in { fill: var(--text-muted); font-family: var(--font-body); font-size: 12px; }

/* ---------- Analysis boundary ---------- */

.ab-col { fill: #131313; stroke: #2C2C2C; stroke-width: 1; }
.ab-col-on { fill: rgba(238, 62, 201, 0.05); stroke: var(--accent-1); }
.ab-head { fill: var(--text-muted); font-family: var(--font-nav); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ab-on { fill: var(--accent-1); }
.ab-s { fill: var(--text); font-family: var(--font-body); font-size: 13px; }
.ab-rule { stroke: #262626; stroke-width: 1; }
.ab-rule-on { stroke: rgba(238, 62, 201, 0.25); }
.ab-note { fill: #6A6A6A; font-family: var(--font-body); font-size: 11.5px; }

/* ---------- Level thumbnails ---------- */

.al-doc { fill: #141414; stroke: #3A3A3A; stroke-width: 1.2; }
.al-doc-on { fill: #171017; stroke: var(--accent-1); }
.al-ln { fill: #2E2E2E; }
.al-ln-on { fill: rgba(238, 62, 201, 0.45); }
.al-link { fill: none; stroke: var(--accent-1); stroke-width: 1.4; }
.al-spark { fill: rgba(238, 62, 201, 0.4); stroke: var(--accent-1); stroke-width: 1.2; }
.al-ask { fill: #191919; stroke: #3A3A3A; stroke-width: 1.1; }
.al-ask-t { fill: var(--text); font-family: var(--font-nav); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.al-cite { fill: rgba(238, 62, 201, 0.25); stroke: var(--accent-1); stroke-width: 1; }
.al-cite-t { fill: var(--text); font-family: var(--font-nav); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.al-phone { fill: #1C1C1C; stroke: #3A3A3A; stroke-width: 1.3; }
.al-bub { fill: #262626; }
.al-bub-on { fill: rgba(238, 62, 201, 0.3); }
.al-act { fill: #141414; stroke: #2E2E2E; stroke-width: 1.1; }
.al-act-t { fill: var(--text-muted); font-family: var(--font-nav); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.al-dot { fill: #4A4A4A; }
.al-trend { fill: none; stroke: var(--accent-1); stroke-width: 1.6; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ai-pair { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .ai-first { padding: 26px; }
}
