:root {
  /* Brand palette (from portal brand.css) */
  --rs-primary:       #2a6fbe;
  --rs-primary-hover: #2058a0;
  --rs-primary-soft:  #e8f0fc;
  --rs-accent:        #ff8a5c;
  --rs-accent-hover:  #e97247;
  --rs-surface:       #f8fafb;
  --rs-surface-2:     #f0f4f8;
  --rs-text:          #1e2d2f;
  --rs-muted:         #5a6d80;
  --rs-danger:        #c94a3d;
  --rs-border:        #e8eef0;
  --rs-sidebar:       #1a2332;
  --rs-shadow-tint:   42, 111, 190;

  /* Tour-specific accents */
  --coral:            #ff8a5c;
  --coral-deep:       #e97247;
  --navy-deep:        #0a1524;

  --font-display-ed:  "Instrument Serif", Georgia, serif;   /* editorial — captions only */
  --font-display-rs:  "Sora", system-ui, sans-serif;        /* portal display (matches real app) */
  --font-body:        "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:        "JetBrains Mono", ui-monospace, monospace;

  --scene-dur: 15s;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--navy-deep);
  color: #fff;
  font-family: var(--font-body);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: #fff; }

/* ============================================================
   STAGE CHROME — the cinema viewer (tour UI, not product)
   ============================================================ */
.stage {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(255,138,92,0.22), transparent 55%),
    radial-gradient(ellipse 60% 60% at 90% 100%, rgba(42,111,190,0.32), transparent 55%),
    linear-gradient(180deg, #0a1524 0%, #060d17 100%);
  z-index: 0;
}
.stage > * { position: relative; z-index: 1; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(6,13,23,0.5);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  color: #fff;
}
.brand img { width: 42px; height: 42px; flex-shrink: 0; }
.brand .brand-wm {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #fff;
  padding-right: 0.22em;
  line-height: 1;
}
.brand .brand-wm .strata { color: var(--coral); }

.tour-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.tour-meta .clock {
  font-family: var(--font-mono);
  padding: 5px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.exit {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  transition: all .2s ease;
}
.exit:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Progress rail */
.rail {
  display: flex;
  gap: 6px;
  padding: 12px 32px;
  background: rgba(6,13,23,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rail-seg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.rail-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--coral), var(--rs-primary));
  transform: scaleX(0);
  transform-origin: left center;
}
.rail-seg.is-done::after { transform: scaleX(1); }
.rail-seg.is-live::after {
  transform: scaleX(0);
  animation: fill var(--scene-dur) linear forwards;
}
.stage.is-paused .rail-seg.is-live::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* Body: scenes + caption */
.body {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.viewport {
  position: relative;
  overflow: hidden;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene {
  position: absolute;
  inset: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.scene.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Caption (right) */
.caption {
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.cap-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cap-step-num::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--coral);
}
.cap-items {
  position: relative;
  min-height: 300px;
}
.cap-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.cap-item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cap-title {
  font-family: var(--font-display-ed);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  font-weight: 400;
}
.cap-title em { color: var(--coral); font-style: italic; }
.cap-body {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 44ch;
  margin: 0 0 26px;
}
.cap-kvs {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.cap-kvs div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.cap-kvs div:first-child { border-top: 0; }
.cap-kvs strong { color: #fff; font-weight: 600; }

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(6,13,23,0.8);
  border-top: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.ctrl-dots { display: flex; gap: 8px; align-items: center; }
.dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
  position: relative;
}
.dot-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.dot-btn:hover { background: rgba(255,255,255,0.5); transform: scale(1.3); }
.dot-btn:hover::after { opacity: 1; }
.dot-btn.is-done { background: rgba(255,255,255,0.35); }
.dot-btn.is-live { background: var(--coral); width: 24px; border-radius: 999px; }

.ctrl-center { display: flex; gap: 10px; align-items: center; }
.ctrl-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.12); }
.ctrl-btn--primary {
  width: 54px; height: 54px;
  background: var(--coral);
  border-color: transparent;
  color: #2a1309;
  box-shadow: 0 10px 24px -10px rgba(255,138,92,0.6);
}
.ctrl-btn--primary:hover { background: var(--coral-deep); color: #fff; }

.ctrl-right { display: flex; gap: 12px; align-items: center; }
.cta-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s ease;
}
.cta-end:hover { background: var(--coral); color: #2a1309; }

/* ============================================================
   PORTAL FRAME — mimics the actual app shell
   Mirrors portal/layout.html.twig at a reduced scale
   ============================================================ */

.mock {
  width: 100%;
  max-width: 920px;
  height: 560px;
  background: var(--rs-surface);
  color: var(--rs-text);
  border-radius: 14px;
  box-shadow:
    0 50px 100px -40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 172px 1fr;
  font-family: var(--font-body);
  position: relative;
}

/* Sidebar */
.pf-sidebar {
  background: var(--rs-sidebar);
  color: #c4d1de;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 12px;
}
.pf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pf-brand img { width: 22px; height: 22px; flex-shrink: 0; }
.pf-brand .brand-wm {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-right: 0.22em;
  line-height: 1;
}
.pf-brand .brand-wm .strata { color: var(--coral); }
.pf-org {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pf-org-name {
  color: #fff;
  font-weight: 600;
  font-size: 11.5px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-org-switch {
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}
.pf-org-switch::after {
  content: "▾";
  opacity: 0.6;
  font-size: 8px;
}

.pf-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.pf-nav::-webkit-scrollbar { width: 4px; }
.pf-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.pf-section {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 10px 14px 4px;
}
.pf-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #c4d1de;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pf-link svg { flex-shrink: 0; opacity: 0.7; width: 13px; height: 13px; }
.pf-link.is-active {
  background: rgba(42,111,190,0.22);
  color: #fff;
  border-left-color: var(--rs-primary);
}
.pf-link.is-active svg { opacity: 1; }

.pf-sidebar-foot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rs-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.pf-user-email {
  font-size: 10.5px;
  color: #8a9bb0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content */
.pf-content {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.pf-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #fff;
  border-bottom: 1px solid var(--rs-border);
  position: relative;
}
.pf-topbar h1 {
  font-family: var(--font-display-rs);
  font-size: 16px;
  font-weight: 400;
  color: var(--rs-text);
  margin: 0;
  letter-spacing: -0.01em;
}
.pf-topbar .pf-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pf-main {
  padding: 20px 22px;
  overflow-y: auto;
  background: var(--rs-surface);
}

/* Portal components (mirroring brand.css patterns) */
.pf-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  margin-bottom: 16px;
}
.pf-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display-rs);
  font-size: 15px;
  font-weight: 500;
  color: var(--rs-text);
  letter-spacing: -0.005em;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
  transition: background .15s ease;
}
.pf-btn--primary { background: var(--rs-primary); color: #fff; }
.pf-btn--primary:hover { background: var(--rs-primary-hover); }
.pf-btn--outline {
  background: transparent;
  color: var(--rs-primary);
  border: 1.5px solid var(--rs-primary);
}
.pf-btn--ghost {
  background: transparent;
  color: var(--rs-muted);
  border: 1px solid var(--rs-border);
}

/* Form fields */
.pf-field { margin-bottom: 12px; }
.pf-field label {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: var(--rs-text);
  margin-bottom: 4px;
}
.pf-field .pf-input {
  width: 100%;
  height: 32px;
  background: #fff;
  border: 1px solid #b8c9dc;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--rs-text);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  background: var(--rs-primary);
  margin-left: 2px;
  vertical-align: middle;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Tables */
.pf-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  font-size: 12px;
}
.pf-table th, .pf-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e8eef0;
}
.pf-table th {
  background: var(--rs-primary-soft);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--rs-primary);
  letter-spacing: 0.02em;
  text-transform: none;
}
.pf-table td { color: var(--rs-text); }
.pf-table tbody tr:last-child td { border-bottom: 0; }

.pf-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--rs-primary-soft);
  color: var(--rs-primary);
}
.pf-badge--coral { background: rgba(255,138,92,0.14); color: var(--coral-deep); }
.pf-badge--green { background: rgba(21,122,79,0.1); color: #157a4f; }
.pf-badge--gray  { background: #eceff3; color: var(--rs-muted); }

/* Stat grid (dashboard style) */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.pf-stat {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  border-left: 3px solid var(--rs-primary);
}
.pf-stat .v {
  font-family: var(--font-display-rs);
  font-size: 22px;
  font-weight: 500;
  color: var(--rs-text);
  line-height: 1;
}
.pf-stat .l {
  font-size: 10.5px;
  color: var(--rs-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 6px;
}
.pf-stat--coral { border-left-color: var(--coral); }
.pf-stat--green { border-left-color: #157a4f; }
.pf-stat--amber { border-left-color: #d49b37; }

/* ============================================================
   SCENE-SPECIFIC ANIMATION + LAYOUT
   ============================================================ */

/* -------- Scene 1: Setup (Resorts & Units > New) -------- */
.s-setup .type-a { animation: type 2.2s steps(24) .6s both; }
.s-setup .type-b { animation: type 2s steps(20) 3.2s both; }
@keyframes type { from { max-width: 0; } to { max-width: 100%; } }

.setup-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.unit-tray {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.unit-chip {
  background: var(--rs-primary-soft);
  color: var(--rs-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  padding: 9px 10px;
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  transform: scale(.9);
  animation: chipIn .35s cubic-bezier(.2,.8,.2,1) forwards;
}
.unit-chip small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--rs-muted);
  font-size: 9.5px;
  margin-top: 2px;
}
.scene.is-active .unit-chip:nth-child(1) { animation-delay: 5.6s; }
.scene.is-active .unit-chip:nth-child(2) { animation-delay: 5.9s; }
.scene.is-active .unit-chip:nth-child(3) { animation-delay: 6.2s; }
.scene.is-active .unit-chip:nth-child(4) { animation-delay: 6.5s; }
.scene.is-active .unit-chip:nth-child(5) { animation-delay: 6.8s; }
.scene.is-active .unit-chip:nth-child(6) { animation-delay: 7.1s; }
.scene.is-active .unit-chip:nth-child(7) { animation-delay: 7.4s; }
.scene.is-active .unit-chip:nth-child(8) { animation-delay: 7.7s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }

.pf-save-btn-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Flash banner like portal */
.pf-flash {
  background: var(--rs-primary-soft);
  border: 1px solid rgba(42,111,190,0.2);
  color: var(--rs-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  animation: flashIn .5s ease 9s forwards;
}
.pf-flash--green {
  background: #e3f7ec;
  border-color: rgba(21,122,79,0.2);
  color: #157a4f;
}
@keyframes flashIn { to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }

/* -------- Scene 2: Reservations calendar -------- */
.cal-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.cal-grid {
  display: grid;
  grid-template-columns: 120px repeat(14, 1fr);
  gap: 3px;
  font-size: 10.5px;
}
.cal-grid .cal-h {
  color: var(--rs-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: center;
  padding: 4px 0;
  font-weight: 600;
}
.cal-grid .cal-unit {
  color: var(--rs-text);
  font-size: 11.5px;
  font-weight: 500;
  padding: 7px 6px;
  border-right: 1px solid var(--rs-border);
  font-family: var(--font-body);
}
.cal-grid .cal-unit small {
  display: block;
  color: var(--rs-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  margin-top: 1px;
}
.cal-grid .cal-cell {
  background: #f5f7f9;
  border-radius: 4px;
  height: 30px;
  position: relative;
}
.cal-bar-wrap { position: relative; }
.cal-b {
  position: absolute;
  top: 3px; bottom: 3px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--rs-primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  animation: barIn .5s cubic-bezier(.2,.8,.2,1) forwards;
  white-space: nowrap;
  overflow: hidden;
}
.cal-b.owner { background: var(--rs-primary); }
.cal-b.rental { background: var(--coral); color: #2a1309; }
.cal-b.hold { background: #d49b37; color: #fff; }
.cal-b.turnover { background: #8a9bb0; color: #fff; }
.scene.is-active .cal-b.b1 { animation-delay: 1.0s; }
.scene.is-active .cal-b.b2 { animation-delay: 1.8s; }
.scene.is-active .cal-b.b3 { animation-delay: 2.6s; }
.scene.is-active .cal-b.b4 { animation-delay: 3.4s; }
.scene.is-active .cal-b.b5 { animation-delay: 4.2s; }
.scene.is-active .cal-b.b6 { animation-delay: 5.0s; }
.scene.is-active .cal-b.b7 { animation-delay: 5.8s; }
@keyframes barIn { to { opacity: 1; transform: scaleX(1); } }

.cal-legend {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 10.5px;
  color: var(--rs-muted);
  flex-wrap: wrap;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
}

/* -------- Scene 3: Fee assessment -------- */
.fee-run-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fee-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rs-muted);
}
.fee-counter strong {
  color: var(--rs-primary);
  font-family: var(--font-display-rs);
  font-size: 18px;
  font-weight: 500;
  margin-right: 6px;
  display: inline-block;
  min-width: 3ch;
}
.scene.is-active .fee-btn-anim {
  animation: press 0.5s ease 2.8s;
}
@keyframes press {
  50% { transform: scale(.94); background: var(--rs-primary-hover); }
}

.invoice-stack {
  margin-top: 10px;
  min-height: 160px;
  position: relative;
}
.inv-row {
  display: grid;
  grid-template-columns: 110px 1.4fr 80px auto;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--rs-text);
  box-shadow: 0 1px 4px rgba(var(--rs-shadow-tint), 0.06);
  border-left: 3px solid var(--rs-primary);
  opacity: 0;
  transform: translateY(8px);
}
.inv-row .n { font-family: var(--font-mono); font-weight: 600; color: var(--rs-primary); font-size: 11px; }
.inv-row .amt { text-align: right; font-weight: 600; }
.scene.is-active .inv-row { animation: slipIn .4s cubic-bezier(.2,.8,.2,1) forwards; }
.scene.is-active .inv-row:nth-child(1) { animation-delay: 3.4s; }
.scene.is-active .inv-row:nth-child(2) { animation-delay: 3.7s; }
.scene.is-active .inv-row:nth-child(3) { animation-delay: 4.0s; }
.scene.is-active .inv-row:nth-child(4) { animation-delay: 4.3s; }
.scene.is-active .inv-row:nth-child(5) { animation-delay: 4.6s; }
.scene.is-active .inv-row:nth-child(6) { animation-delay: 4.9s; }
@keyframes slipIn { to { opacity: 1; transform: none; } }

/* -------- Scene 4: Pay page (public-facing) -------- */
.s-pay .mock {
  background: var(--rs-surface);
  grid-template-columns: 1fr;
}
.pay-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}
.pay-topbar {
  background: #fff;
  padding: 14px 28px;
  border-bottom: 1px solid var(--rs-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-topbar img { width: 26px; height: 26px; }
.pay-topbar strong {
  font-family: var(--font-display-rs);
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-text);
}
.pay-topbar small {
  color: var(--rs-muted);
  font-size: 11.5px;
  margin-left: 8px;
}
.pay-main {
  padding: 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}
.pay-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  position: relative;
}
.pay-card h3 {
  font-family: var(--font-display-rs);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--rs-text);
}
.pay-card .meta {
  color: var(--rs-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.pay-line {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--rs-border);
  font-size: 12.5px;
  color: var(--rs-text);
}
.pay-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px solid var(--rs-text);
  font-weight: 700;
  font-size: 14px;
}
.pay-total .amt {
  color: var(--rs-primary);
  font-family: var(--font-display-rs);
  font-size: 22px;
  font-weight: 500;
}
.pay-cta {
  margin-top: 18px;
  background: var(--rs-primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pay-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out 1s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.stamp {
  position: absolute;
  top: 24px;
  right: 26px;
  transform: rotate(-8deg) scale(0);
  border: 2.5px solid #157a4f;
  color: #157a4f;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  border-radius: 4px;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(21,122,79,0.2);
}
.scene.is-active .stamp {
  animation: stampIn 0.6s cubic-bezier(.4,1.8,.6,1) 7.5s forwards;
}
@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(-8deg) scale(1.6); }
  60%  { opacity: 1; transform: rotate(-8deg) scale(0.95); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

.pay-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-bank {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  font-size: 11.5px;
}
.pay-bank h4 {
  font-family: var(--font-display-rs);
  font-size: 13px;
  font-weight: 500;
  color: var(--rs-text);
  margin: 0 0 8px;
}
.pay-bank .bank-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--rs-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.pay-bank .bank-row strong { color: var(--rs-text); font-weight: 600; }
.scene.is-active .s-pay-ping {
  position: absolute;
  right: 20px;
  top: 78px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 16px 32px -16px rgba(14,31,51,0.35);
  font-size: 12px;
  color: var(--rs-text);
  opacity: 0;
  transform: translateX(16px);
  animation: pingIn .5s ease 9s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid #157a4f;
}
.s-pay-ping small {
  display: block;
  font-family: var(--font-mono);
  color: var(--rs-muted);
  font-size: 10.5px;
}
.s-pay-ping .ico {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #e3f7ec;
  color: #157a4f;
  display: inline-flex; align-items: center; justify-content: center;
}
@keyframes pingIn { to { opacity: 1; transform: translateX(0); } }

/* -------- Scene 5: Broadcast -------- */
.email-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.compose-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  font-size: 12px;
}
.compose-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rs-border);
  color: var(--rs-muted);
}
.compose-row span:first-child {
  width: 46px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rs-muted);
  padding-top: 2px;
  font-weight: 700;
}
.compose-row span:last-child { color: var(--rs-text); }
.compose-body {
  margin-top: 10px;
  font-size: 12px;
  color: var(--rs-text);
  line-height: 1.55;
}
.compose-body strong { color: var(--rs-primary); font-weight: 600; }
.compose-send {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--rs-muted);
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid var(--rs-border);
}
.scene.is-active .send-btn-anim { animation: press 0.5s ease 3.5s; }

.stats-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
  font-size: 12px;
}
.stats-card h5 {
  font-family: var(--font-display-rs);
  font-weight: 500;
  font-size: 13px;
  margin: 0 0 2px;
  color: var(--rs-text);
}
.stats-card small {
  color: var(--rs-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  color: var(--rs-muted);
  padding: 8px 0;
  border-top: 1px solid var(--rs-border);
}
.stat-row:first-of-type { border-top: 0; margin-top: 8px; }
.stat-row .n {
  font-family: var(--font-display-rs);
  font-size: 18px;
  font-weight: 500;
  color: var(--rs-text);
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.stat-row .n .unit { font-size: 11px; color: var(--rs-muted); font-weight: 400; }
.stat-row .bar {
  flex: 1;
  height: 5px;
  background: var(--rs-primary-soft);
  border-radius: 999px;
  overflow: hidden;
}
.stat-row .bar > div {
  height: 100%;
  background: var(--rs-primary);
  border-radius: 999px;
  width: 0;
}
.scene.is-active .stat-row .bar > div { animation: growBar 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
.scene.is-active .stat-row:nth-child(3) .bar > div { animation-delay: 5s; }
.scene.is-active .stat-row:nth-child(4) .bar > div { animation-delay: 5.4s; }
.scene.is-active .stat-row:nth-child(5) .bar > div { animation-delay: 5.8s; }
.scene.is-active .stat-row:nth-child(6) .bar > div { animation-delay: 6.2s; }
@keyframes growBar { to { width: var(--w, 60%); } }
.stat-legend {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  font-size: 9.5px;
  color: var(--rs-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* -------- Scene 6: Owner portal (scoped sidebar) -------- */
.pf-sidebar.owner-scope .pf-section:nth-of-type(1) { display: none; /* hide full menu */ }
.owner-booking {
  background: var(--rs-primary-soft);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease 2.3s forwards;
}
.owner-booking strong { color: var(--rs-primary); font-size: 12.5px; display: block; margin-bottom: 2px; }
.owner-booking small { color: var(--rs-muted); font-size: 11px; }
.owner-booking .view {
  color: var(--rs-primary);
  font-weight: 600;
  font-size: 12px;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.owner-scope-note {
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px dashed rgba(42,111,190,0.35);
  border-radius: 8px;
  color: var(--rs-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  opacity: 0;
  animation: fadein 0.5s ease 5s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}
.owner-scope-note strong { color: var(--rs-primary); font-weight: 600; }
.lock-ico {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--rs-primary-soft);
  color: var(--rs-primary);
  display: inline-flex; align-items: center; justify-content: center;
}

.pf-stat.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s ease forwards;
}
.scene.is-active .pf-stat.reveal:nth-of-type(1) { animation-delay: 1.0s; }
.scene.is-active .pf-stat.reveal:nth-of-type(2) { animation-delay: 1.3s; }
.scene.is-active .pf-stat.reveal:nth-of-type(3) { animation-delay: 1.6s; }
.scene.is-active .pf-stat.reveal:nth-of-type(4) { animation-delay: 1.9s; }

/* -------- Scene 7: Reports -------- */
.chart-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(var(--rs-shadow-tint), 0.09);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.chart-head h3 {
  font-family: var(--font-display-rs);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: var(--rs-text);
}
.chart-head small { color: var(--rs-muted); font-family: var(--font-mono); font-size: 10.5px; }
.chart-svg { width: 100%; height: 150px; display: block; }
.chart-svg .chart-line {
  stroke: var(--rs-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 3s cubic-bezier(.6,0,.4,1) 1s forwards;
}
.chart-svg .chart-area {
  opacity: 0;
  animation: fadein 1.5s ease 3s forwards;
}
.chart-svg .chart-pt {
  fill: var(--coral);
  opacity: 0;
  animation: fadein 0.5s ease forwards;
}
.chart-svg .chart-pt:nth-of-type(1) { animation-delay: 2.6s; }
.chart-svg .chart-pt:nth-of-type(2) { animation-delay: 3.0s; }
.chart-svg .chart-pt:nth-of-type(3) { animation-delay: 3.4s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.pf-csv-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--rs-muted);
  font-family: var(--font-mono);
}

/* -------- Scene 8: Finale (marketing close) -------- */
.s-final {
  text-align: center;
}
.final-wrap {
  max-width: 680px;
  padding: 40px;
}
.final-wrap h2 {
  font-family: var(--font-display-ed);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
  font-weight: 400;
}
.final-wrap h2 em { color: var(--coral); font-style: italic; }
.final-wrap p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 48ch;
  margin: 0 auto 32px;
}
.final-cta-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease;
}
.fbtn--coral { background: var(--coral); color: #2a1309; box-shadow: 0 16px 32px -16px rgba(255,138,92,0.6); }
.fbtn--coral:hover { background: var(--coral-deep); color: #fff; transform: translateY(-2px); }
.fbtn--ghost { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.fbtn--ghost:hover { border-color: #fff; }

.final-stars {
  margin-top: 48px;
  display: inline-flex;
  gap: 24px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.final-stars strong { color: #fff; }

.final-deco {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .body { grid-template-columns: 1.1fr 1fr; }
  .mock { max-width: 100%; }
  .pay-main { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .caption {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
  }
  .cap-items { min-height: 200px; }
  .cap-title { font-size: 30px; }
  .viewport { padding: 16px; }
  .scene { inset: 16px; }
  .mock { height: 500px; grid-template-columns: 1fr; }
  .pf-sidebar { display: none; }
  .topbar { padding: 14px 20px; }
  .rail { padding: 10px 20px; }
  .controls { padding: 14px 20px; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .tour-meta { display: none; }
  .email-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rail-seg.is-live::after { transform: scaleX(1) !important; }
}
