/* Rislix concept 08c: R-Trax GRC Platform page (also gives the Threat Intel and Brand Protection pages their screen and card parts). */

/* ---------- hero stack ---------- */
.pf-stack { perspective: 1600px; min-height: 0; padding: 24px 0 40px; }
.pf-shot {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 100px -40px rgba(0, 0, 0, .7);
  transform: rotateY(-14deg) rotateX(6deg) translateZ(0); transform-origin: 60% 50%;
  animation: pfIn 1.4s var(--ease-out) .2s both;
}
.pf-shot .pane-bar { background: #F4F6F8; color: var(--ink-d-soft); }
.pf-shot img { width: 100%; height: auto; }
@keyframes pfIn { from { opacity: 0; transform: rotateY(-28deg) rotateX(12deg) translateY(40px); } }
.pf-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink-d);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); font-size: .8125rem; line-height: 1.35;
  animation: pfFloat 1s var(--ease-out) both, pfBob 6s ease-in-out infinite;
}
.pf-float b { display: block; font-size: .875rem; }
.pf-float span:last-child { color: var(--ink-d-soft); }
.pf-float span:last-child b { color: var(--ink-d); }
.pf-float.f1 { left: -4%; top: 4%; animation-delay: .9s, 2s; }
.pf-float.f2 { right: -2%; top: 46%; animation-delay: 1.1s, 3s; }
.pf-float.f3 { left: 10%; bottom: 0; animation-delay: 1.3s, 4s; }
@keyframes pfFloat { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes pfBob { 50% { translate: 0 -6px; } }
.pf-ring {
  --p: .5; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(var(--verd) calc(var(--p) * 360deg), #E3E9E6 0);
}
.pf-ring b { font-size: .75rem; }

/* ---------- bento of real screens ---------- */
.pf-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-tile {
  position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; text-align: left;
  background: #fff; box-shadow: 0 0 0 1px var(--line-d), 0 20px 40px -28px rgba(16, 32, 48, .45);
  aspect-ratio: 16 / 10;
}
.pf-tile.t-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pf-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1.2s var(--ease-out); }
.pf-tile:hover img, .pf-tile:focus-visible img { transform: scale(1.06); }
.pf-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(15, 29, 46, .88)); color: #fff; font-size: .8125rem; line-height: 1.4;
}
.pf-cap b { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; }
.pf-lightbox { width: min(1200px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.pf-lightbox::backdrop { background: rgba(15, 29, 46, .7); backdrop-filter: blur(4px); }
.pf-lightbox img { width: 100%; height: auto; }
.pf-lb-cap { padding: 14px 18px 0; color: var(--ink-d-soft); font-size: .9375rem; }
.pf-lb-close { margin: 12px 18px 16px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-d); background: #fff; font-weight: 600; }

/* ---------- gap analysis ---------- */
.gx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.gx-list { display: grid; gap: 8px; align-content: start; outline: none; }
.gx-item {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .55);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.gx-item:hover { background: #fff; }
.gx-item[aria-selected="true"] { background: #fff; border-color: var(--line-d); box-shadow: 0 14px 30px -20px rgba(16, 32, 48, .45); }
.gx-item .pill { grid-row: span 2; margin-top: 2px; }
.gx-item b { font-family: var(--display); font-size: .9375rem; }
.gx-item span.gx-sum { grid-column: 2; font-size: .875rem; color: var(--ink-d-soft); line-height: 1.4; }
.gx-list:focus-visible .gx-item[aria-selected="true"] { outline: 3px solid var(--verd-d); outline-offset: 2px; }

.gx-board { position: relative; border-radius: 16px; background: var(--night); color: var(--ink-l); padding: clamp(20px, 3vw, 32px); overflow: hidden; }
.gx-head { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line-l); }
.gx-ref { font-family: var(--display); font-weight: 700; color: var(--lantern); }
.gx-q { font-size: 1.0625rem; line-height: 1.45; max-width: 52ch; }
.gx-fw { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.gx-fw li {
  position: relative; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-l); transition: background-color .4s, border-color .4s, opacity .4s;
}
.gx-fw li b { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-l-soft); }
.gx-fw li span { display: block; margin-top: 4px; font-family: var(--display); font-size: 1rem; font-weight: 600; min-height: 1.4em; }
.gx-fw li.off { opacity: .35; }
.gx-fw li.off span { color: var(--ink-l-soft); font-weight: 400; }
.gx-fw li.hit { background: rgba(242, 181, 68, .1); border-color: rgba(242, 181, 68, .5); }
.gx-fw li.hit::after { content: ""; position: absolute; right: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 0 4px rgba(242, 181, 68, .2); }
.gx-fw li.pop { animation: gxPop .6s var(--ease-out) both; animation-delay: var(--dl, 0s); }
@keyframes gxPop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.gx-foot { margin-top: 20px; font-size: .9375rem; color: var(--ink-l-soft); }
.gx-foot span { color: var(--lantern); font-weight: 700; }

/* ---------- maturity ---------- */
.mt-switch { display: inline-flex; margin-top: 28px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-l); }
.mt-btn { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-l-soft); font-weight: 600; font-size: .9375rem; transition: background-color .3s, color .3s; }
.mt-btn[aria-pressed="true"] { background: var(--lantern); color: var(--ink-d); }
.mt-stats { display: flex; gap: 40px; margin-top: 28px; }
.mt-stats dt { font-size: .875rem; color: var(--ink-l-soft); }
.mt-stats dd { margin-top: 4px; font-family: var(--display); font-size: 1.125rem; }
.mt-stats dd b { font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--lantern); }
.mt-fig { margin: 0; }
.mt-radar { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.mt-grid polygon { fill: none; stroke: var(--line-l); }
.mt-grid text { fill: var(--ink-l-soft); font-size: 10px; }
.mt-axes line { stroke: var(--line-l); }
.mt-area { fill: rgba(242, 181, 68, .16); stroke: var(--lantern); stroke-width: 2; stroke-linejoin: round; }
.mt-dots circle { fill: var(--lantern); stroke: var(--night); stroke-width: 2; }
.mt-dots circle.low { fill: var(--risk); }
.mt-labels text { fill: var(--ink-l); font-size: 12px; font-family: var(--sans); font-weight: 600; }
.mt-fig figcaption { margin-top: 14px; text-align: center; font-size: .8125rem; color: var(--ink-l-soft); }

/* ---------- risk in money ---------- */
.mn-controls { margin: 28px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.mn-controls legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.mn-controls label {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-d); cursor: pointer; transition: border-color .25s, box-shadow .25s;
}
.mn-controls label:has(input:checked) { border-color: var(--verd); box-shadow: 0 0 0 3px rgba(31, 138, 112, .15); }
.mn-controls input { width: 18px; height: 18px; accent-color: var(--verd); }
.mn-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mn-kpis dt { font-size: .8125rem; color: var(--ink-d-soft); }
.mn-kpis dd { margin-top: 2px; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.mn-cut { color: var(--verd-d); }
.mn-chart { width: 100%; margin-top: 18px; overflow: visible; }
.mn-grid line { stroke: var(--line-d); }
.mn-ax text { fill: var(--ink-d-soft); font-size: 11px; font-family: var(--sans); }
.mn-base { fill: none; stroke: rgba(200, 71, 63, .45); stroke-width: 1.5; stroke-dasharray: 4 4; }
.mn-line { fill: none; stroke: var(--verd); stroke-width: 2.5; stroke-linejoin: round; }
.mn-fill { fill: rgba(31, 138, 112, .1); }
.mn-note { margin-top: 10px; font-size: .8125rem; color: var(--ink-d-soft); }

/* ---------- AI autofill ---------- */
.af-q { font-weight: 600; line-height: 1.45; }
.af-ans { position: relative; margin-top: 14px; min-height: 7.5em; padding: 14px 16px; border-radius: 10px; background: #F4F7F6; border: 1px dashed rgba(31, 138, 112, .4); font-size: .9375rem; line-height: 1.55; }
.af-text { display: inline; }
.af-text mark { background: rgba(242, 181, 68, .3); color: inherit; border-radius: 3px; padding: 0 2px; }
.af-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--verd); animation: afBlink 1s steps(1) infinite; }
.af-pane.done .af-caret { display: none; }
@keyframes afBlink { 50% { opacity: 0; } }
.af-meta, .af-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.af-src { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-d-soft); }
.af-src svg { width: 16px; height: 16px; }
.af-rev { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; }
.af-rev i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; }
.af-meta, .af-actions { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.af-pane.cited .af-meta, .af-pane.done .af-actions { opacity: 1; transform: none; }
.af-ok { transform: scale(.6); opacity: 0; transition: transform .5s var(--ease-out) .3s, opacity .3s .3s; }
.af-pane.done .af-ok { transform: none; opacity: 1; }
.af-replay { margin-top: 16px; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-d); background: #fff; font-size: .875rem; font-weight: 600; }

/* ---------- framework library ---------- */
.lb-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.lb-row li { display: grid; gap: 6px; padding: 28px 18px; }
.lb-row li + li { border-left: 1px solid var(--line-d); }
.lb-row b { font-family: var(--display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }
.lb-row span { font-size: .875rem; color: var(--ink-d-soft); }
.lb-row li:nth-child(2) { transition-delay: .06s; }
.lb-row li:nth-child(3) { transition-delay: .12s; }
.lb-row li:nth-child(4) { transition-delay: .18s; }
.lb-row li:nth-child(5) { transition-delay: .24s; }
.lb-row li:nth-child(6) { transition-delay: .3s; }

/* ---------- access ---------- */
.ac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ac-grid svg { width: 44px; height: 44px; fill: none; stroke: var(--verd-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-grid h3 { margin-top: 16px; font-family: var(--display); font-size: 1.1875rem; font-weight: 600; }
.ac-grid p { margin-top: 6px; color: var(--ink-d-soft); font-size: .9375rem; }

@media (max-width: 1000px) {
  .lb-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-row li:nth-child(4) { border-left: 0; }
  .lb-row li:nth-child(n + 4) { border-top: 1px solid var(--line-d); }
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gx { grid-template-columns: minmax(0, 1fr); }
  .pf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stack { padding-inline: 4%; }
}
@media (max-width: 600px) {
  .pf-bento { grid-template-columns: minmax(0, 1fr); }
  .pf-tile.t-wide { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; }
  .pf-float { padding: 8px 12px; font-size: .75rem; }
  .pf-float.f2 { display: none; }
  .lb-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-row li:nth-child(n) { border-left: 0; border-top: 1px solid var(--line-d); }
  .lb-row li:nth-child(even) { border-left: 1px solid var(--line-d); }
  .lb-row li:nth-child(-n + 2) { border-top: 0; }
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .mn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-shot, .pf-float { animation: none; }
}
