/* Perla cinematic draft: what this draft adds over the packaged stylesheets.
   1. The opening's desk surface (light from the upper left, falling off to the lower right).
   2. Product proof is inline: nothing on the page opens a viewer, so nothing looks as if it would.
   3. The staff app's store listings.
   4. The clinic profile chapter: a 3D phone on warm porcelain, with details from the same page.
   5. Payment tracking's inline screen detail. */

/* ───────── 1. The desk under the opening ─────────
   The scene's key light comes from the upper left, so the surface does too: a warm pool where the
   light lands, a cool falloff away from it, and a fine tooth so it reads as a surface and not a fill.
   It is held with the pinned opening, so it stays put while the desk clears. */
.scene-live .laptop-hero .open__pin::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -65px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .2 0 0 0 0 .2 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 58% 66% at 20% 16%, rgb(255 250 238 / .82), transparent 70%),
    radial-gradient(ellipse 66% 58% at 88% 100%, rgb(14 72 74 / .15), transparent 72%),
    radial-gradient(ellipse 44% 36% at 0% 100%, rgb(14 72 74 / .07), transparent 70%);
}

/* ───────── 2. Inline proof ───────── */
.home .snap,
.home .crop__frame,
.home .dev { cursor: auto; }
.home .qa-demo__shelf .is-lit .qa-demo__name { color: var(--mint-2); }

/* ───────── 3. The staff app's store listings ───────── */
.apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}
.apps__lead {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}
.apps__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apps__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 16px 14px;
  border: 1.5px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 999px;
  color: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms, background-color 160ms;
}
.apps__link svg { flex: none; width: 11px; height: 11px; opacity: .8; }
@media (hover: hover) and (pointer: fine) {
  .apps__link:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
}
.apps--finale { margin-block-start: 2px; }
/* Pinned, the words above the desk are as tall as their tallest state, and that is the phone's
   headline. It takes the store links on without growing: its sentence runs on one line. */
@media (min-width: 1024px) and (min-height: 740px) and (orientation: landscape) {
  .scene-live .laptop-hero .open__head--c { gap: 11px; }
  .scene-live .laptop-hero .open__head--c .lead { max-width: none; font-size: 1.0625rem; line-height: 1.45; white-space: nowrap; }
  .scene-live .laptop-hero .apps--hero .apps__link { min-height: 40px; }
}
@media (max-width: 900px), (orientation: portrait) {
  .apps--finale { justify-content: center; text-align: center; }
  .scene-live .apps--hero .apps__lead { display: none; }
  .scene-live .apps--hero .apps__link { min-height: 42px; padding-inline: 13px 11px; font-size: .875rem; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .scene-live .apps--hero .apps__lead { display: none; }
}

/* ───────── 4. Clinic profile ─────────
   Booking ends closer to it, so the two patient-facing chapters read as a pair. */
.home .chap--booking { padding-block-end: clamp(26px, 3.2vw, 44px); }

.clinic-profile {
  --pf-ink: #14342d;
  --pf-ink-2: #46584f;
  --pf-line: #d8cfbd;
  --pf-phone: clamp(232px, min(23.5vw, (100svh - 208px) * .4887), 318px);
  margin-block: 0 clamp(34px, 5vw, 76px);
  scroll-margin-top: 78px;
}
.clinic-profile__stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) var(--pf-phone) minmax(0, .84fr);
  align-items: center;
  column-gap: clamp(24px, 3.8vw, 56px);
  padding: clamp(34px, 4.2vw, 58px) clamp(24px, 4.2vw, 60px);
  border-radius: 14px;
  color: var(--pf-ink);
  /* Warm porcelain, lit from the side the scene's key light is on. */
  background:
    radial-gradient(ellipse 60% 86% at 8% 0%, #fffdf8, rgb(255 253 248 / 0) 64%),
    linear-gradient(103deg, #f7f3ea 0%, #f1ebdf 48%, #e6ddcd 100%);
  box-shadow: inset 0 0 0 1px #e3dccc, inset 0 1px 0 #fffefb;
}
.clinic-profile__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .28 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.clinic-profile__copy {
  display: grid;
  justify-items: start;
  gap: 16px;
  min-width: 0;
}
.clinic-profile__label {
  color: var(--teal-text);
  font-size: .875rem;
  font-weight: 700;
}
.clinic-profile__copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 2.95rem);
  font-weight: 500;
  letter-spacing: -.042em;
  line-height: 1.04;
}
.clinic-profile__copy h3 em {
  display: block;
  white-space: nowrap;
  color: var(--teal-text);
  font-style: normal;
}
.clinic-profile__lead {
  max-width: 37ch;
  color: var(--pf-ink-2);
  font-size: clamp(1rem, 1.15vw, 1.0938rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.clinic-profile__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 26px);
  width: 100%;
  max-width: 30rem;
  margin-block: 4px 2px;
}
.clinic-profile__points li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-block: 11px 12px;
  border-top: 1px solid var(--pf-line);
  line-height: 1.38;
}
.clinic-profile__points b { font-size: .9375rem; font-weight: 700; }
.clinic-profile__points span { color: var(--pf-ink-2); font-size: .875rem; }
.clinic-profile__demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-inline: 18px 16px;
  border: 1.5px solid var(--pf-ink);
  border-radius: 999px;
  color: var(--pf-ink);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms, color 180ms;
}
@media (hover: hover) and (pointer: fine) {
  .clinic-profile__demo:hover { background: var(--pf-ink); color: #f7f3ea; }
}

/* The phone. Its box is the size of the 3D phone's body; the still inside it is a render of the same
   model at rest with the same capture, shadow included, so it reaches past the box on every side. */
.clinic-profile__phone {
  display: grid;
  justify-items: center;
  margin: 0;
  min-width: 0;
}
.clinic-profile__phone .dev { width: var(--pf-phone); }
.clinic-profile__still {
  position: absolute;
  left: -25%;
  top: -9%;
  width: 150%;
  height: 118%;
  max-width: none;
  pointer-events: none;
}

/* Two parts of the same page, cut from the same capture session and shown close to life size. */
.clinic-profile__details {
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  min-width: 0;
}
.clinic-profile__detail {
  display: grid;
  gap: 9px;
  width: min(100%, 318px);
  margin: 0;
}
.clinic-profile__detail--visit { justify-self: end; }
.clinic-profile__detail figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pf-ink);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.clinic-profile__detail figcaption::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--teal-text);
}
.clinic-profile__detail img {
  width: 100%;
  height: auto;
  border-radius: 7.2% / 9.6%;
  box-shadow: 0 22px 38px -22px rgb(72 56 22 / .5), 0 3px 8px -2px rgb(72 56 22 / .12);
}
.clinic-profile__detail--visit img { border-radius: 7.2% / 8.5%; }
.home .clinic-profile__note { margin-top: 12px; color: var(--ink-2); }

@media (max-width: 1040px) {
  .clinic-profile { --pf-phone: clamp(220px, min(30vw, (100svh - 200px) * .4887), 300px); }
  .clinic-profile__stage {
    grid-template-columns: minmax(0, 1fr) var(--pf-phone);
    row-gap: clamp(30px, 5vw, 46px);
  }
  .clinic-profile__details {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
  }
  .clinic-profile__detail--visit { justify-self: center; }
}
@media (max-width: 700px) {
  .clinic-profile { --pf-phone: min(64vw, 262px); }
  .clinic-profile__stage {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
    padding: 30px 20px 34px;
    border-radius: 12px;
  }
  .clinic-profile__copy { gap: 13px; }
  .clinic-profile__copy h3 { font-size: clamp(2.05rem, 9.6vw, 2.6rem); }
  .clinic-profile__phone { padding-block: 8px 14px; }
  .clinic-profile__details { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .clinic-profile__detail { width: min(100%, 340px); }
}
@media (max-width: 380px) {
  .clinic-profile__points { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── 5. Payment tracking: the real screen's totals, where the button to it used to be ───────── */
.pay__proof {
  display: grid;
  gap: 8px;
  width: min(100%, 430px);
  margin: 4px 0 0;
}
.home .pay__proof .cap { margin-top: 0; }
.pay__crop { border-radius: 16px; }
