/* ==========================================================================
   /flowgen-index — heatmap window, industry wheel, co-mentions, topic clusters
   (hero/form/window base from aeo-report.css · rows/FAQ from context.css · scaffolding from prompt-volumes.css)
   ========================================================================== */
.pi { --expo: cubic-bezier(.19, 1, .22, 1); --cell-line: rgba(255,255,255,.1); --blue: #2f6bff; --ok: #08ffb6; }
.pi .ar-copy .eyebrow { display: block; margin-bottom: 16px; font-size: 13px; color: #6ea8ff; }
.pi .ar-form input:focus { border-color: #6ea8ff; box-shadow: 0 0 0 4px rgba(110,168,255,.14); }
.pi .ar-list li.more { color: var(--fg-3); cursor: default; }
.pi .ar-list li.more::before { content: "+"; background: none; color: var(--fg-3); font-size: 14px; }
.pi-win-body { padding: 26px 30px 0; }
.pi-win-body h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.pi-win-body h4 + small { display: block; margin: 5px 0 16px; color: var(--fg-3); font-size: 12.5px; }
.pi-ind { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(110,168,255,.4); color: #8fb3ff; font-size: 12px; }
.pi-ind i { width: 6px; height: 6px; border-radius: 50%; background: #6ea8ff; animation: piBlink 1.4s ease-in-out infinite; }
@keyframes piBlink { 50% { opacity: .25; } }

/* ---------- Heat table ---------- */
.pi-heat { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.pi-hrow { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(4, 1fr); }
.pi-hrow > * { padding: 13px 14px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-hrow > *:last-child { border-right: 0; }
.pi-hhead { color: var(--fg-3); font-size: 12px; background: #111112; }
.pi-hhead button { text-align: center; color: var(--fg-2); transition: color .3s, background .3s; cursor: pointer; }
.pi-hhead button::after { content: " ⇅"; color: var(--fg-4); }
.pi-hhead button:hover { color: var(--fg); background: #18181a; }
.pi-hhead button.on { color: var(--fg); } .pi-hhead button.on::after { content: " ↓"; color: #6ea8ff; }
.pi-hbody { position: relative; }
.pi-hbody .pi-hrow { position: absolute; left: 0; right: 0; top: 0; height: 46px; transition: transform .9s var(--expo), opacity .4s; }
.pi-hbody .pi-hrow > * { height: 46px; display: flex; align-items: center; }
.pi-brand { gap: 9px; color: var(--fg-2); }
.pi-brand i { flex: none; width: 15px; height: 15px; border-radius: 4px; background: var(--c); }
.pi-brand em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: #2a2a2c; color: var(--fg-2); }
.pi-cell { justify-content: center; font-variant-numeric: tabular-nums; color: var(--fg-2); background: rgba(47,107,255, calc(var(--v) * .9)); transition: background .7s var(--expo), color .3s, box-shadow .3s; cursor: default; }
.pi-cell:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #8fb3ff; }
.pi-hrow.me { z-index: 2; } .pi-hrow.me .pi-brand { color: var(--fg); }
.pi-hrow.me::after { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(255,255,255,.55); border-radius: 6px; pointer-events: none; }
.pi-heat.dim .pi-hbody .pi-hrow:not(.hot) { opacity: .4; }
.pi-heat .col-hot { box-shadow: inset 0 0 0 1px rgba(143,179,255,.35); }

/* small panels inside the hero window */
.pi-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.pi-llm div, .pi-topic-mini div { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; margin-top: 9px; color: var(--fg-2); font-size: 12.5px; }
.pi-llm b, .pi-topic-mini b { height: 6px; border-radius: 3px; background: #1f1f21; overflow: hidden; }
.pi-llm b::after, .pi-topic-mini b::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--c, var(--blue)); transition: width .9s var(--expo); }
.pi-llm em, .pi-topic-mini em { font-style: normal; text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- Industry wheel ---------- */
.pi-industries { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--cell-line); }
.pi-industries-copy { padding: 34px; }
.pi-industries-copy h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.pi-industries-copy p { margin-top: 14px; color: var(--fg-2); max-width: 420px; }
.pi-industries-copy .now { margin-top: 26px; font-size: 13px; color: var(--fg-3); }
.pi-industries-copy .now b { display: block; margin-top: 4px; font-size: 22px; font-weight: 500; color: var(--fg); letter-spacing: -0.02em; min-height: 30px; }
.pi-wheel { position: relative; height: 380px; border-left: 1px solid var(--cell-line); overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent); mask: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent); }
.pi-wheel-track { position: absolute; left: 0; right: 0; top: 50%; transition: transform .9s var(--expo); }
.pi-pill { display: block; width: min(320px, 78%); height: 52px; margin: 0 auto 12px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #121213; color: var(--fg-3); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; text-align: left; cursor: pointer; transition: transform .9s var(--expo), opacity .9s var(--expo), filter .9s var(--expo), border-color .5s, color .5s, background .5s, box-shadow .6s; }
.pi-pill.on { color: var(--fg); border-color: rgba(255,255,255,.4); background: #1c1c1e; box-shadow: 0 0 0 5px rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.6); }

/* ---------- Compare rows ---------- */
.pi .cx-g { padding: 44px 28px; }
.pi-pairs { width: min(560px, 94%); display: grid; gap: 14px; }
.pi-pair { cursor: pointer; transition: opacity .4s; }
.pi-pair header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 14px; color: var(--fg-2); }
.pi-pair header .n { width: 14px; color: var(--fg-4); font-size: 12px; }
.pi-pair header i { width: 13px; height: 13px; border-radius: 4px; background: var(--c); }
.pi-pair header .amp { color: var(--fg-4); }
.pi-pair header em { margin-left: auto; font-style: normal; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pi-pair .bar { height: 26px; border-radius: 6px; background: #121213; overflow: hidden; }
.pi-pair .bar b { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #2552c9, var(--blue)); transition: width 1.1s var(--expo), filter .4s; }
.pi-pairs:hover .pi-pair:not(:hover) { opacity: .4; }
.pi-pair:hover header { color: var(--fg); } .pi-pair:hover header em { color: var(--fg); }
.pi-pair:hover .bar b { filter: brightness(1.25) drop-shadow(0 0 10px rgba(47,107,255,.7)); }

.pi-clusters { width: min(520px, 94%); display: grid; gap: 10px; }
.pi-cluster { border: 1px solid var(--line); border-radius: 14px; background: #111112; overflow: hidden; cursor: pointer; transition: border-color .5s, background .5s; }
.pi-cluster header { display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-size: 16px; font-weight: 500; color: var(--fg-3); transition: color .4s; }
.pi-cluster header .rk { margin-left: auto; color: var(--fg-4); font-weight: 400; }
.pi-cluster header strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.pi-cluster header em { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: rgba(8,255,182,.12); color: var(--ok); }
.pi-cluster header em.dn { background: rgba(255,93,93,.12); color: #ff7d7d; }
.pi-cluster .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--expo); }
.pi-cluster .body > div { overflow: hidden; }
.pi-cluster .body small { display: block; padding: 0 18px 8px; color: var(--fg-3); font-size: 12.5px; }
.pi-cluster .body .r { display: grid; grid-template-columns: 15px 110px 1fr 46px; gap: 10px; align-items: center; padding: 6px 18px; font-size: 13px; color: var(--fg-2); }
.pi-cluster .body .r:last-child { padding-bottom: 18px; }
.pi-cluster .body .r i { width: 13px; height: 13px; border-radius: 4px; background: var(--c); }
.pi-cluster .body .r b { height: 5px; border-radius: 3px; background: #232325; overflow: hidden; }
.pi-cluster .body .r b::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 3px; background: #4a4a4d; transition: width 1s var(--expo); }
.pi-cluster .body .r:first-of-type b::after { background: var(--blue); }
.pi-cluster .body .r em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.pi-cluster.on { border-color: rgba(255,255,255,.28); background: #17171a; }
.pi-cluster.on header { color: var(--fg); }
.pi-cluster.on .body { grid-template-rows: 1fr; }
.pi-heat-wrap { width: min(640px, 96%); }

/* ---------- CTA ---------- */
.pi-cta { padding: 130px 0; text-align: center; border-top: 1px dashed var(--cell-line); }
.pi-cta .eyebrow { display: block; font-size: 13px; color: #6ea8ff; margin-bottom: 16px; }
.pi-cta h2 { font-size: clamp(34px, 4.8vw, 54px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; }
.pi-cta .ar-form { max-width: 380px; margin: 30px auto 0; text-align: left; }

@media (max-width: 1080px) { .pi-industries { grid-template-columns: 1fr; } .pi-wheel { border-left: 0; border-top: 1px solid var(--cell-line); height: 320px; } }
@media (max-width: 640px) {
  .pi-win-body { padding: 18px 14px 0; } .pi-mini { grid-template-columns: 1fr; }
  .pi-hrow { grid-template-columns: minmax(104px, 1.3fr) repeat(4, 1fr); font-size: 11.5px; } .pi-hrow > * { padding: 10px 6px; } .pi-brand em { display: none; }
  .pi-hhead button::after { content: ""; } .pi-pill { font-size: 16px; height: 46px; }
  .pi .cx-g { padding: 30px 10px; } .pi-cluster .body .r { grid-template-columns: 15px 84px 1fr 42px; }
}
@media (prefers-reduced-motion: reduce) { .pi-ind i { animation: none; } }
