/* Premium pass: use the frame, make movement obvious, let the receipt breathe. */
.story {
  top: 15%;
  width: min(670px, 46vw);
}

.mode-switch {
  justify-self: end;
  padding: 3px;
  border: 1px solid #ffffff32;
  border-radius: 999px;
  background: #0a0a0ad9;
  display: flex;
  gap: 3px;
  backdrop-filter: blur(14px);
}

.mode-switch button {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8f8b85;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .13em;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}

.mode-switch button[data-mode="squire"].active {
  background: #ff4b18;
  color: #fff;
  box-shadow: 0 5px 18px #ff4b1845;
}

.mode-switch button[data-mode="pro"].active {
  background: #6d28d9;
  color: #fff;
  box-shadow: 0 5px 18px #7c3aed55;
}

.story h1 {
  max-width: 650px;
}

.squire-cta {
  width: min(470px, 100%);
  padding: 12px 18px 12px 12px;
  border-color: #ffffff45;
  background: linear-gradient(135deg, #11110ff2, #191714ee);
  box-shadow: 0 10px 0 #000, 0 28px 80px #0008;
}

.squire-cta:hover {
  box-shadow: 0 13px 0 #000, 0 36px 95px #000a;
}

.squire-cta small {
  color: #bdb5aa;
}

.squire-cta strong,
.squire-cta > b {
  color: #fff;
}

.squire-workspace {
  top: 102px;
  right: 4vw;
  bottom: 118px;
  width: min(760px, 50vw);
  border: 0;
  border-radius: 12px;
  background: #f8f4ec;
  box-shadow: 0 42px 130px #000a, 0 0 0 1px #ffffff70;
}

.demo-receipt {
  padding: 30px 42px 28px;
}

.receipt-brand {
  position: relative;
  padding: 0 100px 18px 0;
}

.receipt-brand img {
  width: 72px;
}

.receipt-brand > i {
  position: absolute;
  right: 0;
  top: 4px;
  color: #867d71;
  font: normal 700 .68rem/1 Arial, sans-serif;
  letter-spacing: .12em;
}

.receipt-outcome {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: end;
  padding: 24px 0 20px;
}

.receipt-outcome small {
  display: block;
  margin-bottom: 11px;
  color: #d94013;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.receipt-outcome em {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font: normal 800 .62rem/1 Arial, sans-serif;
  letter-spacing: .12em;
}

.receipt-outcome h2 {
  margin: 14px 0 0;
  font-size: clamp(2.8rem, 3.35vw, 4rem);
}

.receipt-outcome > p {
  margin: 0 0 4px;
  padding-left: 22px;
  border-left: 1px solid #d5ccbf;
  color: #5f5a53;
  font: 1.04rem/1.45 Georgia, serif;
}

.human-action {
  margin-top: 0;
  padding: 16px 18px;
}

.human-action b {
  display: block;
  max-width: 580px;
  font-size: .88rem;
  line-height: 1.45;
}

.receipt-evidence {
  margin-top: 13px;
  border-top: 1px solid #d7cfc3;
  border-bottom: 1px solid #d7cfc3;
}

.receipt-evidence summary {
  padding: 14px 2px;
  display: flex;
  justify-content: space-between;
  color: #4e4943;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
  cursor: pointer;
  list-style: none;
}

.receipt-evidence summary::-webkit-details-marker {
  display: none;
}

.receipt-evidence summary span {
  color: #e24316;
  font-size: 1rem;
}

.receipt-evidence[open] summary span {
  transform: rotate(45deg);
}

.receipt-evidence p {
  margin: 0;
  padding: 0 2px 15px;
  color: #645e56;
  font-size: .84rem;
  line-height: 1.45;
}

.receipt-reason {
  display: none;
}

.next-scene {
  margin-top: 15px;
  padding: 14px 17px;
  border: 1px solid #1b1a18;
  border-radius: 8px;
  background: #171614;
  box-shadow: none;
}

.next-scene > strong {
  color: #ff5a29;
}

.moment-rail {
  left: 5vw;
  right: 5vw;
  bottom: 20px;
  height: 78px;
  gap: 6px;
  border-top: 0;
}

.moment-rail[data-mode="squire"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.moment-rail button {
  position: relative;
  padding: 14px 15px;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  background: #0e0f0fc7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  transition: .25s ease;
}

.moment-rail button small {
  display: block;
  color: #837e77;
  font-size: .58rem;
}

.moment-rail button span {
  color: #ddd7cf;
  font: 700 .77rem/1 Georgia, serif;
  letter-spacing: 0;
}

.moment-rail button.active {
  border-color: #ffffff3d;
  background: linear-gradient(135deg, #211f1deb, #121110e8);
  box-shadow: 0 12px 30px #0004;
}

.moment-rail button.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 8px;
  height: 1px;
  background: #ff4b18;
}

.moment-rail button.suggested:not(.active) {
  border-color: #ffffff7a;
  box-shadow: 0 0 0 1px #ffffff18, 0 12px 34px #0004;
  animation: next-moment-invitation 2.4s ease-in-out infinite;
}

@keyframes next-moment-invitation {
  50% {
    border-color: #ff8b694d;
    background: #171513dc;
  }
}

.scene-arrows {
  position: absolute;
  z-index: 21;
  right: 5vw;
  bottom: 108px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-arrows button,
.scene-arrows span {
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff36;
  background: #0d0e0dd9;
  color: #fff;
  backdrop-filter: blur(12px);
}

.scene-arrows button {
  width: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.scene-arrows span {
  min-width: 70px;
  padding: 0 12px;
  border-radius: 999px;
  color: #c9c4bd;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .13em;
}

@media (max-width: 900px) {
  .story {
    width: 78vw;
  }
  .squire-workspace {
    left: 4vw;
    right: 4vw;
    width: auto;
  }
  .moment-rail {
    left: 12px;
    right: 12px;
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(155px, 1fr));
  }
  .scene-arrows {
    right: 18px;
  }
}

@media (max-width: 620px) {
  .receipt-outcome {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .receipt-outcome > p {
    padding-left: 0;
    border-left: 0;
  }
  .receipt-brand > i {
    display: none;
  }
  .demo-receipt {
    padding: 24px 22px;
  }
  .moment-rail {
    height: 70px;
  }
  .moment-rail button {
    min-width: 145px;
    padding: 10px 12px;
  }
  .scene-arrows {
    bottom: 82px;
  }
}

/* ProSquire: one brand, a visibly deeper paid protocol. */
.tier-badge,
.pro-loop {
  display: none;
}

.stage.is-pro .tier-badge {
  width: max-content;
  margin: -15px 0 14px;
  padding: 7px 10px;
  border: 1px solid #a78bfa8c;
  border-radius: 999px;
  background: #4c1d9594;
  color: #ede9fe;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .16em;
  display: block;
  backdrop-filter: blur(12px);
}

.stage.is-pro .story > small,
.stage.is-pro .scene-count,
.stage.is-pro .story blockquote {
  color: #c4b5fd;
}

.stage.is-pro .squire-cta {
  border-color: #a78bfa;
  background: linear-gradient(135deg, #211339f2, #4c1d95f0 58%, #6d28d9ed);
  box-shadow: 0 10px 0 #160d29, 0 28px 80px #6d28d94f;
}

.stage.is-pro .squire-cta:hover {
  box-shadow: 0 13px 0 #160d29, 0 36px 95px #7c3aed61;
}

.stage.is-pro .squire-cta small {
  color: #d8ccfb;
}

.stage.is-pro .squire-workspace {
  box-shadow: 0 42px 130px #140725b8, 0 0 0 1px #c4b5fd85;
}

.stage.is-pro .squire-workspace > header {
  border-bottom-color: #39245d;
  background: #21152f;
  color: #fff;
}

.stage.is-pro .squire-workspace > header small {
  color: #c4b5fd;
}

.stage.is-pro .squire-workspace > header button {
  color: #d8ccfb;
}

.stage.is-pro .pro-loop {
  margin: 15px 0 0;
  padding: 11px 14px;
  border-left: 3px solid #7c3aed;
  background: #eee9f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pro-loop small {
  color: #6d28d9;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.pro-loop b {
  color: #3b2855;
  font: 700 .7rem/1.2 Georgia, serif;
}

.stage.is-pro .proceeding h2 {
  margin-top: 17px;
}

.stage.is-pro .progress i {
  background: #7c3aed;
}

.stage.is-pro .proceeding li.done,
.stage.is-pro .receipt-brand small,
.stage.is-pro .receipt-outcome small,
.stage.is-pro .receipt-protocol small,
.stage.is-pro .human-action small {
  color: #6d28d9;
}

.stage.is-pro .receipt-outcome > p,
.stage.is-pro .human-action {
  border-left-color: #7c3aed;
}

/* CTA rhythm: let the story breathe, then give the action its own visual beat. */
.story .squire-cta {
  margin-top: clamp(24px, 3.4vh, 38px);
}

.stage.is-pro .story .squire-cta {
  margin-top: clamp(22px, 3vh, 34px);
}

@media (max-height: 800px) and (min-width: 621px) {
  .story .squire-cta,
  .stage.is-pro .story .squire-cta {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .story .squire-cta,
  .stage.is-pro .story .squire-cta {
    margin-top: 16px;
  }
}

/* Live Squire: one real action across the entire cinematic experience. */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-squire-link {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #ff6b42;
  border-radius: 999px;
  background: #ff4b18;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .13em;
  cursor: pointer;
  box-shadow: 0 8px 28px #ff4b183f;
  transition: transform .2s ease, box-shadow .2s ease;
}

.live-squire-link span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px #ffffff1f;
}

.live-squire-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px #ff4b185c;
}

.receipt-live-cta {
  width: 100%;
  margin: 10px 0 2px;
  padding: 11px 15px;
  border: 1px solid #d84619;
  background: transparent;
  color: #211f1b;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.receipt-live-cta span {
  grid-column: 1;
  color: #d84619;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.receipt-live-cta b {
  grid-column: 1;
  margin-top: 4px;
  font-size: .67rem;
  letter-spacing: .15em;
}

.receipt-live-cta i {
  grid-column: 2;
  grid-row: 1 / 3;
  font: normal 1.2rem/1 Arial;
}

body.live-open {
  overflow: hidden;
}

.live-squire {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility .35s;
}

.live-squire.show {
  visibility: visible;
  opacity: 1;
}

.live-squire-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #020303d9;
  backdrop-filter: blur(18px);
}

.live-squire-panel {
  position: absolute;
  inset: 3.5vh 3.5vw;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 24px;
  background: #0b0c0c;
  box-shadow: 0 50px 180px #000;
  transform: translateY(28px) scale(.985);
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}

.live-squire.show .live-squire-panel {
  transform: none;
}

.live-squire-panel > header {
  height: 78px;
  padding: 0 26px 0 30px;
  border-bottom: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
}

.live-brand img {
  width: 40px;
}

.live-brand span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.live-brand b,
.live-brand small {
  font-size: .62rem;
  letter-spacing: .17em;
}

.live-brand small {
  color: #ff6a3d;
  font-size: .48rem;
}

.live-close {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 300 1.6rem/1 Arial;
  cursor: pointer;
}

.live-squire-body {
  height: calc(100% - 78px);
  display: grid;
  grid-template-columns: .84fr 1.16fr;
}

.live-promise {
  overflow-y: auto;
  padding: clamp(45px,7vh,85px) clamp(38px,5vw,78px);
  border-right: 1px solid #ffffff20;
  background:
    radial-gradient(circle at 15% 100%,#ff4b1828,transparent 38%),
    linear-gradient(145deg,#111212,#080909);
}

.live-promise > small,
.capture-intro small {
  color: #ff5b2a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.live-promise h2 {
  margin: 20px 0 18px;
  color: #f7f2e9;
  font: 400 clamp(3.4rem,5.3vw,6.7rem)/.86 Georgia,serif;
  letter-spacing: -.065em;
}

.live-promise > p {
  max-width: 500px;
  margin: 0;
  color: #aaa49b;
  font: 1.05rem/1.5 Georgia,serif;
}

.live-promise ol {
  max-width: 520px;
  margin: clamp(34px,6vh,70px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ffffff26;
}

.live-promise li {
  padding: 15px 0;
  border-bottom: 1px solid #ffffff1b;
  display: grid;
  grid-template-columns: 34px 100px 1fr;
  align-items: center;
  gap: 10px;
}

.live-promise li span {
  color: #ff5b2a;
  font-size: .55rem;
}

.live-promise li b {
  font-size: .61rem;
  letter-spacing: .16em;
}

.live-promise li small {
  color: #8e8a83;
  font: .86rem/1.2 Georgia,serif;
}

.live-capture {
  position: relative;
  overflow-y: auto;
  padding: clamp(42px,7vh,78px) clamp(40px,6vw,95px);
  background: #f4efe7;
  color: #171614;
}

.capture-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capture-intro b {
  font: 400 clamp(2rem,2.8vw,3.25rem)/1 Georgia,serif;
  letter-spacing: -.04em;
}

#liveSquireForm {
  margin-top: clamp(30px,5vh,55px);
}

#liveSquireForm > label {
  display: block;
  margin-bottom: 11px;
  color: #4f4941;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#liveSquireInput {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 22px;
  border: 1px solid #c8beb0;
  border-radius: 14px;
  outline: none;
  background: #fffdf9;
  color: #171614;
  font: 1.05rem/1.5 Georgia,serif;
  box-shadow: inset 0 1px 0 #fff;
  transition: border-color .2s, box-shadow .2s;
}

#liveSquireInput:focus {
  border-color: #ff4b18;
  box-shadow: 0 0 0 4px #ff4b1819;
}

.capture-file {
  margin-top: 12px;
}

.capture-file input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.capture-file label {
  min-height: 62px;
  padding: 10px 14px;
  border: 1px dashed #b9aea0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  cursor: pointer;
}

.capture-file label span {
  grid-row: 1 / 3;
  color: #ff4b18;
  font-size: 1.35rem;
}

.capture-file label b {
  font-size: .58rem;
  letter-spacing: .13em;
}

.capture-file label small {
  margin-top: 4px;
  color: #777067;
  font-size: .72rem;
}

.capture-error {
  min-height: 20px;
  margin: 9px 0 3px;
  color: #bf2f0a;
  font-size: .75rem;
}

.capture-submit {
  width: 100%;
  min-height: 78px;
  padding: 10px 20px 10px 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg,#ff6134,#ff4612);
  color: #fff;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 15px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 0 #9f2607,0 24px 60px #ff4b1838;
  transition: transform .2s,box-shadow .2s;
}

.capture-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 0 #9f2607,0 30px 70px #ff4b184d;
}

.capture-submit img {
  width: 54px;
}

.capture-submit span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capture-submit small {
  color: #ffd8cd;
  font-size: .49rem;
  letter-spacing: .14em;
}

.capture-submit b {
  font: 700 1.25rem/1 Georgia,serif;
  letter-spacing: -.01em;
}

.capture-submit i {
  font: normal 1.5rem/1 Arial;
}

.capture-submit.working i {
  animation: livePulse .7s infinite alternate;
}

.capture-privacy {
  margin: 17px 0 0;
  color: #746d63;
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}

.capture-ready {
  position: absolute;
  inset: 0;
  padding: clamp(55px,10vh,120px) clamp(45px,7vw,110px);
  background: #f4efe7;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: .35s ease;
}

.capture-ready.show {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.capture-ready > span {
  color: #ff4b18;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.capture-ready h3 {
  max-width: 620px;
  margin: 24px 0 20px;
  font: 400 clamp(3rem,5vw,6rem)/.9 Georgia,serif;
  letter-spacing: -.06em;
}

.capture-ready p {
  max-width: 620px;
  color: #5f584e;
  font: 1rem/1.5 Georgia,serif;
}

.capture-ready button {
  margin-top: 25px;
  padding: 14px 18px;
  border: 1px solid #27231f;
  border-radius: 999px;
  background: transparent;
  color: #27231f;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .15em;
  cursor: pointer;
}

@keyframes livePulse {
  to {transform: translateX(5px);opacity:.45}
}

@media (max-width: 1050px) {
  .live-squire-link {
    width: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .live-squire-link span {
    width: 9px;
    height: 9px;
  }
  .live-squire-body {
    grid-template-columns: .72fr 1.28fr;
  }
  .live-promise {
    padding-left: 38px;
    padding-right: 38px;
  }
  .live-promise h2 {
    font-size: 4.2rem;
  }
  .live-promise li {
    grid-template-columns: 28px 1fr;
  }
  .live-promise li small {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .nav-actions {
    gap: 6px;
  }
  .live-squire-link {
    position: fixed;
    z-index: 28;
    right: 14px;
    bottom: 82px;
    width: auto;
    min-height: 44px;
    padding: 0 15px;
    font-size: .46rem;
  }
  .live-squire-panel {
    inset: 0;
    border: 0;
    border-radius: 0;
  }
  .live-squire-panel > header {
    height: 68px;
    padding: 0 16px;
  }
  .live-brand small {
    display: none;
  }
  .live-squire-body {
    height: calc(100% - 68px);
    display: block;
    overflow-y: auto;
    background: #f4efe7;
  }
  .live-promise {
    padding: 38px 24px 30px;
    border: 0;
  }
  .live-promise h2 {
    margin-top: 16px;
    font-size: 3.65rem;
  }
  .live-promise ol {
    margin-top: 28px;
  }
  .live-capture {
    min-height: 640px;
    padding: 38px 24px 70px;
  }
  #liveSquireInput {
    min-height: 160px;
  }
  .capture-ready {
    padding: 65px 28px;
  }
}

/* Scene 01: the birth of Squire — challenge the conversation before AI becomes action. */
.ai-conversation {
  position: absolute;
  z-index: 6;
  top: 17%;
  right: 5vw;
  width: min(480px, 37vw);
  padding: 18px;
  border: 1px solid #ffffff30;
  border-radius: 18px;
  background: #090a0ae8;
  box-shadow: 0 35px 110px #000c;
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1), visibility .45s;
}

.stage.ai-output .ai-conversation {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.stage.working .ai-conversation {
  opacity: .1;
  transform: translateX(20px);
}

.ai-conversation > header {
  padding: 2px 2px 15px;
  border-bottom: 1px solid #ffffff1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-conversation > header span,
.ai-conversation > header small {
  color: #c8c3bb;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.ai-conversation > header span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-conversation > header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4b18;
  box-shadow: 0 0 0 5px #ff4b181c;
}

.ai-conversation > header small {
  color: #77736e;
  font-size: .43rem;
}

.chat-turn {
  width: 88%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  background: #ffffff0c;
}

.chat-turn.human {
  margin-left: auto;
  border-radius: 14px 4px 14px 14px;
  background: #f4efe7;
  color: #171614;
}

.chat-turn small {
  color: #ff6a3c;
  font-size: .44rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.chat-turn.human small {
  color: #9d310f;
}

.chat-turn p {
  margin: 7px 0 0;
  font: .93rem/1.35 Georgia,serif;
}

.chat-turn em {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ff4b184a;
  color: #ff7550;
  font: normal 700 .55rem/1.3 Arial,sans-serif;
  letter-spacing: .06em;
}

.chat-turn.faded {
  opacity: .58;
}

.drift-trace {
  margin-top: 15px;
  padding: 11px 12px;
  border-left: 3px solid #ff4b18;
  background: #ff4b180d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drift-trace span,
.drift-trace b {
  color: #aaa49c;
  font-size: .43rem;
  letter-spacing: .08em;
}

.drift-trace b {
  color: #ff6a3c;
}

.drift-trace i {
  color: #5e5a55;
  font: normal .7rem/1 Arial;
}

.stage.ai-output .story {
  width: min(610px, 44vw);
}

@media (max-width: 1050px) {
  .ai-conversation {
    top: 19%;
    right: 3vw;
    width: 40vw;
  }
  .chat-turn p {
    font-size: .82rem;
  }
}

@media (max-width: 760px) {
  .stage.ai-output .story {
    width: calc(100vw - 48px);
  }
  .stage.ai-output .ai-conversation {
    display: none;
  }
}

.stage.is-pro.moment-ready .squire-cta {
  border-color: #a78bfa;
  box-shadow: 0 12px 0 #160d29, 0 30px 82px #6d28d966, 0 0 0 2px #a78bfa4f;
}

/* Scene 01: reserve the middle third for the person, not an overlay. */
.stage.ai-output > video { object-position:50% 50%; filter:saturate(.96) brightness(1.04); }
.stage.ai-output .film-wash { background:linear-gradient(90deg,#080909d9 0%,#080909a3 22%,transparent 40%,transparent 66%,#08090933 100%),linear-gradient(0deg,#080909c9,transparent 23%); }
.stage.ai-output .story { left:4vw;top:20%;width:29vw; }
.stage.ai-output .story h1 { font-size:clamp(2.4rem,3.65vw,4.5rem);line-height:1;letter-spacing:-.045em; }
.stage.ai-output .story blockquote { font-size:clamp(1.3rem,1.85vw,2.1rem);line-height:1.15; }
.stage.ai-output .ai-conversation { right:2vw;top:19%;width:29vw;max-width:420px;padding:16px;background:#101211eb;box-shadow:0 16px 48px #0005; }
.stage.ai-output.working > video { filter:blur(9px) brightness(1.12); }
.stage.ai-output.working .ai-conversation { visibility:hidden; }
@media(max-width:1050px) {
  .stage.ai-output .ai-conversation { width:30vw;right:2vw; }
  .stage.ai-output .story { left:3vw;width:30vw; }
  .stage.ai-output .squire-cta { gap:8px;grid-template-columns:40px 1fr auto;padding:12px; }
  .stage.ai-output .squire-cta strong { font-size:1.15rem; }
}
@media(max-width:760px) {
  .stage.ai-output > video { height:58%;object-position:50% 35%; }
  .stage.ai-output .film-wash { background:linear-gradient(0deg,#080909 40%,transparent 70%); }
  .stage.ai-output .story { top:48%;left:24px;width:calc(100% - 48px); }
  .stage.ai-output .story h1 { font-size:2.4rem; }
  .stage.ai-output .story blockquote { font-size:1.3rem;margin:12px 0; }
  .stage.ai-output .story .squire-cta { margin-top:20px; }
  .stage.ai-output .scene-count { margin:10px 0; }
}

/* Scene 01 v2 — make compounded drift felt before it is explained. */
.stage.ai-output .ai-conversation { overflow: hidden; }
.intent-lock { margin-top:14px;padding:12px 14px;border:1px solid #ffffff1b;border-radius:12px;background:#ffffff08;opacity:0;transform:translateY(8px);animation:aoReveal .42s .25s forwards; }
.intent-lock small { color:#aaa49c;font:800 .45rem/1 Arial,sans-serif;letter-spacing:.13em; }
.intent-lock p { margin:6px 0 0;color:#f5f0e8;font:italic .82rem/1.35 Georgia,serif; }
.stage.ai-output .ai-claim { opacity:0;transform:translateY(10px);animation:aoReveal .5s 1s forwards; }
.ai-claim mark { color:#fff;background:#ff4b182d;border-bottom:2px solid #ff4b18;padding:0 2px; }
.ai-claim em { display:flex;align-items:center;justify-content:space-between; }
.ai-claim em b { color:#ff7a53;font-size:.52rem;letter-spacing:.09em; }
.ai-claim em span { color:#9c968e;font-size:.48rem; }
.context-chain { position:relative;height:30px;margin-left:30px;opacity:0;animation:aoReveal .35s 1.8s forwards; }
.context-chain i { position:absolute;left:0;top:0;width:1px;height:0;background:#ff4b18;box-shadow:0 0 12px #ff4b18;animation:aoLine .65s 1.9s forwards; }
.context-chain span { position:absolute;left:12px;top:10px;color:#ff7550;font:800 .43rem/1 Arial,sans-serif;letter-spacing:.12em; }
.stage.ai-output .inherited { margin-top:0;opacity:0;transform:translateY(8px);animation:aoReveal .45s 2.25s forwards; }
.drift-alert { margin-top:14px;padding:12px 14px;border:1px solid #ff4b1870;border-left:4px solid #ff4b18;background:linear-gradient(90deg,#ff4b181b,#ff4b1807);opacity:0;transform:scale(.97);animation:aoAlert .42s 2.9s forwards; }
.drift-alert small { display:block;color:#ff7550;font:800 .44rem/1 Arial,sans-serif;letter-spacing:.14em; }
.drift-alert b { display:block;margin-top:6px;color:#f7f2ea;font:800 .62rem/1.2 Arial,sans-serif;letter-spacing:.08em; }
@keyframes aoReveal { to { opacity:1;transform:none; } }
.stage.ai-output .ai-claim { animation-delay:3.5s; }
.stage.ai-output .context-chain { animation-delay:4.4s; }
.stage.ai-output .context-chain i { animation-delay:4.5s; }
.stage.ai-output .inherited { animation-delay:4.9s; }
.stage.ai-output .drift-alert { animation-delay:5.5s; }
@media(prefers-reduced-motion:reduce) {
  .stage.ai-output .ai-conversation * { animation:none;opacity:1;transform:none; }
}
@keyframes aoLine { to { height:28px; } }
@keyframes aoAlert { 55% { opacity:1;transform:scale(1.018);box-shadow:0 0 40px #ff4b1838; } 100% { opacity:1;transform:none;box-shadow:0 0 22px #ff4b181f; } }

.stage.is-pro.moment-ready .squire-cta > b {
  color: #c4b5fd;
  text-shadow: 0 0 18px #a78bfa99;
}

.stage.is-pro .receipt-protocol small {
  color: #6d28d9;
}

.moment-rail button.pro {
  border-color: #8b5cf642;
  background: linear-gradient(135deg, #1c1427df, #100e13e8);
}

.moment-rail button.pro small {
  color: #b9a3f2;
}

.moment-rail button.pro.active {
  border-color: #a78bfa8f;
  background: linear-gradient(135deg, #3c1d64ed, #17101fed);
  box-shadow: 0 14px 38px #1b0a30a6;
}

.moment-rail button.pro.active::after {
  background: #a78bfa;
}

.moment-rail[data-mode="pro"] {
  right: auto;
  width: min(650px, 60vw);
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

@media (max-width: 620px) {
  .mode-switch button {
    padding: 0 9px;
    font-size: .45rem;
  }
  .moment-rail[data-mode="pro"] {
    width: calc(100vw - 24px);
    grid-template-columns: repeat(2, minmax(165px, 1fr));
  }
  .stage.is-pro .tier-badge {
    margin-top: -10px;
  }
  .stage.is-pro .pro-loop {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* Squire Check: the receipt is the product, not another results card. */
.demo-receipt {
  padding: 25px 38px 24px;
  background:
    linear-gradient(90deg, transparent 0, transparent 23px, #ff4b181c 23px, #ff4b181c 24px, transparent 24px),
    #f8f4ec;
}

.demo-receipt > button:first-child {
  z-index: 2;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #cfc6b9;
  border-radius: 50%;
  color: #282521;
  font-size: 1.25rem;
}

.receipt-brand {
  min-height: 58px;
  padding: 0 128px 17px 0;
  border-bottom: 1px solid #25221e;
  gap: 13px;
}

.receipt-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.receipt-brand span {
  gap: 6px;
}

.receipt-brand small {
  color: #e33f12;
  font-size: .72rem;
  letter-spacing: .2em;
}

.receipt-brand b {
  color: #282521;
  font-size: .54rem;
  letter-spacing: .16em;
}

.receipt-brand > i {
  top: 8px;
  color: #5e574d;
  font-size: .58rem;
  letter-spacing: .1em;
}

.receipt-outcome {
  grid-template-columns: 1.12fr .88fr;
  gap: 30px;
  align-items: center;
  padding: 22px 0 17px;
}

.receipt-outcome small {
  margin-bottom: 9px;
  color: #d73a0e;
  font-size: .6rem;
  letter-spacing: .2em;
}

.receipt-outcome em {
  padding: 6px 9px;
  border-radius: 2px;
  background: #1c1a17;
  font-size: .54rem;
}

.receipt-outcome h2 {
  margin: 12px 0 0;
  color: #141310;
  font-size: clamp(2.45rem, 3vw, 3.55rem);
  line-height: .88;
  letter-spacing: -.055em;
}

.receipt-outcome > p {
  margin: 0;
  padding: 2px 0 2px 23px;
  border-left: 2px solid #e44315;
  color: #49443d;
  font: 1rem/1.42 Georgia, serif;
}

.receipt-protocol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cdc4b7;
  border-bottom: 1px solid #cdc4b7;
}

.receipt-protocol div {
  min-width: 0;
  padding: 13px 14px 12px 0;
}

.receipt-protocol div + div {
  padding-left: 14px;
  border-left: 1px solid #cdc4b7;
}

.receipt-protocol small,
.receipt-protocol b {
  display: block;
}

.receipt-protocol small {
  margin-bottom: 6px;
  color: #e44315;
  font-size: .49rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.receipt-protocol b {
  overflow: hidden;
  color: #2d2924;
  font: 700 .68rem/1.2 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.human-action {
  margin-top: 15px;
  padding: 14px 17px;
  border-left: 4px solid #ff4b18;
  background: #ede4d8;
}

.human-action small {
  margin-bottom: 6px;
  font-size: .51rem;
  letter-spacing: .18em;
}

.human-action b {
  color: #24211d;
  font-size: .79rem;
  line-height: 1.4;
}

.receipt-evidence {
  margin-top: 8px;
  border-top: 0;
}

.receipt-evidence summary {
  padding: 10px 1px;
  font-size: .56rem;
  letter-spacing: .15em;
}

.receipt-seal {
  height: auto;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #27241f;
  background: transparent;
  color: #27241f;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
}

.receipt-seal img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.receipt-seal span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.receipt-seal b {
  color: #24211d;
  font-size: .61rem;
  letter-spacing: .17em;
}

.receipt-seal small {
  color: #6a6258;
  font: .68rem/1.2 Georgia, serif;
  letter-spacing: 0;
}

.receipt-seal > i {
  color: #8a8176;
  font: normal 700 .47rem/1 Arial, sans-serif;
  letter-spacing: .14em;
}

@media (max-width: 620px) {
  .demo-receipt {
    padding: 22px 20px 22px 27px;
  }
  .receipt-outcome {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .receipt-outcome > p {
    padding: 0 0 0 14px;
    border-left: 2px solid #e44315;
  }
  .receipt-protocol {
    grid-template-columns: 1fr;
  }
  .receipt-protocol div,
  .receipt-protocol div + div {
    padding: 10px 0;
    border-left: 0;
    border-bottom: 1px solid #d7cfc3;
  }
  .receipt-protocol div:last-child {
    border-bottom: 0;
  }
  .receipt-seal {
    grid-template-columns: 48px 1fr;
  }
  .receipt-seal img {
    width: 48px;
    height: 48px;
  }
  .receipt-seal > i {
    display: none;
  }
}

/* Keep the Squire Check structure; change only the earned ProSquire accent. */
.stage.is-pro .receipt-brand small,
.stage.is-pro .receipt-outcome small,
.stage.is-pro .receipt-protocol small,
.stage.is-pro .human-action small {
  color: #6d28d9;
}

.stage.is-pro .receipt-outcome > p,
.stage.is-pro .human-action {
  border-left-color: #7c3aed;
}
