/* ---------------------------------------------------------------
   Partner scenes: the four value cards' animations (partners.html)

   What the provider gains, not what the dog parent sees: glass cards
   over a full-bleed photo (after me&u), short labels, a large number,
   and the brand's pastel yellow as the one accent. Each loop is under
   ten seconds and is run by the homepage's scene engine (scenes.js,
   scripts in partners.js); the script only switches state classes and
   every move is a transition here.

   Sizing: em off a font size tied to the frame's width (cqw), so a
   scene scales with its card; on a phone the frame turns portrait and
   the layout re-flows below.
   --------------------------------------------------------------- */

.b2b-feature__media {
  container-type: inline-size;
  background: #0E0F0C;
}
@media (max-width: 900px) {
  .b2b-feature__media { aspect-ratio: 4 / 5; }
}

.pscene {
  --ps-y: #FFF6C4;
  --ps-w2: rgba(255, 255, 255, 0.68);
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: var(--body-font);
  font-size: 2.35cqw;
  line-height: 1.3;
  text-align: left;
  color: #FFFFFF;
  pointer-events: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 900px) {
  .pscene { font-size: 3.6cqw; }
}
.pscene *,
.pscene *::before,
.pscene *::after { box-sizing: border-box; }
.pscene p { margin: 0; }
.pscene i,
.pscene em { font-style: normal; }
.pscene.is-resetting,
.pscene.is-resetting * { transition: none !important; }
.pscene svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* The photo, darkened toward the foot so the glass reads over it. */
.ps-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.s-in .ps-bg { transform: none; }
.pscene--capacity::after,
.pscene--basket::after,
.pscene--retention::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.25) 0%, rgba(10, 10, 9, 0.5) 100%);
}
.pscene > *:not(.ps-bg) { z-index: 1; }
.ps-bg--web2 { object-position: 50% 40%; }
.ps-bg--web3 { object-position: 50% 60%; }
.ps-bg--web6 { object-position: 50% 45%; }

/* -- Glass -------------------------------------------------------- */

.ps-glass {
  position: absolute;
  padding: 1em 1.1em;
  border-radius: 1.4em;
  background: rgba(28, 28, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1.2em 2.6em rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(1.2em) scale(0.98);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
}
.s-out .ps-glass,
.s-out .ps-phone,
.s-out .ps-code { opacity: 0 !important; transition-duration: 500ms; }

.ps-cap {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-w2);
}
.ps-cap svg { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }
.ps-cap--y { color: var(--ps-y); }
.ps-h { font-size: 1em; font-weight: 600; letter-spacing: -0.01em; }
.ps-sub { margin-top: 0.15em !important; font-size: 0.8em; color: var(--ps-w2); }
.ps-num {
  margin-top: 0.15em !important;
  font-size: 2.1em;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.ps-th {
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.7em;
  overflow: hidden;
}
.ps-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-th--daycare { object-position: 42% 70%; }
.ps-th--bed { object-position: 50% 55%; }

.ps-stat {
  right: 1.8em;
  top: 2em;
  min-width: 10.5em;
}

.ps-toast {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.8em 1.1em 0.8em 0.8em;
}
.ps-toast__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--ps-y);
  color: #000000;
}
.ps-toast__ico svg { width: 1.2em; height: 1.2em; stroke-width: 2.8; }

/* -- 1. Fill the gaps ---------------------------------------------
   Today's book: the 12:15 is cancelled and shows "45 min free". The
   slot's controls come in one at a time, the offer goes live, and
   Bella books it. States: s-in, s-cancel, s-ctl, s-r1..s-r5, s-live,
   s-booked. */

.ps-day { left: 1.8em; top: 2em; width: 17.5em; }
.ps-day .ps-cap { margin-bottom: 0.5em; }
.ps-appt {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.6em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
}
.ps-appt > span { flex: none; width: 2.9em; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-appt > p { flex: 1; position: relative; height: 1.4em; line-height: 1.4em; color: rgba(255, 255, 255, 0.82); }
.ps-appt > b { flex: none; position: relative; width: 5.4em; height: 1.4em; line-height: 1.4em; text-align: right; font-weight: 500; color: rgba(255, 255, 255, 0.45); }
.ps-appt i {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.ps-gap__free,
.ps-gap__who,
.ps-gap__x,
.ps-gap__ok { opacity: 0; transform: translateY(0.4em); }
.ps-appt .ps-gap__free {
  right: auto;
  padding: 0 0.6em;
  border-radius: 2em;
  border: 1px dashed rgba(255, 246, 196, 0.6);
  color: var(--ps-y);
  font-weight: 600;
}
.ps-gap__who { display: flex; align-items: center; gap: 0.4em; color: #FFFFFF; font-weight: 600; }
.ps-gap__x { color: #FFB4A8; }
.ps-gap__ok { color: var(--ps-y); font-weight: 600; }
.ps-av {
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--ps-y);
  color: #000000;
  font-size: 0.8em;
  font-weight: 700;
}
.s-cancel .ps-gap__was { opacity: 0; transform: translateY(-0.4em); }
.s-cancel .ps-gap__free,
.s-cancel .ps-gap__x { opacity: 1; transform: none; }
.s-booked .ps-gap__free,
.s-booked .ps-gap__x { opacity: 0; transform: translateY(-0.4em); }
.s-booked .ps-gap__who,
.s-booked .ps-gap__ok { opacity: 1; transform: none; }

.ps-ctl { right: 1.8em; top: 2em; width: 19em; }
.ps-ctl > .ps-h { margin-top: 0.2em; font-size: 1.15em; }
.ps-rules { margin-top: 0.7em; }
.ps-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8em;
  padding: 0.5em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86em;
  opacity: 0;
  transform: translateX(0.8em);
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.ps-rule span { color: var(--ps-w2); }
.ps-rule b {
  padding: 0.15em 0.65em;
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}
.ps-rule b.ps-rule__y { background: var(--ps-y); color: #000000; }
.s-r1 .ps-rule--1,
.s-r2 .ps-rule--2,
.s-r3 .ps-rule--3,
.s-r4 .ps-rule--4,
.s-r5 .ps-rule--5 { opacity: 1; transform: none; }

.ps-live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8em;
  margin-top: 0.4em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ps-toggle {
  position: relative;
  flex: none;
  width: 2.7em;
  height: 1.6em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.2);
  transition: background 350ms var(--ease-out);
}
.ps-toggle::after {
  content: '';
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.3);
  transition: transform 450ms var(--ease-out);
}
.s-live .ps-toggle { background: var(--ps-y); }
.s-live .ps-toggle::after { transform: translateX(1.1em); }
.ps-live .ps-sub { transition: color 400ms var(--ease-out); }
.s-live .ps-live .ps-sub { color: var(--ps-y); }

.ps-toast--gap { left: 1.8em; bottom: 2em; width: 17.5em; }

.pscene--capacity.s-in .ps-day { opacity: 1; transform: none; }
.pscene--capacity.s-ctl .ps-ctl { opacity: 1; transform: none; }
.pscene--capacity.s-booked .ps-toast--gap { opacity: 1; transform: none; }

/* -- 2. Make every booking worth more -----------------------------
   A checkout on glass over the photo: the puppy course, then
   Etho's suggestions for Milo. The starter kit (a bundle price) ticks
   on and the total counts up; the follow-up stays optional. States:
   s-in, s-sug, s-kit, s-stat. */

.ps-cart { left: 1.8em; top: 2em; width: 19.5em; padding: 1.3em 1.4em 1.2em; }
.ps-item {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 0.9em;
  font-size: 0.92em;
}
.ps-item > div { flex: 1; min-width: 0; }
.ps-item p { font-weight: 500; }
.ps-item__sub { margin-top: 0.1em !important; font-size: 0.82em; color: var(--ps-w2); }
.ps-item > b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-item s { margin-right: 0.25em; font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.ps-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.4em;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #000000;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 160ms var(--ease-out);
}
.ps-box svg { width: 0.9em; height: 0.9em; stroke-width: 3; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 420ms var(--ease-out) 120ms; }
.ps-item--on .ps-box,
.s-kit .ps-item--kit .ps-box { background: var(--ps-y); border-color: var(--ps-y); }
.ps-item--on .ps-box svg,
.s-kit .ps-item--kit .ps-box svg { stroke-dashoffset: 0; }
.s-kit .ps-item--kit .ps-box { animation: ps-tick 450ms var(--ease-out); }
@keyframes ps-tick { 40% { transform: scale(0.82); } 100% { transform: none; } }
.ps-item--follow > b { color: var(--ps-w2); font-weight: 500; }

.ps-sugg {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 800ms var(--ease-out), opacity 400ms var(--ease-out);
}
.s-sug .ps-sugg { max-height: 12em; opacity: 1; }
.ps-sugg__cap {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 1.4em !important;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-y);
}
.ps-sugg__cap svg { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }

.ps-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.3em;
  padding-top: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ps-cart__total p { font-size: 0.85em; color: var(--ps-w2); }
.ps-cart__total b { font-size: 1.5em; font-weight: 600; font-variant-numeric: tabular-nums; }

.pscene--basket .ps-stat { top: auto; bottom: 2em; }
.pscene--basket.s-in .ps-cart { opacity: 1; transform: none; }
.pscene--basket.s-stat .ps-stat { opacity: 1; transform: none; }

/* -- 3. Be discoverable by AI search ------------------------------ */

.ps-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34em;
  height: 34em;
  margin: -17em 0 0 -17em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 196, 0.14) 0%, rgba(255, 246, 196, 0.04) 45%, transparent 70%);
}

/* The service as structured data: what an AI agent reads. */
.ps-code {
  position: absolute;
  right: 1.6em;
  top: 1.8em;
  width: 23em;
  height: calc(100% - 3.6em);
  padding: 1.2em 1.3em;
  border-radius: 1.2em;
  background: linear-gradient(160deg, rgba(40, 38, 30, 0.9) 0%, rgba(18, 18, 16, 0.9) 70%);
  border: 1px solid rgba(255, 246, 196, 0.14);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.82em;
  line-height: 1.7;
  white-space: pre;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.ps-code__file {
  margin-bottom: 0.8em !important;
  font-family: var(--body-font);
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.45);
}
.ps-k { color: var(--ps-y); }
.ps-v { color: rgba(255, 255, 255, 0.86); }

.ps-phone {
  position: absolute;
  left: 3em;
  top: 2.2em;
  width: 14.5em;
  height: 28em;
  padding: 0.55em;
  border-radius: 2.4em;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2em 4em rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(1.5em);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.ps-screen {
  height: 100%;
  padding: 2.2em 0.8em 0.8em;
  border-radius: 1.9em;
  background: #F7F5F0;
  color: #000000;
  overflow: hidden;
}
/* The agent speaks first: no question from the pet parent. */
.ps-agent { display: flex; align-items: center; gap: 0.4em; font-size: 0.68em; font-weight: 700; opacity: 0; transition: opacity 400ms var(--ease-out); }
.ps-agent__av { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: #000; }
.ps-agent__av svg { width: 1.05em; height: 1.05em; fill: var(--ps-y); stroke: none; }
.pscene--ai.s-in .ps-agent { opacity: 1; }
.ps-q {
  margin: 0.7em 1.2em 0 0 !important;
  padding: 0.6em 0.75em;
  border-radius: 0.3em 1em 1em 1em;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #000000;
  font-size: 0.7em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.ps-dots { display: flex; gap: 0.25em; margin-top: 0.9em !important; opacity: 0; transition: opacity 300ms var(--ease-out); }
.ps-dots i { width: 0.4em; height: 0.4em; border-radius: 50%; background: rgba(0, 0, 0, 0.35); animation: ps-dot 900ms ease-in-out infinite; }
.ps-dots i:nth-child(2) { animation-delay: 150ms; }
.ps-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes ps-dot { 50% { opacity: 0.25; transform: translateY(-0.15em); } }
.ps-ans { margin-top: -0.6em; opacity: 0; transform: translateY(0.8em); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); }
.ps-ans__lead { display: flex; gap: 0.35em; font-size: 0.74em; line-height: 1.4; color: #464646; }
.ps-ans__lead svg { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.1em; fill: #8A7250; stroke: none; }
.ps-pcard {
  margin-top: 0;
  padding: 0.6em;
  border-radius: 1em;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0.5em 1.2em rgba(0, 0, 0, 0.08);
}
.ps-pcard__top { display: flex; align-items: center; gap: 0.55em; }
.ps-pcard .ps-th { width: 2.2em; height: 2.2em; }
.ps-pcard .ps-h { font-size: 0.74em; font-weight: 600; }
.ps-pcard .ps-sub { margin-top: 0.1em !important; color: rgba(0, 0, 0, 0.55); font-size: 0.64em; }
.ps-pcard__svc { margin-top: 0.6em !important; font-size: 0.8em; font-weight: 600; }
.ps-book {
  position: relative;
  display: grid;
  place-items: center;
  height: 2.1em;
  margin-top: 0.6em;
  border-radius: 1.1em;
  background: #000000;
  color: #FFFFFF;
  font-size: 0.7em;
  font-weight: 600;
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out);
}
.ps-book i { position: absolute; display: flex; align-items: center; gap: 0.25em; transition: opacity 300ms var(--ease-out); }
.ps-book svg { width: 1.1em; height: 1.1em; stroke-width: 3; }
.ps-book__b { opacity: 0; }
.s-booked .ps-book { background: var(--ps-y); color: #000000; }
.s-booked .ps-book__a { opacity: 0; }
.s-booked .ps-book__b { opacity: 1; }

.pscene--ai .ps-toast { right: 2.6em; bottom: 2.2em; }

.pscene--ai.s-in .ps-code { opacity: 1; }
.pscene--ai.s-in .ps-phone { opacity: 1; transform: none; }
.pscene--ai.s-q .ps-q { opacity: 1; transform: none; }
.pscene--ai.s-think .ps-dots { opacity: 1; }
.pscene--ai.s-ans .ps-dots { opacity: 0; }
.pscene--ai.s-ans .ps-ans { opacity: 1; transform: none; }
.pscene--ai.s-toast .ps-toast { opacity: 1; transform: none; }

/* -- 4. More ways to say yes ---------------------------------------
   Cooper's parent picks how to pay for daycare: a single day, a
   4-visit pass, or an 8-day pass with free same-day pick-up. The pick
   moves to the 8-day pass, payment splits into 4, the pass goes
   active, and the provider sees the visits booked ahead. States:
   s-in, s-o2, s-o3, s-split, s-done, s-stat, s-toast. */

.ps-tag {
  display: inline-block;
  margin-left: 0.3em;
  padding: 0.1em 0.5em;
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.75em;
  font-weight: 600;
  vertical-align: 0.1em;
  color: rgba(255, 255, 255, 0.85);
}
.ps-tag--y { background: var(--ps-y); color: #000000; }

.ps-pay { left: 1.8em; top: 2em; width: 23em; }
.ps-pay__title { margin-top: 0.2em; font-size: 1.15em; }
.ps-opt {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.5em;
  padding: 0.6em 0.8em;
  border-radius: 1em;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
  transition: border-color 400ms var(--ease-out), background 400ms var(--ease-out);
}
.ps-opt--1 { margin-top: 0.8em; }
.ps-opt > div { flex: 1; min-width: 0; }
.ps-opt p { font-weight: 500; }
.ps-opt > b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-item__sub { margin-top: 0.15em !important; font-size: 0.85em; color: var(--ps-w2); }
.ps-radio {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: border 300ms var(--ease-out);
}
.ps-opt--1 .ps-radio,
.s-o2 .ps-opt--2 .ps-radio,
.s-o3 .ps-opt--3 .ps-radio { border: 0.38em solid var(--ps-y); }
.ps-opt--1,
.s-o2 .ps-opt--2,
.s-o3 .ps-opt--3 { border-color: rgba(255, 246, 196, 0.65); background: rgba(255, 246, 196, 0.08); }
.s-o2 .ps-opt--1,
.s-o3 .ps-opt--2 { border-color: rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.22); }
.s-o2 .ps-opt--1 .ps-radio,
.s-o3 .ps-opt--2 .ps-radio { border: 1.5px solid rgba(255, 255, 255, 0.4); }

.ps-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.8em;
  padding: 0.2em;
  border-radius: 2em;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.82em;
  font-weight: 600;
  text-align: center;
}
.ps-seg span { position: relative; z-index: 1; padding: 0.45em 0; transition: color 300ms var(--ease-out); }
.ps-seg i {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0.2em;
  width: calc(50% - 0.2em);
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 500ms var(--ease-out), background 300ms var(--ease-out);
}
.ps-seg__b { color: var(--ps-w2); }
.s-split .ps-seg i { transform: translateX(100%); background: var(--ps-y); }
.s-split .ps-seg__a { color: var(--ps-w2); }
.s-split .ps-seg__b { color: #000000; }

.ps-cta {
  display: grid;
  place-items: center;
  height: 2.6em;
  margin-top: 0.7em;
  border-radius: 1.4em;
  background: #FFFFFF;
  color: #000000;
  font-size: 0.9em;
  font-weight: 700;
  transition: background 350ms var(--ease-out), transform 160ms var(--ease-out);
}
.ps-cta span { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.3em; transition: opacity 300ms var(--ease-out); }
.ps-cta svg { width: 1.2em; height: 1.2em; stroke-width: 3; }
.ps-cta b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-cta__x { display: none; }
.s-split .ps-cta__x { display: inline; }
.ps-cta__b { opacity: 0; }
.s-done .ps-cta { background: var(--ps-y); transform: scale(0.97); }
.s-done .ps-cta__a { opacity: 0; }
.s-done .ps-cta__b { opacity: 1; }

.ps-stat--ret { top: 2em; }
.ps-stat--ret .ps-num span { font-variant-numeric: tabular-nums; }
.pscene--retention .ps-toast { right: 1.8em; bottom: 2em; width: 16em; }

.pscene--retention.s-in .ps-pay { opacity: 1; transform: none; }
.pscene--retention.s-stat .ps-stat { opacity: 1; transform: none; }
.pscene--retention.s-toast .ps-toast { opacity: 1; transform: none; }

/* -- Phones: the frame is portrait (about 28 by 35em) ------------- */

@media (max-width: 900px) {
  .ps-stat { right: 1.2em; top: auto; bottom: 12.2em; }
  .ps-day { left: 1.2em; right: 1.2em; top: 1.2em; width: auto; }
  .ps-ctl { left: 1.2em; right: 1.2em; top: auto; bottom: 1.2em; width: auto; }
  .ps-toast--gap { left: 1.2em; right: 1.2em; bottom: 1.2em; width: auto; }
  .ps-cart { left: 1.2em; right: 1.2em; top: 1.2em; width: auto; }
  .pscene--basket .ps-stat { left: 1.2em; right: auto; bottom: 1.2em; min-width: 11em; }
  .ps-code { left: 1.2em; right: 1.2em; top: 1.2em; width: auto; height: auto; padding: 1em 1.1em; font-size: 0.68em; line-height: 1.55; }
  .ps-phone { left: 50%; top: auto; bottom: -6em; width: 15em; height: 26em; margin-left: -7.5em; }
  .pscene--ai .ps-toast { right: 1.2em; left: 1.2em; bottom: 1.2em; }
  .ps-pay { left: 1.2em; right: 1.2em; top: 1.2em; width: auto; }
  .ps-stat--ret { left: 1.2em; right: auto; top: auto; bottom: 1.2em; min-width: 0; width: calc(50% - 1.5em); }
  .pscene--retention .ps-toast { left: auto; right: 1.2em; bottom: 1.2em; width: calc(50% - 1.5em); }
}

@media (prefers-reduced-motion: reduce) {
  .pscene * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------
   The hero: one glass card over a photo (p-hero). Today's book, live;
   Etho spots the open slots (s-gap); its plan in the provider's rules
   (s-p2, s-r1..s-r5, s-edit, s-ok); back to today as the slots fill
   with new customers (s-p3, s-m1, s-m2, s-done).
   --------------------------------------------------------------- */

.b2b-panels { container-type: inline-size; }
.phero {
  font-size: 2.3cqw;
  background: #0E0F0C;
}
@media (max-width: 900px) {
  .phero { font-size: 3cqw; }
}
.ph-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Zoomed in on the dogs, so they read around the card. */
  transform: scale(1.5);
  transform-origin: 38% 55%;
  transition: opacity 1s var(--ease-out), transform 6s linear;
}
.ph-bg { object-position: 20% 50%; }
.phero.s-in .ph-bg { opacity: 1; transform: scale(1.42); }
.phero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.35) 0%, rgba(10, 10, 9, 0.55) 100%);
}

.ph-card {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: min(29em, calc(100% - 2.4em));
  height: 23.5em;
  padding: 1.4em;
  border-radius: 1.8em;
  background: rgba(28, 28, 26, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2em 4em rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 1.5em)) scale(0.97);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.phero.s-in .ph-card { opacity: 1; transform: translate(-50%, -50%); }
.phero.s-out .ph-card { opacity: 0; transition-duration: 500ms; }

.ph-page {
  position: absolute;
  inset: 1.4em;
  opacity: 0;
  transform: translateX(2em);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
}
.phero.s-in .ph-page--day { opacity: 1; transform: none; }
.phero.s-p2 .ph-page--day { opacity: 0; transform: translateX(-2em); }
.phero.s-p2 .ph-page--plan { opacity: 1; transform: none; }
.phero.s-p2.s-p3 .ph-page--plan { opacity: 0; transform: translateX(-2em); }
.phero.s-p2.s-p3 .ph-page--day { opacity: 1; transform: none; }

.ph-title { font-size: 1.15em; font-weight: 600; letter-spacing: -0.01em; }
.ph-name { font-size: 0.95em; font-weight: 600; }
.ph-sub { margin-top: 0.15em !important; font-size: 0.78em; color: rgba(255, 255, 255, 0.66); }
.ph-th { flex: none; width: 2.8em; height: 2.8em; border-radius: 0.75em; overflow: hidden; }
.ph-th img,
.ph-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-th img.sx-groom,
.ph-logo img.sx-groom { object-position: 29% 58%; transform: scale(1.6); transform-origin: 30% 57%; }

/* -- Today's book ------------------------------------------------- */

.ph-kicker {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.ph-kicker svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.ph-kicker--y { color: #FFF6C4; }

.ph-dayhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6em; }
.ph-pulse { display: flex; align-items: center; gap: 0.4em; font-size: 0.75em; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.ph-pulse i { position: relative; width: 0.55em; height: 0.55em; border-radius: 50%; background: #9BE29B; }
.ph-pulse i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #9BE29B; animation: ph-ping 1.8s ease-out infinite; }
@keyframes ph-ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.6); opacity: 0; } }

.ph-slot {
  display: flex;
  align-items: center;
  gap: 0.9em;
  height: 2.75em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92em;
}
.ph-slot__t { flex: none; width: 2.8em; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.66); }
.ph-slot > p { flex: 1; position: relative; height: 1.9em; }
.ph-slot > b { flex: none; font-weight: 500; color: rgba(255, 255, 255, 0.66); }
.ph-slot:not(.ph-slot--open) > p { line-height: 1.9em; }
.ph-open,
.ph-who {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: 1.9em;
  white-space: nowrap;
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out), background 400ms var(--ease-out), border-color 400ms var(--ease-out), color 400ms var(--ease-out);
}
.ph-open {
  padding: 0 0.8em;
  border-radius: 2em;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.phero.s-gap .ph-open { border-color: rgba(255, 246, 196, 0.8); color: #FFF6C4; background: rgba(255, 246, 196, 0.1); }
.ph-who { gap: 0.5em; padding: 0 0.8em; border-radius: 2em; background: #FFF6C4; color: #000; font-weight: 600; opacity: 0; transform: translateY(0.4em); }
.ph-who em { padding: 0.05em 0.45em; border-radius: 2em; background: rgba(0, 0, 0, 0.1); font-size: 0.78em; }
.phero.s-m1 .ph-slot--a .ph-open,
.phero.s-m2 .ph-slot--b .ph-open { opacity: 0; transform: translateY(-0.4em); }
.phero.s-m1 .ph-slot--a .ph-who,
.phero.s-m2 .ph-slot--b .ph-who { opacity: 1; transform: none; }

.ph-note {
  position: relative;
  height: 1.4em;
  margin-top: 0.9em !important;
  font-size: 0.85em;
  font-weight: 500;
}
.ph-note span {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: #FFF6C4;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.ph-note svg { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }
.ph-note__b svg { fill: none; stroke: currentColor; stroke-width: 2.6; }
.phero.s-gap .ph-note__a { opacity: 1; transform: none; }
.phero.s-done .ph-note__a { opacity: 0; transform: translateY(-0.4em); }
.phero.s-done .ph-note__b { opacity: 1; transform: none; }

/* -- The plan, in the provider's rules ----------------------------- */

.ph-plan__title { margin-top: 0.25em !important; margin-bottom: 0.5em !important; }
.ph-rule {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-height: 2.6em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(0.8em);
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.ph-label { flex: none; width: 4.4em; font-size: 0.8em; color: rgba(255, 255, 255, 0.6); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 0.35em; }
.ph-chip {
  padding: 0.3em 0.75em;
  border-radius: 2em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  transition: background 350ms var(--ease-out), color 350ms var(--ease-out), border-color 350ms var(--ease-out), transform 200ms var(--ease-out);
}
.ph-chip--on { background: rgba(255, 255, 255, 0.92); border-color: transparent; color: #000; }
.ph-chip--add { border-style: dashed; }
.ph-chip--add::before { content: '+ '; }
/* The provider's edit: adds a breed. */
.phero.s-edit .ph-chip--add { background: #FFF6C4; border: 1px solid transparent; color: #000; transform: scale(1.06); }
.phero.s-edit .ph-chip--add::before { content: ''; }
.phero.s-ok .ph-chip--add { transform: none; }
.phero.s-r1 .ph-rule--1,
.phero.s-r2 .ph-rule--2,
.phero.s-r3 .ph-rule--3,
.phero.s-r4 .ph-rule--4,
.phero.s-r5 .ph-rule--5 { opacity: 1; transform: none; }

.ph-confirm {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  height: 2.7em;
  border-radius: 1.4em;
  background: #FFFFFF;
  color: #000;
  font-size: 0.9em;
  font-weight: 700;
  opacity: 0;
  transition: opacity 400ms var(--ease-out), background 350ms var(--ease-out), transform 160ms var(--ease-out);
}
.ph-confirm span { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.3em; transition: opacity 300ms var(--ease-out); }
.ph-confirm svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 3; }
.ph-confirm__b { opacity: 0; }
.phero.s-r5 .ph-confirm { opacity: 1; transition-delay: 300ms; }
.phero.s-ok .ph-confirm { background: #FFF6C4; transform: scale(0.97); transition-delay: 0ms; }
.phero.s-ok .ph-confirm__a { opacity: 0; }
.phero.s-ok .ph-confirm__b { opacity: 1; }

@media (max-width: 900px) {
  .ph-card { height: 25em; top: 50%; }
}

/* ---------------------------------------------------------------
   The demo (p-demo): the app's home, a service in a sheet, then the
   provider's storefront pushing in over both and scrolling down.
   Built on the homepage's scene pieces (scenes.css); only the
   storefront is new. States: s-app, s-sheet, s-store, s-cursor, s-out.
   The two rows the cursor moves (offers, the page) are moved by
   scenes.js through their transforms.
   --------------------------------------------------------------- */

.pd .sx-hello { margin-top: 2.4em; }
.pd .scene__sheet { height: 24em; }
.pd-provider { position: relative; padding: 0.55em 0.7em; margin-left: -0.7em !important; margin-right: -0.7em !important; border-radius: 0.8em; transition: background 200ms var(--ease-out); }
.pd-provider.is-pressed { background: #F1F0EE; }
.pd-chev {
  margin-left: auto;
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid var(--sx-title);
  border-right: 2px solid var(--sx-title);
  transform: rotate(45deg);
}

.pd-store {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #FCFCFC;
  transform: translateX(100%);
  transition: transform 650ms var(--ease-out), opacity 500ms var(--ease-out);
}
.s-store .pd-store { transform: none; }
.s-store .scene__sheet { transform: translateX(-30%); opacity: 0; transition: transform 650ms var(--ease-out), opacity 500ms var(--ease-out); }
.s-out .pd-store { transform: translateY(105%); transition-duration: 650ms; }
html:not(.js) .pd-store { transform: none; }

.pd-scroll { will-change: transform; }

.pd-hero { position: relative; height: 17em; }
.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
}
.pd-hero img { object-position: 50% 50%; }
.pd-icon {
  position: absolute;
  z-index: 1;
  top: 2.2em;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}
.pd-icon--back { left: 1.2em; }
.pd-icon--fav { right: 1.2em; }
.pd-icon svg { width: 1.2em; height: 1.2em; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-hero__foot {
  position: absolute;
  z-index: 1;
  left: 1.3em;
  right: 1.3em;
  bottom: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #FFFFFF;
}
.pd-name { font-size: 1.5em; font-weight: 700; letter-spacing: -0.01em; }
.pd-rating { text-align: right; }
.pd-rating p { font-size: 0.75em; font-weight: 600; }
.pd-rating p + p { font-weight: 500; opacity: 0.85; }

.pd-body { padding: 1.5em 0 2.5em 1.3em; }
.pd-body > :not(.pd-offers):not(.pd-products) { margin-right: 1.3em; }
.pd-h { margin-top: 2.6em !important; font-size: 1.2em; font-weight: 700; letter-spacing: -0.01em; }
.pd-body > .pd-h:first-child { margin-top: 0 !important; }
.pd-h2 { margin-top: 2.2em !important; font-size: 1em; font-weight: 700; color: #464646; }
.pd-h + .pd-h2 { margin-top: 1em !important; }
.pd-t { font-size: 0.88em; font-weight: 700; line-height: 1.25; }
.pd-s { margin-top: 0.2em !important; font-size: 0.76em; font-weight: 500; line-height: 1.35; color: var(--sx-text2); }

.pd-offers { display: flex; gap: 0.7em; margin-top: 0.9em; }
.pd-offer {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 8.8em;
  height: 9em;
  padding: 1em;
  border-radius: 1.1em;
  background: var(--sx-card);
  box-shadow: var(--sx-shadow);
}
.pd-offer .pd-t { margin-top: auto !important; }
.pd-ico { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #000; }
.pd-ico svg { width: 1.2em; height: 1.2em; fill: none; stroke: #FFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pd-item { display: flex; align-items: flex-start; gap: 0.85em; margin-top: 0.9em; }
.pd-item > img { flex: none; width: 4.4em; height: 4.4em; border-radius: 0.9em; }
.pd-item > img.sx-groom { object-position: 29% 58%; }
.pd-item > div { flex: 1; min-width: 0; }
.pd-item > b { flex: none; font-size: 0.88em; font-weight: 700; }
.pd-foryou {
  display: inline-block;
  margin-bottom: 0.3em;
  padding: 0.25em 0.6em;
  border-radius: 2em;
  background: #000;
  color: #FFF;
  font-size: 0.68em;
  font-weight: 700;
}

.pd-extras { margin-top: 0.3em; }
.pd-extra { display: flex; align-items: center; gap: 0.85em; padding: 0.8em 0; border-bottom: 1px solid var(--sx-rule); }
.pd-extra:last-child { border-bottom: 0; }
.pd-extra svg { flex: none; width: 1.4em; height: 1.4em; fill: none; stroke: #000; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pd-extra p { flex: 1; font-size: 0.86em; font-weight: 600; }
.pd-extra b { font-size: 0.86em; font-weight: 700; }

.pd-products { display: flex; gap: 0.8em; margin-top: 0.9em; }
.pd-product { flex: none; width: 9.6em; }
.pd-product__img { position: relative; height: 9.6em; border-radius: 1em; overflow: hidden; box-shadow: var(--sx-shadow); }
.pd-product__img .sx-pill { position: absolute; top: 0.6em; left: 0.6em; font-size: 0.72em; }
.pd-product .pd-t { margin-top: 0.55em !important; }
.pd-product .pd-t + .pd-t { margin-top: 0.1em !important; }
.pd-product s { font-weight: 500; color: var(--sx-was); }

.pd-team { display: flex; align-items: center; gap: 0.85em; margin-top: 0.9em; }
.pd-av { flex: none; display: grid; place-items: center; width: 3em; height: 3em; border-radius: 50%; background: var(--av); font-size: 1em; font-weight: 700; }

.pd-logo { margin-top: 2.6em !important; text-align: center; font-size: 0.9em; font-weight: 800; letter-spacing: 0.24em; }
