/* The picture beside the hero (release 7c-1, #38): three views that take turns. Only this side moves; the words and buttons stay put.
   Without the script, the first view is shown finished. */
.show { position: relative; width: 100%; min-width: 0; max-width: 540px; margin: 0 auto; -webkit-user-select: none; user-select: none; }
.show-stage { position: relative; height: 396px; overflow: hidden; touch-action: pan-y; }
/* one view at a time: the old one fades out first, then the new one fades in, so their words never sit on top of each other */
.show-view { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.show-view.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease .2s, transform .35s ease .2s, visibility 0s linear .2s; }
/* while a view is being set back to its starting state, its parts jump there instead of visibly fading out */
.show-view.show-reset * { transition: none !important; }

/* 1. the phone story */
.show-phone { position: relative; width: 236px; height: 388px; padding: 7px; border-radius: 30px; background: #23211a; box-shadow: 0 18px 24px -14px rgba(23, 21, 15, .45); }
.show-screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 23px; background: #15130e; color: #f3eee0; }
.show-top { flex: none; padding: 9px 14px 7px; font-size: 11.5px; font-weight: 700; color: #bdb7a2; border-bottom: 1px solid #2f2b1d; }
.show-steps { flex: none; list-style: none; margin: 0; padding: 8px 9px; display: grid; gap: 5px; }
.show-step { display: grid; grid-template-columns: 20px 1fr; column-gap: 9px; row-gap: 5px; align-items: center; padding: 6px 9px; border-radius: 10px; background: #221f15; border: 1px solid #38331f; font-size: 12.5px; font-weight: 700; line-height: 1.3; transition: opacity .35s ease, transform .35s ease; }
.show-step small { font-size: 11px; font-weight: 500; color: #bdb7a2; }
.show-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e8b84b; color: #1a1305; font-size: 11px; }
.show-bar { grid-column: 1 / -1; height: 6px; border-radius: 9px; background: #38331f; overflow: hidden; }
.show-bar i { display: block; height: 100%; width: 100%; background: #e8b84b; transform-origin: left; transition: transform .6s ease; }
.show-stages { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; color: #8d8773; }
.show-stages span.is-on { color: #f3eee0; }
.show-live { position: relative; flex: 1; min-height: 0; margin: 0 9px 9px; overflow: hidden; border-radius: 12px; background: #221f15; }
.show-live img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.show-live b { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--surface-3); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.show-live b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #35c47a; }
/* a step that hasn't happened yet is there, faintly, so the phone is never half empty */
.show-js .show-step:not(.is-on) { opacity: .38; }
.show-js .show-live:not(.is-on) b { display: none; }

/* 2. the laptop with our demo sites */
.show-laptop { width: calc(100% - 44px); max-width: 480px; }
.show-lid { padding: 10px 10px 12px; border-radius: 18px 18px 4px 4px; background: #23211a; box-shadow: 0 18px 24px -14px rgba(23, 21, 15, .45); }
.show-window { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #0b0b0d; }
.show-window img { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; transition: opacity .5s ease, transform .2s linear; will-change: transform; }
.show-window img.is-on { opacity: 1; }
.show:not(.show-js) .show-window img:first-child { opacity: 1; }
.show-base { height: 13px; margin: 0 -22px; border-radius: 0 0 14px 14px; background: linear-gradient(#3a362a, #23211a); }
.show-caption { margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft, var(--ink-soft)); }

/* on phones the demo sites sit in a taller tablet frame, so this view fills the same space as the phone story (no hole above it) */
@media (max-width: 560px) {
  .show-laptop { width: min(calc(100% - 24px), 300px); }
  .show-lid { padding: 10px; border-radius: 22px; }
  .show-window { aspect-ratio: auto; height: 332px; border-radius: 13px; }
  .show-base { display: none; }
  html .show-account { gap: 17px; padding: 20px 18px; }
  html .show-msg { padding: 12px 14px; font-size: 14px; }
  html .show-paid { padding: 14px; }
}

/* 3. the customer's account */
.show-account { width: min(100%, 360px); padding: 16px; border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 24px -14px rgba(23, 21, 15, .3); display: grid; gap: 12px; text-align: left; }
.show-account header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.show-example { padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); font-size: 11px; }
.show-account h3 { margin: 0; font-size: 18px; color: var(--ink); }
.show-progress { height: 9px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.show-progress i { display: block; height: 100%; width: 60%; border-radius: 9px; background: #e8b84b; transition: width 1.4s cubic-bezier(.22, 1, .36, 1); }
.show-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-top: -6px; }
.show-msg { max-width: 88%; margin: 0; padding: 9px 12px; border-radius: 14px; background: var(--bg); font-size: 13px; line-height: 1.4; transition: opacity .35s ease, transform .35s ease; }
.show-msg.me { justify-self: end; background: var(--surface-3); color: #fff; }
.show-paid { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; font-weight: 700; transition: opacity .35s ease, transform .35s ease; }
.show-js .show-msg:not(.is-on), .show-js .show-paid:not(.is-on) { opacity: 0; transform: translateY(10px); }
.show-js .show-progress i:not(.is-on) { width: 12%; }

/* dots and pause */
.show-controls { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 6px; }
.show-controls button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink, var(--ink)); cursor: pointer; border-radius: 10px; font: inherit; font-size: 14px; }
.show-controls .show-pick::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: currentColor; opacity: .3; transition: width .25s ease, opacity .25s ease; }
.show-controls .show-pick[aria-current="true"]::before { width: 24px; opacity: 1; background: #e8b84b; box-shadow: inset 0 0 0 1px rgba(23, 21, 15, .35); }
.show-controls button:focus-visible { outline: 3px solid #b98414; outline-offset: -3px; }
.show:not(.show-js) .show-controls { display: none; }

@media (max-width: 999px) { .show { margin-top: 8px; } }
@media (max-width: 340px) { .show-phone { width: 222px; } }
/* a simpler version for slower phones, and for people who prefer less movement */
.show-lite .show-view, .show-lite .show-view.is-active, .show-lite .show-step, .show-lite .show-live img, .show-lite .show-msg, .show-lite .show-paid, .show-lite .show-progress i, .show-lite .show-window img { transition: none; }
@media (prefers-reduced-motion: reduce) { .show *, .show *::before { transition: none !important; } }
