/* RTP Bookings landing: platform showcase (scenes A to E). Scoped under .rtpp.
   Design tokens come from static/src/tailwind.css (--ink, --paper, --rule, --signal, --font, --ease).
   Everything is visible without JavaScript; the entrance only hides things once <html class="rtpp-anim">
   is set (see the inline script in partials/platform_showcase_hero.html) and GSAP then reveals them. */

.rtpp {
  --rtpp-shadow: 0 1px 2px rgba(20, 20, 19, 0.05), 0 24px 60px -28px rgba(20, 20, 19, 0.22);
  --rtpp-shadow-lg: 0 2px 4px rgba(20, 20, 19, 0.05), 0 40px 90px -36px rgba(20, 20, 19, 0.3);
  --rtpp-radius: 10px;
  position: relative;
  font-family: var(--font);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  padding: 3.5rem 0 3rem;
}
@media (min-width: 1024px) { .rtpp { padding: 5rem 0 4rem; } }
.rtpp-inner { position: relative; }
.rtpp *, .rtpp *::before, .rtpp *::after { box-sizing: border-box; }
.rtpp img, .rtpp video { display: block; max-width: 100%; height: auto; }

/* ---- type ---------------------------------------------------------------- */
.rtpp-head { max-width: 46rem; }
.rtpp-head--center { margin-inline: auto; text-align: center; }
.rtpp-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.rtpp-title span { color: var(--muted); font-weight: 700; }
.rtpp-lede { margin: 1.1rem 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.rtpp-head--center .rtpp-lede { margin-inline: auto; max-width: 40rem; }
.rtpp-note { margin: 1.25rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.rtpp-head--center + * + .rtpp-note { text-align: center; }

/* ---- windows and browser frames ------------------------------------------ */
.rtpp-win {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--rtpp-radius);
  box-shadow: var(--rtpp-shadow);
  overflow: hidden;
  will-change: transform, opacity;
}
.rtpp-win img { width: 100%; }
.rtpp-win--flat { box-shadow: 0 1px 2px rgba(20, 20, 19, 0.05); }
.rtpp-win figcaption { padding: 0.75rem 0.9rem 0.85rem; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); border-top: 1px solid var(--rule); }

.rtpp-frame { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--rtpp-shadow-lg); overflow: hidden; }
.rtpp-frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.rtpp-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.rtpp-frame-bar span { margin-left: auto; margin-right: auto; font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rtpp-frame-body { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: var(--paper); }
.rtpp-frame-body--tall { aspect-ratio: auto; }
.rtpp-frame-body > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.55s var(--ease); }
.rtpp-frame-body--tall > img { position: static; height: auto; opacity: 1; }
.rtpp-frame-body > img.is-on { opacity: 1; }
.rtpp-frame--looks .rtpp-frame-body { aspect-ratio: 1600 / 1248; }

/* ---- Scene A: collage ------------------------------------------------------ */
.rtpp-hero .rtpp-head { margin-inline: auto; }
.rtpp-collage { position: relative; margin: 2.75rem auto 0; display: grid; gap: 1rem; }
.rtpp-collage .rtpp-win img { width: 100%; }
.rtpp-collage .rtpp-win--main { position: relative; z-index: 2; box-shadow: var(--rtpp-shadow-lg); }
.rtpp-mask { display: none; }
.rtpp-anim .rtpp-mask { display: block; position: absolute; inset: 0; pointer-events: none; }
.rtpp-mask i { position: absolute; left: 17%; right: 27%; background: var(--paper); }

/* small: dashboard and calendar only, stacked */
.rtpp-win--appts, .rtpp-win--cust, .rtpp-win--analytics { display: none; }

@media (min-width: 768px) {
  .rtpp-win--appts { display: block; }
  .rtpp-collage { display: block; height: 0; padding-bottom: 54%; margin-inline: -2vw; }
  .rtpp-collage .rtpp-win { position: absolute; }
  .rtpp-win--main { left: 12%; right: 12%; top: 0; }
  .rtpp-win--cal { left: 0; width: 38%; top: 36%; z-index: 4; }
  .rtpp-win--appts { right: 0; width: 36%; top: 8%; z-index: 1; }
}
@media (min-width: 1024px) {
  .rtpp-win--cust, .rtpp-win--analytics { display: block; }
  .rtpp-collage { padding-bottom: 52%; margin-inline: -3vw; }
  .rtpp-win--main { left: 12%; right: 12%; top: 0; }
  .rtpp-win--cal { left: 0; width: 34%; top: 40%; z-index: 4; }
  .rtpp-win--appts { right: 0; width: 33%; top: 10%; z-index: 1; }
  .rtpp-win--cust { right: 0; width: 29%; top: 38%; z-index: 3; }
  .rtpp-win--analytics { left: 37%; width: 28%; top: 50%; z-index: 5; }
}
@media (min-width: 1440px) {
  .rtpp-collage { margin-inline: -4vw; padding-bottom: 50%; }
}

/* bento */
.rtpp-bento { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .rtpp-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } .rtpp-card { grid-column: span 2; } .rtpp-card--wide { grid-column: span 3; } }
.rtpp-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rtpp-radius); overflow: hidden; }
.rtpp-card-text { padding: 1.15rem 1.2rem 0.9rem; }
.rtpp-card-text h3 { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.rtpp-card-text p { margin: 0.35rem 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.rtpp-card-media { margin-top: auto; padding: 0 0 0 1.2rem; }
.rtpp-card-media img, .rtpp-card-media video { width: 100%; border-top-left-radius: 8px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); box-shadow: var(--rtpp-shadow); }

/* ---- Scene B: appearance --------------------------------------------------- */
.rtpp-b { display: grid; gap: 2rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .rtpp-b { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr); gap: 3rem; } }
.rtpp-b-list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rtpp-b-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.rtpp-b-list strong { color: var(--ink); }
.rtpp-b-swatchline { display: flex; align-items: center; gap: 0.55rem; margin: 1.25rem 0 0; }
.rtpp-swatch { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sw); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.35s var(--ease), transform 0.35s var(--ease); }
.rtpp-swatch.is-on { outline-color: var(--ink); transform: scale(1.08); }
.rtpp-swatch-label { margin-left: 0.4rem; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rtpp-b-preview { position: relative; }
.rtpp-win--phone-preview { display: none; }
@media (min-width: 1024px) {
  .rtpp-win--phone-preview { display: block; position: absolute; right: -2%; bottom: -8%; width: 26%; z-index: 2; box-shadow: var(--rtpp-shadow-lg); }
  .rtpp-win--phone-preview figcaption { font-size: 0.75rem; padding: 0.55rem 0.7rem; }
  .rtpp-appearance .rtpp-note { margin-top: 3.5rem; }
}

/* ---- Scene C: booking journey ---------------------------------------------- */
.rtpp-c { display: grid; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.rtpp-c-steps { list-style: none; margin: 0; padding: 0; }
.rtpp-c-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); color: var(--muted); transition: color 0.4s var(--ease); }
.rtpp-c-steps li:last-child { border-bottom: 1px solid var(--rule); }
.rtpp-c-steps h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: inherit; }
.rtpp-c-steps p { margin: 0.25rem 0 0; font-size: 0.9375rem; line-height: 1.45; }
.rtpp-c-n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--rule); border-radius: 50%; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.rtpp-c-steps li.is-on { color: var(--ink); }
.rtpp-c-steps li.is-on p { color: var(--ink-2); }
.rtpp-c-steps li.is-on .rtpp-c-n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rtpp-c-stage { display: none; }
@media (min-width: 1024px) {
  .rtpp-c { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 3rem; }
  .rtpp-c-steps li { min-height: 44vh; padding: 1.25rem 0; align-content: start; }
  .rtpp-c-steps li:first-child { border-top: 0; }
  .rtpp-c-steps li:last-child { min-height: 30vh; border-bottom: 0; }
  .rtpp-c-stage { display: block; position: sticky; top: 10vh; }
}
.rtpp-c-phones { display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 240px); gap: 1rem; margin: 2rem -1rem 0; padding: 0.5rem 1rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (min-width: 1024px) { .rtpp-c-phones { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-columns: auto; margin-inline: 0; padding-inline: 0; overflow: visible; margin-top: 3rem; } }
.rtpp-phone { margin: 0; scroll-snap-align: center; }
.rtpp-phone img { width: 100%; border: 1px solid var(--rule); border-radius: 22px; box-shadow: var(--rtpp-shadow); background: var(--paper); }
.rtpp-phone figcaption { margin-top: 0.55rem; font-size: 0.8125rem; font-weight: 600; text-align: center; color: var(--ink-2); }

/* ---- Scene D: connections -------------------------------------------------- */
.rtpp-d { position: relative; display: grid; gap: 2.75rem; margin: 2.75rem auto 0; max-width: 72rem; }
.rtpp-d-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.rtpp-d-lines path { fill: none; stroke: var(--ink); stroke-width: 1.25; opacity: 0.55; }
.rtpp-d-lines circle { fill: var(--signal); opacity: 0; }
.rtpp-partner, .rtpp-node { position: relative; z-index: 2; }
.rtpp-partner--left { order: 0; }
.rtpp-node { order: 1; }
.rtpp-partner--right { order: 2; }
.rtpp-partner { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--rtpp-radius); padding: 1.25rem 1.3rem 1.3rem; box-shadow: var(--rtpp-shadow); }
.rtpp-partner-kicker { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rtpp-partner-name { margin: 0.35rem 0 0.6rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.rtpp-partner p { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.rtpp-partner-how { margin-top: 0.75rem !important; padding-top: 0.7rem; border-top: 1px solid var(--rule); font-size: 0.8125rem !important; color: var(--muted) !important; }
.rtpp-node { position: relative; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--rtpp-radius); box-shadow: var(--rtpp-shadow-lg); overflow: hidden; }
.rtpp-node-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; font-weight: 700; border-bottom: 1px solid var(--rule); }
.rtpp-node-mark { width: 0.75rem; height: 0.75rem; background: var(--signal); border-radius: 2px; }
.rtpp-node-shot { margin: 0; padding: 1rem 1rem 0.5rem; }
@media (min-width: 768px) {
  .rtpp-d { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 0; }
  .rtpp-partner { width: 86%; }
  .rtpp-partner--left { justify-self: start; }
  .rtpp-partner--right { justify-self: end; }
  .rtpp-node { z-index: 2; margin-inline: 8%; }
}
.rtpp-d-detail { display: grid; gap: 1.25rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .rtpp-d-detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 3.5rem; } }

/* ---- Scene E: migration ---------------------------------------------------- */
.rtpp-e { position: relative; display: grid; gap: 2.5rem; margin-top: 2.5rem; align-items: center; }
.rtpp-e-sources { padding-right: 1.75rem !important; }
.rtpp-e-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rtpp-source { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; align-items: center; padding: 0.7rem 0.9rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04); }
.rtpp-source-name { font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.005em; }
.rtpp-source-what { grid-column: 1 / -1; font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.rtpp-chip { display: inline-flex; align-items: center; white-space: nowrap; padding: 0.15rem 0.5rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
.rtpp-chip--api { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.rtpp-e-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.rtpp-e-lines path { fill: none; stroke: var(--ink); stroke-width: 1.25; opacity: 0.5; }
.rtpp-e-lines circle { fill: var(--signal); }
.rtpp-e-sources, .rtpp-frame--import { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .rtpp-e { grid-template-columns: minmax(0, 0.9fr) 7rem minmax(0, 1.3fr); gap: 0; }
  .rtpp-e-sources { padding-right: 0 !important; grid-column: 1; }
  .rtpp-frame--import { grid-column: 3; }
  .rtpp-frame--import { max-height: 36rem; }
  .rtpp-frame--import .rtpp-frame-body--tall { max-height: calc(36rem - 34px); overflow: hidden; }
}
.rtpp-e-detail { display: grid; gap: 1.25rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 768px) { .rtpp-e-detail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rtpp-e-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.rtpp-e-cta p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); max-width: 36rem; }

/* ---- entrance states (only once JS has confirmed motion is wanted) ----------- */
.rtpp-anim:not(.rtpp-ready) .rtpp-hero [data-rtpp-win],
.rtpp-anim:not(.rtpp-ready) .rtpp-hero [data-rtpp-in] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .rtpp *, .rtpp *::before, .rtpp *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Booking scene on phone pages with booking_cards="desktop" (platform_showcase_booking.html): the sideways track
   carries desktop browser cards instead of phone frames. Delete this block together with the flag to roll back. */
.rtpp-c-phones--desktop { grid-auto-columns: min(76vw, 400px); align-items: start; gap: 0.85rem; margin-top: 0.75rem; padding-right: 3rem; scroll-padding-inline: 1rem; }
.rtpp-c-phones--desktop .rtpp-desk { scroll-snap-align: start; }
.rtpp-swipe { margin: 1.75rem 0 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); text-align: center; }
.rtpp-swipe-dots { display: flex; justify-content: center; gap: 6px; margin: 0.25rem 0 0; }
.rtpp-swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.rtpp-swipe-dots i.is-on { background: var(--ink); transform: scale(1.25); }
.rtpp-desk figcaption b { font-weight: 700; color: var(--ink); }
.rtpp-desk { margin: 0; }
.rtpp-desk-win { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: var(--rtpp-shadow); }
.rtpp-desk-win .rtpp-frame-bar { height: 28px; padding: 0 10px; }
.rtpp-desk-win .rtpp-frame-bar i { width: 8px; height: 8px; }
.rtpp-desk-win img { display: block; width: 100%; height: auto; }
.rtpp-desk figcaption { margin-top: 0.55rem; font-size: 0.8125rem; font-weight: 600; text-align: center; color: var(--ink-2); }
