/* /bookings/ — the page's own rules (prefix bkx-). The older bk- rules stay in site.css.
   The hero is a [data-sequence] story: a client books and pays a deposit on Brightwell Studio's
   page (the phone), and the booking lands in the Tuppence app's Bookings tab (the iPad). The app
   mock-ups mirror apps/mobile/app/(tabs)/bookings.tsx and src/lib/bookings-day.ts; the booking
   page quotes apps/web/src/book/strings.ts. Inside a device everything is in em: the screen sets
   its font size from its own width (container query units). */

/* ---------- Hero stage ---------- */
.bkx-hero {
  padding-bottom: 128px;
}
.bkx-hero__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
}
.bkx-stage {
  position: relative;
  margin: 0 -6% 0 0;
  padding: 5% 0 15% 9%;
}
.bkx-stage__tablet {
  width: 100%;
}
.bkx-stage__phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 29%;
  padding: 1.1%;
  z-index: 2;
}
.bkx-stage__toast {
  top: auto;
  right: 6%;
  bottom: 4%;
  z-index: 3;
}
.bkx-stage__toggle {
  position: absolute;
  right: -2%;
  top: 0;
}

/* ---------- The app (Bookings tab) ---------- */
.bkx-app {
  --app-ink: #0b1020;
  --app-mute: #5b6380;
  --app-line: #dce0ec;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: 0 1.4em 1.2em;
  font-size: calc(100cqw / 58);
  line-height: 1.25;
  color: var(--app-ink);
  text-align: left;
  background: var(--tp-cloud);
}
.bkx-app .icon {
  width: 1.15em;
  height: 1.15em;
}
.bkx-app--wide {
  gap: 0.7em;
}
.bkx-app--tall {
  font-size: calc(100cqw / 40);
  padding-bottom: 0;
}
.bkx-app--phone {
  font-size: calc(100cqw / 20);
  gap: 0.75em;
  padding: 0 1em;
}
.bkx-app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.9em;
  font-size: 0.78em;
  font-weight: 600;
  flex: none;
}
.bkx-app__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bkx-app__head > b {
  font-size: 2em;
  letter-spacing: -0.03em;
}
.bkx-app__btns {
  display: flex;
  gap: 0.5em;
  font-weight: 600;
}
.bkx-app__btns span {
  padding: 0.55em 1.1em;
  border-radius: 2em;
  background: #fff;
  border: 1px solid var(--app-line);
}
.bkx-app__btns .is-primary {
  background: var(--tp-blue);
  border-color: var(--tp-blue);
  color: #fff;
  box-shadow: 0 0.4em 1em -0.4em rgba(59, 91, 255, 0.7);
}
.bkx-app--phone .bkx-app__head > b {
  font-size: 1.55em;
}
.bkx-app__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bkx-app__nav b {
  font-size: 1.15em;
}
.bkx-app__arrow {
  display: inline-grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--app-line);
}
.bkx-app__arrow--back .icon {
  transform: rotate(180deg);
}
.bkx-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.25em;
  border-radius: 2em;
  background: #fff;
  border: 1px solid var(--app-line);
  color: var(--app-mute);
  text-align: center;
}
.bkx-seg span {
  padding: 0.5em;
  border-radius: 2em;
}
.bkx-seg .is-sel {
  background: var(--blue-50);
  color: var(--tp-blue);
  font-weight: 600;
}

/* A column per person. --hours rows, a block at --s hours from the top, --d hours long. */
.bkx-cols {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 1em;
  overflow: hidden;
}
.bkx-cols__head,
.bkx-cols__body {
  display: grid;
  grid-template-columns: 3.4em repeat(3, minmax(0, 1fr));
}
.bkx-cols__head span {
  padding: 0.7em 0.6em 0.5em;
  font-weight: 700;
  font-size: 0.92em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bkx-cols__body {
  position: relative;
  flex: 1;
  margin: 0.4em 0 0.8em;
}
.bkx-cols__hours {
  position: relative;
}
.bkx-cols__hours span {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--s) * 100% / var(--hours));
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.72em;
  color: var(--app-mute);
  font-variant-numeric: tabular-nums;
}
.bkx-col {
  position: relative;
  border-left: 1px solid #eef0f6;
  background: repeating-linear-gradient(
    to bottom,
    #eef0f6 0,
    #eef0f6 1px,
    transparent 1px,
    transparent calc(100% / var(--hours))
  );
}
.bkx-cols__now {
  position: absolute;
  z-index: 1;
  left: 3.4em;
  right: 0;
  top: calc(var(--s) * 100% / var(--hours));
  height: 2px;
  background: var(--sunrise-500, #ff8a5b);
}
.bkx-cols__now::before {
  content: "";
  position: absolute;
  left: -0.35em;
  top: -0.3em;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: inherit;
}
.bkx-v {
  position: absolute;
  left: 0.3em;
  right: 0.3em;
  top: calc(var(--s) * 100% / var(--hours) + 1px);
  height: calc(var(--d) * 100% / var(--hours) - 3px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.25em 0.5em;
  line-height: 1.15;
  border-radius: 0.45em;
  border-left: 0.25em solid var(--tp-blue);
  background: #eef1ff;
  overflow: hidden;
  font-size: 0.86em;
}
.bkx-v b {
  white-space: nowrap;
}
.bkx-v small {
  color: var(--app-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bkx-v--done {
  border-left-color: #a9b6f5;
  background: #f3f5fc;
  color: var(--app-mute);
}
.bkx-v--done small {
  color: #8a91a8;
}
.bkx-v--here {
  border-left-color: #00a383;
  background: #e2f8f2;
}
.bkx-v--held {
  border: 1px dashed #a9b6f5;
  border-left: 0.25em solid #a9b6f5;
  background: repeating-linear-gradient(
    -45deg,
    #f6f7fd 0,
    #f6f7fd 0.4em,
    #eef1ff 0.4em,
    #eef1ff 0.8em
  );
  color: var(--app-mute);
}
.bkx-v--new {
  border-left-color: #00a383;
  background: linear-gradient(135deg, #dcf7f0, #eef1ff);
  box-shadow:
    0 0 0 2px #00d1a7,
    0 0.6em 1.4em -0.5em rgba(0, 163, 131, 0.55);
  z-index: 1;
}
.bkx-v--new.is-on {
  animation: bkx-land 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes bkx-land {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* The notification that arrives with a booking (the alert rule booking_new's words). */
.bkx-push {
  position: absolute;
  z-index: 3;
  top: 2.4em;
  left: 50%;
  width: 30em;
  margin-left: -15em;
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  padding: 0.85em 1em;
  border-radius: 1.2em;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow:
    0 1.2em 2.4em -0.8em rgba(11, 16, 32, 0.4),
    0 0 0 1px rgba(11, 16, 32, 0.06);
}
[data-sequence][data-step] .bkx-push:not(.is-on) {
  transform: translateY(-140%);
}
.bkx-push__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.65em;
  background: var(--tp-midnight);
}
.bkx-push__icon img {
  width: 1.6em;
  height: auto;
}
.bkx-push__text {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}
.bkx-push__app {
  display: flex;
  justify-content: space-between;
  font-size: 0.78em;
  color: var(--app-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bkx-push__app small {
  text-transform: none;
  letter-spacing: 0;
}
.bkx-push__text > span:last-child {
  color: var(--app-mute);
  font-size: 0.9em;
}

/* The tab bar */
.bkx-tabs {
  flex: none;
  display: flex;
  justify-content: space-around;
  margin: 0 -1.4em;
  padding: 0.7em 0.5em 1.2em;
  background: #fff;
  border-top: 1px solid var(--app-line);
  font-size: 0.8em;
  color: var(--app-mute);
}
.bkx-app--phone .bkx-tabs {
  margin: auto -1em 0;
  padding-bottom: 1.6em;
}
.bkx-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}
.bkx-tabs .icon {
  width: 1.7em;
  height: 1.7em;
}
.bkx-tabs .is-sel {
  color: var(--tp-blue);
}

/* The agenda (the phone) */
.bkx-agenda {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 1em;
  overflow: hidden;
}
.bkx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 0.9em;
  border-top: 1px solid var(--app-line);
}
.bkx-row:first-child {
  border-top: 0;
}
.bkx-row > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}
.bkx-row small {
  color: var(--app-mute);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}
.bkx-row b {
  font-size: 1.05em;
}
.bkx-row b em {
  font-style: normal;
  font-weight: 500;
  color: var(--tp-blue);
}
.bkx-row > span:first-child > span {
  color: var(--app-mute);
  font-size: 0.86em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bkx-row__act {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4em;
}
.bkx-row--live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.bkx-row--live .bkx-row__act {
  grid-area: 1 / 2;
}
.bkx-pill {
  font-style: normal;
  font-size: 0.8em;
  font-weight: 600;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  background: var(--blue-50);
  color: var(--tp-blue);
}
.bkx-pill--ok {
  background: #e2f8f2;
  color: #007a62;
}
.bkx-pill--muted {
  background: #eceef4;
  color: var(--app-mute);
}
.bkx-step {
  position: relative;
  overflow: hidden;
  font-style: normal;
  font-weight: 600;
  font-size: 0.92em;
  padding: 0.55em 1.05em;
  border-radius: 2em;
  background: var(--tp-blue);
  color: #fff;
}

/* ---------- The booking page (the client's phone). 1em = the screen's width / 19. ---------- */
.bkx-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: calc(100cqw / 19);
  line-height: 1.25;
  color: var(--tp-midnight);
  text-align: left;
  background: #fff;
}
.bkx-page .icon {
  width: 1.1em;
  height: 1.1em;
}
.bkx-page__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.3em 0;
  font-size: 0.8em;
  font-weight: 600;
  flex: none;
}
.bkx-app--phone .bkx-page__status {
  padding: 0.9em 0.4em 0;
}
.bkx-page__island {
  width: 4.4em;
  height: 1.3em;
  border-radius: 1em;
  background: var(--tp-midnight);
}
.bkx-page__brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.9em 1em 0;
  padding: 0.55em 0.6em;
  border-radius: 0.8em;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--lilac-300), transparent 60%),
    linear-gradient(120deg, var(--blue-100), var(--mint-100));
  font-weight: 700;
  font-size: 0.9em;
}
.bkx-page__logo {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.5em;
  background: var(--lilac-600);
  color: #fff;
}
.bkx-page__screens {
  flex: 1;
  display: grid;
  min-height: 0;
}
.bkx-screen {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 1em 1em 1.4em;
  min-width: 0;
}
[data-sequence][data-step] .bkx-screen[data-seq-from]:not(.is-on) {
  transform: translateX(1.5em);
}
.bkx-screen__title {
  font-size: 1.3em;
  letter-spacing: -0.02em;
  margin-bottom: 0.1em;
}
.bkx-screen__label {
  font-weight: 600;
  font-size: 0.9em;
}
.bkx-screen__note {
  color: var(--ink-500);
  font-size: 0.82em;
}
.bkx-screen__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.bkx-svc {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.7em;
  border: 1px solid var(--ink-200);
  border-radius: 0.7em;
}
.bkx-svc > span {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-size: 0.9em;
}
.bkx-svc small {
  color: var(--ink-500);
}
.bkx-svc i {
  font-style: normal;
  font-weight: 600;
  font-size: 0.8em;
  padding: 0.35em 0.8em;
  border-radius: 1em;
  border: 1px solid var(--ink-200);
}
.bkx-svc--on {
  border-color: var(--tp-blue);
  background: var(--blue-50);
}
.bkx-svc--on i {
  border-color: var(--tp-blue);
  background: var(--tp-blue);
  color: #fff;
}
.bkx-basket {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: var(--ink-500);
}
.bkx-basket b {
  color: var(--tp-midnight);
}
.bkx-btn {
  position: relative;
  overflow: hidden;
  padding: 0.8em;
  border-radius: 2em;
  background: var(--tp-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.86em;
  text-align: center;
}
.bkx-btn--press {
  margin-top: auto;
}
.bkx-btn--ghost {
  background: #fff;
  color: var(--tp-blue);
  border: 1px solid var(--blue-200);
}
.bkx-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3em;
}
.bkx-days span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4em 0;
  border-radius: 0.6em;
  border: 1px solid var(--ink-200);
  font-weight: 700;
  font-size: 0.9em;
}
.bkx-days small {
  font-weight: 500;
  font-size: 0.75em;
  color: var(--ink-500);
}
.bkx-days .is-sel {
  background: var(--tp-midnight);
  border-color: var(--tp-midnight);
  color: #fff;
}
.bkx-days .is-sel small {
  color: var(--ink-300);
}
.bkx-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35em;
}
.bkx-times span {
  position: relative;
  padding: 0.55em 0;
  border-radius: 0.55em;
  border: 1px solid var(--ink-200);
  text-align: center;
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
}
.bkx-times .is-picked {
  background: var(--tp-blue);
  border-color: var(--tp-blue);
  color: #fff;
  font-weight: 700;
}
.bkx-hold {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.2em;
  padding: 0.5em 0.6em;
  border-radius: 0.6em;
  background: var(--mint-50);
  color: var(--mint-800);
  font-size: 0.74em;
  font-weight: 600;
}
.bkx-sum {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-100);
  border-radius: 0.7em;
  background: var(--tp-cloud);
}
.bkx-sum > span {
  display: flex;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.45em 0.7em;
  font-size: 0.82em;
  font-weight: 600;
  border-top: 1px solid var(--ink-100);
}
.bkx-sum > span:first-child {
  border-top: 0;
}
.bkx-sum small {
  font-size: 1em;
  font-weight: 400;
  color: var(--ink-500);
}
.bkx-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: 0.8em;
}
.bkx-check > .icon {
  flex: none;
  width: 1.35em;
  height: 1.35em;
  padding: 0.2em;
  border-radius: 0.3em;
  background: var(--tp-blue);
  color: #fff;
  stroke-width: 3;
}
.bkx-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
}
.bkx-field {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.65em 0.7em;
  border: 1px solid var(--ink-200);
  border-radius: 0.6em;
  font-size: 0.82em;
  color: var(--ink-700);
}
.bkx-secure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35em;
  font-size: 0.72em;
  color: var(--ink-500);
}
.bkx-screen--done {
  align-items: stretch;
}
.bkx-screen--done .till__tick {
  align-self: flex-start;
  margin-top: 0.4em;
}

/* Presses: the shared pos-press dip, with a ripple. */
.bkx-svc::after,
.bkx-btn::after,
.bkx-step::after,
.bkx-times span::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
.bkx-svc::after {
  background: rgba(59, 91, 255, 0.25);
}
.bkx-svc.is-at,
.bkx-btn.is-at,
.bkx-step.is-at,
.bkx-times .is-at {
  animation: pos-press 0.5s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.bkx-svc.is-at::after,
.bkx-btn.is-at::after,
.bkx-step.is-at::after,
.bkx-times .is-at::after {
  animation: pos-ripple 0.7s 0.5s ease-out both;
}

/* ---------- The app section ---------- */
.bkx-appstage {
  position: relative;
  margin: 0;
  padding: 56px 48px 0;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(59, 91, 255, 0.22), transparent 70%),
    linear-gradient(160deg, var(--blue-50) 0%, var(--tp-lilac) 100%);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 620px;
}
.bkx-appstage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46%;
  height: 120%;
  left: -12%;
  top: 20%;
  border-radius: var(--radius-panel);
  transform: skewY(-22deg);
  background: linear-gradient(160deg, var(--mint-300) 0%, var(--mint-500) 100%);
  opacity: 0.35;
}
.device--tablet.bkx-ipad {
  aspect-ratio: 0.76;
  width: 540px;
  padding: 1.3%;
  border-radius: 7% / 5.3%;
  margin-right: 250px;
  margin-bottom: -150px;
}
.bkx-ipad .device__screen {
  border-radius: 4.4% / 3.3%;
}
.bkx-iphone {
  position: absolute;
  width: 276px;
  padding: 1%;
  left: calc(50% + 50px);
  bottom: -40px;
  z-index: 2;
}
.bkx-appstage__toggle {
  z-index: 3;
}
.bkx-appfacts {
  margin-top: 48px;
}
.bkx-appfacts .feature p {
  text-wrap: pretty;
}

/* ---------- Features, in four groups ---------- */
.bkx-group {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--ink-100);
}
.bkx-group__head h3 {
  margin-top: 16px;
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.bkx-group__head p {
  margin-top: 6px;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.bkx-group__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.bkx-group--mint .bkx-group__mark {
  background: var(--mint-50);
  color: var(--mint-700);
}
.bkx-group--lilac .bkx-group__mark {
  background: var(--tp-lilac);
  color: var(--lilac-700, #5b3fd0);
}
.bkx-group--sunrise .bkx-group__mark {
  background: #fff1ea;
  color: #c24f1f;
}
.bkx-group__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
.bkx-group__items h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink-900);
}
.bkx-group__items p {
  margin-top: 6px;
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* The till card */
.bkx-till {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 48px 56px;
  border-radius: var(--radius-panel);
  background: var(--gradient-hero);
  color: var(--text-inverse);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease;
}
.bkx-till::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(45% 80% at 85% 20%, rgba(0, 209, 167, 0.28), transparent 70%);
}
.bkx-till:hover {
  transform: translateY(-2px);
}
.bkx-till .eyebrow {
  color: var(--mint-300);
}
.bkx-till h3 {
  margin-top: 12px;
}
.bkx-till p {
  margin-top: 12px;
  color: var(--ink-200);
  text-wrap: pretty;
}
.bkx-till__name {
  color: #fff;
  font-weight: 600;
}
.bkx-till .link-arrow {
  margin-top: 20px;
  color: var(--mint-300);
}
.bkx-minitill {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: var(--tp-cloud);
  color: var(--tp-midnight);
  box-shadow: 0 30px 60px -24px rgba(5, 8, 20, 0.7);
  transform: rotate(-2deg);
}
.bkx-minitill__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bkx-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1.15;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}
.bkx-tile small {
  opacity: 0.85;
}
.bkx-tile--svc {
  background: #6b4fd8;
}
.bkx-tile--retail {
  background: #3f7d4e;
}
.bkx-minitill__cart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}
.bkx-minitill__cart > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink-100);
}
.bkx-minitill__cart .bkx-minitill__total {
  margin-top: auto;
  border: 0;
  align-items: baseline;
}
.bkx-minitill__total b {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.bkx-minitill__charge {
  padding: 8px;
  border-radius: 99px;
  background: var(--tp-blue);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* ---------- Fair to both sides: the words, and the fees ---------- */
.bkx-policy {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 40px 36px;
}
.bkx-words {
  position: relative;
  width: 86%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--ink-700);
  transform: rotate(-1.5deg);
}
.bkx-words__title {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-900);
}
.bkx-words__sub {
  margin-top: -6px;
  color: var(--ink-500);
  font-size: 12px;
}
.bkx-words ul {
  margin: 4px 0;
  padding: 10px 12px 10px 26px;
  border-left: 3px solid var(--lilac-300);
  background: var(--ink-50);
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.45;
}
.bkx-words .bkx-check {
  font-size: 13px;
  color: var(--ink-900);
  font-weight: 600;
}
.bkx-words .bkx-check > .icon {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 4px;
}
.bkx-fees {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 84%;
  margin-top: -14px;
}
.bkx-fees .ui-window__body {
  gap: 10px;
}
.bkx-fees .ui-row__meta {
  font-variant-numeric: normal;
}

/* ---------- What it costs ---------- */
.bkx-price .pos-price__grid dt {
  min-height: 2.8em;
  text-wrap: pretty;
}
.bkx-msgs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  background: var(--surface-card);
}
.bkx-msgs__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bkx-msgs__head > .icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.bkx-msgs__head span {
  display: flex;
  flex-direction: column;
}
.bkx-msgs__head b {
  color: var(--ink-900);
}
.bkx-msgs__head small {
  color: var(--text-secondary);
  font-size: var(--fs-label);
}
.bkx-msgs__rates {
  display: flex;
  gap: 12px;
  margin: 0;
}
.bkx-msgs__rates > div {
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink-50);
}
.bkx-msgs__rates dt {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}
.bkx-msgs__rates dd {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.bkx-msgs__rates dd small {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}
.bkx-price__note {
  max-width: 880px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bkx-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bkx-stage {
    max-width: 720px;
    margin: 0 auto;
  }
  .bkx-group {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .bkx-till {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 28px;
  }
  .bkx-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .bkx-group__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
  }
  .bkx-group__head h3 {
    margin: 0;
  }
  .bkx-group__head p {
    grid-column: 1 / -1;
  }
  .bkx-msgs {
    flex-direction: column;
    align-items: flex-start;
  }
  .bkx-appstage {
    height: 560px;
    padding: 40px 24px 0;
  }
  .device--tablet.bkx-ipad {
    width: 440px;
    margin-right: 200px;
    margin-bottom: -180px;
  }
  .bkx-iphone {
    width: 230px;
    left: calc(50% + 20px);
    bottom: -70px;
  }
}
@media (max-width: 640px) {
  .bkx-stage {
    padding-left: 12%;
  }
  .bkx-stage__phone {
    left: -2%;
    width: 33%;
  }
  .bkx-stage__toast {
    display: none;
  }
  .bkx-stage__toggle {
    right: 0;
  }
  .bkx-group__items {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .bkx-appstage {
    height: 440px;
    padding: 28px 12px 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .device--tablet.bkx-ipad {
    width: 74%;
    margin: 0;
  }
  .bkx-iphone {
    width: 46%;
    padding: 1.8%;
    left: auto;
    right: 3%;
    top: 96px;
    bottom: auto;
  }
  .bkx-policy {
    padding: 28px 16px;
  }
  .bkx-words,
  .bkx-fees {
    width: 100%;
  }
  .bkx-words {
    transform: none;
  }
  .bkx-fees {
    margin-top: 16px;
  }
  .bkx-minitill {
    grid-template-columns: minmax(0, 1fr);
    transform: none;
  }
  .bkx-tile {
    aspect-ratio: 1.7;
  }
  .bkx-msgs {
    padding: 20px;
  }
  .bkx-msgs__rates {
    flex-direction: column;
    width: 100%;
  }
}
