/* ============================================================
   Shared styles for the interactive product pages (ProcureOS, Demand PlanningOS,
   SupportOS, FleetOS, TerminalOS, WarehouseOS, CustomsOS). Everything is scoped under the page root (:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos)), so the short class
   names are safe; :is() keeps the id specificity the pages were built with.
   What only one page uses lives in that page's own file, loaded after this one.

   Colour meaning is fixed: red/amber = the pain, blue = the product working,
   green = done, gold = the human decision. Gold is never used for an AI action.

   Motion: markup renders in its finished state. The page script "arms" a
   section before animating it, and arming only ever changes opacity, visibility
   or transform, so nothing shifts. Logical properties throughout (RTL).
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nlm-navy-950);
}

@keyframes pq-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pq-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes pq-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(61 107 255 / 55%);
  }

  50% {
    box-shadow: 0 0 0 10px rgb(61 107 255 / 0%);
  }
}

@keyframes pq-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pq-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pq-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pq-shimmer {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

/* A two-state crossfade: first child shows, then the second takes over. */
@keyframes pq-flip-a {
  0%,
  40% {
    opacity: 1;
  }

  50%,
  90% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pq-flip-b {
  0%,
  40% {
    opacity: 0;
  }

  50%,
  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* One item of a sequence appearing, holding, then clearing for the next loop. */
@keyframes pq-seq {
  0%,
  8% {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }

  16%,
  88% {
    opacity: 1;
    transform: none;
  }

  96%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes pq-day {
  0%,
  18% {
    opacity: 1;
  }

  20%,
  100% {
    opacity: 0;
  }
}

@keyframes pq-name {
  0%,
  30% {
    opacity: 1;
  }

  33%,
  100% {
    opacity: 0;
  }
}

@keyframes pq-stamp {
  0% {
    opacity: 0;
    scale: 2.2;
  }

  60% {
    opacity: 1;
    scale: 0.92;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes pq-faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- base ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) {
  --pq-gold: #e3b23c;
  --pq-gold-ink: #2b2000;
  --pq-amber: #f59e0b;
  --pq-ok: #22c55e;
  --pq-bad: #ef4444;
  --pq-ai: #a9bfff;
  --pq-glow: rgb(61 107 255 / 35%);
  --dir: 1;

  font-family: var(--nlm-font-body);
  color: var(--nlm-fg-2);
  background: #fff;
  overflow-x: clip;
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) {
  --dir: -1;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sec {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 10vw, 128px) 0;
  scroll-margin-top: 72px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .nf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Scroll-linked, so only where view() timelines exist; elsewhere this would fall
   back to a timed animation that plays at page load, unseen. */
@supports (animation-timeline: view()) {
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .reveal {
    animation: pq-rise 0.7s var(--nlm-ease-soft) both;
    animation-timeline: view();
    animation-range: entry 2% cover 26%;
  }
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .h2 {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--nlm-fg-1);
  margin: 0 0 22px;
  text-wrap: balance;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .h2 em {
  font-style: normal;
  color: var(--nlm-danger);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.62;
  color: var(--nlm-fg-2);
  margin: 0;
  max-width: 62ch;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .h2 {
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .lead {
  color: var(--nlm-navy-300);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) :is(.btn-w, .btn-o, .btn-n, .btn-g, .btn-gold) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) :is(.btn-w, .btn-o, .btn-n, .btn-g, .btn-gold) :is(svg, i[data-lucide]) {
  width: 17px;
  height: 17px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-w {
  background: #fff;
  color: var(--nlm-navy-900);
  padding: 15px 28px;
  border: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-o {
  background: transparent;
  color: #fff;
  padding: 13px 26px;
  border: 1.5px solid rgb(255 255 255 / 24%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-n {
  background: var(--nlm-navy-900);
  color: #fff;
  padding: 13px 24px;
  border: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-g {
  font-size: 14px;
  background: transparent;
  color: var(--nlm-fg-2);
  padding: 11px 18px;
  border: 1px solid var(--nlm-line-strong);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-g[aria-pressed="true"] {
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-gold {
  justify-content: center;
  font-size: 14px;
  background: var(--pq-gold);
  color: var(--pq-gold-ink);
  padding: 11px 18px;
  border: 0;
  transition: transform 0.2s var(--nlm-ease), box-shadow 0.2s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgb(227 178 60 / 45%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) :is(.btn-n, .btn-g, .btn-gold):disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) :is(a, button, summary, input):focus-visible {
  outline: 2px solid var(--nlm-signal);
  outline-offset: 3px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .flip {
  transform: scaleX(var(--dir));
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [hidden] {
  display: none !important;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) i[data-lucide] {
  display: inline-block;
  flex: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sprites {
  display: none;
}

/* Arming: an element that can be hidden and brought back without moving anything. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .an {
  transition: opacity 0.35s var(--nlm-ease), transform 0.45s var(--nlm-ease-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .is-off {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fly {
  position: fixed;
  z-index: 46;
  pointer-events: none;
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .panel {
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--nlm-shadow-sm);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .panel-t {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
  margin: 0 0 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hint {
  font-size: 13px;
  color: var(--nlm-fg-3);
  margin: -6px 0 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-signal-ink);
  background: var(--nlm-signal-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .badge :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--nlm-signal-soft);
  color: var(--nlm-signal-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .ico :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
}

/* A switch (role="switch"): Before / With the product. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qsw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding-block: 6px;
  padding-inline: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qsw:hover {
  border-color: var(--nlm-signal);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qsw-k {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--pq-bad);
  transition: background 0.25s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qsw-k::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: translate 0.25s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qsw[aria-checked="true"] .qsw-k {
  background: var(--nlm-signal);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qsw[aria-checked="true"] .qsw-k::after {
  translate: calc(16px * var(--dir)) 0;
}

/* ---------- objects: StatusChip ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st {
  --st-c: var(--nlm-fg-3);
  --st-bg: var(--nlm-gray-100);
  --st-bd: transparent;

  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-c);
  background: var(--st-bg);
  border: 1px solid var(--st-bd);
  border-radius: 999px;
  padding: 3px 8px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st :is(svg, i[data-lucide]) {
  width: 11px;
  height: 11px;
  flex: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-ai {
  --st-c: var(--nlm-signal);
  --st-bg: var(--nlm-signal-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-ok {
  --st-c: var(--nlm-success);
  --st-bg: var(--nlm-success-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-bad {
  --st-c: var(--nlm-danger);
  --st-bg: var(--nlm-danger-soft);
}

/* Amber is outlined, with a clock: waiting. Gold is solid: decided. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-warn {
  --st-c: var(--nlm-warn);
  --st-bg: transparent;
  --st-bd: var(--nlm-warn);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-gold {
  --st-c: var(--pq-gold-ink);
  --st-bg: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .st {
  --st-c: var(--nlm-navy-300);
  --st-bg: rgb(255 255 255 / 6%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .st-ai {
  --st-c: var(--pq-ai);
  --st-bg: rgb(61 107 255 / 18%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .st-ok {
  --st-c: #5ee08a;
  --st-bg: rgb(34 197 94 / 14%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .st-bad {
  --st-c: #ff8a8a;
  --st-bg: rgb(239 68 68 / 16%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .st-warn {
  --st-c: #fbbf24;
  --st-bg: transparent;
  --st-bd: var(--pq-amber);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dark .st-gold {
  --st-c: var(--pq-gold-ink);
  --st-bg: var(--pq-gold);
}

/* Every state in one cell; the parent's data-st picks the visible chip. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-stack {
  display: inline-grid;
  place-items: center end;
  min-height: 21px;
}

/* Hidden states are out of flow so the cell is only as wide as the chip shown;
   every chip is the same height, so the row itself never moves. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st-stack > .st {
  grid-area: 1 / 1;
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="sent"] > .st-stack > .k-sent,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="awaiting"] > .st-stack > .k-awaiting,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="none"] > .st-stack > .k-none,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="quoted"] > .st-stack > .k-quoted,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="collected"] > .st-stack > .k-collected,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="expired"] > .st-stack > .k-expired,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-st="incomplete"] > .st-stack > .k-incomplete {
  display: inline-flex;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .st.is-pop {
  animation: pq-pop 0.4s var(--nlm-ease-soft);
}

/* ---------- objects: envelope, ping, bubble, cursor ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .env {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--nlm-signal);
  border-radius: 7px;
  padding: 5px 8px;
  box-shadow: 0 6px 18px var(--pq-glow);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .env :is(svg, i[data-lucide]) {
  width: 13px;
  height: 13px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .ping {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nlm-signal);
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .ping :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .ping b {
  position: absolute;
  top: -7px;
  inset-inline-end: -10px;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  line-height: 1;
  color: #fff;
  background: var(--nlm-danger);
  border-radius: 999px;
  padding: 3px 5px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .bub {
  display: inline-block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  color: var(--nlm-fg-1);
  background: var(--nlm-gray-100);
  border-radius: 12px;
  border-end-start-radius: 3px;
  padding: 7px 11px;
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .bub-in {
  background: var(--nlm-danger-soft);
  border-radius: 12px;
  border-end-end-radius: 3px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cur {
  position: absolute;
  z-index: 3;
  color: var(--pq-gold);
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 50%));
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cur :is(svg, i[data-lucide]) {
  width: 22px;
  height: 22px;
  fill: var(--pq-gold);
}

/* ---------- objects: QuoteCard + PriceTicker ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  background: rgb(255 255 255 / 6%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 10px;
  padding: 8px 10px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qc-n {
  font-size: 11px;
  color: var(--nlm-navy-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .tick {
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .tick.is-rolling {
  color: #5ee08a;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .light .tick {
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .light .tick.is-rolling {
  color: var(--nlm-success);
}

/* ---------- objects: ComparisonChart ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-300);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgb(255 255 255 / 9%);
  overflow: hidden;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 4px;
  background: var(--nlm-navy-400);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--nlm-ease-soft);
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-bar i {
  transform-origin: 100% 50%;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .is-best > .cc-bar i,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .is-best .offer-viz .cc-bar i {
  background: var(--nlm-signal);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .is-armed .cc-bar i {
  transform: scaleX(0);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-p {
  color: #fff;
  font-weight: 600;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-d {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-d :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc-ready {
  margin-top: 3px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cc :is(.cc-p, .cc-d, .cc-ready) {
  transition: opacity 0.4s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .is-armed :is(.cc-p, .cc-d, .cc-ready) {
  opacity: 0;
}

/* ---------- objects: DecisionStamp ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  rotate: -5deg;
  font-family: var(--nlm-font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pq-gold-ink);
  background: var(--pq-gold);
  border-radius: 7px;
  padding: 6px 10px;
  box-shadow: 0 8px 22px rgb(227 178 60 / 35%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stamp :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stamp.is-land {
  animation: pq-stamp 0.45s var(--nlm-ease-soft) both;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .is-armed > .stamp,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stamp.is-off {
  opacity: 0;
  transform: none;
}

/* ---------- objects: AiNode, DataLine, Clock ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .node {
  position: relative;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .node-core {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--nlm-signal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px var(--pq-glow);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .node-core :is(svg, i[data-lucide]) {
  width: 22px;
  height: 22px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .node-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid var(--nlm-signal);
  animation: pq-pulse 2.4s ease-out infinite;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .node-ring.r2 {
  animation-delay: 1.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .node.is-busy .node-core {
  animation: pq-glow 0.9s ease-in-out infinite;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .dl {
  display: block;
  background: var(--nlm-signal);
  box-shadow: 0 0 14px var(--pq-glow);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .clk {
  position: relative;
  display: inline-block;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid currentcolor;
  color: var(--nlm-warn);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .clk i {
  position: absolute;
  inset-block-end: 50%;
  inset-inline-start: calc(50% - 1px);
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: currentcolor;
  transform-origin: 50% 100%;
  animation: pq-spin 3s linear infinite;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .clk i + i {
  height: 6px;
  animation-duration: 18s;
}

/* ---------- scroll rail ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail {
  --p: 0;

  position: fixed;
  z-index: 48;
  inset-inline-end: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 36px;
  height: min(400px, calc(100vh - 292px));
  background: var(--nlm-navy-900);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgb(8 9 31 / 42%);
  transition: opacity 0.3s var(--nlm-ease), visibility 0.3s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail.is-away {
  opacity: 0;
  visibility: hidden;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-now {
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-body {
  position: absolute;
  inset: 18px 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail li {
  height: 0;
  display: flex;
  align-items: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  text-decoration: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-track {
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(50% - 1px);
  width: 2px;
  background: rgb(255 255 255 / 16%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-fill {
  position: absolute;
  inset: 0;
  background: var(--nlm-signal);
  transform-origin: 50% 0;
  transform: scaleY(var(--p));
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-env {
  position: absolute;
  z-index: 2;
  top: calc(var(--p) * 100%);
  inset-inline-start: 50%;
  translate: calc(-50% * var(--dir)) -50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nlm-signal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--pq-glow);
  pointer-events: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-env :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nlm-navy-900);
  border: 2px solid var(--nlm-navy-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, scale 0.25s var(--nlm-ease-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a.is-done .rail-dot {
  background: var(--pq-ok);
  border-color: var(--pq-ok);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a:hover .rail-dot {
  scale: 1.3;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a.is-gold .rail-dot {
  width: 20px;
  height: 20px;
  border-color: var(--pq-gold);
  color: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a.is-gold .rail-dot :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a.is-gold[aria-current] .rail-dot {
  background: var(--pq-gold);
  color: var(--pq-gold-ink);
  animation: pq-stamp 0.45s var(--nlm-ease-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-l {
  position: absolute;
  inset-inline-end: calc(100% + 8px);
  white-space: nowrap;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--nlm-navy-900);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  padding: 4px 9px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a:is(:hover, :focus-visible) .rail-l {
  opacity: 1;
  visibility: visible;
}

/* ---------- hero ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero {
  padding: clamp(100px, 11vh, 120px) 0 clamp(64px, 8vw, 104px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 80% at 72% 12%, rgb(15 17 55 / 0%) 28%, rgb(8 9 31 / 60%) 100%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--nlm-navy-600);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .crumb a {
  color: var(--nlm-navy-400);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .crumb-now {
  color: var(--nlm-signal-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .mark {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .mark-ic {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--nlm-signal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .mark-ic :is(svg, i[data-lucide]) {
  width: 26px;
  height: 26px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .mark-w {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .mark-by {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--nlm-navy-400);
  border: 1px solid var(--nlm-navy-600);
  border-radius: 4px;
  padding: 3px 8px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-h {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
}

/* The search-first heading runs longer than the slogan this size was set for. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-h.is-long {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.58;
  color: var(--nlm-navy-300);
  max-width: 560px;
  margin: 0 0 30px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-p strong {
  color: #fff;
  font-weight: 600;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-chips {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-chips .st {
  font-size: 10.5px;
  padding: 5px 10px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stage-wrap {
  position: relative;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stage {
  position: relative;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 18px;
  background: rgb(15 17 55 / 60%);
  padding: 18px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .pause {
  position: absolute;
  inset-block-end: -14px;
  inset-inline-end: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 24%);
  background: var(--nlm-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) :is(.pause, [data-run]) :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .pause .ic-play,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .pause[aria-pressed="true"] .ic-pause,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-run] .ic-pause,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-run].is-running .ic-play {
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .pause[aria-pressed="true"] .ic-play,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) [data-run].is-running .ic-pause {
  display: inline-block;
}

/* ---------- 01 the questions ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  padding: 18px;
}

/* The question mark watermark. Arabic gets its own glyph. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qcard:not(.qextra)::before {
  content: "?";
  position: absolute;
  top: -22px;
  inset-inline-end: 8px;
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 150px;
  line-height: 1;
  color: var(--nlm-gray-100);
  pointer-events: none;
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qcard:not(.qextra)::before {
  content: "؟";
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qcard > * {
  position: relative;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qextra {
  justify-content: center;
  gap: 4px;
  background: var(--nlm-gray-50);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qa {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qq {
  flex: 1;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--nlm-fg-1);
  margin: 0 0 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qctl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--nlm-fg-2);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qctl output {
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--nlm-danger);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qcard input[type="range"] {
  width: 100%;
  margin: 8px 0 0;
  accent-color: var(--nlm-danger);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qrate {
  align-items: center;
  margin-top: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qrate input {
  width: 96px;
  font: inherit;
  font-family: var(--nlm-font-mono);
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 8px;
  color: var(--nlm-fg-1);
  background: #fff;
}

/* The pain loops rest while the section is off screen. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs.is-idle .qa * {
  animation-play-state: paused;
}

/* the meter */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter {
  background: var(--nlm-navy-950);
  border-radius: 18px;
  padding: 22px;
  color: var(--nlm-navy-300);
  box-shadow: var(--nlm-shadow-lg);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-l {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-bar {
  height: 10px;
  border-radius: 5px;
  background: rgb(255 255 255 / 10%);
  overflow: hidden;
  margin-bottom: 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--pq-bad);
  transform-origin: 0 50%;
  transform: scaleX(var(--f));
  transition: transform 0.45s var(--nlm-ease-soft);
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-bar i {
  transform-origin: 100% 50%;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-say {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-h {
  display: block;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 4px 0;
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-h {
  text-align: end;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-sub output {
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  color: #ff8a8a;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-d {
  font-size: 12px;
  font-style: italic;
  color: var(--nlm-fg-3);
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .how {
  font-size: 13px;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 10px 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .how summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .how summary::-webkit-details-marker {
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .how summary :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .how[open] summary :is(svg, i[data-lucide]) {
  transform: rotate(180deg);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .how ul {
  list-style: none;
  margin: 10px 0 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--nlm-fg-2);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--nlm-signal-ink);
  text-decoration: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-a :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

/* ---------- turning point ----------
   Default (no class) is the "on" state: navy, questions, the work in order.
   .is-armed (set by the script) without .is-on is the chaos state. */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn {
  background: var(--nlm-navy-950);
  padding-block: clamp(64px, 8vw, 104px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nlm-gray-50);
  opacity: 0;
  transition: opacity 0.8s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on)::before {
  opacity: 1;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 28px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-sw {
  font-size: 17px;
  padding-block: 9px;
  padding-inline: 9px 20px;
  transition: border-color 0.2s, background 0.5s, color 0.5s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .turn-sw {
  color: var(--nlm-fg-1);
  background: #fff;
  border-color: var(--nlm-line-strong);
  box-shadow: var(--nlm-shadow-md);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-q {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  transition: color 0.6s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-q + .turn-q {
  color: var(--pq-ai);
}

/* The untyped remainder stays in place as a faint ghost, so nothing reflows
   and the chaos state still shows what the switch is about to ask. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-rest {
  opacity: 0.16;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .turn-q {
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-stage {
  --mx: 0;
  --my: 0;

  position: relative;
  height: clamp(340px, 34vw, 430px);
}

/* A pain object. The outer span is placed, shifts with the pointer and is the
   one pulled into the product; the inner span drifts. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to {
  position: absolute;
  top: var(--y);
  inset-inline-start: var(--x);
  translate: calc(var(--mx) * var(--z) * 1px) calc(var(--my) * var(--z) * 1px);
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.2);
  transition: transform 0.75s var(--nlm-ease-soft), opacity 0.5s var(--nlm-ease), translate 0.25s ease-out;
  transition-delay: calc(var(--i) * 35ms), calc(var(--i) * 35ms + 0.2s), 0s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .to {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 25ms), calc(var(--i) * 25ms), 0s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to-in {
  display: block;
  animation: pq-float 4s ease-in-out infinite;
  animation-delay: var(--d);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn:not(.is-armed) .to-in,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-on .to-in,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-idle .to-in {
  animation-play-state: paused;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to .st {
  --st-c: var(--nlm-danger);
  --st-bg: var(--nlm-danger-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to .env {
  background: var(--nlm-gray-500);
  box-shadow: var(--nlm-shadow-md);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to .bub {
  white-space: nowrap;
  background: #fff;
  box-shadow: var(--nlm-shadow-md);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to .clk {
  color: var(--nlm-danger);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cells {
  display: grid;
  grid-template-columns: repeat(3, 26px);
  gap: 3px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cells i {
  height: 10px;
  border-radius: 2px;
  background: var(--nlm-danger-soft);
  border: 1px solid var(--nlm-line-strong);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-core {
  position: absolute;
  top: 50%;
  inset-inline-start: 4%;
  translate: 0 -50%;
  display: flex;
  justify-content: center;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--nlm-navy-300);
  transition: opacity 0.5s var(--nlm-ease);
}

/* The label hangs below, so the node itself is what sits on the centre line. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-core > span {
  position: absolute;
  top: calc(100% + 2px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .turn-core {
  opacity: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  inset-inline: 30% 0;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The line the work now travels along, from the product through every step. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline: -22% 100%;
  height: 2px;
  background: var(--nlm-signal);
  box-shadow: 0 0 14px var(--pq-glow);
  transition: opacity 0.4s 0.5s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  background: var(--nlm-navy-900);
  border: 1px solid var(--nlm-line-dark);
  border-inline-start: 3px solid var(--nlm-signal);
  border-radius: 10px;
  padding: 9px 14px;
  transition: opacity 0.4s var(--nlm-ease), transform 0.5s var(--nlm-ease-soft);
  transition-delay: calc(0.75s + var(--i) * 0.13s);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow li :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
  color: var(--pq-ai);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow .turn-tick {
  margin-inline-start: auto;
  color: var(--pq-ok);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow li.is-gold {
  background: var(--pq-gold);
  border-color: var(--pq-gold);
  color: var(--pq-gold-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow li.is-gold :is(svg, i[data-lucide]) {
  color: var(--pq-gold-ink);
}

/* The decision is the visitor's and still to come: no "done" tick on it. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow li.is-gold .turn-tick {
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .turn-flow li {
  opacity: 0;
  transform: translateX(calc(24px * var(--dir)));
  transition-delay: 0s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .turn-flow::before {
  opacity: 0;
  transition-delay: 0s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-dl {
  position: absolute;
  bottom: 0;
  inset-inline-start: calc(50% - 1px);
  width: 2px;
  height: clamp(40px, 5vw, 64px);
  transform-origin: 50% 0;
  transition: transform 0.8s var(--nlm-ease-soft) 1.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn.is-armed:not(.is-on) .turn-dl {
  transform: scaleY(0);
  transition-delay: 0s;
}

/* ---------- 03 the fix ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: calc(50% - 1px);
  width: 2px;
  height: 56px;
  background: var(--nlm-signal);
  box-shadow: 0 0 14px var(--pq-glow);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix .qsw {
  margin-top: 4px;
}

/* One card per core pain: the buyer's question, then pain -> AI action -> outcome. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.7fr) minmax(0, 0.75fr);
  gap: 14px;
  background: #0b0d2b;
  border: 1px solid var(--nlm-line-dark-strong);
  border-radius: 20px;
  padding: clamp(14px, 1.8vw, 20px);
  box-shadow: 0 18px 44px rgb(0 0 0 / 35%);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-q {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 2px 0 4px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-step {
  flex: none;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--nlm-signal-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- the deck: the script stacks the cards; the top one swipes away ---- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx.is-deck {
  display: grid;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx.is-deck > .fx-row {
  --depth: 0;

  /* Every card takes the height of the tallest, so a waiting card never shows
     its content below the one on top. */
  grid-area: 1 / 1;
  z-index: calc(10 - var(--depth));
  opacity: calc(1 - var(--depth) * 0.34);
  transform: translateY(calc(var(--depth) * 12px)) scale(calc(1 - var(--depth) * 0.035));
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--nlm-ease-soft), opacity 0.4s var(--nlm-ease);
  touch-action: pan-y;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx.is-deck > .fx-row.is-top {
  cursor: pointer;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx.is-deck > .fx-row.is-drag {
  transition: none;
}

/* Swiped: off to the right (to the left in Arabic), out of the way. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx.is-deck > .fx-row.is-gone {
  opacity: 0;
  transform: translateX(calc(112% * var(--dir))) rotate(calc(9deg * var(--dir)));
  pointer-events: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 24%);
  background: var(--nlm-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-btn:hover:not(:disabled) {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-btn :is(svg, i[data-lucide]) {
  width: 17px;
  height: 17px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-count {
  min-width: 64px;
  text-align: center;
  font-family: var(--nlm-font-mono);
  font-size: 13px;
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-hint {
  font-size: 13px;
  color: var(--nlm-navy-400);
}

/* Tall, wide screens: the section pins and the scroll deals the cards. */
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned {
  padding: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned .fx-track {
  height: calc(100vh + 7 * 55vh);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned .wrap {
  position: sticky;
  top: 72px;
  min-height: calc(100vh - 72px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 20px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned .head {
  margin-bottom: 20px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned .h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned .fx-nav {
  margin-top: 40px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fix.is-pinned .fx-cap {
  margin-top: 16px;
  font-size: 13.5px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--nlm-navy-900);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 14px;
  padding: 16px;
  color: var(--nlm-navy-300);
  font-size: 13.5px;
  line-height: 1.5;
  transition: opacity 0.35s var(--nlm-ease), border-color 0.35s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row b {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-h {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nlm-navy-400);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-pain {
  border-inline-start: 3px solid var(--pq-bad);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-act {
  border-inline-start: 3px solid var(--nlm-signal);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-out {
  border-inline-start: 3px solid var(--pq-ok);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-pain .qsw {
  margin-top: auto;
  font-size: 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-say {
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-say b {
  font-size: 15.5px;
  color: var(--pq-ai);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-ok {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pq-ok);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-ok :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene-wrap {
  position: relative;
  display: grid;
  width: 100%;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene-b {
  grid-area: 1 / 1;
  position: relative;
  min-height: 132px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: rgb(8 9 31 / 60%);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 10px;
  padding-block: 14px;
  padding-inline: 14px 40px;
  overflow: hidden;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene-b {
  flex-direction: column;
  text-align: center;
  color: #ff8a8a;
  border-color: rgb(239 68 68 / 40%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene-b :is(svg, i[data-lucide]) {
  width: 28px;
  height: 28px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene {
  transition: opacity 0.35s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row[data-state="before"] .scene {
  visibility: hidden;
  opacity: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row[data-state="before"] .scene-b {
  visibility: visible;
  opacity: 1;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row[data-state="before"] .fx-act {
  border-inline-start-color: var(--pq-bad);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row[data-state="before"] :is(.fx-say, .fx-out) {
  opacity: 0.35;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row[data-state="before"] .replay {
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .replay {
  position: absolute;
  z-index: 3;
  top: 8px;
  inset-inline-end: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 22%);
  background: var(--nlm-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .replay :is(svg, i[data-lucide]) {
  width: 13px;
  height: 13px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-gold > div {
  border-color: rgb(227 178 60 / 55%);
  background: linear-gradient(rgb(227 178 60 / 8%), rgb(227 178 60 / 8%)), var(--nlm-navy-900);
  padding: 20px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .scene-decide {
  padding-block-end: 52px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-gold > div:is(.fx-pain, .fx-act, .fx-out) {
  border-inline-start: 3px solid var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-gold b {
  font-size: 18px;
  color: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-gold .fx-ok {
  background: var(--pq-gold);
  color: var(--pq-gold-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-gold {
  border-color: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-gold .fx-step {
  color: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-cap {
  max-width: 70ch;
  margin: 30px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nlm-navy-300);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-cap strong {
  color: var(--pq-gold);
  font-weight: 600;
}

/* ---------- 04 the simulator ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sim {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 999px;
  padding-block: 6px;
  padding-inline: 6px 12px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nlm-gray-100);
  color: var(--nlm-fg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li.is-done {
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li.is-done .sm-dot {
  background: var(--nlm-success);
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li.is-now {
  border-color: var(--nlm-signal);
  color: var(--nlm-signal-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li.is-now .sm-dot {
  background: var(--nlm-signal);
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li.is-gold.is-now {
  border-color: var(--nlm-warn);
  background: var(--nlm-warn-soft);
  color: var(--pq-gold-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages li.is-gold.is-now .sm-dot {
  background: var(--pq-gold);
  color: var(--pq-gold-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: grab;
  font: inherit;
  color: var(--nlm-fg-2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chip:is(:hover, :focus-visible) {
  border-color: var(--nlm-signal);
  background: #fff;
  transform: translateY(-2px);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chip.is-used {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chip-tag {
  display: block;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-navy-600);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chip-s {
  display: block;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .chip .grip {
  margin-inline-start: auto;
  color: var(--nlm-fg-3);
  width: 16px;
  height: 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop {
  position: relative;
  min-height: 168px;
  box-sizing: border-box;
  border: 2px dashed var(--nlm-line-strong);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop > * {
  grid-area: 1 / 1;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop.is-over {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop.has-pr {
  border-style: solid;
  border-color: var(--nlm-line);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop-empty {
  text-align: center;
  color: var(--nlm-fg-3);
  font-size: 13.5px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop-empty :is(svg, i[data-lucide]) {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop.has-pr .drop-empty,
:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .drop:not(.has-pr) .prc {
  visibility: hidden;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .prc-ref {
  display: block;
  font-family: var(--nlm-font-mono);
  font-size: 12.5px;
  color: var(--nlm-signal-ink);
  margin-bottom: 8px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fld {
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 8px;
  padding: 7px 10px;
  transition: border-color 0.3s, background 0.3s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fld.is-read {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal-soft);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fld dt {
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fld dd {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--nlm-fg-1);
  transition: opacity 0.3s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fld:not(.is-filled) dd {
  opacity: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--nlm-fg-2);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-clock .clk {
  color: var(--nlm-signal-ink);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sim:not([data-state="running"]) .sm-clock .clk i {
  animation-play-state: paused;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-clock b {
  font-family: var(--nlm-font-mono);
  font-size: 20px;
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--nlm-fg-3);
  margin: 8px 0 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-note small {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-decide {
  transition: opacity 0.4s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sim:is([data-state="idle"], [data-state="loaded"], [data-state="running"], [data-state="paused"]) .sm-decide:not(.is-shown) {
  opacity: 0.25;
  pointer-events: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-dh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-dh .panel-t {
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-reason {
  min-height: 22px;
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--nlm-warn);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-call :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-sum {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--nlm-navy-950);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--nlm-navy-300);
  font-size: 13.5px;
  line-height: 1.6;
  animation: pq-rise 0.5s var(--nlm-ease-soft) both;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-sum p {
  flex: 1 1 320px;
  margin: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-sum strong {
  color: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-sum .btn-n {
  background: #fff;
  color: var(--nlm-navy-900);
}

/* ---------- 05 outcomes ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .seg {
  display: inline-flex;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 3px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .seg button {
  font: inherit;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--nlm-fg-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .seg button[aria-pressed="true"] {
  background: var(--nlm-navy-900);
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-n {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-n li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 3px solid var(--nlm-navy-900);
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.4;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-n b {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--nlm-fg-1);
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-n b.ltr {
  text-align: end;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-list :is(svg, i[data-lucide]) {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #fff;
  background: var(--nlm-success);
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--nlm-fg-1);
}

/* ---------- 06 faq ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq {
  border-bottom: 1px solid var(--nlm-line);
  transition: background 0.18s var(--nlm-ease);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq:first-of-type {
  border-top: 1px solid var(--nlm-line);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2vw, 24px) 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: clamp(15.5px, 1.6vw, 19px);
  letter-spacing: -0.01em;
  color: var(--nlm-fg-1);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq summary::-webkit-details-marker {
  display: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq:hover {
  background: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--nlm-line-strong);
  color: var(--nlm-fg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s var(--nlm-ease), background 0.18s, color 0.18s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq-ico :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq[open] .faq-ico {
  transform: rotate(180deg);
  background: var(--nlm-navy-950);
  border-color: var(--nlm-navy-950);
  color: #fff;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq-a {
  padding: 0 4px clamp(20px, 2.4vw, 28px);
  max-width: 80ch;
  animation: pq-faq-in 0.26s var(--nlm-ease-soft) both;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .faq-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nlm-fg-2);
}

/* ---------- final cta ---------- */

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .final {
  text-align: center;
  padding: clamp(80px, 11vw, 140px) 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .final .btns {
  justify-content: center;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .final .h2 {
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  margin: 0 auto 34px;
  max-width: 20ch;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv {
  position: relative;
  height: 150px;
  max-width: 560px;
  margin: 0 auto 18px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-t {
  position: absolute;
  top: calc(50% - 14px);
  inset-inline-start: calc(50% - 19px);
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background: rgb(239 68 68 / 14%);
  border: 1px solid rgb(239 68 68 / 45%);
  color: #ff8a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s var(--nlm-ease-soft), opacity 0.6s;
  transition-delay: calc(var(--i) * 60ms);
  opacity: 0;
  transform: scale(0.3);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-t :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv.is-armed .cv-t {
  opacity: 1;
  transform: translate(calc(var(--x) * var(--dir)), var(--y));
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv.is-armed.is-in .cv-t {
  opacity: 0;
  transform: scale(0.3);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-line {
  position: absolute;
  top: calc(50% - 1px);
  inset-inline: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--nlm-signal), var(--nlm-signal) 80%, var(--pq-gold));
  transform-origin: 0 50%;
  transition: transform 0.7s var(--nlm-ease-soft) 0.8s, opacity 0.5s 1.9s;
  opacity: 0;
}

[dir="rtl"] :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-line {
  background: linear-gradient(270deg, var(--nlm-signal), var(--nlm-signal) 80%, var(--pq-gold));
  transform-origin: 100% 50%;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv.is-armed .cv-line {
  transform: scaleX(0);
  opacity: 1;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv.is-armed.is-in .cv-line {
  transform: scaleX(1);
  opacity: 0;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-end {
  position: absolute;
  top: calc(50% + 12px);
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pq-ai);
  opacity: 0;
  transition: opacity 0.4s 0.8s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-from {
  inset-inline-start: 12%;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-to {
  inset-inline-end: 12%;
  color: var(--pq-gold);
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv.is-armed.is-in .cv-end {
  opacity: 1;
  animation: pq-end-out 0.5s 1.9s forwards;
}

@keyframes pq-end-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s 1.9s, transform 0.7s var(--nlm-ease-soft) 1.9s;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv.is-armed:not(.is-in) .cv-mark {
  opacity: 0;
  transform: scale(0.92);
  transition: none;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-word {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cv-by {
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--nlm-navy-300);
  margin-top: 8px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cta-line {
  font-family: var(--nlm-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nlm-signal-ink);
  margin: 0 0 10px;
}

:is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .cta-sub {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--nlm-navy-300);
  margin: 0 0 10px;
}

/* ---------- responsive ---------- */

@media (width >= 1600px) {
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a[aria-current] .rail-l {
    opacity: 1;
    visibility: visible;
  }
}

/* Below the header's own breakpoint, or on short screens, the rail becomes a
   slim bar under the header: the active stop's name, then the track. */
@media (width <= 1180px), (height < 620px) {
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail {
    top: 72px;
    inset-inline: 0;
    translate: none;
    width: auto;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-inline: clamp(16px, 5vw, 48px);
    background: rgb(8 9 31 / 94%);
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    border-radius: 0;
    box-shadow: none;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-now {
    display: block;
    flex: none;
    max-width: 44%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--nlm-font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #fff;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-body {
    position: relative;
    inset: auto;
    flex: 1;
    height: 100%;
    margin-inline: 8px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail ol {
    flex-direction: row;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail li {
    width: 0;
    height: auto;
    justify-content: center;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail a {
    flex: none;
    width: 28px;
    height: 40px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-track {
    inset-block: calc(50% - 1px) auto;
    inset-inline: 0;
    width: auto;
    height: 2px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-fill {
    inset-block: 0;
    inset-inline: 0 auto;
    width: calc(var(--p) * 100%);
    transform: none;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-env {
    top: 50%;
    inset-inline-start: calc(var(--p) * 100%);
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .rail-l {
    display: none;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sec {
    scroll-margin-top: 112px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero {
    padding-top: clamp(140px, 16vh, 160px);
  }
}

@media (width <= 980px) {
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .hero-grid,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-grid,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-grid,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The meter drops under the cards and rides the bottom of the screen while
     the sliders are in view, clear of the back-to-top button. */
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs-side {
    display: contents;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter {
    position: sticky;
    z-index: 5;
    bottom: 84px;
    padding: 16px 18px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-say {
    font-size: 13px;
    margin-bottom: 8px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .meter-bar {
    margin-bottom: 10px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fx-pain .qsw {
    margin-top: 0;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .qs-cards,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-list {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .sm-stages,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .oc-n {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .fields {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .stage {
    padding: 12px;
  }

  /* On a phone: every other object, pulled in from the far edge, with
     messages allowed to wrap, so nothing is cut off. */
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to:nth-child(even) {
    display: none;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to {
    inset-inline-start: calc(var(--x) * 0.66);
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .to .bub {
    white-space: normal;
    max-width: 128px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-stage {
    height: 360px;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow {
    inset-inline-start: 34%;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) .turn-flow li {
    font-size: 13px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) *,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) *::before,
  :is(#pqos, #dpos, #spos, #flos, #tmos, #wos, #csos, #fros, #reos) *::after {
    animation: none !important;
    transition: none !important;
  }
}
