/* =============================================================================
   AI CX OS · Landing V4 - hospitality-saturated iteration of V2
   Loaded after app.css and v2.css on v4.html only.

   What changes: photography moves INTO the components. Platform and onboarding
   cards carry their own hotel scenes, the why-now and Arabic sections become
   full-bleed hotel environments with dark glass cards, the live demo gets a
   premium console frame with a seamless hotel loop behind the transcript, and
   every hover responds with light.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1 · image cards: a hotel scene per card, ink gradient, white type
   --------------------------------------------------------------------------- */
.v4-imgcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.v4-imgcard .v4-imgcard-bg { position: absolute; inset: 0; z-index: -2; }
.v4-imgcard .v4-imgcard-bg img {
  height: 100%; width: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.v4-imgcard::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(13, 14, 28, 0.18) 0%,
    rgba(13, 14, 28, 0.42) 46%,
    rgba(13, 14, 28, 0.88) 82%,
    rgba(13, 14, 28, 0.94) 100%);
  transition: background 400ms ease;
}
.v4-imgcard:hover .v4-imgcard-bg img { transform: scale(1.07); }
.v4-imgcard h3 { color: #fff; }
.v4-imgcard p { color: rgba(255, 255, 255, 0.82) !important; }
.v4-imgcard .bg-brand-wash {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.v4-imgcard:hover { border-color: rgba(255, 255, 255, 0.3) !important; }

/* ---------------------------------------------------------------------------
   2 · full-bleed hotel sections with dark glass content
   --------------------------------------------------------------------------- */
.v4-dark { position: relative; isolation: isolate; color: #fff; }
.v4-dark .v4-scene { position: absolute; inset: 0; z-index: -2; }
.v4-dark .v4-scene img { height: 100%; width: 100%; object-fit: cover; }
.v4-dark .v4-scene-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 12, 26, 0.78) 0%,
    rgba(11, 12, 26, 0.6) 45%,
    rgba(11, 12, 26, 0.78) 100%);
}
.v4-dark :is(h2, h3, h4) { color: #fff; }
.v4-dark .lede, .v4-dark p { color: rgba(226, 229, 245, 0.86); }
.v4-dark :is(.text-ink-soft, .text-ink-muted) { color: rgba(200, 205, 230, 0.75); }
.v4-dark .text-ink { color: #fff; }
.v4-dark .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #dcdcfb;
  backdrop-filter: blur(6px);
}
.v4-dark .eyebrow::before { background: var(--color-brand-lift); }
.v4-dark .card, .v4-dark .card-flat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backdrop-filter: blur(12px);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 360ms ease;
}
.v4-dark .card:hover, .v4-dark .card-flat:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.v4-dark .metric { color: #fff; }
.v4-dark .border-hairline, .v4-dark .border-hairline-soft { border-color: rgba(255, 255, 255, 0.14); }
.v4-dark .mono { color: rgba(190, 195, 222, 0.72); }
.v4-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* the Arabic RTL-proof card stays paper so the conversation pops on the scene */
.v4-dark .v4-paper.card { background: #fff; backdrop-filter: none; }
.v4-dark .v4-paper :is(h3, h4, .text-ink) { color: var(--color-ink); }
.v4-dark .v4-paper p { color: var(--color-ink-soft); }
.v4-dark .v4-paper .text-ink-soft { color: var(--color-ink-soft); }
.v4-dark .v4-paper .mono { color: var(--color-ink-muted); }
.v4-dark .v4-paper .border-hairline { border-color: var(--color-hairline); }
.v4-dark .v4-paper .bg-page-warm { background: var(--color-page-warm); }

/* ---------------------------------------------------------------------------
   3 · the live demo: premium console
   --------------------------------------------------------------------------- */
#agent .v4-console {
  border-radius: 24px;
  border: 1px solid rgba(16, 18, 35, 0.1);
  box-shadow:
    0 1px 2px rgba(16, 18, 35, 0.05),
    0 24px 70px -28px rgba(30, 27, 75, 0.35),
    0 60px 120px -60px rgba(79, 70, 229, 0.25);
}
#agent .v4-thread-wrap { position: relative; isolation: isolate; }
#agent .v4-thread-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
#agent .v4-thread-bg video, #agent .v4-thread-bg img {
  height: 100%; width: 100%; object-fit: cover;
}
#agent .v4-thread-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.66) 50%,
    rgba(255, 255, 255, 0.82) 100%);
}
#agent #demoThread { position: relative; z-index: 1; }
#agent #demoThread .bubble-guest { background: rgba(255, 255, 255, 0.92); border: 1px solid var(--color-hairline); }

/* scenario tabs: numbered, sheened, with an autoplay progress rail */
#demoModules > button {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: border-color 240ms ease, background-color 240ms ease, box-shadow 300ms ease;
}
#demoModules > button:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 10px 28px -16px rgba(79, 70, 229, 0.35);
}
#demoModules > button::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16%; bottom: 16%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
#demoModules > button[aria-selected="true"]::before { opacity: 1; transform: scaleY(1); }
#demoModules > button[aria-selected="true"] {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 14px 34px -18px rgba(79, 70, 229, 0.6);
}
#demoModules > button[aria-selected="true"] span { color: #fff !important; }
#demoModules > button[aria-selected="true"] span + span { color: rgba(255, 255, 255, 0.72) !important; }
#demoModules > button[aria-selected="true"]::before { background: rgba(255, 255, 255, 0.85); }
/* the autoplay progress rail lives on the active tab's bottom edge */
#demoModules > button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: var(--v4-rail-origin, left);
  transform: scaleX(var(--v4-rail, 0));
  transition: transform 300ms linear;
}
html[dir="rtl"] #demoModules > button[aria-selected="true"]::after { --v4-rail-origin: right; }

/* ---------------------------------------------------------------------------
   4 · onboarding: each step opens with its scene
   --------------------------------------------------------------------------- */
.v4-step-img {
  margin: -1.75rem -1.75rem 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-hairline);
}
.v4-step-img img {
  height: 8.5rem; width: 100%; object-fit: cover;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
:is(.card, .card-flat):hover .v4-step-img img { transform: scale(1.06); }

/* ---------------------------------------------------------------------------
   5 · reduced motion
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .v4-imgcard .v4-imgcard-bg img, .v4-step-img img { transition: none; }
  .v4-imgcard:hover .v4-imgcard-bg img, :is(.card, .card-flat):hover .v4-step-img img { transform: none; }
  #agent .v4-thread-bg video { display: none; }
  #demoModules > button[aria-selected="true"]::after { display: none; }
}

/* paper cards inside dark scenes: interior chips and bubbles stay light-mode */
.v4-dark .v4-paper .bubble-guest { background: #f3f4f9; color: var(--color-ink); }
.v4-dark .v4-paper :is(li, dd) { color: var(--color-ink-soft); }
.v4-dark .v4-paper .text-brand-deep { color: var(--color-brand-deep); }
.v4-dark .v4-paper .bg-brand-wash { background: var(--color-brand-wash); }

/* #6 · channel strip under the live demo */
.v4-channels {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.625rem;
}
.v4-channels .v4-ch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--color-hairline);
  background: #fff;
  font-size: 0.8125rem; font-weight: 500; color: var(--color-ink-soft);
  transition: border-color 220ms ease, box-shadow 260ms ease, color 220ms ease;
}
.v4-channels .v4-ch svg { color: var(--color-brand); }
.v4-channels .v4-ch:hover {
  border-color: rgba(79, 70, 229, 0.45);
  color: var(--color-ink);
  box-shadow: 0 10px 26px -14px rgba(79, 70, 229, 0.35);
}

/* round 3: the channel picker leaves the left rail (element kept for app.js) */
#agent p[data-i18n="demo.channel"], #agent #demoChannels { display: none; }

/* colored channel icons under the chat */
.v4-channels {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly;
  gap: 0.5rem 0.75rem;
}
.v4-channels .v4-ch {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
  min-width: 4.25rem; min-height: 0;
  padding: 0.375rem 0.5rem;
  border: 0; background: none; border-radius: 12px;
  font-size: 0.71875rem; font-weight: 500; color: var(--color-ink-muted);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}
.v4-channels .v4-ch svg { height: 1.75rem; width: 1.75rem; }
.v4-channels .v4-ch:hover { color: var(--color-ink); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .v4-channels .v4-ch:hover { transform: none; } }

/* agent bubbles inside paper cards keep their white ink */
.v4-dark .v4-paper p.bubble-agent, .v4-paper p.bubble-agent { color: #fff; }

/* ============================================================================
   #leak - the silent leak, live simulator. Dark band, brand indigo chrome,
   error red reserved for the loss semantics only.
   ============================================================================ */
#leak .lk-stat {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(129, 140, 248, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.03);
  padding: 26px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
}
#leak .lk-stat .metric { color: #a5b4fc; }
#leak .lk-panel {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(90% 70% at 85% -10%, rgba(79, 70, 229, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
#leak .lk-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(129, 140, 248, 0.14);
  color: #a5b4fc;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
#leak .lk-live-dot { height: 6px; width: 6px; border-radius: 9999px; background: #818cf8; animation: lkPulse 1.6s ease-in-out infinite; }
@keyframes lkPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
#leak .lk-tab {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, box-shadow 240ms ease;
}
#leak .lk-tab:hover { color: #fff; border-color: rgba(129, 140, 248, 0.5); }
#leak .lk-tab-on {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(79, 70, 229, 0.7);
}
#leak .lk-kpi {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
}
#leak .lk-kpi-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
#leak .lk-kpi-l svg { height: 15px; width: 15px; flex: none; color: #a5b4fc; }
#leak .lk-kpi-v {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: color 200ms ease;
}
#leak .lk-kpi-bad .lk-kpi-l svg, #leak .lk-kpi-bad .lk-kpi-l { color: rgba(252, 165, 165, 0.85); }
#leak .lk-kpi-bad .lk-kpi-v { color: #f87171; }
#leak .lk-kpi-v.lk-tick { animation: lkTick 420ms ease; }
@keyframes lkTick { 0% { transform: translateY(4px); opacity: 0.4; } 100% { transform: translateY(0); opacity: 1; } }
#leak .lk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  animation: lkRowIn 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lkRowIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
#leak .lk-row-bad { border-color: rgba(248, 113, 113, 0.22); background: rgba(248, 113, 113, 0.07); }
#leak .lk-row .lk-num { display: flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
#leak .lk-row .lk-num svg { height: 14px; width: 14px; color: rgba(255, 255, 255, 0.45); }
#leak .lk-row-bad .lk-num svg { color: #f87171; }
#leak .lk-badge { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
#leak .lk-row-bad .lk-badge { color: #f87171; }
@media (prefers-reduced-motion: reduce) {
  #leak .lk-live-dot { animation: none; }
  #leak .lk-kpi-v.lk-tick, #leak .lk-row { animation: none; }
}

/* ============================================================================
   hospitality: vertical-playbook module cards (mirrored from the homepage
   home14 layer so hospitality.html does not need home.css)
   ============================================================================ */
@keyframes homeViewIn { from { opacity: 0; } to { opacity: 1; } }
.hv-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5625rem;
  border-radius: 9999px;
  background: var(--color-brand-wash);
  color: var(--color-brand-deep);
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.hv-panel { animation: homeViewIn 240ms ease both; }

.hv-seal { display: flex; flex-direction: column; align-items: center; }
.hv-seal svg { height: 150px; width: 150px; filter: drop-shadow(0 14px 28px rgba(79, 70, 229, 0.18)); transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.hv-seal:hover svg { transform: translateY(-4px) rotate(2deg); }
@media (prefers-reduced-motion: reduce) {
  .hv-mod:hover, .hv-seal:hover svg { transform: none; }
}

/* =============================================================================
   home14 · premium OS module cards in the vertical playbooks
   Same size, same content - richer surface, gradient hairline, layered light.
   ============================================================================= */
.hv-mod {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid transparent;
  /* layered surface: corner glow + porcelain body in the padding box,
     indigo-tinted gradient hairline in the border box */
  background:
    radial-gradient(120% 80% at var(--hv-x, 85%) -10%, rgba(129, 140, 248, 0.12), transparent 52%) padding-box,
    linear-gradient(180deg, #ffffff 0%, #fdfdff 100%) padding-box,
    linear-gradient(165deg, rgba(79, 70, 229, 0.28), rgba(30, 27, 75, 0.07) 38%, rgba(124, 58, 237, 0.2) 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(16, 18, 35, 0.05),
    0 16px 40px -22px rgba(30, 27, 75, 0.18);
  transition: box-shadow 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="rtl"] .hv-mod { --hv-x: 15%; }
/* gradient beam along the top edge - resting sliver, full sweep on hover */
.hv-mod::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #818cf8, #4f46e5 45%, #7c3aed 80%, #a78bfa);
  box-shadow: 0 1px 10px rgba(79, 70, 229, 0.45);
  transform: scaleX(0.26);
  transform-origin: var(--hv-o, left);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="rtl"] .hv-mod::before { --hv-o: right; }
.hv-mod:hover::before, .hv-mod:focus-within::before { transform: scaleX(1); }
/* soft light sweeping across the card on hover */
.hv-mod::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(129, 140, 248, 0.13) 50%, transparent 68%);
  transform: translateX(-130%) skewX(-8deg);
  transition: transform 750ms ease;
  pointer-events: none;
}
html[dir="rtl"] .hv-mod::after { transform: translateX(130%) skewX(8deg); }
.hv-mod:hover::after { transform: translateX(130%) skewX(-8deg); }
html[dir="rtl"] .hv-mod:hover::after { transform: translateX(-130%) skewX(8deg); }
.hv-mod:hover, .hv-mod:focus-within {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(79, 70, 229, 0.35),
    0 10px 22px -14px rgba(79, 70, 229, 0.35),
    0 30px 64px -26px rgba(79, 70, 229, 0.42);
}
/* type + chips respond with the card */
.hv-mod h4 { position: relative; transition: color 220ms ease; }
.hv-mod:hover h4 { color: var(--color-brand-deep); }
.hv-chip {
  border: 1px solid rgba(79, 70, 229, 0.16);
  background: linear-gradient(180deg, rgba(238, 240, 251, 0.9), rgba(228, 231, 250, 0.9));
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.hv-mod:hover .hv-chip {
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #6d5ae8);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, 0.55);
}
/* integrations line reads as the card's technical footnote */
.hv-mod .mono {
  display: block;
  padding-top: 0.6875rem;
  border-top: 1px dashed rgba(30, 27, 75, 0.12);
  transition: color 220ms ease, border-color 220ms ease;
}
.hv-mod:hover .mono { border-top-color: rgba(79, 70, 229, 0.28); }
/* KPI line: dot marker that brightens with the card */
.hv-mod > p:last-child { display: flex; align-items: baseline; gap: 0.4375rem; }
.hv-mod > p:last-child::before {
  content: "";
  flex: none;
  align-self: center;
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
  transition: box-shadow 240ms ease;
}
.hv-mod:hover > p:last-child::before { box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .hv-mod { transition: box-shadow 320ms ease; }
  .hv-mod::before, .hv-mod::after { transition: none; }
  .hv-mod::after { display: none; }
  .hv-mod:hover, .hv-mod:focus-within { transform: none; }
}

/* ============================================================================
   #before-after - premium light comparison band with sparkline charts
   ============================================================================ */
#before-after .ba-card {
  border-radius: 24px;
  padding: 30px 28px 24px;
  border: 1px solid var(--color-hairline);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 18, 35, 0.04), 0 24px 56px -30px rgba(30, 27, 75, 0.18);
}
#before-after .ba-after {
  border-color: rgba(79, 70, 229, 0.22);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(129, 140, 248, 0.12), transparent 55%),
    #fff;
  box-shadow: 0 1px 2px rgba(16, 18, 35, 0.04), 0 30px 64px -28px rgba(79, 70, 229, 0.32);
}
#before-after .ba-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#before-after .ba-label svg { height: 16px; width: 16px; flex: none; }
#before-after .ba-before .ba-label { color: var(--color-bad, #dc2626); }
#before-after .ba-after .ba-label { color: var(--color-brand); }
#before-after .ba-li {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}
#before-after .ba-li::before {
  content: "";
  flex: none;
  align-self: center;
  height: 7px;
  width: 7px;
  border-radius: 9999px;
}
#before-after .ba-li-bad::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14); }
#before-after .ba-li-ok::before { background: var(--color-brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16); }
#before-after .ba-chart {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  background: linear-gradient(180deg, #fbfbfe, #f6f6fc);
}
#before-after .ba-chart-ok { border-color: rgba(79, 70, 229, 0.2); }
#before-after .ba-chart svg { display: block; height: 150px; width: 100%; }
#before-after .ba-chart-cap {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 14px;
  font-size: 12px;
  font-weight: 600;
}
/* draw-in on scroll reveal */
#before-after .ba-chart path[stroke] {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: baDraw 1.6s cubic-bezier(0.35, 0, 0.2, 1) 200ms forwards;
}
@keyframes baDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  #before-after .ba-chart path[stroke] { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================================
   Watch Now CTA + VSL modal (hospitality)
   ============================================================================ */
.vsl-watch {
  position: relative;
  gap: 9px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border: 0;
  animation: vslGlow 2s ease-in-out infinite;
}
.vsl-watch svg { height: 17px; width: 17px; }
.vsl-watch:hover { filter: brightness(1.08); }
@keyframes vslGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.55), 0 12px 28px -12px rgba(79, 70, 229, 0.6); }
  50% { box-shadow: 0 0 0 11px rgba(79, 70, 229, 0), 0 12px 28px -12px rgba(79, 70, 229, 0.6); }
}
@media (prefers-reduced-motion: reduce) { .vsl-watch { animation: none; } }

#vslModal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
#vslModal.vm-in { opacity: 1; pointer-events: auto; }
#vslModal .vm-box {
  position: relative;
  width: min(960px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(12px) scale(0.99);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
#vslModal.vm-in .vm-box { transform: translateY(0) scale(1); }
#vslModal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
#vslModal .vm-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 48px;
  width: 48px;
  border-radius: 9999px;
  border: 0;
  background: #ffffff;
  color: #12142b;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.35);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
#vslModal .vm-close svg { height: 22px; width: 22px; }
#vslModal .vm-close:hover { background: #4f46e5; color: #fff; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { #vslModal, #vslModal .vm-box { transition: none; } }

/* before/after cards: photographic backgrounds under a dark overlay, text on top */
#before-after .ba-card { position: relative; isolation: isolate; overflow: hidden; }
#before-after .ba-bg { position: absolute; inset: 0; z-index: -2; }
#before-after .ba-bg img { height: 100%; width: 100%; object-fit: cover; }
#before-after .ba-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 26, 0.82) 0%, rgba(10, 12, 26, 0.72) 45%, rgba(10, 12, 26, 0.88) 100%);
}
#before-after .ba-after::before {
  background: linear-gradient(180deg, rgba(24, 22, 58, 0.82) 0%, rgba(24, 22, 58, 0.7) 45%, rgba(20, 18, 52, 0.88) 100%);
}
/* text flips to on-dark now that the ground is photographic */
#before-after .ba-card { border-color: rgba(255, 255, 255, 0.14); }
#before-after .ba-li { color: rgba(255, 255, 255, 0.86); }
#before-after .ba-before .ba-label { color: #fca5a5; }
#before-after .ba-after .ba-label { color: #a5b4fc; }
#before-after .ba-chart { border-color: rgba(255, 255, 255, 0.14); background: rgba(10, 12, 26, 0.55); backdrop-filter: blur(3px); }
#before-after .ba-chart-ok { border-color: rgba(129, 140, 248, 0.35); }
#before-after .ba-chart-cap.\!text-bad { color: #fca5a5 !important; }
#before-after .ba-chart-cap.\!text-brand-deep { color: #c7d2fe !important; }

/* hero VSL play control (mirrored from the homepage layer) */
.vsl-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  height: 84px;
  width: 84px;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 24px 56px -18px rgba(30, 27, 75, 0.65);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}
.vsl-play svg { height: 34px; width: 34px; margin-inline-start: 4px; }
.vsl-play:hover { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.28), 0 28px 64px -18px rgba(79, 70, 229, 0.75); }
.vsl-play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  border: 2px solid rgba(99, 102, 241, 0.55);
  animation: vslRing 2.2s ease-out infinite;
}
@keyframes vslRing {
  0% { transform: scale(0.9); opacity: 0.9; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .vsl-play::after { animation: none; } }
