/* Family overview pages (M106 prototype): /accounts/ and /tools/. One template: a hero with a
   layered product scene that tilts with the pointer, the family's products, where it sits in the
   money's journey, the number that sells it, then the other two families. Scenes are drawn in em
   inside a container that sets its own font size, so they scale with no second layout. */

/* Heroes */
.fx-hero .hero__grid {
  align-items: center;
}
.fx-hero .h-display {
  max-width: 11ch;
}
.fx-hero .h-display span {
  white-space: nowrap;
}
.fx-hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-label);
  color: var(--ink-200);
}
.fx-hero__ticks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fx-hero__ticks .icon {
  color: var(--mint-300);
}
.fx-hero--light {
  position: relative;
  overflow: hidden;
  padding: 148px 0 88px;
  background:
    radial-gradient(55% 60% at 80% 35%, rgba(102, 128, 255, 0.14), transparent 70%),
    radial-gradient(40% 50% at 95% 90%, rgba(0, 209, 167, 0.14), transparent 70%),
    linear-gradient(180deg, #eef1f9, #f4f6fb);
  color: var(--ink-900);
}
.fx-hero--light .fx-hero__ticks {
  color: var(--ink-600);
}
.fx-hero--light .fx-hero__ticks .icon {
  color: var(--mint-700);
}
.fx-hero--light .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
}
.fx-hero--light .lead {
  margin-top: 18px;
  color: var(--ink-600);
}
.fx-hero--light .row {
  margin-top: 28px;
}
.fx-hero--light .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fx-hero--light .h-display {
  margin-top: 12px;
}

/* The scene: a 3D stage that leans towards the pointer. */
.fx-scene {
  position: relative;
  aspect-ratio: 1.12;
  container-type: inline-size;
  perspective: 1400px;
}
.fx-scene__rig {
  position: absolute;
  inset: 0;
  font-size: 2.2cqw;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fx-layer {
  position: absolute;
  transform: translateZ(var(--z, 0));
  animation: fx-in 0.9s var(--d, 0s) cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fx-in {
  from {
    opacity: 0;
    transform: translateZ(var(--z, 0)) translateY(2em) scale(0.97);
  }
}
.fx-panel {
  padding: 1.3em 1.4em;
  border-radius: 1.2em;
  background: #fff;
  color: var(--ink-900);
  box-shadow:
    0 2.6em 4.4em -1.8em rgba(5, 8, 20, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.4);
}
.fx-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86em;
  font-weight: 600;
  color: var(--ink-500);
}
.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.1em 0.7em 0.7em;
  border-radius: 1em;
  background: #fff;
  color: var(--ink-900);
  font-size: 0.92em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow:
    0 1.8em 3em -1.4em rgba(5, 8, 20, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.4);
}
.fx-chip small {
  display: block;
  color: var(--ink-500);
  font-size: 0.85em;
}
.fx-chip__ic {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.7em;
  background: var(--ink-50);
  color: var(--ink-700);
}
.fx-chip__ic .icon {
  width: 1.15em;
  height: 1.15em;
}
.fx-chip__ic--mint {
  background: var(--mint-50);
  color: var(--mint-700);
}
.fx-chip__ic--blue {
  background: var(--blue-50);
  color: var(--blue-600);
}
.fx-chip__amt {
  margin-left: 0.6em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fx-chip__amt--mint {
  color: var(--mint-700);
}
.fx-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.2em 0.7em 0.2em 0.55em;
  border-radius: 99em;
  background: var(--mint-50);
  color: var(--mint-800);
  font-size: 0.9em;
}
.fx-live::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--mint-500);
}

/* Accounts & cards: two cards fanned over the balance. */
.ax-card {
  width: 54%;
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
}
.ax-card__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto auto;
  padding: 1.5em 1.7em;
  border-radius: 1.4em;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 3em 5em -2em rgba(5, 8, 20, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transform: rotateX(18deg) rotateY(-22deg) rotateZ(6deg);
}
.ax-card__face::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg) translateX(-100%);
  animation: fx-sheen 1.2s var(--sheen, 1.4s) ease both;
}
@keyframes fx-sheen {
  to {
    transform: skewX(-18deg) translateX(560%);
  }
}
.ax-card--mint .ax-card__face {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #3fdfbf 0%, #00b592 55%, #008f74 100%);
}
.ax-card--blue .ax-card__face {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #6680ff 0%, #3b5bff 50%, #2035b8 100%);
}
.ax-card__face img {
  width: 2.6em;
  height: auto;
}
.ax-card__tag {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 0.25em 0.7em;
  border-radius: 99em;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78em;
  font-weight: 600;
}
.ax-card__num {
  grid-column: 1 / -1;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.ax-card__name {
  grid-column: 1 / -1;
  margin-top: 0.2em;
  font-size: 0.85em;
  opacity: 0.85;
}
.ax-card--blue {
  right: 2%;
  top: 4%;
  --z: -60px;
  --d: 0.15s;
  --sheen: 1.2s;
}
.ax-card--mint {
  right: 10%;
  top: 22%;
  --z: 40px;
  --d: 0.3s;
  --sheen: 1.6s;
}
.ax-balance {
  left: 0;
  bottom: 6%;
  width: 56%;
  --z: 80px;
  --d: 0.45s;
}
.ax-balance__value {
  display: block;
  margin-top: 0.5em;
  font-size: 2.3em;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.ax-balance__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.85em;
  padding-top: 0.85em;
  border-top: 1px solid var(--ink-100);
  font-size: 0.86em;
  color: var(--ink-600);
}
.ax-balance__row > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.ax-balance__row .icon {
  width: 1.1em;
  height: 1.1em;
}
.ax-balance__pill {
  padding: 0.15em 0.7em;
  border-radius: 99em;
  background: var(--mint-50);
  color: var(--mint-800);
  font-weight: 650;
  white-space: nowrap;
}
.ax-balance__bar {
  display: block;
  height: 0.45em;
  margin-top: 0.5em;
  border-radius: 99em;
  background: var(--ink-100);
  overflow: hidden;
}
.ax-balance__bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--mint-500));
}
.ax-back {
  right: 6%;
  top: 66%;
  --z: 120px;
  --d: 1.3s;
}
.ax-ask {
  left: 2%;
  top: 8%;
  --z: 100px;
  --d: 0.9s;
}

/* Business tools: a shop, a till and a booking page on one desk. */
.tx-win {
  overflow: hidden;
  border-radius: 1em;
  background: #fff;
  color: var(--ink-900);
  box-shadow:
    0 2.6em 4.4em -1.8em rgba(20, 31, 94, 0.45),
    0 0 0 1px rgba(11, 16, 32, 0.06);
}
.tx-win__bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
  font-size: 0.78em;
  color: var(--ink-500);
}
.tx-win__bar i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--ink-200);
}
.tx-win__url {
  flex: 1;
  margin-left: 0.8em;
  padding: 0.25em 0.8em;
  border-radius: 99em;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-shop {
  left: 0;
  top: 4%;
  width: 70%;
  --z: -40px;
  --d: 0.1s;
}
.tx-shop__body {
  padding: 1.1em 1.2em 1.3em;
}
.tx-shop__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tx-shop__brand small {
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0;
}
.tx-shop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8em;
  margin-top: 0.9em;
}
.tx-shop__item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: 0.82em;
}
.tx-shop__img {
  aspect-ratio: 1;
  border-radius: 0.6em;
  background: linear-gradient(160deg, #efe6d4, #d9ccb2);
}
.tx-shop__item:nth-child(2) .tx-shop__img {
  background: linear-gradient(160deg, #dfe6f5, #b9c5e4);
}
.tx-shop__item:nth-child(3) .tx-shop__img {
  background: linear-gradient(160deg, #dcefe8, #a9d9c8);
}
.tx-shop__item b {
  font-variant-numeric: tabular-nums;
}
.tx-till {
  right: 0;
  top: 30%;
  width: 52%;
  --z: 60px;
  --d: 0.35s;
}
.tx-till__frame {
  padding: 0.7em;
  border-radius: 1.4em;
  background: #2a3045;
  box-shadow: 0 3em 5em -2em rgba(20, 31, 94, 0.55);
}
.tx-till__screen {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.7em;
  padding: 0.8em;
  border-radius: 0.9em;
  background: #fff;
  color: var(--ink-900);
}
.tx-till__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
}
.tx-till__tiles span {
  padding: 1em 0.3em;
  border-radius: 0.5em;
  background: var(--ink-50);
  font-size: 0.72em;
  font-weight: 600;
  text-align: center;
}
.tx-till__tiles .is-hit {
  background: var(--mint-50);
  box-shadow: inset 0 0 0 1.5px var(--mint-500);
}
.tx-till__sale {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-size: 0.72em;
}
.tx-till__sale > span {
  display: flex;
  justify-content: space-between;
  color: var(--ink-600);
}
.tx-till__sale b {
  display: flex;
  justify-content: space-between;
  padding-top: 0.35em;
  border-top: 1px dashed var(--ink-200);
}
.tx-till__charge {
  margin-top: auto;
  padding: 0.6em 0;
  border-radius: 0.5em;
  background: var(--blue-500);
  color: #fff;
  font-weight: 650;
  text-align: center;
}
.tx-phone {
  left: 10%;
  top: 50%;
  width: 28%;
  --z: 120px;
  --d: 0.6s;
}
.tx-phone__frame {
  padding: 0.45em;
  border-radius: 1.6em;
  background: #1c2236;
  box-shadow: 0 3em 4em -2em rgba(20, 31, 94, 0.6);
}
.tx-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 1.2em 0.8em 1em;
  border-radius: 1.2em;
  background: #fff;
  color: var(--ink-900);
  font-size: 0.78em;
}
.tx-phone__screen > b {
  font-size: 1.05em;
}
.tx-phone__slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35em;
}
.tx-phone__slots i {
  padding: 0.4em 0;
  border-radius: 0.4em;
  box-shadow: inset 0 0 0 1px var(--ink-200);
  font-style: normal;
  font-size: 0.85em;
  text-align: center;
}
.tx-phone__slots i.is-picked {
  background: var(--blue-500);
  box-shadow: none;
  color: #fff;
  font-weight: 650;
}
.tx-phone__pay {
  padding: 0.5em 0;
  border-radius: 0.5em;
  background: var(--ink-900);
  color: #fff;
  font-weight: 650;
  text-align: center;
}
.tx-free {
  right: 4%;
  top: 2%;
  --z: 140px;
  --d: 0.9s;
}
.tx-free b {
  font-size: 1.5em;
  letter-spacing: -0.03em;
}
.tx-sync {
  right: 10%;
  top: 74%;
  --z: 100px;
  --d: 1.2s;
}
.tx-sync img {
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.7em;
}

/* The family's products */
.fx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.fx-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .fx-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
.fx-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink-100);
  color: var(--ink-900);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.fx-item:hover {
  transform: translateY(-3px);
  color: var(--ink-900);
  box-shadow:
    0 24px 48px -24px rgba(11, 16, 32, 0.25),
    0 0 0 1px var(--ink-100);
}
.fx-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fx-item p {
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--ink-600);
}
.fx-item .link-arrow {
  margin-top: auto;
  padding-top: 6px;
}
.fx-item:hover .link-arrow .icon {
  transform: translateX(3px);
}
.fx-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink-50);
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 650;
}
.fx-badge--mint {
  background: var(--mint-50);
  color: var(--mint-800);
}
.fx-badge--dev {
  background: var(--sunrise-50);
  color: var(--sunrise-700);
}

/* Where the family sits in the money's journey */
.fx-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fx;
}
.fx-loop li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px 0 0;
  counter-increment: fx;
}
.fx-loop li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--ink-100);
}
.fx-loop li + li::before {
  left: 12px;
}
.fx-loop li.is-here::before {
  background: linear-gradient(90deg, var(--blue-500), var(--mint-500));
}
.fx-loop__step {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-400);
}
.fx-loop__step::before {
  content: counter(fx, decimal-leading-zero) "  ";
}
.fx-loop li.is-here .fx-loop__step {
  color: var(--blue-600);
}
.fx-loop strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-400);
}
.fx-loop li.is-here strong {
  color: var(--ink-900);
}
.fx-loop p {
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--ink-500);
}
.fx-loop a {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--blue-600);
}

/* The number */
.fx-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: var(--gradient-hero);
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.fx-number::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 70% at 20% 30%, rgba(0, 209, 167, 0.22), transparent 70%);
}
.fx-number .eyebrow {
  color: var(--mint-300);
}
.fx-number__big {
  display: block;
  margin-top: 10px;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
}
.fx-number__unit {
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-200);
}
.fx-number__sub {
  margin-top: 14px;
  font-size: var(--fs-body-lg);
  color: var(--ink-200);
}
.fx-number__note {
  margin-top: 18px;
  font-size: var(--fs-caption);
  color: var(--ink-300);
}
.fx-statement {
  padding: 24px 26px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 40px 60px -30px rgba(5, 8, 20, 0.7);
}
.fx-statement__head {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.fx-statement__rows {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.fx-statement__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ink-100);
  font-size: var(--fs-label);
  color: var(--ink-700);
  font-variant-numeric: tabular-nums;
}
.fx-statement__rows li.is-total {
  font-weight: 650;
  color: var(--ink-900);
}
.fx-statement__rows li.is-back {
  border-top: 0;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mint-50);
  color: var(--mint-800);
  font-weight: 700;
}
.fx-included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx-included li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: var(--fs-label);
  color: #fff;
}
.fx-included li b {
  color: var(--mint-300);
  font-size: var(--fs-caption);
  font-weight: 650;
}
.fx-included li.is-wide {
  grid-column: 1 / -1;
  background: #fff;
  color: var(--ink-900);
}
.fx-included li.is-wide b {
  color: var(--ink-900);
  font-size: var(--fs-label);
}

/* How your money is held */
.fx-held {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.fx-held__facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx-held__facts li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink-100);
}
.fx-held__facts .icon {
  flex: none;
  color: var(--blue-600);
}
.fx-held__facts b {
  display: block;
  margin-bottom: 2px;
}
.fx-held__facts span {
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--ink-600);
}

/* The other two families */
.fx-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.fx-next a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  padding: 32px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  isolation: isolate;
}
.fx-next a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 100% 100%, rgba(0, 209, 167, 0.28), transparent 70%);
  transition: opacity 0.3s;
  opacity: 0.6;
}
.fx-next a:hover::after {
  opacity: 1;
}
.fx-next a:hover {
  color: #fff;
}
.fx-next .eyebrow {
  color: var(--mint-300);
}
.fx-next strong {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.fx-next p {
  max-width: 34ch;
  color: var(--ink-200);
}
.fx-next .link-arrow {
  margin-top: auto;
  color: var(--mint-300);
}

@media (prefers-reduced-motion: reduce) {
  .fx-layer,
  .ax-card__face::after {
    animation: none;
  }
  .fx-scene__rig {
    transition: none;
  }
}
@media (max-width: 960px) {
  .fx-hero--light .hero__grid,
  .fx-number,
  .fx-held {
    grid-template-columns: minmax(0, 1fr);
  }
  .fx-hero--light {
    padding: 120px 0 56px;
  }
  .fx-number {
    padding: 32px 24px;
    gap: 28px;
  }
  .fx-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
  .fx-next {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .fx-loop,
  .fx-included {
    grid-template-columns: minmax(0, 1fr);
  }
  .fx-loop li + li::before {
    left: 0;
  }
}

/* Business tools' hero: a reel of the real products, one at a time. Each slide is the product
   page's own animated mock-up (the till, bookings, the accounting panel) or the store's, and the
   tabs above fill as each one plays. */
.tx-hero .h-display {
  max-width: 9ch;
}
.tx-reel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.tx-reel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tx-reel__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: var(--ink-200);
  font-size: var(--fs-label);
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.tx-reel__tab:hover {
  color: #fff;
}
.tx-reel__tab.is-active {
  background: #fff;
  box-shadow: none;
  color: var(--ink-900);
}
.tx-reel__tab:focus-visible {
  outline: 2px solid var(--mint-300);
  outline-offset: 2px;
}
.tx-reel__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
}
.tx-reel__bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--mint-500));
  transform: scaleX(0);
  transform-origin: left;
}
.tx-reel.is-seen .tx-reel__tab.is-active .tx-reel__bar {
  opacity: 1;
}
.tx-reel.is-seen .tx-reel__tab.is-active .tx-reel__bar b {
  animation: tx-fill var(--dur, 10s) linear both;
  animation-play-state: paused;
}
.tx-reel.is-playing .tx-reel__tab.is-active .tx-reel__bar b {
  animation-play-state: running;
}
@keyframes tx-fill {
  to {
    transform: scaleX(1);
  }
}
.tx-reel__stage {
  display: grid;
  align-items: center;
  min-height: clamp(320px, 36vw, 520px);
}
/* In the reel, the bookings demo's pause button sits at the bottom, clear of the tabs. */
.tx-reel .bkx-stage__toggle {
  top: auto;
  bottom: 2%;
  right: 0;
}
.tx-reel__slide {
  grid-area: 1 / 1;
  align-self: center;
  min-width: 0;
  animation: tx-slide 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes tx-slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.tx-reel__slide--books {
  padding: 4% 6% 8%;
}
.tx-reel__slide--books .ui-panel {
  box-shadow: 0 40px 80px -40px rgba(5, 8, 20, 0.7);
}

/* The store slide: a product page, its checkout, and the order arriving to pack. */
.tx-shop-stage {
  position: relative;
  margin: 0 -6% 0 0;
  padding: 6% 0 13% 4%;
}
.tx-browser {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 40px 80px -36px rgba(5, 8, 20, 0.75);
  container-type: inline-size;
}
.tx-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.tx-browser__bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-200);
}
.tx-browser__url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink-100);
  font-size: 11px;
  color: var(--ink-500);
}
.tx-browser__page {
  position: relative;
  padding: 3.4cqw 4cqw 4.4cqw;
  font-size: 2.3cqw;
}
.tx-sf__head {
  display: flex;
  align-items: center;
  gap: 4cqw;
  padding-bottom: 2.6cqw;
  border-bottom: 1px solid var(--ink-100);
}
.tx-sf__brand {
  font-size: 1.15em;
  letter-spacing: -0.02em;
}
.tx-sf__nav {
  display: flex;
  gap: 3cqw;
  color: var(--ink-500);
}
.tx-sf__bag {
  position: relative;
  margin-left: auto;
  font-weight: 600;
}
.tx-sf__count {
  position: absolute;
  top: -0.9em;
  right: -1.3em;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  font-style: normal;
  font-size: 0.8em;
  font-weight: 700;
}
.tx-sf__product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4cqw;
  margin-top: 3.4cqw;
}
.tx-sf__img {
  aspect-ratio: 4 / 5;
  border-radius: 1.4cqw;
  background:
    radial-gradient(45% 35% at 50% 55%, rgba(255, 255, 255, 0.5), transparent 70%),
    linear-gradient(160deg, #efe6d4, #d4c5a8);
}
.tx-sf__info {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
}
.tx-sf__info small {
  color: var(--ink-500);
}
.tx-sf__name {
  font-size: 1.7em;
  letter-spacing: -0.03em;
}
.tx-sf__price {
  font-size: 1.25em;
  font-weight: 600;
}
.tx-sf__copy {
  color: var(--ink-600);
  line-height: 1.45;
}
.tx-sf__swatches {
  display: flex;
  gap: 1.2cqw;
}
.tx-sf__swatches i {
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: #d9ccb2;
  box-shadow: inset 0 0 0 1px rgba(11, 16, 32, 0.1);
}
.tx-sf__swatches i:nth-child(2) {
  background: #3a4260;
}
.tx-sf__swatches i:nth-child(3) {
  background: #a9d9c8;
}
.tx-sf__swatches i.is-picked {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px var(--ink-900);
}
.tx-sf__add,
.tx-sf__pay {
  position: relative;
  margin-top: 1cqw;
  padding: 1.8cqw 0;
  border-radius: 1cqw;
  background: var(--ink-900);
  color: #fff;
  font-weight: 650;
  text-align: center;
  overflow: hidden;
}
.tx-sf__add.is-at {
  animation: pos-press 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tx-sf__ship {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--mint-700);
  font-size: 0.9em;
}
.tx-sf__checkout {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 1.3cqw;
  padding: 3.4cqw 3.6cqw;
  border-left: 1px solid var(--ink-100);
  background: #fff;
  box-shadow: -2cqw 0 5cqw -3cqw rgba(11, 16, 32, 0.25);
}
.tx-sf__checkout[data-seq-from]:not(.is-on) {
  transform: translateX(100%);
}
.tx-sf__checkout > b {
  font-size: 1.3em;
}
.tx-sf__wallet {
  padding: 1.6cqw 0;
  border-radius: 1cqw;
  background: #000;
  color: #fff;
  font-weight: 650;
  text-align: center;
}
.tx-sf__or {
  text-align: center;
  font-size: 0.85em;
  color: var(--ink-500);
}
.tx-sf__field {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.4cqw;
  border-radius: 1cqw;
  box-shadow: inset 0 0 0 1px var(--ink-200);
  color: var(--ink-600);
}
.tx-sf__line {
  display: flex;
  justify-content: space-between;
  color: var(--ink-600);
}
.tx-sf__line--total {
  padding-top: 1cqw;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-900);
  font-weight: 700;
}
.tx-sf__pay {
  margin-top: auto;
  background: var(--blue-500);
}
.tx-sf__placed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
}
.tx-sf__placed b {
  font-size: 1.6em;
  letter-spacing: -0.02em;
}
.tx-sf__placed > span:last-child {
  color: var(--ink-500);
}
.tx-shop-stage__toast {
  top: 0;
  right: 4%;
  bottom: auto;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .tx-reel__slide {
    animation: none;
  }
}
@media (max-width: 900px) {
  .tx-shop-stage {
    margin: 0;
  }
}
