/* A dedicated scroll interval lets the parcel be seen before any software frame. */
.parcel-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.parcel-emergence {
  position: fixed;
  inset: 0;
  overflow: clip;
  z-index: 70;
  pointer-events: none;
}
.parcel-emergence .parcel-visual {
  inset: auto;
  top: 0;
  left: 0;
  transform-origin: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 16px 14px #18274a22);
}
.demo.parcel-departing .success-panel {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.96) !important;
}
.demo.parcel-departing .save-button {
  box-shadow:
    0 0 0 9px #bbd8c430,
    0 0 35px #b5dfbd90;
}
.confirmation-hint {
  margin: 26px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}
.save-button {
  border: 0;
  min-height: 42px;
  position: relative;
  z-index: 4;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition:
    box-shadow 0.25s,
    background 0.25s;
}
.save-button:hover {
  box-shadow:
    0 0 0 4px #8c74e829,
    0 6px 15px #49368b20;
}
.demo[data-phase="3"]:not([data-confirmed="true"]) .save-button {
  background: #6951e8;
  box-shadow: 0 0 0 4px #8c74e820;
}
.demo[data-confirmed="true"] .save-button {
  background: #4e826d;
}
.journey-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}
.journey-actions .skip-journey {
  margin-top: 0;
}
#journey-play {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 11px;
  min-height: 40px;
}
#journey-play[hidden] {
  display: none;
}
.follow-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: fit-content;
  margin: 30px auto 0;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
}
.follow-order > span {
  font-size: 19px;
}
.real-link {
  margin-bottom: 32px;
}
.parcel-journey {
  position: relative;
  height: 330svh;
  min-height: 1800px;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.parcel-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  max-height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 0 24px;
}
.journey-heading {
  text-align: center;
  position: relative;
  z-index: 2;
}
.journey-heading h2 {
  font-size: clamp(28px, 3.9vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin: 18px 0 12px;
  font-weight: 600;
}
.journey-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.parcel-stage {
  position: relative;
  height: clamp(330px, 51svh, 520px);
  flex-shrink: 0;
  isolation: isolate;
  width: 100%;
  max-width: 980px;
  margin: 12px auto 8px;
  perspective: 1200px;
}
.parcel-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 47%, #bdc6e745, transparent 65%);
  pointer-events: none;
}
.parcel-shadow {
  position: absolute;
  left: calc(50% - 115px);
  bottom: 15%;
  width: 230px;
  height: 30px;
  background: #4035232b;
  filter: blur(17px);
  border-radius: 50%;
  pointer-events: none;
}
#parcel-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#parcel-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.parcel-tag {
  position: absolute;
  bottom: 3%;
  width: 100%;
  text-align: center;
  pointer-events: none;
}
.parcel-tag > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.parcel-tag strong {
  font-weight: 500;
  font-size: 12px;
  color: var(--ink);
}
.journey-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(720px, 100%);
  margin: 15px auto 0;
  font-size: 10px;
  color: var(--muted);
}
.scroll-invitation > span {
  margin-left: 13px;
  color: var(--ink);
  font-size: 19px;
}
.journey-progress {
  height: 2px;
  background: var(--line);
  width: min(720px, 100%);
  margin: 16px auto 0;
  overflow: hidden;
}
.journey-progress > span {
  height: 100%;
  display: block;
  background: #8a76cf;
  transform-origin: left;
  transform: scaleX(0);
}
.skip-journey {
  align-self: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  text-underline-offset: 4px;
}
.coordination-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 92%);
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 25px 70px #253d6c25;
  overflow: hidden;
}
.parcel-journey.is-enhanced .coordination-frame {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -40%) scale(0.86);
}
.coordination-top {
  height: 37px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 9px;
  color: var(--muted);
}
.mini-demo {
  font-size: 7px;
  letter-spacing: 0.6px;
}
.coordination-content {
  padding: 26px 30px 20px;
}
.coordination-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.coordination-heading p {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 7px;
}
.coordination-heading h3 {
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 550;
  line-height: 1.2;
}
.order-total {
  padding: 7px 10px;
  background: #8c7bdc0e;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.order-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 15px;
}
.order-stats > div {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.order-stats strong {
  font-size: 22px;
  font-weight: 500;
}
.order-stats span {
  font-size: 10px;
  color: var(--muted);
}
.order-entry {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.order-entry.selected {
  border: 1px solid #a898ed66;
  background: #9b8be90c;
  border-radius: 8px;
}
#open-demo-order {
  color: inherit;
  text-decoration: none;
  min-height: 64px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
#open-demo-order:hover {
  background: #9b8be923;
  box-shadow: 0 4px 16px #6c57ad19;
}
#open-demo-order:focus-visible {
  outline: 2px solid #8b77d0;
  outline-offset: 3px;
}
.travelling-order {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #a898ed88;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 16px 45px #30295328,
    0 2px 8px #30295312;
  pointer-events: none;
  will-change: transform, opacity;
}
.travelling-order[hidden] {
  display: none;
}
.travelling-order-icon {
  color: #998fc0;
  font-size: 28px;
}
.travelling-order > div {
  flex: 1;
}
.travelling-order strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.travelling-order small {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
  opacity: var(--card-detail, 1);
}
.travelling-order div > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.travelling-order b {
  font-size: 25px;
  font-weight: 500;
  opacity: var(--card-detail, 1);
}
.travelling-order b small {
  margin: 3px 0 0;
  letter-spacing: 0;
}
.order-entry > div {
  flex: 1;
}
.order-entry strong {
  display: block;
  font-weight: 550;
  font-size: 11px;
}
.order-entry small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
}
.order-symbol {
  font-size: 20px;
  color: #998fc0;
}
.priority {
  font-size: 9px;
  color: var(--muted);
  margin-right: 5px;
}
.priority.urgent {
  color: #ba8555;
}
.order-chip {
  font-size: 9px;
  border-radius: 6px;
  padding: 7px 9px;
  white-space: nowrap;
}
.verify {
  background: #8c79dc1c;
  color: #8b77d0;
}
.prepare {
  background: #5b98c31c;
  color: #5588ac;
}
.partial {
  background: #c99c4c1c;
  color: #a17c3e;
}
.coordination-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}
.preparation-section {
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 45px 80px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.preparation-copy .eyebrow {
  justify-content: flex-start;
  font-size: 8px;
  line-height: 1.6;
}
.preparation-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 600;
  margin: 20px 0 23px;
}
.preparation-copy h2 > span {
  color: #8490ad;
}
.preparation-copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 390px;
}
.preparation-outcome {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-top: 25px;
}
.preparation-outcome > span {
  font-size: 17px;
  color: var(--ink);
}
.preparation-outcome i {
  font-style: normal;
  margin-inline: 5px;
  color: #a191d7;
}
.preparation-stage {
  padding: 30px 25px 22px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 5% 0, #e3e9f8, transparent 65%),
    linear-gradient(135deg, #b4c5e2, #465e9b);
  box-shadow: inset 0 1px 0 #fff7;
}
.preparation-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px #162e5840;
  overflow: hidden;
}
.preparation-content {
  padding: 24px;
}
.preparation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preparation-title small {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.preparation-title h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-top: 6px;
}
.preparation-client {
  font-size: 10px;
  margin-top: 7px;
  color: var(--muted);
}
.material-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 20px;
}
.material-heading strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.material-heading small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.stock-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.stock-metrics > div {
  border-left: 2px solid #e2dbf8;
  padding-left: 12px;
}
.stock-metrics small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.stock-metrics strong {
  font-size: 27px;
  font-weight: 500;
}
.stock-metrics > div:nth-child(2) strong {
  color: #6a9482;
}
.stock-metrics > div:nth-child(3) strong {
  color: #ac8b5b;
}
.stock-units {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin: 20px 0 24px;
}
.stock-units i {
  height: 20px;
  border: 1px solid #b4c5be;
  border-radius: 4px;
  background: #d9e5dd;
  transition:
    background 0.4s,
    transform 0.4s;
}
.stock-units i.prepared {
  background: #729d89;
  border-color: #729d89;
  transform: translateY(-4px);
}
.stock-units .missing {
  border: 1px dashed #cbb79c;
  background: transparent;
}
.prepared-result {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 11px;
  color: var(--muted);
}
.prepared-result strong {
  color: var(--ink);
  font-weight: 500;
}
.prepared-result strong > span {
  font-size: 21px;
}
.stock-explanation {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  min-height: 29px;
}
.residual-note {
  margin: 19px 0 0 25px;
  border-radius: 12px;
  background: #ffffffeb;
  padding: 16px 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  box-shadow: 0 12px 25px #12356515;
  color: #3a4758;
}
.residual-note > span {
  font-size: 21px;
  color: #a3834e;
}
.residual-note strong {
  font-size: 12px;
  font-weight: 550;
}
.residual-note p {
  font-size: 10px;
  color: #7e8796;
  line-height: 1.6;
  margin-top: 5px;
}
.section-disclaimer {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}
/* Lightweight CSS 3D remains usable if WebGL cannot initialize. */
.parcel-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 900px;
  pointer-events: none;
}
.parcel-fallback[hidden] {
  display: none;
}
.css-parcel {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(-30deg);
}
.box-face {
  position: absolute;
  inset: 0;
  background: #c89e66;
  border: 1px solid #b68b56;
  backface-visibility: visible;
}
.front {
  transform: translateZ(75px);
  display: grid;
  place-items: center;
}
.back {
  transform: rotateY(180deg) translateZ(75px);
  background: #b88b55;
}
.left {
  transform: rotateY(-90deg) translateZ(75px);
  background: #bc905a;
}
.right {
  transform: rotateY(90deg) translateZ(75px);
  background: #d6b17d;
}
.bottom {
  transform: rotateX(-90deg) translateZ(75px);
  background: #a97a49;
}
.front > span {
  background: #fbf7e9;
  color: #3c4b46;
  padding: 10px 8px;
  border-radius: 2px;
  display: block;
  font-weight: 650;
  font-size: 19px;
  transform: rotate(-4deg);
}
.front small {
  display: block;
  font-size: 6px;
  letter-spacing: 0.7px;
  margin: 8px 0;
}
.front i {
  display: block;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #424a44 0 2px,
    transparent 2px 4px,
    #424a44 4px 5px,
    transparent 5px 8px
  );
}
.box-lid {
  position: absolute;
  top: 0;
  width: 75px;
  height: 150px;
  background: #d1ae7b;
  border: 1px solid #b98d56;
  transform-origin: top;
  transform: rotateX(90deg);
  backface-visibility: visible;
}
.lid-left {
  left: 0;
}
.lid-right {
  right: 0;
}
html[data-theme="dark"] .parcel-halo {
  background: radial-gradient(ellipse at 50% 47%, #8193c228, transparent 65%);
}
html[data-theme="dark"] .parcel-shadow {
  background: #0008;
}
html[data-theme="dark"] .preparation-stage {
  background:
    radial-gradient(ellipse at 5% 0, #596d94, transparent 70%),
    linear-gradient(135deg, #455b89, #293752);
}
html[data-theme="dark"] .residual-note {
  background: #273247;
  color: #e5eaf4;
}
html[data-theme="dark"] .residual-note p {
  color: #a5b3cb;
}
/* Without JS, show the illustrative box and the subsequent frames in normal reading order. */
.parcel-journey:not(.is-enhanced) {
  height: auto;
  min-height: 0;
}
.parcel-journey:not(.is-enhanced) .parcel-sticky {
  height: auto;
  min-height: 0;
  position: relative;
  max-height: none;
}
.parcel-journey:not(.is-enhanced) .parcel-stage {
  height: auto;
  padding-top: 320px;
}
.parcel-journey:not(.is-enhanced) .parcel-fallback {
  height: 300px;
}
.parcel-journey:not(.is-enhanced) .coordination-frame {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: auto;
}
.parcel-journey:not(.is-enhanced) .parcel-tag {
  display: none;
}
@media (max-width: 760px) {
  .parcel-journey {
    height: 330svh;
    min-height: 1700px;
    margin-top: 25px;
  }
  .parcel-sticky {
    padding: 30px 0 18px;
    min-height: 590px;
    max-height: 900px;
  }
  .journey-heading h2 {
    font-size: 30px;
    letter-spacing: -1.2px;
    margin-top: 16px;
  }
  .journey-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .journey-heading > p:last-child {
    font-size: 12px;
    max-width: 300px;
    margin: auto;
  }
  .parcel-stage {
    height: clamp(330px, 50svh, 420px);
    margin-top: 15px;
  }
  .coordination-frame {
    width: 100%;
    border-radius: 12px;
  }
  .coordination-top {
    font-size: 8px;
    padding-inline: 11px;
  }
  .coordination-content {
    padding: 20px 13px 16px;
  }
  .coordination-heading h3 {
    font-size: 19px;
    letter-spacing: -0.5px;
  }
  .coordination-heading p {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .order-total {
    display: none;
  }
  .order-stats {
    gap: 5px;
    margin: 18px 0 12px;
  }
  .order-stats > div {
    display: block;
    padding: 10px 8px;
  }
  .order-stats strong {
    font-size: 20px;
    display: block;
  }
  .order-stats span {
    display: block;
    font-size: 8px;
    margin-top: 4px;
  }
  .order-entry {
    gap: 7px;
    padding: 12px 6px;
  }
  .order-entry strong {
    font-size: 10px;
  }
  .order-entry small {
    font-size: 8px;
  }
  .order-symbol {
    display: none;
  }
  .priority {
    font-size: 7px;
    margin-right: 0;
  }
  .order-chip {
    font-size: 8px;
    padding: 6px;
  }
  .coordination-note {
    font-size: 9px;
  }
  .parcel-tag strong {
    font-size: 11px;
  }
  .journey-footer {
    font-size: 8px;
    gap: 10px;
    margin-top: 12px;
  }
  .scroll-invitation > span {
    margin-left: 4px;
  }
  .skip-journey {
    font-size: 9px;
    margin-top: 15px;
  }
  .preparation-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 70px 0 40px;
  }
  .preparation-copy h2 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .preparation-copy > p:not(.eyebrow) {
    font-size: 13px;
  }
  .preparation-stage {
    padding: 22px 14px 16px;
  }
  .preparation-content {
    padding: 19px 14px;
  }
  .residual-note {
    margin-left: 12px;
    padding: 15px;
  }
  .stock-units {
    gap: 4px;
  }
  .section-disclaimer {
    font-size: 9px;
  }
  .follow-order {
    font-size: 11px;
  }
  .journey-heading {
    min-height: 105px;
  }
}
@media (max-height: 660px) and (min-width: 761px) {
  .parcel-sticky {
    min-height: 560px;
    padding-block: 15px;
  }
  .parcel-stage {
    height: 330px;
  }
  .journey-heading h2 {
    font-size: 30px;
    margin: 10px 0;
  }
  .journey-heading .eyebrow {
    font-size: 8px;
  }
  .journey-heading > p:last-child {
    font-size: 12px;
  }
  .coordination-content {
    padding: 15px 25px;
  }
  .order-stats {
    margin: 12px 0;
  }
  .order-entry {
    padding-block: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .parcel-journey.is-enhanced {
    height: auto;
    min-height: 0;
  }
  .parcel-sticky {
    position: relative;
    height: auto;
    max-height: none;
    min-height: 0;
    padding-block: 45px;
  }
  .parcel-stage {
    height: auto;
    padding-top: 300px;
  }
  .parcel-fallback,
  #parcel-canvas {
    height: 280px;
  }
  .parcel-journey.is-enhanced .coordination-frame {
    position: relative;
    top: auto;
    left: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin: auto;
  }
  .parcel-tag,
  .parcel-shadow,
  .scroll-invitation,
  .journey-progress {
    display: none;
  }
  .journey-footer {
    justify-content: center;
  }
  .stock-units i {
    transition: none;
  }
}
