/* The grid widths and SVG viewBoxes share the same connection points. */
.licensing-hero {
  container: licensing-hero / inline-size;
  --hero-ink: #f0f7ff;
  --hero-cyan: #9addf5;
  --hero-border: #466f8f;
  font-family: Inter, sans-serif;
  color: var(--hero-ink);
}

.demo-page-copy > .licensing-hero {
  width: 100%;
  max-width: 820px;
  margin-top: 18px;
}

/* Align the desktop copy with the visible panels inside the unchanged art frame. */
@media (min-width: 1201px) {
  body[data-page="home"] .hero-home > .hero-copy {
    align-self: start;
    padding-block-start: 8px;
  }
}

@media (min-width: 1245px) {
  body[data-page="home"] .hero-home > .hero-copy {
    padding-block-start: clamp(26px, calc(26% - 90px), 44px);
  }
}

.licensing-hero__art {
  display: grid;
  align-content: center;
  aspect-ratio: 720 / 620;
  padding: 8px clamp(5px, 1cqi, 9px);
  isolation: isolate;
}

.licensing-hero__stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2.2%;
}

.licensing-hero__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: clamp(8px, 1.35cqi, 12px);
  border: 1px solid var(--hero-border);
  border-radius: 12px;
  background: linear-gradient(151deg, #1b4565 0%, #142f4c 43%, #102843 89%);
  box-shadow: inset 0 1px 0 #aadcf333, 0 4px 0 #07182a, 0 5px 0 #3967838a, 0 13px 22px #030d1d80;
  isolation: isolate;
}

@container licensing-hero (min-width: 627px) {
  .licensing-hero__panel { transform: perspective(900px) rotateY(var(--hero-tilt)); }
  .licensing-hero__panel:nth-child(1) { --hero-tilt: 6deg; }
  .licensing-hero__panel:nth-child(2) { --hero-tilt: 3deg; }
  .licensing-hero__panel:nth-child(3) { --hero-tilt: -3deg; }
  .licensing-hero__panel:nth-child(4) { --hero-tilt: -6deg; }
}

.licensing-hero__panel::before,
.licensing-hero__platform::after,
.licensing-hero__outcome::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: -1;
  border: 1px solid #78d2f3;
  border-radius: inherit;
  background: linear-gradient(142deg, #66bfe833, #2081bd05 65%);
  box-shadow: 0 0 14px #4098c344, inset 0 0 14px #63b9e326;
  opacity: 0;
}

.licensing-hero__stage-title {
  display: flex;
  align-items: center;
  gap: clamp(5px, .96cqi, 9px);
  min-height: 44px;
  padding: 2px 1px 6px;
  margin: 0;
  color: var(--hero-ink);
  font-size: clamp(14px, 2.22cqi, 17px);
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.13;
}

.licensing-hero__panel ul {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.licensing-hero__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(4px, .76cqi, 7px);
  align-items: center;
  padding: 5px clamp(4px, .78cqi, 7px);
  border: 1px solid #8ebcda20;
  border-radius: 4px;
  background: #061a30a1;
  color: #e0ecf8;
  font-size: clamp(12px, 1.81cqi, 13.5px);
  line-height: 1.23;
}

.licensing-hero__row[data-status="shortfall"] { color: #ffd7d7; background: #472c3b; }
.licensing-hero__row[data-status="verified"] { color: #c9f4e5; background: #153c40; }
.licensing-hero__row[data-status="surplus"] { color: #d0ebff; background: #183b59; }
.licensing-hero__row[data-status="review"] { color: #f8e6ba; background: #39343e; }
.licensing-hero__row[data-status] svg { color: inherit; }

.licensing-hero__stage-title svg,
.licensing-hero__outcome svg,
.licensing-hero__row svg {
  display: block;
  color: var(--hero-cyan);
  width: 1em;
  height: 1em;
  flex: none;
}

.licensing-hero__row svg { font-size: clamp(13px, 1.9cqi, 15px); }
.licensing-hero__stage-title svg { font-size: clamp(19px, 2.85cqi, 23px); }

.licensing-hero__routes {
  width: 100%;
  height: clamp(34px, 7cqi, 58px);
  overflow: visible;
}

.licensing-hero__routes--paired { display: none; }
.licensing-hero__routes--outbound { height: clamp(34px, 7.2cqi, 61px); }
.licensing-hero__track,
.licensing-hero__light {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.licensing-hero__track { stroke: #639fc37d; stroke-width: 1.25; }
.licensing-hero__light { stroke: #a6e8ff; stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.licensing-hero__light.is-active {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: licensing-hero-trace 1260ms ease-out both;
}

.licensing-hero__platform {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.85cqi, 15px);
  width: min(63%, 444px);
  min-height: clamp(69px, 14.8cqi, 113px);
  border: 1px solid #6790ac;
  border-radius: 50%;
  background: linear-gradient(161deg, #123354 0%, #081e38 44%, #143555 92%);
  box-shadow: 0 7px 0 #1e5071, 0 8px 0 #5f97b886, 0 14px 0 #0c2944, 0 15px 0 #315d82;
  isolation: isolate;
}

.licensing-hero__platform::before {
  content: '';
  position: absolute;
  inset: 9%;
  z-index: -1;
  border: 1px solid #294e6b;
  border-radius: inherit;
  background: #081c32;
}

:is(body[data-page="home"], body[data-page="demo"]) .licensing-hero .licensing-hero__platform img {
  width: clamp(33px, 6.4cqi, 51px);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  filter: none;
}

.licensing-hero__platform-brand {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: clamp(19px, 3.65cqi, 28px);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.042em;
  white-space: nowrap;
}
.licensing-hero__platform-brand em { color: #60c9f1; font-style: normal; }
.licensing-hero__platform-caption {
  color: #cae1f3;
  font-size: clamp(9px, 1.4cqi, 11px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .145em;
}

.licensing-hero__outcomes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 3%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.licensing-hero__outcomes::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -53% -3% -33%;
  border: 1px solid #6397ba35;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #19426160, #0d2e4b2e 67%, #17446d30);
  pointer-events: none;
}
.licensing-hero__outcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1cqi, 9px);
  min-width: 0;
  min-height: clamp(61px, 9cqi, 76px);
  padding: 9px clamp(5px, 1.5cqi, 15px);
  border: 1px solid #487899;
  border-radius: 7px;
  background: linear-gradient(145deg, #153a58, #0d263f 77%);
  box-shadow: 0 4px 0 #062038;
  color: var(--hero-ink);
  text-align: left;
  font-size: clamp(13px, 2.08cqi, 16px);
  font-weight: 650;
  line-height: 1.19;
  isolation: isolate;
}
.licensing-hero__outcome svg { font-size: clamp(21px, 3.9cqi, 29px); }

.licensing-hero__pause {
  display: block;
  margin: 2px 0 0 auto;
  min-height: 44px;
  padding: 8px 3px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #d6e6f3;
  font: 500 12px Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.licensing-hero__pause[hidden] { display: none; }
.licensing-hero__pause:hover { color: #fff; }
.licensing-hero__pause:focus-visible { outline: 2px solid #a0e2fb; outline-offset: 3px; }

.licensing-hero__panel.is-active::before { animation: licensing-hero-focus 1530ms ease-in-out both; }
.licensing-hero__panel[data-hero-stage="analysis"].is-active::before { animation-duration: 1870ms; }
.licensing-hero__platform.is-active::after { animation: licensing-hero-focus 1600ms ease-in-out both; }
.licensing-hero__outcome.is-active::before { animation: licensing-hero-focus 740ms ease-in-out both; }
.licensing-hero__panel.is-active .licensing-hero__row {
  animation: licensing-hero-evidence 720ms ease-in-out both;
}
.licensing-hero__panel.is-active .licensing-hero__row:nth-child(2) { animation-delay: 145ms; }
.licensing-hero__panel.is-active .licensing-hero__row:nth-child(3) { animation-delay: 290ms; }
.licensing-hero__panel.is-active .licensing-hero__row:nth-child(4) { animation-delay: 435ms; }
.licensing-hero__panel[data-hero-stage="analysis"].is-active .licensing-hero__row:nth-child(2) { animation-delay: 250ms; }
.licensing-hero__panel[data-hero-stage="analysis"].is-active .licensing-hero__row:nth-child(3) { animation-delay: 500ms; }
.licensing-hero__panel[data-hero-stage="analysis"].is-active .licensing-hero__row:nth-child(4) { animation-delay: 750ms; }

.licensing-hero[data-hero-motion-state="paused"] *,
.licensing-hero[data-hero-motion-state="paused"] *::before,
.licensing-hero[data-hero-motion-state="paused"] *::after { animation-play-state: paused; }

@keyframes licensing-hero-focus {
  0%, 100% { opacity: 0; }
  36%, 60% { opacity: 1; }
}
@keyframes licensing-hero-evidence {
  0%, 100% { border-color: #8ebcda20; }
  45% { border-color: #9bdcf1bb; }
}
@keyframes licensing-hero-trace {
  0% { opacity: 0; stroke-dashoffset: 1; }
  10% { opacity: .84; }
  40%, 67% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}

/* The stacked hero has room to follow its contents instead of reserving desktop art height. */
@media (max-width: 1200px) {
  .licensing-hero__art { aspect-ratio: auto; }
  .licensing-hero__stage-title { font-size: clamp(.875rem, 2.22cqi, 1.0625rem); }
  .licensing-hero__row { font-size: clamp(.75rem, 1.81cqi, .84375rem); }
  .licensing-hero__outcome { font-size: clamp(.8125rem, 2.08cqi, 1rem); }
  .licensing-hero__platform { width: min(100%, 444px, max(63%, 10.75rem)); }
  .licensing-hero__platform-brand { min-width: 0; font-size: clamp(1.1875rem, 3.65cqi, 1.75rem); white-space: normal; }
  .licensing-hero__platform-caption { font-size: clamp(.5625rem, 1.4cqi, .6875rem); }
  .licensing-hero__stage-title span, .licensing-hero__row span,
  .licensing-hero__outcome span, .licensing-hero__platform-brand { overflow-wrap: anywhere; }
  .licensing-hero__pause { font-size: .75rem; }
}

@container licensing-hero (max-width: 626px) {
  .licensing-hero__art { aspect-ratio: auto; }
  .licensing-hero__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
  .licensing-hero__panel { padding: clamp(9px, 3cqi, 15px); }
  .licensing-hero__stage-title { font-size: clamp(.9375rem, 3.7cqi, 1.0625rem); }
  .licensing-hero__row { font-size: clamp(.75rem, 3.1cqi, .875rem); }
  .licensing-hero__routes--wide { display: none; }
  .licensing-hero__routes--paired { display: block; }
}

@container licensing-hero (max-width: 480px) {
  .licensing-hero__panel { padding-inline: 7px; }
  .licensing-hero__outcome { flex-direction: column; text-align: center; }
}

/* Preserve the two-column workflow on engines that predate container-query units. */
@supports not (width: 1cqi) {
  .licensing-hero__art { padding: 8px 6px; }
  .licensing-hero__panel { padding: 9px; }
  .licensing-hero__stage-title { gap: 6px; font-size: .9375rem; }
  .licensing-hero__stage-title svg { font-size: 20px; }
  .licensing-hero__row { gap: 5px; padding: 5px; font-size: .75rem; }
  .licensing-hero__row svg { font-size: 14px; }
  .licensing-hero__routes { height: 40px; }
  .licensing-hero__platform { gap: 8px; min-height: 72px; }
  :is(body[data-page="home"], body[data-page="demo"]) .licensing-hero .licensing-hero__platform img { width: 36px; }
  .licensing-hero__platform-brand { font-size: 1.1875rem; }
  .licensing-hero__platform-caption { font-size: .5625rem; }
  .licensing-hero__outcome { gap: 6px; min-height: 61px; padding: 9px 6px; font-size: .8125rem; }
  .licensing-hero__outcome svg { font-size: 22px; }
  @media (max-width: 680px) {
    .licensing-hero__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
    .licensing-hero__routes--wide { display: none; }
    .licensing-hero__routes--paired { display: block; }
  }
  @media (max-width: 480px) {
    .licensing-hero__panel { padding-inline: 7px; }
    .licensing-hero__outcome { flex-direction: column; text-align: center; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .licensing-hero *,
  .licensing-hero *::before,
  .licensing-hero *::after { animation: none !important; }
  .licensing-hero .licensing-hero__pause { display: none; }
}
