:root {
  --tour-radius-xl: 34px;
  --tour-radius-lg: 26px;
  --tour-radius: 18px;
  --tour-radius-sm: 12px;
  --tour-max-width: 1480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 9999;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.skip-link:focus {
  top: 18px;
}

.tour-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% -10%, rgba(14, 148, 154, 0.13), transparent 32rem),
    var(--surface);
}

.tour-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 28px 20px 20px;
  color: var(--lux-quaternary);
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 148, 154, 0.14), transparent 18rem),
    linear-gradient(180deg, #0F4C5C 0%, #0B3D49 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
}

.side-logo {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.side-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.83);
}

.side-brand-copy strong {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.side-brand-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.back-home {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.back-home:hover {
  color: var(--lux-quaternary);
}

.tour-label {
  margin: 0 8px 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour-nav {
  display: grid;
  gap: 5px;
}

.tour-nav button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.67);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 150ms ease;
}

.tour-nav button:hover {
  color: var(--lux-quaternary);
  background: rgba(255, 255, 255, 0.06);
}

.tour-nav button.active {
  color: var(--lux-quaternary);
  background: rgba(255, 255, 255, 0.1);
}

.tour-nav .nav-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.tour-nav button.active .nav-number {
  color: var(--lux-primary);
  background: var(--lux-secondary-light);
}

.tour-nav strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.sidebar-progress {
  margin: 24px 8px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--lux-secondary-light);
  transition: width 240ms ease;
}

.tour-main {
  min-width: 0;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.mobile-topbar {
  display: none;
}

.tour-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 34px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(18px);
}

.topbar-kicker {
  color: var(--lux-secondary-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topbar-title {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
}

.topbar-hint {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  margin-left: 4px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 11px;
}

.stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 54px 46px 46px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(26px);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    visibility 240ms ease;
}

.slide.active {
  position: relative;
  min-height: 100%;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.slide-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0B7C81;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  background: var(--lux-secondary);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 14px;
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(44px, 6vw, 78px);
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.lede {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.microcopy {
  color: var(--text-muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 150ms ease;
}

.button.primary {
  color: var(--primary-button-text);
  background: var(--primary-button-bg);
  box-shadow: 0 9px 24px rgba(15, 76, 92, 0.16);
}

.button.primary:hover {
  background: var(--primary-button-bg-hover);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--secondary-button-border);
  background: var(--secondary-button-bg);
  color: var(--secondary-button-text);
}

.button.secondary:hover {
  border-color: var(--lux-secondary-light);
  transform: translateY(-1px);
}

.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.portal-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 44px;
}

.portal-pair::before {
  position: absolute;
  top: 50%;
  left: calc(50% - 13px);
  z-index: 2;
  width: 26px;
  height: 2px;
  background: var(--lux-secondary);
  content: "";
}

.portal-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--tour-radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portal-card.dark {
  color: var(--lux-quaternary);
  background: linear-gradient(145deg, var(--lux-primary), var(--lux-primary-dark));
  border-color: rgba(255, 255, 255, 0.05);
}

.portal-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.portal-card.dark .portal-card-head {
  border-color: rgba(255, 255, 255, 0.1);
}

.portal-name {
  font-size: 14px;
  font-weight: 800;
}

.portal-role {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.portal-card.dark .portal-role {
  color: rgba(255, 255, 255, 0.56);
}

.portal-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #55a96f;
  box-shadow: 0 0 0 5px rgba(85, 169, 111, 0.12);
}

.portal-card-body {
  padding: 24px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.portal-card.dark .mini-stat {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.mini-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-card.dark .mini-stat span {
  color: rgba(255, 255, 255, 0.48);
}

.mini-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 13px;
  background: var(--surface-tint);
  font-size: 11px;
  font-weight: 700;
}

.portal-card.dark .mini-list-row {
  background: rgba(255, 255, 255, 0.055);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #2e6643;
  font-size: 9px;
  font-weight: 800;
}

.portal-card.dark .status-pill {
  background: rgba(85, 169, 111, 0.15);
  color: #96d1a8;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 42px;
  align-items: center;
}

.feature-copy {
  max-width: 470px;
}

.feature-copy p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.feature-points {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.feature-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
}

.feature-point-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #0B7C81;
  font-size: 12px;
  font-weight: 900;
}

.feature-point strong {
  display: block;
  font-size: 13px;
}

.feature-point span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.demo-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-url {
  max-width: 290px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fake-app {
  min-height: 440px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
}

.fake-app-nav {
  padding: 16px 11px;
  color: var(--lux-quaternary);
  background: var(--lux-primary);
}

.fake-app-logo {
  margin: 0 8px 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.fake-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 8px 9px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 700;
}

.fake-nav-item.active {
  color: var(--lux-quaternary);
  background: rgba(255, 255, 255, 0.1);
}

.fake-nav-icon {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 7px;
}

.fake-app-content {
  min-width: 0;
  padding: 22px;
  background: var(--surface-soft);
}

.fake-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.fake-page-head strong {
  display: block;
  font-size: 17px;
}

.fake-page-head span {
  color: var(--text-muted);
  font-size: 9px;
}

.fake-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--lux-primary);
  color: var(--lux-quaternary);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.fake-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.fake-stat {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.fake-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fake-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.fake-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.fake-panel + .fake-panel {
  margin-top: 10px;
}

.fake-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
}

.fake-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(70px, 0.7fr)) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 8px;
}

.fake-row:first-child {
  border-top: 0;
}

.fake-row strong {
  font-size: 9px;
}

.tiny-select {
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 8px;
}

.tiny-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #2F6F6C;
  font-size: 7px;
  font-weight: 800;
}

.tiny-pill.gold {
  background: var(--accent-soft);
  color: #0B7C81;
}

.tiny-pill.blue {
  background: var(--info-soft);
  color: var(--info);
}

.tiny-pill.red {
  background: var(--danger-soft);
  color: var(--danger);
}

.demo-action-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.demo-feedback {
  min-height: 21px;
  color: #2F6F6C;
  font-size: 9px;
  font-weight: 800;
}

.message-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.phone-card {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.phone-top {
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.phone-top strong {
  font-size: 11px;
}

.phone-top span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 8px;
}

.chat-body {
  height: 280px;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-soft);
}

.chat-bubble {
  max-width: 82%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-tint);
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.45;
}

.chat-bubble.mine {
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  background: var(--lux-primary);
  color: var(--lux-quaternary);
}

.chat-bubble.new {
  animation: bubbleIn 300ms ease both;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-compose input {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 9px;
  outline: none;
}

.chat-compose button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--lux-primary);
  color: var(--lux-quaternary);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.flow-wrap {
  display: grid;
  gap: 20px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr;
  align-items: center;
  gap: 8px;
}

.flow-node {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.flow-node-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 11px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: #0B7C81;
  font-weight: 900;
}

.flow-node strong {
  display: block;
  font-size: 13px;
}

.flow-node span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
}

.flow-arrow {
  position: relative;
  height: 2px;
  overflow: visible;
  background: var(--border-strong);
}

.flow-arrow::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--lux-secondary-light);
  border-right: 2px solid var(--lux-secondary-light);
  content: "";
  transform: rotate(45deg);
}

.flow-arrow.active::before {
  position: absolute;
  top: -3px;
  left: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lux-secondary);
  box-shadow: 0 0 0 5px rgba(14, 148, 154, 0.13);
  content: "";
  animation: travel 1.05s ease-in-out infinite;
}

@keyframes travel {
  0% { left: -2px; }
  100% { left: calc(100% - 4px); }
}

.sheet-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.sheet-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
}

.sheet-mark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #2e7545;
  color: var(--lux-quaternary);
  font-size: 9px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 42px repeat(4, minmax(90px, 1fr));
  font-size: 9px;
}

.sheet-cell {
  min-height: 35px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sheet-cell.header,
.sheet-cell.rownum {
  background: var(--surface-tint);
  color: var(--text-muted);
  font-weight: 800;
}

.sheet-cell.rownum {
  justify-content: center;
}

.sheet-cell.updated {
  animation: cellFlash 850ms ease both;
}

@keyframes cellFlash {
  0%, 100% { background: var(--surface); }
  35% { background: var(--accent-soft); }
}

.report-card-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
}

.report-paper {
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.report-paper-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--lux-primary);
}

.report-paper-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.report-paper-meta {
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.5;
  text-align: right;
}

.report-section {
  margin-top: 18px;
}

.report-section h4 {
  margin: 0 0 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.report-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 9px;
}

.report-actions-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.report-action-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.report-action-card span {
  display: block;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
}

.report-action-card strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.file-chip {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 9px;
  font-weight: 800;
}

.file-chip.visible {
  display: flex;
  animation: bubbleIn 300ms ease both;
}

.file-chip i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--success-soft);
  color: #2F6F6C;
  font-style: normal;
  font-size: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.calendar-admin,
.calendar-family {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calendar-admin h3,
.calendar-family h3 {
  font-size: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}

.fake-field {
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.fake-field span {
  display: block;
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fake-field strong {
  display: block;
  margin-top: 3px;
  font-size: 9px;
}

.family-event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.family-event {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
}

.family-event.new {
  animation: bubbleIn 300ms ease both;
}

.event-date {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
  background: var(--lux-primary);
  color: var(--lux-quaternary);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.family-event strong {
  display: block;
  font-size: 10px;
}

.family-event span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 8px;
}

.slip-demo {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 14px;
  align-items: center;
}

.slip-card {
  min-height: 340px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.slip-card h3 {
  font-size: 14px;
}

.slip-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.slip-meta div {
  padding: 9px;
  border-radius: 10px;
  background: var(--surface-tint);
}

.slip-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.slip-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 9px;
}

.slip-response {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 9px;
}

.slip-response strong {
  display: block;
}

.slip-response span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
}

.response-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.response-buttons button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.response-buttons button.approve {
  border-color: #b8d1bf;
  background: var(--success-soft);
  color: #2e6643;
}

.security-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.security-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #0B7C81;
  font-weight: 900;
}

.security-card p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.security-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.security-list span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.security-list span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lux-secondary);
  content: "";
}

.finish-card {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 70px);
  border-radius: 34px;
  color: var(--lux-quaternary);
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 148, 154, 0.25), transparent 23rem),
    linear-gradient(145deg, var(--lux-primary), #0B3D49);
  box-shadow: var(--shadow);
}

.finish-card::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.finish-card .eyebrow {
  color: var(--lux-secondary-light);
}

.finish-card .lede {
  color: rgba(255, 255, 255, 0.72);
}

.finish-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 46px;
  align-items: end;
}

.finish-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.finish-mini div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.finish-mini span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finish-mini strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.tour-controls {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 34px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px);
}

.control-button {
  min-width: 112px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 150ms ease;
}

.control-button:hover:not(:disabled) {
  border-color: var(--lux-secondary-light);
  transform: translateY(-1px);
}

.control-button.next {
  border-color: var(--lux-primary);
  background: var(--lux-primary);
  color: var(--lux-quaternary);
}

.control-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.control-center {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 95px;
  z-index: 999;
  max-width: 320px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--lux-primary);
  color: var(--lux-quaternary);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .tour-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .tour-sidebar {
    padding-inline: 13px;
  }

  .feature-layout {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    max-width: 740px;
  }

  .fake-app {
    min-height: 410px;
  }

  .security-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .tour-shell {
    display: block;
  }

  .tour-sidebar,
  .tour-topbar {
    display: none;
  }

  .tour-main {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .mobile-topbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-logo {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
  }

  .mobile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.83);
  }

  .mobile-home {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
  }

  .slide {
    padding: 36px 20px 30px;
  }

  .portal-pair,
  .message-demo,
  .calendar-grid,
  .report-card-demo,
  .finish-grid {
    grid-template-columns: 1fr;
  }

  .portal-pair::before {
    display: none;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .flow-arrow {
    width: 2px;
    height: 42px;
    margin: 0 auto;
  }

  .flow-arrow::after {
    top: auto;
    right: -3px;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .flow-arrow.active::before {
    top: -2px;
    left: -3px;
    animation: travelVertical 1.05s ease-in-out infinite;
  }

  @keyframes travelVertical {
    0% { top: -2px; }
    100% { top: calc(100% - 4px); }
  }

  .slip-demo {
    grid-template-columns: 1fr;
  }

  .slip-demo .flow-arrow {
    display: block;
  }

  .finish-mini {
    grid-template-columns: 1fr 1fr;
  }

  .tour-controls {
    padding: 12px 16px;
  }

  .control-button {
    min-width: auto;
  }

  .control-center {
    display: none;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .lede,
  .feature-copy p {
    font-size: 15px;
  }

  .fake-app {
    grid-template-columns: 1fr;
  }

  .fake-app-nav {
    display: none;
  }

  .fake-app-content {
    padding: 15px;
  }

  .fake-stats,
  .mini-grid,
  .field-grid,
  .slip-meta,
  .finish-mini {
    grid-template-columns: 1fr 1fr;
  }

  .fake-row {
    grid-template-columns: 1fr auto;
  }

  .fake-row > :nth-child(2),
  .fake-row > :nth-child(3) {
    display: none;
  }

  .sheet-grid {
    grid-template-columns: 34px repeat(4, minmax(76px, 1fr));
    min-width: 470px;
  }

  .sheet-window {
    overflow-x: auto;
  }

  .report-card-demo {
    display: block;
  }

  .report-actions-panel {
    margin-top: 14px;
    grid-template-columns: repeat(2, 1fr);
  }

  .toast {
    right: 16px;
    bottom: 84px;
    left: 16px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Theme-aware LuxES tour surfaces
   ========================================================= */

h1,
h2,
h3,
h4 {
  color: var(--heading);
}

.tour-shell {
  color: var(--text);
  background:
    radial-gradient(
circle at 80% -10%,
rgba(14, 148, 154, 0.13),
transparent 32rem
    ),
    var(--page-bg);
}

.tour-topbar,
.mobile-topbar,
.tour-controls {
  color: var(--text);
}

.topbar-hint kbd,
.portal-card,
.demo-window,
.fake-stat,
.fake-panel,
.phone-card,
.flow-node,
.sheet-window,
.report-paper,
.report-action-card,
.file-chip,
.calendar-admin,
.calendar-family,
.slip-card,
.security-card,
.response-buttons button {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.demo-window-bar,
.phone-top,
.sheet-toolbar,
.fake-field,
.chat-compose input,
.tiny-select,
.family-event,
.slip-meta div,
.slip-response {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}

.fake-app-content,
.chat-body {
  color: var(--text);
  background: var(--page-bg-alt);
}

.chat-bubble:not(.mine) {
  color: var(--text-soft);
  background: var(--surface-tint);
}

.control-button {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.control-button.next {
  color: var(--primary-button-text);
  background: var(--primary-button-bg);
  border-color: var(--primary-button-bg);
}

.control-button.next:hover:not(:disabled) {
  background: var(--primary-button-bg-hover);
  border-color: var(--primary-button-bg-hover);
}

.tiny-select,
.chat-compose input {
  color: var(--input-text);
  background: var(--input-bg);
  border-color: var(--input-border);
}

.tiny-select::placeholder,
.chat-compose input::placeholder {
  color: var(--input-placeholder);
}

.portal-card.dark,
.portal-card.dark h1,
.portal-card.dark h2,
.portal-card.dark h3,
.portal-card.dark h4,
.finish-card,
.finish-card h1,
.finish-card h2,
.finish-card h3,
.finish-card h4,
.tour-sidebar,
.fake-app-nav,
.chat-bubble.mine,
.event-date,
.toast {
  color: var(--lux-quaternary);
}

.portal-card.dark .mini-stat,
.portal-card.dark .mini-list-row {
  color: var(--lux-quaternary);
}

:root[data-theme="dark"] .portal-card:not(.dark),
:root[data-theme="dark"] .demo-window,
:root[data-theme="dark"] .phone-card,
:root[data-theme="dark"] .flow-node,
:root[data-theme="dark"] .sheet-window,
:root[data-theme="dark"] .report-paper,
:root[data-theme="dark"] .report-action-card,
:root[data-theme="dark"] .calendar-admin,
:root[data-theme="dark"] .calendar-family,
:root[data-theme="dark"] .slip-card,
:root[data-theme="dark"] .security-card {
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .sheet-cell.updated {
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .portal-card:not(.dark),
  :root:not([data-theme]) .demo-window,
  :root:not([data-theme]) .phone-card,
  :root:not([data-theme]) .flow-node,
  :root:not([data-theme]) .sheet-window,
  :root:not([data-theme]) .report-paper,
  :root:not([data-theme]) .report-action-card,
  :root:not([data-theme]) .calendar-admin,
  :root:not([data-theme]) .calendar-family,
  :root:not([data-theme]) .slip-card,
  :root:not([data-theme]) .security-card {
    box-shadow: var(--shadow-soft);
  }
}
