/* The live exposure panel — shared by the home page and /ai-compliance/.

   Moved out of landing.css unchanged (9 Nov 2026) so /ai-compliance/ could
   swap its static "Your AI Compliance Assessment — Medium Risk" picture for
   the real, working panel. One copy: two pages styling the same panel
   separately is how they drift apart. Data: website.views._hero_risk_payload;
   behaviour: static/js/hero-risk.js. */

@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-report {
  margin: 44px auto 0;
  max-width: 420px;
  width: 100%;
  text-align: left;
  background: #0a1628;
  border: 1px solid #1e3a5f;
  border-top: 2px solid #f59e0b;
  box-shadow: 0 34px 80px -36px rgba(0, 0, 0, 0.72);
  padding: 24px 24px 22px;
}

.hero-report-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
}

.hero-report-badge {
  display: inline-block;
  background: #d97706;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  margin-bottom: 20px;
}

.hero-report-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #1e3a5f;
}

.hero-report-row:first-of-type { border-top: 1px solid #1e3a5f; }

.hero-report-reg { flex: 1; min-width: 0; }

.hero-report-reg strong {
  display: block;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
}

.hero-report-reg span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.hero-report-penalty {
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  text-align: right;
}

.hero-report-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px;
  background: #0f172a;
  border-left: 3px solid #f59e0b;
}

.hero-report-next-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.hero-report-next-value {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

@media (min-width: 901px) {
  .hero-report { margin: 0; justify-self: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-report {
    opacity: 0;
    animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    will-change: transform, opacity;
  }
}

.hero-report { position: relative; }

.hero-report::before,
.hero-report::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #f59e0b;
  pointer-events: none;
}

.hero-report::before {
  top: -1px; left: -1px;
  border-top: 2px solid #f59e0b;
  border-left: 2px solid #f59e0b;
}

.hero-report::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid #f59e0b;
  border-right: 2px solid #f59e0b;
}

.hero-live {
  max-width: 460px;
  padding: 22px 22px 20px;
  overflow: hidden;                 /* contains the scan sweep */
}

.hero-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  /* Three items now, not two. Without wrap the label concertinas to three
     lines on a phone and the risk badge is pushed into the panel's right
     padding — measured at 375px, badge right edge 21px past the content box. */
  flex-wrap: wrap;
}

.hero-live .hero-report-label { margin-bottom: 0; }

.hero-live-market {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.hero-live-market select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f59e0b;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23f59e0b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 5px 24px 5px 9px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.hero-live-market select:hover {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.08);
}

.hero-live-market select:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.hero-live-market option {
  color: #0a1628;
  background: #ffffff;
}

.oi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hero-live-head > .hero-report-label {
    flex: 1 0 100%;
  }
  .hero-live-market {
    margin-right: 0;
  }
  .hero-live-head > .hero-live-badge {
    margin-left: auto;
  }
}

.hero-live-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: color 260ms ease, border-color 260ms ease, background 260ms ease;
}

.hero-live-badge[data-level="low"]      { color: #94a3b8; border-color: rgba(148,163,184,0.4); }

.hero-live-badge[data-level="medium"]   { color: #f59e0b; border-color: rgba(245,158,11,0.5); }

.hero-live-badge[data-level="high"]     { color: #0a1628; background: #f59e0b; border-color: #f59e0b; }

.hero-live-badge[data-level="critical"] { color: #fff; background: #b91c1c; border-color: #b91c1c; }

.hero-live-prompt {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 10px;
}

.hero-live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.hero-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 12px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms ease;
}

.hero-chip:hover      { border-color: rgba(245, 158, 11, 0.55); color: #fff; }

.hero-chip:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

.hero-chip.is-on {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0a1628;
  transform: translateY(-1px);
}

.hero-live-readout {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.hero-live-count {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-live-figure {
  font-size: 52px;
  font-weight: 800;
  line-height: 0.9;
  color: #f59e0b;
}

.hero-live-caption {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-live-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.hero-live-meter i {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.hero-live-meter i.is-lit  { background: #f59e0b; }

.hero-live-meter i.is-peak { box-shadow: 0 0 12px rgba(245, 158, 11, 0.9); }

.hero-live-empty {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  padding: 6px 0 2px;
}

.hero-live-empty[hidden] { display: none; }

.hero-live-regs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 168px;
  overflow-y: auto;
}

.hero-live-reg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  /* Entry state is applied by adding .is-new and removed a frame later, so
     the transition runs on the way IN. Animating with a keyframe instead
     would re-run every time the list re-sorts. */
  opacity: 1;
  transform: none;
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-live-reg.is-new { opacity: 0; transform: translateX(-10px); }

.hero-live-reg:last-child { border-bottom: 0; }

.hero-live-reg-jur {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0a1628;
  background: #94a3b8;
  padding: 3px 5px;
  margin-top: 2px;
}

.hero-live-reg[data-severity="critical"] .hero-live-reg-jur { background: #b91c1c; color: #fff; }

.hero-live-reg[data-severity="high"]     .hero-live-reg-jur { background: #f59e0b; }

.hero-live-reg-body { display: block; }

.hero-live-reg-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.hero-live-reg-pen {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.hero-live-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f59e0b;
  text-decoration: none;
}

.hero-live-cta:hover { color: #fbbf24; }

.hero-live-beam {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 120px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.16), transparent);
}

.hero-live.is-scanning .hero-live-beam {
  opacity: 1;
  animation: hero-live-sweep 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

@keyframes hero-live-sweep {
  from { transform: translateX(-120px); }
  to   { transform: translateX(calc(460px + 120px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-beam { display: none; }
  .hero-live-reg { transition: none; }
  .hero-live-reg.is-new { opacity: 1; transform: none; }
  .hero-chip.is-on { transform: none; }
}

@media (max-width: 900px) {
  .hero-live { max-width: 100%; }
}
