/* AI Impact Measurement: page-only blocks (hero checks, session hub diagram, advantages bento, AI Center tabs, numeric facts) */

/* ───── Hero checklist ───── */
.aiim-hero { padding-bottom: 8px; }
.page-hero.is-app .aiim-checks { margin-top: 26px; }
.aiim-checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 760px; margin: 36px auto 0; padding: 0; }
.aiim-checks li {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgb(var(--ink) / .03); font-size: 14.5px; color: var(--fg);
}
.aiim-checks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: rgba(19,233,137,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%2386FFC9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(19,233,137,.35);
}

/* ───── Session hub diagram (inline SVG from coralogix.com) ───── */
.aiim-hub { max-width: 1040px; margin: 0 auto; }
.aiim-hub .arch { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--mono); }
.aiim-hub .arch-m { display: none; }
.aiim-hub .flow { fill: none; stroke: var(--accent); stroke-width: 2.2; opacity: .85; }
.aiim-hub .emit { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 2 5; opacity: .6; }
.aiim-hub .hair { fill: none; stroke: #303030; stroke-width: 1; }
.aiim-hub .lab { font-family: var(--mono); font-size: 12.5px; fill: #7A7A7A; }
.aiim-hub .lab.b { fill: #929292; }
.aiim-hub .n-name { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 600; font-size: 16.5px; fill: #FCFCFC; }
.aiim-hub .n-name.sm { font-size: 14.5px; }
.aiim-hub .val { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 600; font-size: 15.5px; fill: #FCFCFC; }
.aiim-hub .val.a { fill: #00CC7E; }
.aiim-hub .val.r { fill: #E85C5C; }
.aiim-hub .val.w { fill: #E8A33D; }
.aiim-hub .huge { font-family: Geist, Inter, sans-serif; font-size: 34px; fill: #00CC7E; }
.aiim-hub .huge.n { fill: #FCFCFC; }
.aiim-hub .b-chip { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 600; font-size: 13.5px; fill: #BABCB8; }
.aiim-hub .t-user { font-family: var(--mono); font-size: 15px; fill: #FCFCFC; }
.aiim-hub .t-acc { font-family: var(--mono); font-size: 13px; fill: #00CC7E; }
.aiim-hub .aih-box { transform-box: fill-box; transform-origin: center; transition: transform .22s ease, filter .22s ease; }
.aiim-hub .aih-box > rect:first-child { transition: stroke .22s ease; }
.aiim-hub .aih-box:hover { filter: drop-shadow(0 10px 18px rgb(0 0 0 / calc(.45 * var(--sh)))); }
.aiim-hub .aih-box:hover > rect:first-child { stroke: var(--accent); }

.aiim-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 72px auto 0; }
.aiim-paths a { display: flex; flex-direction: column; }
.aiim-paths p { flex: 1; }
.aiim-paths .link { margin-top: 22px; }

/* ───── Advantages bento ───── */
.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "sources enterprise users" "hosts enterprise scale"; gap: 20px; }
.adv-sources { grid-area: sources; } .adv-enterprise { grid-area: enterprise; } .adv-users { grid-area: users; }
.adv-hosts { grid-area: hosts; } .adv-scale { grid-area: scale; }
.adv-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; overflow: hidden; }
.adv-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.adv-card p { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); }
.adv-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.adv-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--fg); }
.adv-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(19,233,137,.6); }
/* the illustrations are light grey line art on white: invert them and let the black drop out */
.adv-img { display: block; width: 100%; height: auto; filter: var(--flip, invert(1) brightness(1.15)); mix-blend-mode: var(--flip-blend, screen); opacity: .9; }
.adv-sources .adv-img { width: auto; max-width: 100%; margin: 0 auto; }
.adv-enterprise .adv-img { margin: 0 -8px -12px; width: calc(100% + 16px); max-width: none; }

/* ───── AI Center tabs ───── */
.impact { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.impact-nav { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.impact-label { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.impact-tabs { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.impact-tabs button {
  appearance: none; background: none; border: 0; margin-left: -1px; border-left: 2px solid transparent; padding: 9px 14px; text-align: left;
  font: inherit; font-size: 15px; color: var(--fg-2); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.impact-tabs button:hover { color: var(--fg); }
.impact-tabs button[aria-selected="true"] { color: var(--fg); border-left-color: var(--accent); background: linear-gradient(90deg, rgba(19,233,137,.08), transparent); }
.impact-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.impact-panel[hidden] { display: none; }
.impact-panel .cxw { margin: 0; }

/* ───── Final CTA numbers ───── */
.aiim-facts b { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--accent); }
.aiim-facts span { margin-top: 12px; }

/* ───── Responsive ───── */
@media (max-width: 1120px) {
  .impact { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 960px) {
  .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "sources enterprise" "users enterprise" "hosts scale"; }
  .impact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .impact-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
  .impact-tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .impact-tabs button { margin: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
  .impact-tabs button[aria-selected="true"] { border-color: rgba(19,233,137,.6); background: rgba(19,233,137,.1); }
  .aiim-paths { margin-top: 56px; }
}
@media (max-width: 900px) {
  .aiim-hub .arch-d { display: none; }
  .aiim-hub .arch-m { display: block; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .adv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sources" "enterprise" "users" "hosts" "scale"; }
  .aiim-paths { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .aiim-checks { gap: 8px; margin-top: 28px; }
  .aiim-checks li { font-size: 13.5px; padding: 0 12px 0 9px; gap: 7px; height: 34px; white-space: nowrap; }
  .adv-card { padding: 26px; }
  .impact-nav { flex-direction: column; gap: 18px; }
  .impact-tabs button { font-size: 13.5px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .aiim-hub .aih-box, .aiim-hub .aih-box > rect:first-child { transition: none; }
  .aiim-hub .aih-box:hover { transform: none; }
}

/* Light skin: small green text uses --mint (≥4.5:1 on the light surfaces); --accent stays for dots, fills,
   borders and large numbers. Light only, so the dark skin is unchanged. */
:root[data-theme="light"] .impact-label { color: var(--mint); }
