/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2b3c;
  line-height: 1.5;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Top Bar */
.top-bar {
  background: #1a2b3c;
  color: #fff;
  font-size: 13px;
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  height: 40px;
}

.top-link {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.top-link:hover {
  opacity: 0.8;
}

.top-link svg {
  width: 8px;
  height: 5px;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  display: block;
}

/* Logo + Switcher */
.logo-and-switcher {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-use-case-toggle {
  display: flex;
  background: #f0f3f7;
  border-radius: 20px;
  padding: 3px;
  border: 1px solid #e0e4ea;
}

.nav-toggle-option {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  color: #5a6670;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-toggle-option:hover:not(.active) {
  color: #1a2b3c;
}

.nav-toggle-option.active {
  background: #1a2b3c;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #1a2b3c;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  height: 100%;
  cursor: pointer;
}

.nav-link svg {
  transition: transform 0.2s;
}

.nav-link:hover {
  color: #00b7e5;
}

/* Mega Menu */
.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #e8eaed;
  display: none;
  z-index: 9999;
}

.nav-item.active .mega-menu {
  display: block;
}

.nav-item.active .nav-link {
  color: #00b7e5;
}

.nav-item.active .nav-link svg {
  transform: rotate(180deg);
}

.mega-menu-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 28px;
  display: flex;
  gap: 40px;
}

.mega-col-sidebar {
  min-width: 260px;
  max-width: 280px;
  padding-right: 32px;
  border-right: 1px solid #e8eaed;
}

.mega-col-main {
  flex: 1;
}

.mega-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1a2b3c;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.mega-desc {
  font-size: 13px;
  color: #5a6670;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.btn-dark {
  background: #1a2b3c;
  color: #fff;
}

.btn-dark:hover {
  background: #2a3f52;
}

.btn-cta {
  background: #7ed321;
  color: #001e39;
  white-space: nowrap;
}

.btn-cta:hover {
  background: #ffd012;
}

/* Product Dropdown */
.product-logos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-logo-link {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2b3c;
  transition: all 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.product-logo-link:hover {
  background: #f4f5f7;
}

.product-logo-link.active {
  background: #f4f5f7;
  border-color: #e0e3e8;
}

.product-logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-logo-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1.3;
}

.product-logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #8a939d;
  margin-top: 1px;
}

.product-logo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #00b7e5;
  background: #d9f4fb;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Product Panels */
.product-panel {
  display: none;
}

.product-panel.active {
  display: block;
}

/* FSM Coming Soon */
.fsm-coming-soon {
  padding: 8px 0;
}

.fsm-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.fsm-hero h3,
.fsm-hero .fsm-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 6px;
}

.fsm-badge-large {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #00b7e5;
  background: #d9f4fb;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fsm-description {
  font-size: 14px;
  color: #5a6670;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 640px;
}

.fsm-features-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
  margin-bottom: 28px;
}

.fsm-feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1a2b3c;
  padding: 8px 0;
}

.fsm-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
}

.fsm-learn-link {
  font-size: 14px;
  font-weight: 600;
  color: #00b7e5;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.fsm-learn-link:hover {
  gap: 10px;
}

.product-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8eaed;
}

.product-hero-text {
  flex: 1;
}

.product-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 4px;
}

.product-hero-desc {
  font-size: 13px;
  color: #5a6670;
  line-height: 1.55;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 48px;
}

.feature-group h4,
.feature-group .feature-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 8px;
}

.feature-group a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #5a6670;
  padding: 4px 0;
  transition: color 0.15s;
}

.feature-group a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #a0a8b0;
  margin-top: 1px;
  transition: color 0.15s;
}

.feature-group a:hover {
  color: #00b7e5;
}

.feature-group a:hover svg {
  color: #00b7e5;
}

.feature-group a.more-link {
  color: #00b7e5;
  font-weight: 600;
  margin-top: 2px;
}

.feature-group a.more-link svg {
  color: #00b7e5;
}

.feature-group .mega-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 16px;
  background: #7ed321;
  color: #001e39;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  transition: background 0.2s, transform 0.15s;
}
.feature-group .mega-explore-btn:hover {
  background: #ffd012;
  transform: translateY(-1px);
  color: #001e39;
}
.feature-group .mega-explore-btn span {
  font-size: 13px;
  transition: transform 0.2s;
}
.feature-group .mega-explore-btn:hover span {
  transform: translateX(2px);
}

/* Integrations Showcase */
.integrations-showcase {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
}

.integrations-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.integrations-header h4,
.integrations-header .integrations-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
}

.integrations-sub {
  font-size: 12px;
  color: #8a939d;
}

.integrations-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.integrations-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.integration-more {
  font-size: 13px;
  font-weight: 600;
  color: #00b7e5;
  white-space: nowrap;
}

.integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #f4f5f7;
  border-radius: 6px;
  transition: all 0.15s;
}

.integration-logo:hover {
  background: #e8eaed;
}

.integration-wordmark {
  font-size: 13px;
  font-weight: 700;
  color: #8a939d;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.integration-logo-img {
  height: 20px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.integrations-features {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid #e8eaed;
}

.integrations-features a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5a6670;
  white-space: nowrap;
  transition: color 0.15s;
}

.integrations-features a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #a0a8b0;
  transition: color 0.15s;
}

.integrations-features a:hover,
.integrations-features a:hover svg {
  color: #00b7e5;
}

.integrations-more {
  font-size: 13px;
  font-weight: 600;
  color: #00b7e5;
  white-space: nowrap;
  margin-left: auto;
  transition: gap 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.integrations-more:hover {
  gap: 8px;
}

/* Industries Dropdown */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

/* Industries Mega Menu Columns */
.industry-columns {
  display: flex;
  gap: 32px;
}

.industry-column {
  flex: 1;
}

.industry-column-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9199;
  padding: 0 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eceef0;
}

.industry-card {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.15s;
  align-items: center;
}

.industry-card:hover {
  background: #f4f5f7;
}

.industry-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  background: #f0f4f8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 3px;
}

.industry-card p {
  font-size: 12px;
  color: #5a6670;
  line-height: 1.5;
}

.industry-card span {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a2b3c;
  line-height: 1.3;
}

/* Resources & Support Dropdown */
.resources-columns {
  display: flex;
  gap: 48px;
}

.resource-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 8px;
}

.resource-group a {
  display: block;
  font-size: 13px;
  color: #5a6670;
  padding: 4px 0;
  transition: color 0.15s;
}

.resource-group a:hover {
  color: #00b7e5;
}

/* Resource Feature Cards (Resources dropdown) */
.resource-cards-grid {
  display: flex;
  gap: 20px;
  padding: 8px 0;
}

.resource-feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  background: #fafbfc;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.resource-feature-card:hover {
  background: #eff5f6;
  border-color: #b7d9eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.resource-feature-card:hover .resource-feature-icon {
  background: #d9f4fb;
  border-color: #cde5f2;
}

.resource-feature-card:hover .resource-feature-arrow {
  opacity: 1;
  transform: translateX(0);
}

.resource-feature-icon {
  width: 44px;
  height: 44px;
  background: #f0f2f4;
  border: 1px solid #e0e3e7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.resource-feature-text h4,
.resource-feature-text .resource-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 6px;
}

.resource-feature-text p {
  font-size: 12.5px;
  color: #5a6670;
  line-height: 1.5;
  margin: 0;
}

.resource-feature-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

/* Mega Footer */
.mega-footer-bg {
  background: #fafbfc;
  border-top: 1px solid #e8eaed;
}

.mega-footer {
  padding: 14px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.mega-footer-enhanced {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mega-footer-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2b3c;
  border: 1px solid #d0d5dd;
  background: #fff;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: #1a2b3c;
  background: #f4f5f7;
}

.btn-cta-solid {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #001e39;
  background: #7ed321;
  border: 1px solid #7ed321;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-cta-solid:hover {
  background: #ffd012;
  border-color: #ffd012;
}

/* Overlay */
.header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.header-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  background: #f0f3f7;
  border-bottom: none;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 0;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 1;
  max-width: 560px;
  padding-bottom: 32px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #5a6670;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  color: #1a2b3c;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-rotate-word {
  color: #00b7e5;
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: uppercase;
}

.hero-rotate-word.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.hero-anchor {
  font-size: 22px;
  font-weight: 600;
  color: #1a2b3c;
  margin-bottom: 20px;
  letter-spacing: 0.1px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #5a6670;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-actions .btn-cta {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 6px;
}

.hero-cta-qualifier {
  font-size: 14px;
  color: #5a6a7a;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: 0.1px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.trust-review {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-review img {
  height: 44px;
  width: auto;
  display: block;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: #c8ced6;
  flex-shrink: 0;
}

.trust-compliance {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-compliance img {
  height: 42px;
  width: auto;
  display: block;
}

.trust-compliance svg {
  flex-shrink: 0;
}

.hero-video-link {
  font-size: 16px;
  font-weight: 600;
  color: #1a2b3c;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

.hero-video-link:hover {
  color: #00b7e5;
}

.play-icon {
  display: flex;
}

.hero-image {
  flex: 1;
  max-width: 640px;
  align-self: flex-end;
}

.hero-image-placeholder {
  width: 100%;
}

.hero-image-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== HERO PHOTO COMPOSITION ========== */
.hero-composition {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  margin-bottom: 32px;
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(26, 43, 60, 0.04),
    0 18px 40px rgba(26, 43, 60, 0.18),
    0 40px 80px rgba(26, 43, 60, 0.12);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 43, 60, 0) 55%, rgba(26, 43, 60, 0.22) 100%);
  pointer-events: none;
}

.hero-card {
  position: absolute;
  margin: 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(26, 43, 60, 0.04),
    0 2px 4px rgba(26, 43, 60, 0.06),
    0 12px 28px rgba(26, 43, 60, 0.14),
    0 30px 60px rgba(26, 43, 60, 0.12);
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card--driver {
  top: 28px;
  left: -28px;
  width: 44%;
}

.hero-card--tasks {
  bottom: 32px;
  right: -24px;
  width: 38%;
}

.hero-status-chip {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2b3c;
  letter-spacing: 0.2px;
  box-shadow:
    0 1px 2px rgba(26, 43, 60, 0.08),
    0 10px 24px rgba(26, 43, 60, 0.12);
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

@media (max-width: 900px) {
  .hero-card--driver { left: 8px; width: 52%; }
  .hero-card--tasks { right: 8px; width: 46%; }
  .hero-status-chip { top: 16px; right: 16px; font-size: 12px; padding: 8px 12px; }
}

/* Logo Band */
.logo-band {
  background: #f0f3f7;
  padding: 24px 0 32px;
  text-align: center;
  border-top: 2px solid #d5dbe3;
  border-bottom: none;
}

.logo-band-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #5a6670;
  margin-bottom: 28px;
}

.logo-band-track-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-band-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.logo-band-track img {
  max-height: 52px;
  max-width: 160px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.62;
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
}

.logo-band-track img:hover {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}

/* Stacked / square crest logos: allow more vertical room so they don't look tiny next to wide wordmarks */
.logo-band-track img[src*="cityoflittlerock"],
.logo-band-track img[src*="jclub"],
.logo-band-track img[src*="allsaved"] {
  max-height: 72px;
  max-width: 96px;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reality Section */
/* ============================================
   OPERATION CLOCK - horizontal day axis
   ============================================ */

.reality-scroll-track {
  position: relative;
  background: #0f1c28;
}

.reality-sticky-pane,
.reality-sticky-pane * {
  pointer-events: none !important;
}

.reality-sticky-pane {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 40px 48px 32px;
  z-index: 10;
  background: #0f1c28;
}

.reality-sticky-header {
  flex-shrink: 0;
  text-align: center;
  padding-bottom: 20px;
}

.reality-intro-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: #00b7e5;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.reality-intro-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.reality-intro-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
}

/* Damage counter bar (pinned beneath the header) */
.reality-damage-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 48px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 auto;
  border-radius: 999px;
  max-width: 920px;
  width: 100%;
  box-sizing: border-box;
}

.reality-damage-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.reality-damage-value {
  font-size: 26px;
  font-weight: 800;
  color: #00b7e5;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.reality-damage-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
}

.reality-damage-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
}

/* Stage - wraps schedule grid + clock + overlay layer for callouts and bubbles */
.reality-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 0 0;
  min-height: 0;
  box-sizing: border-box;
}

.reality-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

/* Schedule grid - calendar layout, mostly static (the plan) - chaos lives in callouts/bubbles */
.reality-schedule {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.reality-schedule-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  flex-shrink: 0;
}

.reality-schedule-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 183, 229, 0.14);
  color: #00b7e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.reality-schedule-tab-date {
  font-weight: 500;
  color: rgba(0, 183, 229, 0.75);
  letter-spacing: 0.4px;
  text-transform: none;
}

.reality-schedule-meta {
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.4px;
}

.reality-schedule-meta-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.18);
}

.reality-schedule-body {
  position: relative;
  flex: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.reality-schedule-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Time header row */
.schedule-times {
  display: flex;
  align-items: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.schedule-times-label {
  flex: 0 0 110px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.schedule-times-track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.schedule-times-tick {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.35);
  text-align: left;
  letter-spacing: 0.3px;
}

/* Engineer rows */
.schedule-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 16px 12px;
  gap: 4px;
  overflow: hidden;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  flex: 1;
  transition: opacity 0.4s ease;
}

.schedule-row.is-absent {
  opacity: 0.38;
}

.schedule-row-name {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-row-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 183, 229, 0.18);
  color: #4cdbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.schedule-row.is-absent .schedule-row-avatar {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}

.schedule-row-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-row.is-absent .schedule-row-label {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.4);
}

.schedule-row-track {
  flex: 1;
  position: relative;
  height: 44px;
  background: rgba(255, 255, 255, 0.012);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Subtle hour grid lines */
.schedule-row-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 12 - 1px),
    rgba(255, 255, 255, 0.04) calc(100% / 12 - 1px),
    rgba(255, 255, 255, 0.04) calc(100% / 12)
  );
  pointer-events: none;
}

.schedule-tile {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid;
}

.schedule-tile-ref {
  font-size: 8.5px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.4px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-tile-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Base work-type palettes (Simpro-inspired: blue for install, amber for service, green for admin, purple for lunch, grey for travel) */
.schedule-tile--install {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}

.schedule-tile--service {
  background: rgba(0, 183, 229, 0.18);
  border-color: rgba(0, 183, 229, 0.4);
  color: #4cdbff;
}

.schedule-tile--admin {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.28);
  color: #86efac;
}

.schedule-tile--lunch {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

.schedule-tile--travel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.schedule-tile--travel .schedule-tile-ref {
  display: none;
}

.schedule-tile--travel .schedule-tile-label {
  font-size: 9px;
  font-weight: 500;
}

/* Soft focus pulse on the tile relevant to the current beat - subtle eye-guide, fades on beat change */
.schedule-tile.is-focus {
  border-color: rgba(252, 165, 165, 0.85);
  box-shadow: 0 0 0 2px rgba(252, 165, 165, 0.35), 0 0 16px -2px rgba(239, 68, 68, 0.55);
  animation: schedule-focus-pulse 1.6s ease-in-out infinite;
}

@keyframes schedule-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(252, 165, 165, 0.35), 0 0 14px -2px rgba(239, 68, 68, 0.45); }
  50%      { box-shadow: 0 0 0 2px rgba(252, 165, 165, 0.55), 0 0 22px 0 rgba(239, 68, 68, 0.65); }
}

/* Callout - pops UP from the active clock marker, points down at the timeline */
.stage-callout {
  position: absolute;
  background: #1a2a3a;
  border: 1px solid rgba(0, 183, 229, 0.55);
  border-radius: 10px;
  padding: 10px 14px 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  max-width: 280px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 6;
}

.stage-callout.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.stage-callout::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: calc(50% + var(--arrow-shift, 0px));
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1a2a3a;
  border-right: 1px solid rgba(0, 183, 229, 0.55);
  border-bottom: 1px solid rgba(0, 183, 229, 0.55);
}

.stage-callout-time {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: #00b7e5;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 3px;
}

.stage-callout-text {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.stage-callout-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin-top: 4px;
  font-weight: 400;
}

/* Vertical hint line connecting callout to clock marker (optional polish) */
.stage-callout-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0, 183, 229, 0.55), rgba(0, 183, 229, 0.0));
  opacity: 0;
  transition: opacity 0.4s ease, left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}

.stage-callout-line.is-on { opacity: 1; }

/* Message bubble - drifts in from the side, alternating per beat */
.stage-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 13px 11px;
  max-width: 240px;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stage-bubble.from-left  { transform: translateX(-20px); }
.stage-bubble.from-right { transform: translateX(20px); }
.stage-bubble.from-top   { transform: translateY(-12px); }

.stage-bubble.is-on {
  opacity: 1;
  transform: translate(0, 0);
}

.stage-bubble-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.stage-bubble-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 183, 229, 0.22);
  color: #4cdbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.stage-bubble-name {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.stage-bubble-role {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.stage-bubble-text {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

.stage-bubble--alert {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(252, 165, 165, 0.32);
}

.stage-bubble--alert .stage-bubble-avatar {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.stage-bubble--alert .stage-bubble-name {
  color: #fca5a5;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.8px;
}

.stage-bubble--alert .stage-bubble-text {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.stage-bubble--call .stage-bubble-avatar {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

.stage-bubble--email .stage-bubble-avatar {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}

/* Operation clock axis */
.reality-clock {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 0 0;
}

.reality-clock-line {
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.reality-clock-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #00b7e5;
  border-radius: 1px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.reality-clock-markers {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  box-sizing: border-box;
}

.reality-clock-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.reality-clock-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: #0f1c28;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 15px;
}

.reality-clock-marker.is-past .reality-clock-dot {
  background: rgba(0, 183, 229, 0.55);
  border-color: rgba(0, 183, 229, 0.55);
}

.reality-clock-marker.is-active .reality-clock-dot {
  background: #7ed321;
  border-color: #00b7e5;
  transform: scale(1.35);
  box-shadow: 0 0 0 6px rgba(0, 183, 229, 0.18);
}

.reality-clock-time {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.reality-clock-marker.is-past .reality-clock-time {
  color: rgba(255, 255, 255, 0.5);
}

.reality-clock-marker.is-active .reality-clock-time {
  color: #00b7e5;
  font-weight: 700;
}

/* Amplifier line beneath clock */
.reality-amplifier {
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0);
  padding: 14px 48px 0;
  line-height: 1.4;
  transition: color 0.6s ease;
}

.reality-amplifier.visible {
  color: rgba(255, 255, 255, 0.45);
}

/* Mobile: stack cockpit panes vertically, keep clock horizontal */
@media (max-width: 900px) {
  .reality-sticky-pane {
    padding: 28px 20px 24px;
  }

  .reality-intro-title {
    font-size: 26px;
  }

  .reality-intro-sub {
    font-size: 13px;
  }

  .reality-damage-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 6px 0;
    border-radius: 18px;
  }

  .reality-damage-stat {
    flex: 0 0 50%;
    padding: 6px 4px;
  }

  .reality-damage-value {
    font-size: 22px;
  }

  .reality-damage-label {
    font-size: 9px;
    margin-top: 4px;
  }

  .reality-damage-divider {
    display: none;
  }

  .reality-cockpit-body {
    flex-direction: column;
    gap: 10px;
  }

  .reality-cockpit-board,
  .reality-cockpit-comms {
    flex: 1;
  }

  .reality-cockpit-pane-head {
    padding: 8px 12px;
  }

  .cockpit-route {
    padding: 6px 10px;
  }

  .cockpit-route-flags {
    max-width: 50%;
  }

  .reality-clock-time {
    font-size: 9px;
  }

  .reality-amplifier {
    padding: 14px 16px 0;
    font-size: 13px;
  }
}

@keyframes msg-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* EOD note */
.chaos-eod-note {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}

/* Base message */
.chaos-msg {
  max-width: 85%;
}

.chaos-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timestamp */
.chaos-msg-time {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 2px;
}

/* Role tag next to sender name */
.chaos-msg-role {
  font-weight: 400;
  opacity: 0.5;
  font-size: 11px;
}

/* WhatsApp messages */
.chaos-msg--whatsapp {
  align-self: flex-start;
}

.chaos-msg--whatsapp .chaos-msg-bubble {
  background: #1a3a2a;
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
  border: 1px solid rgba(74, 222, 128, 0.1);
}

.chaos-msg--whatsapp .chaos-msg-sender {
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chaos-msg--whatsapp .chaos-msg-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #4ade80;
}

.chaos-msg--whatsapp .chaos-msg-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

/* Internal chat messages */
.chaos-msg--internal {
  align-self: flex-start;
}

.chaos-msg--internal .chaos-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chaos-msg--internal .chaos-msg-sender {
  font-size: 12px;
  font-weight: 700;
  color: #7aa2c4;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chaos-msg--internal .chaos-msg-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(122, 162, 196, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #7aa2c4;
}

.chaos-msg--internal .chaos-msg-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* System alerts */
.chaos-msg--alert {
  max-width: 100%;
  align-self: stretch;
}

.chaos-msg--alert .chaos-msg-banner {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.chaos-msg--alert .chaos-msg-label {
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.chaos-msg--alert .chaos-msg-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.4;
}

.chaos-msg--alert-amber .chaos-msg-banner {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
}

.chaos-msg--alert-amber .chaos-msg-label {
  color: #f59e0b;
}

.chaos-msg--alert-red .chaos-msg-banner {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid #dc2626;
}

.chaos-msg--alert-red .chaos-msg-label {
  color: #ef4444;
}

/* Email messages */
.chaos-msg--email {
  align-self: flex-start;
}

.chaos-msg--email .chaos-msg-bubble {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px 12px 12px 4px;
  padding: 8px 12px;
}

.chaos-msg--email .chaos-msg-sender {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.chaos-msg--email .chaos-msg-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Missed call */
.chaos-msg--call {
  max-width: 100%;
  align-self: center;
}

.chaos-msg--call .chaos-msg-call-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
}

.chaos-msg--call .chaos-msg-call-icon {
  color: #ef4444;
  flex-shrink: 0;
  animation: chaos-pulse 1.5s ease-in-out 3;
}

@keyframes chaos-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.chaos-msg--call .chaos-msg-text {
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
}

/* Inline insight cards - near-miss context */
.chaos-msg--insight {
  max-width: 100%;
  align-self: stretch;
}

.chaos-insight-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 183, 229, 0.08);
  border-left: 3px solid #00b7e5;
  border-radius: 4px 10px 10px 4px;
  padding: 10px 14px;
}

.chaos-insight-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.chaos-insight-text {
  font-size: 13px;
  font-weight: 600;
  color: #00b7e5;
  line-height: 1.5;
}

/* EOD cycle-again note */
.chaos-eod-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .reality-sticky-pane { padding: 24px 20px 0; }
  .reality-card { flex-direction: column; gap: 12px; }
  .reality-card-info { flex: none; }
  .reality-card-msgs { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; }
  .reality-damage-bar { padding: 12px 16px; }
  .reality-damage-stat { padding: 0 16px; }
  .reality-damage-value { font-size: 22px; }
  .chaos-msg { max-width: 95%; }
}

/* What Changes Section */
.changes-section {
  background: #ffffff;
  padding: 80px 0;
}

.changes-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.changes-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.changes-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #00b7e5;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.changes-hero {
  font-size: 48px;
  font-weight: 800;
  color: #1a2b3c;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

/* Rotating word slot - mirrors reality section pill crossfade */
.changes-rotate-slot {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  color: #00b7e5;
  text-align: center;
}

.changes-rotate-word {
  color: #00b7e5;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.changes-rotate-word.active {
  opacity: 1;
}

.changes-rotate-word:not(.active) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.changes-rotate-word.exiting {
  opacity: 0;
}

.changes-supporting {
  font-size: 17px;
  line-height: 1.65;
  color: #5a6670;
}

.changes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.changes-item {
  text-align: center;
  padding: 32px 24px 28px;
  background: #f8fafb;
  border-radius: 14px;
  border: 1px solid #e8ecf0;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.changes-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00b7e5;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.changes-item:hover {
  background: #ffffff;
  border-color: rgba(0, 183, 229, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26, 43, 60, 0.1);
}

.changes-item:hover::before {
  opacity: 1;
}

.changes-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 183, 229, 0.08);
  border-radius: 12px;
}

.changes-icon svg {
  width: 22px;
  height: 22px;
  stroke: #00b7e5;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.changes-metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a2b3c;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.changes-human {
  font-size: 14px;
  color: #7a8a9a;
  line-height: 1.55;
}

.changes-timeframe {
  font-size: 13px;
  color: #9aa8b5;
  font-style: italic;
  text-align: center;
}

@media (max-width: 1024px) {
  .changes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .changes-section {
    padding: 56px 0;
  }
  .changes-hero {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  .changes-supporting {
    font-size: 15px;
  }
  .changes-grid {
    grid-template-columns: 1fr;
  }
}

/* Tool Stack Section */
.toolstack-section {
  background: linear-gradient(180deg, #1a2b3c 0%, #162536 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.toolstack-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.toolstack-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.toolstack-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.toolstack-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #00b7e5;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toolstack-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.toolstack-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

/* Category cards */
.toolstack-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.toolstack-card {
  padding: 28px 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.toolstack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.toolstack-card-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.toolstack-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
}

.toolstack-connector {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  letter-spacing: 0.3px;
}

/* Toolstack responsive */
@media (max-width: 768px) {
  .toolstack-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .toolstack-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .toolstack-cards {
    grid-template-columns: 1fr;
  }

  .toolstack-inner {
    padding: 0 20px;
  }

  .toolstack-title {
    font-size: 24px;
  }
}

/* Platform Section */
.platform {
  background: #fff;
  padding: 80px 0 0;
}

.platform-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.platform-header-text {
  max-width: 700px;
}

.platform-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #00b7e5;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.platform-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a2b3c;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.platform-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6670;
}

/* Platform Tabs */
.platform-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.platform-tab-bar {
  display: flex;
  border: 1px solid #e0e4ea;
  border-radius: 0;
}

.platform-tab {
  flex: 1;
  padding: 20px 16px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #5a6670;
  text-align: center;
  cursor: pointer;
  position: relative;
  border-right: 1px solid #e0e4ea;
  background: #fff;
  transition: color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.platform-tab:last-child {
  border-right: none;
}

.platform-tab.active {
  color: #1a2b3c;
  font-weight: 700;
  background: #fdf3f0;
}

.platform-tab:hover:not(.active) {
  color: #1a2b3c;
  background: #f8f9fb;
}

.tab-progress {
  display: block;
  width: 100%;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
}

.platform-tab.active .tab-progress {
  background: #f0d5ca;
}

.tab-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #7ed321;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

.platform-tab.active .tab-progress-bar {
  animation: tab-fill 6s linear forwards;
}

@keyframes tab-fill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Platform Panels */
.platform-panels {
  padding: 60px 0 80px;
}

.platform-panel {
  display: none;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.platform-panel.active {
  display: flex;
}

.panel-image {
  flex: 1;
  max-width: 560px;
}

.panel-image svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.panel-text {
  flex: 1;
  max-width: 500px;
}

.panel-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #00b7e5;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.panel-text h4 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: #1a2b3c;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.panel-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #5a6670;
  margin-bottom: 28px;
}

.panel-link {
  font-size: 16px;
  font-weight: 700;
  color: #1a2b3c;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.panel-link:hover {
  gap: 14px;
  color: #00b7e5;
}

/* Before & After (The Shift) Section */
.shift-section {
  background: linear-gradient(180deg, #111e2b 0%, #0d1820 100%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.shift-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

.shift-header {
  text-align: center;
  margin-bottom: 64px;
}

.shift-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #00b7e5;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.shift-title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -1px;
}

/* Grid layout for perfect column alignment */
.shift-table {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 128px;
  gap: 0;
}

/* Column headers */
.shift-col-head {
  padding: 0 24px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.shift-col-head.today { color: rgba(255,255,255,0.25); }
.shift-col-head.arrow { }
.shift-col-head.elogii { color: #00b7e5; }
.shift-col-head.impact { color: rgba(255,255,255,0.2); text-align: center; }

/* Row cells - each row is 4 grid cells */
.shift-row-today,
.shift-row-arrow,
.shift-row-elogii,
.shift-row-delta {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Row grouping for animation */
.shift-row-today { background: rgba(255,255,255,0.02); }
.shift-row-arrow {
  background: rgba(255,255,255,0.01);
  align-items: center;
  padding: 20px 0;
}
.shift-row-elogii { background: rgba(0, 183, 229, 0.03); }
.shift-row-delta {
  background: rgba(0, 183, 229, 0.03);
  align-items: center;
  padding: 20px 8px;
}

/* Row animation wrapper */
.shift-row-group {
  display: contents;
  opacity: 0;
}
.shift-row-group.visible {
  opacity: 1;
}
.shift-row-group > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.shift-row-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.shift-row-group.visible .shift-row-arrow { transition-delay: 0.15s; }
.shift-row-group.visible .shift-row-elogii { transition-delay: 0.25s; }
.shift-row-group.visible .shift-row-delta { transition-delay: 0.4s; }

/* Brighten eLogii side once loaded */
.shift-row-group.loaded .shift-row-elogii {
  background: rgba(0, 183, 229, 0.06);
}
.shift-row-group.loaded .shift-row-delta {
  background: rgba(0, 183, 229, 0.06);
}
.shift-row-group.loaded .shift-solution {
  color: rgba(255,255,255,0.85);
}
.shift-row-group.loaded .shift-cat-right {
  color: #ffffff;
}

/* First row rounded top */
.shift-row-group:first-of-type .shift-row-today { border-radius: 10px 0 0 0; border-top: none; }
.shift-row-group:first-of-type .shift-row-arrow { border-top: none; }
.shift-row-group:first-of-type .shift-row-elogii { border-top: none; }
.shift-row-group:first-of-type .shift-row-delta { border-radius: 0 10px 0 0; border-top: none; }
/* Last row rounded bottom */
.shift-row-group:last-of-type .shift-row-today { border-radius: 0 0 0 10px; }
.shift-row-group:last-of-type .shift-row-delta { border-radius: 0 0 10px 0; }

.shift-cat {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}

.shift-cat-right {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3px;
  transition: color 0.5s ease;
}

.shift-pain {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.3);
}

.shift-solution {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  transition: color 0.5s ease;
}

/* Arrow */
.shift-arrow-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 183, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shift-arrow-icon svg {
  width: 13px;
  height: 13px;
  stroke: #00b7e5;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Delta badge - uniform size */
.shift-delta-badge {
  width: 108px;
  height: 56px;
  background: rgba(0, 183, 229, 0.1);
  border: 1px solid rgba(0, 183, 229, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.shift-delta-number {
  font-size: 16px;
  font-weight: 800;
  color: #00b7e5;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.shift-delta-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(0, 183, 229, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* Summary */
.shift-summary {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(0, 183, 229, 0.08) 0%, rgba(0, 183, 229, 0.04) 100%);
  border: 1px solid rgba(0, 183, 229, 0.15);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.shift-summary.visible {
  opacity: 1;
  transform: translateY(0);
}

.shift-summary-left { flex: 1; }

.shift-summary-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.shift-summary-text {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.shift-summary-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 40px;
}

.shift-summary-number {
  font-size: 44px;
  font-weight: 800;
  color: #00b7e5;
  letter-spacing: -2px;
  line-height: 1;
  transition: all 0.4s ease;
}

.shift-summary-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Calculator */
.shift-calculator {
  margin-top: 0;
  margin-bottom: 48px;
  padding: 24px 36px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shift-calc-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shift-calc-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.shift-calc-label strong {
  color: rgba(255,255,255,0.8);
}

.shift-calc-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 183, 229, 0.08);
  border: 1px solid rgba(0, 183, 229, 0.25);
  border-radius: 8px;
  color: #00b7e5;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 36px 10px 16px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300b7e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.shift-calc-select:hover,
.shift-calc-select:focus {
  border-color: rgba(0, 183, 229, 0.5);
}

.shift-calc-select option {
  background: #1a2b3c;
  color: #ffffff;
}

.shift-calc-result {
  text-align: right;
}

.shift-calc-amount {
  font-size: 28px;
  font-weight: 800;
  color: #00b7e5;
  letter-spacing: -1px;
  line-height: 1;
  transition: all 0.3s ease;
}

.shift-calc-note {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .shift-table { grid-template-columns: 1fr; }
  .shift-col-head { display: none; }
  .shift-row-arrow { display: none; }
  .shift-row-today { border-radius: 8px 8px 0 0 !important; }
  .shift-row-elogii { border-radius: 0 !important; }
  .shift-row-delta { border-radius: 0 0 8px 8px !important; margin-bottom: 8px; flex-direction: row; justify-content: center; }
  .shift-title { font-size: 28px; }
  .shift-summary { flex-direction: column; text-align: center; gap: 20px; }
  .shift-summary-right { margin-left: 0; text-align: center; }
  .shift-calculator { flex-direction: column; text-align: center; }
  .shift-calc-left { flex-direction: column; }
  .journey-title { font-size: 24px; }
  .journey-card { flex: 0 0 160px; min-height: 140px; padding: 18px 16px 16px; }
  .journey-track { padding: 8px 24px; }
  .journey-progress { margin: 16px 24px 0; }
  .journey-inner { padding: 0 24px; }
  .journey-track-outer::before,
  .journey-track-outer::after { width: 32px; }
}

/* Journey Section */
.journey-section {
  background: #1a2b3c;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.journey-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.journey-header {
  margin-bottom: 52px;
}

.journey-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 183, 229, 0.6);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.journey-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -1px;
}

.journey-title-dim {
  color: rgba(255,255,255,0.12);
  transition: color 1.2s ease;
}

.journey-title-dim.lit {
  color: #ffffff;
}

/* Track */
.journey-track-outer {
  position: relative;
  margin-bottom: 0;
}

/* Fade edges */
.journey-track-outer::before,
.journey-track-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.journey-track-outer::before {
  left: 0;
  background: linear-gradient(90deg, #1a2b3c, transparent);
}

.journey-track-outer::after {
  right: 0;
  background: linear-gradient(270deg, #1a2b3c, transparent);
}

.journey-track {
  display: flex;
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
  cursor: grab;
  user-select: none;
}

/* Spacers to allow first/last card to center */
.journey-spacer-start {
  flex: 0 0 40px;
  pointer-events: none;
}

.journey-spacer-end {
  flex: 0 0 40px;
  pointer-events: none;
}

.journey-track::-webkit-scrollbar { display: none; }

.journey-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.journey-track:not(.dragging) {
  scroll-behavior: smooth;
}

/* Card */
.journey-card {
  flex: 0 0 184px;
  min-height: 156px;
  padding: 22px 20px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
  background: rgba(255,255,255,0.006);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

/* Top accent line */
.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  border-radius: 1px;
  transition: all 0.7s ease;
  background: transparent;
}

.journey-card-step {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: color 0.7s ease;
  color: rgba(255,255,255,0.04);
}

.journey-card-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.1px;
  transition: color 0.7s ease;
}

.journey-card-text {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.03);
  transition: color 0.7s ease;
  flex: 1;
}

.journey-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.03);
  transition: color 0.7s ease;
}

.journey-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transition: background 0.7s ease;
  background: rgba(255,255,255,0.03);
}

/* Divider */
.journey-divider {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.journey-divider-pip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(72, 187, 120, 0.06);
  border: 1px solid rgba(72, 187, 120, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.7s ease;
}

.journey-divider-pip svg {
  width: 10px;
  height: 10px;
  stroke: rgba(72, 187, 120, 0.4);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.7s ease;
}

.journey-divider.lit .journey-divider-pip {
  background: rgba(72, 187, 120, 0.12);
  border-color: rgba(72, 187, 120, 0.35);
  box-shadow: 0 0 20px rgba(72, 187, 120, 0.1);
}

.journey-divider.lit .journey-divider-pip svg {
  stroke: #48bb78;
}

/* === LIT PRE === */
.journey-card.lit {
  border-color: rgba(0, 183, 229, 0.06);
  background: rgba(0, 183, 229, 0.012);
}
.journey-card.lit::before { background: rgba(0, 183, 229, 0.15); }
.journey-card.lit .journey-card-step { color: rgba(0, 183, 229, 0.3); }
.journey-card.lit .journey-card-title { color: rgba(255,255,255,0.4); }
.journey-card.lit .journey-card-text { color: rgba(255,255,255,0.18); }
.journey-card.lit .journey-card-meta { color: rgba(0, 183, 229, 0.25); }
.journey-card.lit .journey-meta-dot { background: rgba(0, 183, 229, 0.25); }

/* === ACTIVE PRE === */
.journey-card.active {
  border-color: rgba(0, 183, 229, 0.18);
  background: rgba(0, 183, 229, 0.035);
  box-shadow:
    0 0 0 1px rgba(0, 183, 229, 0.04),
    0 8px 32px rgba(0, 183, 229, 0.06),
    0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.journey-card.active::before { background: #7ed321; height: 2px; }
.journey-card.active .journey-card-step { color: #00b7e5; }
.journey-card.active .journey-card-title { color: #ffffff; }
.journey-card.active .journey-card-text { color: rgba(255,255,255,0.5); }
.journey-card.active .journey-card-meta { color: #00b7e5; }
.journey-card.active .journey-meta-dot { background: #7ed321; }

/* === LIT POST === */
.journey-card.lit-post {
  border-color: rgba(72, 187, 120, 0.06);
  background: rgba(72, 187, 120, 0.01);
}
.journey-card.lit-post::before { background: rgba(72, 187, 120, 0.15); }
.journey-card.lit-post .journey-card-step { color: rgba(72, 187, 120, 0.3); }
.journey-card.lit-post .journey-card-title { color: rgba(255,255,255,0.4); }
.journey-card.lit-post .journey-card-text { color: rgba(255,255,255,0.18); }
.journey-card.lit-post .journey-card-meta { color: rgba(72, 187, 120, 0.25); }
.journey-card.lit-post .journey-meta-dot { background: rgba(72, 187, 120, 0.25); }

/* === ACTIVE POST === */
.journey-card.active-post {
  border-color: rgba(72, 187, 120, 0.18);
  background: rgba(72, 187, 120, 0.03);
  box-shadow:
    0 0 0 1px rgba(72, 187, 120, 0.04),
    0 8px 32px rgba(72, 187, 120, 0.05),
    0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.journey-card.active-post::before { background: #48bb78; height: 2px; }
.journey-card.active-post .journey-card-step { color: #48bb78; }
.journey-card.active-post .journey-card-title { color: #ffffff; }
.journey-card.active-post .journey-card-text { color: rgba(255,255,255,0.5); }
.journey-card.active-post .journey-card-meta { color: #48bb78; }
.journey-card.active-post .journey-meta-dot { background: #48bb78; }

/* Progress */
.journey-progress {
  margin: 20px 48px 0;
  height: 2px;
  background: rgba(255,255,255,0.025);
  border-radius: 1px;
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 1px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.7s ease;
  background: #7ed321;
}

.journey-progress-fill.green {
  background: #7ed321;
}

/* CTA */
.journey-cta {
  text-align: center;
  margin-top: 44px;
}

.journey-cta-line {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}

.journey-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7ed321;
  color: #001e39;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-cta-btn:hover {
  background: #d4632e;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 183, 229, 0.3);
}

.journey-cta-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.journey-cta-btn:hover svg { transform: translateX(3px); }

/* Stats Section */
.stats {
  background: #152232;
  padding: 80px 0 88px;
  text-align: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.stats-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 60px;
  font-style: italic;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stat-number {
  font-size: 72px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #a0b0c0;
}

/* Industries We Serve Section */
.industries {
  background: #f4f5f7;
  padding: 80px 0 88px;
}

.industries-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.industries-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.industries-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #a0b0c0;
  margin-bottom: 16px;
}

.industries-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a2b3c;
}

.industries-arrows {
  display: flex;
  gap: 8px;
  padding-top: 30px;
}

.industries-arrow {
  width: 40px;
  height: 40px;
  border: 1.5px solid #c0c8d0;
  border-radius: 4px;
  background: #fff;
  color: #5a6670;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.industries-arrow:hover {
  border-color: #1a2b3c;
  color: #1a2b3c;
}

.industries-carousel {
  overflow: hidden;
}

.industries-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.industry-slide {
  min-width: calc((100% - 48px) / 3);
  flex-shrink: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.industry-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.industry-slide-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.industry-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.industry-slide-icon {
  position: absolute;
  bottom: 64px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.industry-slide-icon svg {
  width: 22px;
  height: 22px;
}

.industry-slide-name {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 120px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.industry-slide-link {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.industry-slide-link:hover {
  color: #fff;
}

.industry-slide-link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .industries-title {
    font-size: 32px;
  }

  .industry-slide {
    min-width: calc((100% - 24px) / 2);
  }

  .industry-slide-image {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .industries {
    padding: 56px 0 64px;
  }

  .industries-inner {
    padding: 0 20px;
  }

  .industries-title {
    font-size: 26px;
  }

  .industries-header {
    flex-direction: column;
    gap: 16px;
  }

  .industries-arrows {
    padding-top: 0;
  }

  .industry-slide {
    min-width: 100%;
  }
}

/* Resources / Featured Blogs Section */
.resources {
  background: #f0f2f5;
  padding: 80px 0 88px;
}

.resources-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.resources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.resources-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: #1a2b3c;
}

.btn-outline-dark {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid #1a2b3c;
  border-radius: 4px;
  color: #1a2b3c;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline-dark:hover {
  background: #1a2b3c;
  color: #fff;
}

.resources-divider {
  height: 1px;
  background: #d0d8e0;
  margin-bottom: 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 0;
}

.resources-featured {
  padding: 48px 48px 48px 0;
  border-right: 1px solid #d0d8e0;
}

.resources-featured-image {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}

.resources-featured-image svg {
  width: 100%;
  height: auto;
  display: block;
}

.resources-featured-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: #1a2b3c;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.resources-featured-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6670;
  margin-bottom: 24px;
}

.resources-link {
  font-size: 15px;
  font-weight: 700;
  color: #00b7e5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.resources-link:hover {
  gap: 14px;
}

.resources-sidebar {
  display: flex;
  flex-direction: column;
}

.resources-card {
  padding: 40px 0 40px 48px;
  border-bottom: 1px solid #d0d8e0;
}

.resources-card:last-child {
  border-bottom: none;
}

.resources-card-rule {
  display: none;
}

.resources-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: #1a2b3c;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.resources-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6670;
  margin-bottom: 24px;
}

/* Request A Demo Section */
.demo {
  background: #1a2b3c;
  padding: 80px 0;
}

.demo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.demo-left {
  color: #fff;
}

.demo-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #00b7e5;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.demo-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.demo-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 32px;
}

.demo-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.demo-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.demo-bullet svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.demo-bullet span {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.demo-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-avatars {
  display: flex;
}

.demo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #1a2b3c;
  margin-right: -8px;
}

.demo-social-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.demo-social-text strong {
  color: rgba(255, 255, 255, 0.8);
}

.demo-right {
  display: flex;
  flex-direction: column;
}

.demo-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.demo-form-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 6px;
}

.demo-form-sub {
  font-size: 14px;
  color: #5a6670;
  margin-bottom: 28px;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-form-row {
  display: flex;
  gap: 12px;
}

.demo-input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1a2b3c;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-input:focus {
  border-color: #00b7e5;
  box-shadow: 0 0 0 3px rgba(33, 232, 235, 0.1);
}

.demo-input-full {
  width: 100%;
}

.demo-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #5a6670;
  background: #fff;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235a6670' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-select:focus {
  border-color: #00b7e5;
  box-shadow: 0 0 0 3px rgba(33, 232, 235, 0.1);
}

.demo-submit {
  width: 100%;
  padding: 16px 36px;
  background: #7ed321;
  color: #001e39;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.demo-submit:hover {
  background: #ffd012;
  transform: translateY(-1px);
}

.demo-disclaimer {
  font-size: 12.5px;
  color: #a0b0c0;
  text-align: center;
  margin-top: 16px;
}

/* Demo form success state — swap form for confirmation message */
.demo-form-card.success .demo-form,
.demo-form-card.success .demo-form-title,
.demo-form-card.success .demo-form-sub,
.demo-form-card.success .demo-disclaimer { display: none; }

.demo-success {
  display: none;
  text-align: center;
  padding: 16px 6px 6px;
}
.demo-form-card.success .demo-success { display: block; }
.demo-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #3e7f3a;
  display: grid; place-items: center;
}
.demo-success h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 8px;
}
.demo-success p {
  font-size: 14px;
  color: #5a6670;
  line-height: 1.55;
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 64px;
  overflow: hidden;
  background: #fff;
}

.testimonials-section::before {
  display: none;
}

.testimonials-section::after {
  display: none;
}

.testimonials-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.testimonials-title {
  font-size: 44px;
  font-weight: 800;
  color: #1a2b3c;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.testimonials-title span {
  color: #00b7e5;
}

.stories-stage {
  position: relative;
  min-height: 440px;
  isolation: isolate;
}

.story {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  position: relative;
  z-index: 2;
}

.story.exiting {
  opacity: 0;
  transform: translateY(-6px);
  visibility: visible;
  position: relative;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.25s ease-out,
              transform 0.25s ease-out;
}

.story-company-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.story-company-name {
  font-size: 13px;
  font-weight: 700;
  color: #00b7e5;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.story-company-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 183, 229, 0.6), transparent);
}

.story-context {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.story-quote-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.story-quote-mark {
  position: absolute;
  top: -18px;
  left: -8px;
  font-size: 72px;
  font-weight: 800;
  color: rgba(0, 183, 229, 0.15);
  line-height: 1;
  user-select: none;
  font-family: Georgia, 'Times New Roman', serif;
}

.story-quote {
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: #2a3f52;
  line-height: 1.55;
  letter-spacing: -0.3px;
  max-width: 880px;
  position: relative;
}

.story-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.story-attr-dash {
  width: 24px;
  height: 2px;
  background: #7ed321;
  border-radius: 1px;
}

.story-person-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a2b3c;
}

.story-person-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  margin-left: 4px;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.story-stat {
  padding: 28px 32px;
  position: relative;
  text-align: center;
}

.story-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.story-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #00b7e5;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.story-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #00b7e5;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
  letter-spacing: 0.2px;
}

.story-link:hover {
  gap: 12px;
  color: #d4693b;
}

.story-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.story-link:hover svg {
  transform: translateX(2px);
}

.stories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.stories-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.stories-nav-btn:hover {
  border-color: rgba(0, 183, 229, 0.5);
  background: rgba(0, 183, 229, 0.08);
  color: #00b7e5;
}

.stories-nav-btn svg {
  width: 18px;
  height: 18px;
}

.stories-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stories-dot {
  position: relative;
  width: 40px;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}

.stories-dot:hover {
  background: rgba(0, 0, 0, 0.15);
}

.stories-dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #7ed321;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

.stories-dot.active .stories-dot-fill {
  transform: scaleX(0);
}

.stories-dot.completed .stories-dot-fill {
  transform: scaleX(1);
}

.testimonials-cta {
  text-align: center;
  margin-top: 44px;
}

.testimonials-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2b3c;
  background: transparent;
  border: 1px solid rgba(0, 183, 229, 0.5);
  border-radius: 60px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  font-family: inherit;
}

.testimonials-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 183, 229, 0.15), rgba(0, 183, 229, 0.05));
  border-radius: 60px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonials-cta-btn:hover {
  border-color: rgba(0, 183, 229, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 183, 229, 0.15);
}

.testimonials-cta-btn:hover::before {
  opacity: 1;
}

.testimonials-cta-btn span {
  position: relative;
  z-index: 1;
}

.testimonials-cta-btn svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.testimonials-cta-btn:hover svg {
  transform: translateX(3px);
}

.story-video-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 9;
  background: #f0f3f7;
}

.story-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .testimonials-section {
    min-height: auto;
    padding: 72px 0 60px;
  }

  .testimonials-inner {
    padding: 0 24px;
  }

  .testimonials-title {
    font-size: 32px;
  }

  .testimonials-header {
    margin-bottom: 48px;
  }

  .story-quote {
    font-size: 22px;
  }

  .story-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-stat:not(:last-child)::after {
    right: 20%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 60%;
  }

  .story-stat {
    padding: 20px 24px;
  }

  .story-stat-value {
    font-size: 28px;
  }

  .stories-stage {
    min-height: auto;
  }

  .stories-nav {
    gap: 20px;
  }

  .stories-dot {
    width: 28px;
  }
}

@media (max-width: 600px) {
  .testimonials-section {
    padding: 56px 0 48px;
  }

  .testimonials-inner {
    padding: 0 20px;
  }

  .testimonials-title {
    font-size: 26px;
    letter-spacing: -1px;
  }

  .story-quote {
    font-size: 19px;
    line-height: 1.5;
  }

  .story-quote-mark {
    font-size: 48px;
    top: -12px;
    left: -4px;
  }

  .story-attribution {
    flex-wrap: wrap;
  }

  .story-person-title {
    margin-left: 0;
  }

  .story-stat-value {
    font-size: 24px;
  }

  .stories-nav-btn {
    width: 40px;
    height: 40px;
  }

  .testimonials-cta-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* Page Content */
.page-content {
  min-height: 100vh;
  background: #f8f9fb;
}

/* Footer */
.footer {
  background: #1a2b3c;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: block;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links-sublabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #5a7088;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: #8a9bab;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #8a9bab;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #8a9bab;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid #2a3f52;
}

.footer-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bar p {
  font-size: 13px;
  color: #8a9bab;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-legal a {
  color: #8a9bab;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal span {
  color: #3a5568;
}

/* ── Use-case notification bar ── */
.use-case-bar {
  background: #1a2028;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.use-case-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.use-case-bar-text {
  font-size: 14px;
  color: #a8b2bd;
  margin: 0;
  line-height: 1.4;
}

.use-case-bar-text strong {
  color: #fff;
}

.use-case-bar-link {
  color: #e09060;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.use-case-bar-link:hover {
  color: #f0a878;
  text-decoration: underline;
}

.use-case-bar-close {
  background: none;
  border: none;
  color: #5a6670;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

.use-case-bar-close:hover {
  color: #fff;
}


/* ============================================
   Homepage hero & platform image composites (v184)
   ============================================ */

.hero-composite,
.panel-composite {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.hero-composite { aspect-ratio: 6 / 5; }
.panel-composite { aspect-ratio: 620 / 480; }

.hero-composite .comp-photo,
.panel-composite .comp-photo {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 22px 46px -22px rgba(17, 43, 75, 0.32),
    0 8px 18px -10px rgba(17, 43, 75, 0.16);
  transform: translateZ(0);
}

.panel-composite .comp-photo { border-radius: 14px; }

.hero-composite .comp-photo img,
.panel-composite .comp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-composite .comp-photo::after,
.panel-composite .comp-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 28, 46, 0) 55%, rgba(14, 28, 46, 0.22) 100%),
    linear-gradient(90deg, rgba(43, 159, 217, 0.04), rgba(42, 100, 150, 0) 45%);
  pointer-events: none;
}

.hero-composite .comp-glow,
.panel-composite .comp-glow {
  position: absolute;
  z-index: -1;
  inset: -8% -6%;
  background:
    radial-gradient(58% 52% at 72% 28%, rgba(43, 159, 217, 0.20), transparent 70%),
    radial-gradient(48% 42% at 18% 85%, rgba(42, 100, 150, 0.14), transparent 70%);
  filter: blur(38px);
  pointer-events: none;
}

.hero-composite .comp-float,
.panel-composite .comp-float {
  position: absolute;
  background: #fdfcfa;
  border-radius: 14px;
  padding: 9px;
  box-shadow:
    0 18px 36px -18px rgba(17, 43, 75, 0.26),
    0 6px 14px -8px rgba(17, 43, 75, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.panel-composite .comp-float {
  border-radius: 12px;
  padding: 8px;
}

.hero-composite .comp-float img,
.panel-composite .comp-float img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Hero floats — face at ~60% x 32% y, avoid centre-right upper */
.hero-composite .comp-float-primary {
  bottom: -8%;
  left: 10%;
  width: 58%;
  z-index: 3;
}
.hero-composite .comp-float-secondary {
  top: -4%;
  right: 4%;
  width: 40%;
  z-index: 2;
}

/* SMS primary float: tighter card, ~25% smaller than task-card default, lifted so full message is visible */
.hero-composite .comp-float-sms {
  width: 44%;
  padding: 7px;
  bottom: 4%;
}
.hero-composite .comp-float-sms img {
  border-radius: 8px;
}

/* Hero live status badge */
.hero-composite .comp-live {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 12px;
  background: rgba(20, 32, 48, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 4;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5);
}
.hero-composite .comp-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a9a5c;
  box-shadow: 0 0 0 0 rgba(58, 154, 92, 0.55);
  animation: compPulseHome 2s ease-out infinite;
}
@keyframes compPulseHome {
  0%   { box-shadow: 0 0 0 0 rgba(58, 154, 92, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(58, 154, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 154, 92, 0); }
}

/* Planning composite — face at ~42% x 28% y, empty right & lower-right */
.panel-composite.panel-planning .comp-float-primary {
  bottom: -4%;
  left: 2%;
  width: 32%;
  z-index: 3;
}
.panel-composite.panel-planning .comp-float-secondary {
  bottom: -14%;
  right: -4%;
  width: 56%;
  z-index: 2;
}

/* Field composite — face at ~47% x 18% y, lower 60% of frame empty */
.panel-composite.panel-field .comp-float-primary {
  bottom: -4%;
  right: 3%;
  width: 32%;
  z-index: 3;
}
.panel-composite.panel-field .comp-float-secondary {
  bottom: -14%;
  left: 3%;
  width: 44%;
  z-index: 2;
}

/* Comms composite — two faces upper, lower half neutral */
.panel-composite.panel-comms .comp-float-primary {
  bottom: -4%;
  left: 3%;
  width: 36%;
  z-index: 3;
}
.panel-composite.panel-comms .comp-float-secondary {
  bottom: -16%;
  right: 2%;
  width: 46%;
  z-index: 2;
}

/* Analytics composite — no face (cropped), cards float top corners */
.panel-composite.panel-analytics .comp-float-primary {
  top: 4%;
  right: 3%;
  width: 32%;
  z-index: 3;
}
.panel-composite.panel-analytics .comp-float-secondary {
  bottom: -10%;
  left: 3%;
  width: 46%;
  z-index: 2;
}

/* Integrations composite — no photo. Two product UIs sit on a clean surface:
   HTTP request form (no-code workflow builder) on the left, cURL request/
   response (REST API) on the right. */
.panel-composite.panel-integrations .comp-surface {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 78% 22%, rgba(43, 159, 217, 0.12), transparent 65%),
    radial-gradient(70% 60% at 18% 92%, rgba(42, 100, 150, 0.08), transparent 65%),
    linear-gradient(180deg, #f6f9fc 0%, #e9eff5 100%);
  box-shadow:
    0 22px 46px -22px rgba(17, 43, 75, 0.32),
    0 8px 18px -10px rgba(17, 43, 75, 0.16);
}
.panel-composite.panel-integrations .comp-float-secondary {
  top: 50%;
  left: 5%;
  width: 54%;
  transform: translateY(-50%);
  z-index: 2;
}
.panel-composite.panel-integrations .comp-float-primary {
  top: 50%;
  right: 5%;
  width: 28%;
  transform: translateY(-50%);
  z-index: 3;
}

/* Kill legacy .panel-image box constraints so composite can own layout */
.panel-image .panel-composite {
  max-width: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-composite { aspect-ratio: 1 / 1; }
  .hero-composite .comp-float-primary { width: 60%; }
  .hero-composite .comp-float-sms { width: 46%; }
  .hero-composite .comp-float-secondary { width: 44%; }
}

@media (max-width: 860px) {
  .panel-composite .comp-float { padding: 6px; border-radius: 10px; }
  .panel-composite.panel-planning .comp-float-secondary,
  .panel-composite.panel-field .comp-float-secondary,
  .panel-composite.panel-comms .comp-float-secondary,
  .panel-composite.panel-analytics .comp-float-secondary { bottom: -4%; }
  .hero-composite .comp-live { font-size: 10px; padding: 5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-composite .comp-live::before { animation: none; }
}

/* ============================================================
   === MOBILE: SITE-WIDE FOUNDATIONS ===
   Phase 1 — drawer + chrome. Loaded by every page that links
   styles.css (i.e. all but the Distribution homepage, which has
   its own forked stack and is mirrored separately).
   ============================================================ */

/* --- Hamburger button: hidden by default, visible at ≤1024 --- */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  flex-shrink: 0;
  color: #1a2b3c;
  z-index: 1001;
}
.mobile-nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.mobile-nav-toggle-bars > span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.mobile-nav-toggle-bars > span:nth-child(1) { top: 0; }
.mobile-nav-toggle-bars > span:nth-child(2) { top: 7px; }
.mobile-nav-toggle-bars > span:nth-child(3) { top: 14px; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bars > span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bars > span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bars > span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* --- Backdrop: shown when [hidden] is removed by JS --- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
  z-index: 999;
}
.mobile-nav-backdrop[hidden] { display: none; }
body.drawer-open .mobile-nav-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1024px) {
  /* Site-wide overflow safety net (clip preserves position:sticky) */
  html, body { overflow-x: clip; }

  /* Show hamburger; hide desktop CTA in header (drawer hosts CTAs) */
  .mobile-nav-toggle { display: inline-flex; }
  .header-inner > .btn-cta { display: none; }
  .header-inner > .header-cta { display: none; }   /* about/careers wrapper */

  /* Restore the drawer — 135 pages have leftover inline
     .main-nav { display: none } from pre-V2 (when mobile had no nav).
     The drawer uses .main-nav as its fixed-position panel; force it
     back to flex with higher specificity than the inline rule. */
  body nav.main-nav#mobileDrawer,
  body .main-nav#mobileDrawer {
    display: flex !important;
  }

  /* Compress header chrome */
  .header-inner { padding: 12px 16px; gap: 8px; }
  .logo-and-switcher { gap: 12px; }
  .logo img { height: 24px; width: auto; }
  .top-bar { padding: 0 16px; font-size: 13px; }

  /* --- Drawer: .main-nav becomes off-canvas right panel --- */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    max-width: 100%;
    background: #fff;
    box-shadow: -16px 0 36px rgba(10, 20, 35, .18);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 88px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.drawer-open .main-nav { transform: translateX(0); }

  /* Drawer items */
  .main-nav .nav-item {
    width: 100%;
    height: auto;       /* desktop sets height:100% which fills the drawer */
    display: block;
    position: static;
    align-items: stretch;
  }
  .main-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;       /* desktop sets 100% which fills the drawer */
    padding: 14px 4px;
    font-size: 17px;
    font-weight: 600;
    color: #1a2b3c;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(10, 20, 35, .08);
    text-align: left;
    cursor: pointer;
    line-height: 1.3;
    text-decoration: none;
  }
  .main-nav .nav-link svg {
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .main-nav .has-dropdown.is-open > .nav-link svg { transform: rotate(180deg); }

  /* --- Mega menu becomes accordion content --- */
  /* On touch, tapping the nav-link can fire `mouseenter`, which the
     existing desktop hover handler uses to add `.active` to the
     nav-item. The desktop rule `.nav-item.active .mega-menu { display:
     block }` then keeps the mega-menu visible even after our click
     handler toggles `.is-open` off. Force visibility on mobile to be
     driven solely by `.is-open`. */
  .main-nav .has-dropdown:not(.is-open) > .mega-menu,
  .main-nav .nav-item.active:not(.is-open) > .mega-menu {
    display: none !important;
  }
  .main-nav .mega-menu {
    position: static;
    display: none;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 4px 0 12px 8px;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 0;
    top: auto;
    left: auto;
  }
  .main-nav .has-dropdown.is-open > .mega-menu { display: block; }
  .main-nav .mega-menu-content {
    display: block;
    padding: 0;
    grid-template-columns: none;
    gap: 0;
  }
  .main-nav .mega-col-sidebar,
  .main-nav .mega-footer-bg,
  .main-nav .integrations-showcase,
  .main-nav .fsm-coming-soon,
  .main-nav .product-hero,
  .main-nav .industry-icon,
  .main-nav .resource-feature-icon,
  .main-nav .resource-feature-arrow,
  .main-nav .mega-explore-btn { display: none; }
  .main-nav .mega-col-main { padding: 0; }
  .main-nav .product-panel { display: none; }
  .main-nav .product-panel.active,
  .main-nav .product-panel:first-of-type { display: block; }   /* show first by default at mobile */
  .main-nav .product-features,
  .main-nav .industry-columns,
  .main-nav .resource-cards-grid {
    display: block;
    padding: 0;
    grid-template-columns: none;
    gap: 0;
  }
  .main-nav .feature-group,
  .main-nav .industry-column {
    margin: 4px 0 12px;
  }
  .main-nav .feature-group h4,
  .main-nav .feature-group .feature-group-title,
  .main-nav .industry-column-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6f7a85;
    margin: 8px 0 4px;
    font-weight: 600;
  }
  .main-nav .feature-group a,
  .main-nav .industry-card,
  .main-nav .resource-feature-card {
    display: block;
    padding: 10px 4px;
    font-size: 15px;
    color: #1a2b3c;
    text-decoration: none;
    border: 0;
    background: transparent;
    line-height: 1.4;
  }
  .main-nav .feature-group a svg,
  .main-nav .industry-card svg,
  .main-nav .resource-feature-card svg { display: none; }
  .main-nav .industry-card span { display: inline; }
  .main-nav .resource-feature-text h4,
  .main-nav .resource-feature-text .resource-feature-title { margin: 0; font-size: 15px; font-weight: 500; }
  .main-nav .resource-feature-text p { display: none; }

  /* Tap targets */
  .btn,
  .btn-cta,
  .btn-cta-solid,
  .btn-dark,
  .btn-ghost,
  .btn-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Inputs: 16px to prevent iOS auto-zoom on focus */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* Footer: stack columns. Match the 16 px section rhythm — content
     should sit at the same x as the rest of the page. */
  .footer-inner { padding: 48px 16px !important; }
  .footer-bar-inner { padding: 0 16px !important; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .top-bar { font-size: 12px; padding: 0 12px; }
  .header-inner { padding: 10px 14px; gap: 6px; }
  .header .nav-use-case-toggle { display: none; }   /* drawer hosts use-case at this width */
  .footer-columns { grid-template-columns: 1fr; }

  /* Use-case notification bar — tighter padding + room for 3 lines on phone */
  .use-case-bar { max-height: 120px; }
  .use-case-bar-inner { padding: 8px 12px; gap: 10px; }
  .use-case-bar-text { font-size: 13px; line-height: 1.35; }
  .use-case-bar-close { padding: 0 2px; font-size: 18px; }
}

@media (max-width: 380px) {
  .main-nav { width: 92vw; padding: 80px 16px 24px; }
  .logo img { height: 22px; }
}

/* ============================================================
   === MOBILE: PROD-SHOWCASE STACKING ===
   Industry pages and a few product pages use a 2-col .prod-showcase
   layout (text + visual side-by-side). The .reversed variant has
   higher specificity (.prod-showcase.reversed .prod-showcase-inner)
   that beats the per-page mobile rule, leaving each tile crammed
   into ~185 / ~103 columns at phone widths. Override here so all
   41 pages stack vertically at <=640.
   ============================================================ */

@media (max-width: 1024px) {
  .prod-showcase .prod-showcase-inner,
  .prod-showcase.reversed .prod-showcase-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .prod-showcase.reversed .prod-showcase-text { order: 1 !important; }
  .prod-showcase.reversed .prod-showcase-visual { order: 2 !important; }
  .prod-showcase-text,
  .prod-showcase-visual,
  .prod-showcase-text > *,
  .prod-showcase-visual > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  .prod-showcase { padding: 56px 0 !important; }
  .prod-showcase-title { font-size: 26px !important; line-height: 1.2 !important; }
  .prod-showcase-desc { font-size: 15px !important; }
}

/* ============================================================
   === MOBILE: CONSISTENT SECTION RHYTHM ===
   All page content should land at exactly 16 px from the viewport
   edge. Sections that apply outer 16 px get inner 0; sections with
   no outer padding get inner 16. We split into two cohorts to keep
   content aligned across families.
   ============================================================ */

@media (max-width: 1024px) {
  /* Cohort A: section wrapper provides the 16 px outer padding (Phase 2A
     standardized this for homepage sections). Zero out inner.
     `.footer-inner` is NOT in this list — the .footer section itself
     has 0 padding, so .footer-inner provides the 16. */
  .hero-inner,
  .logo-band-inner,
  .changes-inner,
  .toolstack-inner,
  .platform-inner,
  .platform-header,
  .shift-inner,
  .journey-inner,
  .testimonials-inner,
  .industries-inner,
  .demo-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* Cohort B: any *-inner wrapper that lives inside a section without
     outer horizontal padding. Generalized so per-page classes like
     `.bk-logos-inner`, `.cs-grid-inner`, `.hvac-stack-inner` etc.
     are caught without enumerating each one. */
  [class$="-inner"],
  [class*="-inner "] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
  /* Re-zero Cohort A inners (they live inside sections that pad 16
     at the section level — keep inner at 0 to avoid double-padding). */
  .hero-inner,
  .logo-band-inner,
  .changes-inner,
  .toolstack-inner,
  .platform-inner,
  .platform-header,
  .shift-inner,
  .journey-inner,
  .testimonials-inner,
  .industries-inner,
  .demo-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Sections that wrap inline-style cohort B inners — make sure outer
     section is 0 horizontal padding so we don't double-up to 32. */
  section[style*="padding:80px"],
  section[style*="padding: 80px"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* The inline div containers inside the 80px sections (already
     overridden to 20 px by the earlier inline-style rule) — bump to 16
     for consistency with the rest of the page. */
  div[style*="padding:0 40px"],
  div[style*="padding: 0 40px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ============================================================
   === MOBILE: HOMEPAGE (Phase 2A) ===
   index.html only — section-by-section polish.
   ============================================================ */

@media (max-width: 1024px) {
  /* Generic safety: any section that uses an inner container should fit */
  .hero,
  .logo-band,
  .changes-section,
  .toolstack-section,
  .platform,
  .platform-section,
  .shift-section,
  .journey-section,
  .testimonials-section,
  .industries,
  .demo {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* === Hero === */
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 28px 0 32px;
  }
  .hero-text {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  .hero-image {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .hero-composite {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    overflow: hidden;     /* clip .comp-glow which has -27px left/right */
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  /* Section padding tightens */
  .hero,
  .logo-band,
  .changes-section,
  .toolstack-section,
  .platform,
  .platform-section,
  .shift-section,
  .journey-section,
  .testimonials-section,
  .industries,
  .demo {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* === Hero typography ladder === */
  .hero-title {
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .hero-anchor { font-size: 18px; line-height: 1.35; }
  .hero-desc { font-size: 16px; line-height: 1.5; }
  .hero-cta-qualifier { font-size: 14px; }
  .hero-rotate-word { display: inline-block; }

  /* === CTAs on mobile: same size everywhere, pairs stay side-by-side ===
     Every CTA-pair container (hero, feature, product, industry, etc.)
     is a flex-row at <=640. Children share space via flex: 1 so two
     CTAs land at equal width. When a container holds a single CTA,
     :only-child caps it at 320 px and centers. All CTAs share the
     same min-height, padding, font-size, and border-radius proportion. */
  .hero-actions,
  .hero-ctas,
  .prod-hero-ctas,
  .prod-cta-buttons,
  .feat-cta-buttons,
  .cs-cta-buttons,
  .ind-cta-buttons,
  .about-cta-buttons,
  .so-hero-ctas {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  /* All direct CTA children share the same size + treatment. Targets
     <a> and <button> inside the pair containers, plus the platform
     header CTA which lives next to a heading sibling. */
  .hero-actions > a,
  .hero-actions > button,
  .hero-ctas > a,
  .hero-ctas > button,
  .prod-hero-ctas > a,
  .prod-hero-ctas > button,
  .prod-cta-buttons > a,
  .prod-cta-buttons > button,
  .feat-cta-buttons > a,
  .feat-cta-buttons > button,
  .cs-cta-buttons > a,
  .cs-cta-buttons > button,
  .ind-cta-buttons > a,
  .ind-cta-buttons > button,
  .about-cta-buttons > a,
  .about-cta-buttons > button,
  .so-hero-ctas > a,
  .so-hero-ctas > button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  /* When a container holds a single CTA — cap it and center. */
  .hero-actions > :only-child,
  .hero-ctas > :only-child,
  .prod-hero-ctas > :only-child,
  .prod-cta-buttons > :only-child,
  .feat-cta-buttons > :only-child,
  .cs-cta-buttons > :only-child,
  .ind-cta-buttons > :only-child,
  .about-cta-buttons > :only-child,
  .so-hero-ctas > :only-child {
    flex: 0 1 320px !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Standalone primary CTAs that don't live in a pair container —
     keep them centered, max-width 320, same height as paired ones. */
  .platform-header .btn,
  .platform-header .btn-cta,
  .journey-cta-btn,
  .demo-submit,
  .changes-cta-btn,
  .shift-cta-btn {
    width: 100% !important;
    max-width: 320px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Hero "See How It Works" was a text-link — restyle as a proper
     equal-share button so it pairs cleanly with Get A Demo. */
  .hero-actions .hero-video-link {
    border: 1px solid #1a2b3c !important;
    background: transparent !important;
    color: #1a2b3c !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    gap: 8px;
  }

  /* Trust bar on phone: show only the high-recognition 4 badges
     (2 primary review badges + 2 compliance), hide the 3 secondary
     award shields that read as visual noise at this size. Use a
     subtle vertical divider between reviews and compliance to make
     the grouping legible. */
  .hero-trust-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    margin-top: 24px;
  }
  /* Hide the 3 secondary award shields (Front Runners, Leaders,
     Shortlist) — they're the 3rd, 4th, 5th images in .trust-review. */
  .hero-trust-bar .trust-review img:nth-child(n + 3) {
    display: none;
  }
  .hero-trust-bar .trust-review,
  .hero-trust-bar .trust-compliance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0;
  }
  /* Show the divider on mobile between review + compliance groups,
     restyled as a thin vertical rule. */
  .hero-trust-bar .trust-divider {
    display: block;
    width: 1px;
    height: 32px;
    background: rgba(10, 20, 35, 0.12);
    flex-shrink: 0;
    margin: 0;
  }
  .hero-trust-bar img,
  .hero-trust-bar svg {
    height: 40px;
    width: auto;
    flex-shrink: 0;
  }
  .hero-trust-bar .trust-compliance svg { height: 42px; }
}

@media (max-width: 360px) {
  .hero-trust-bar { gap: 10px 12px; }
  .hero-trust-bar img,
  .hero-trust-bar svg { height: 36px; }
  .hero-trust-bar .trust-divider { display: none; }   /* drop divider on tiny phones, content wraps */
}

@media (max-width: 640px) {
  /* === Section h2 scaling — applies to most homepage sections === */
  .changes-section h2,
  .toolstack-section h2,
  .platform-section h2,
  .platform h2,
  .shift-section h2,
  .journey-section h2,
  .testimonials-section h2,
  .industries h2,
  .demo h2 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  /* === Logo band (trusted by …) — horizontal scroll-snap on phone === */
  .logo-band-track,
  .logo-band-inner {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .logo-band-track::-webkit-scrollbar,
  .logo-band-inner::-webkit-scrollbar { display: none; }

  /* === Platform header (title + CTA) stacks === */
  .platform-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px;
  }
  .platform-header-text { width: 100% !important; max-width: 100% !important; }
  .platform-title { font-size: 30px !important; line-height: 1.1 !important; }
  .platform-header .btn { width: 100% !important; min-width: 0; }

  /* === Platform panel (tab content) — text + image stack === */
  .platform-panel {
    flex-direction: column !important;
    gap: 20px;
  }
  .platform-panel-text,
  .platform-panel-image,
  .platform-panel > * {
    width: 100% !important;
    max-width: 100% !important;
  }
  .platform-panel img,
  .platform-panel .panel-image {
    width: 100%;
    height: auto;
  }

  /* === Platform tabs — all 5 visible, stacked as a vertical pill list
     on phone. Each tab is a full-width tap target with the label on
     a single line and a clear active state. === */
  .platform-tabs,
  .platform-tab-bar {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    border: 0 !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
  }
  .platform-tab {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
    border: 1px solid #e0e4ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #5a6670 !important;
    white-space: normal;     /* labels wrap if needed, all visible */
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .platform-tab.active {
    background: #fdf3f0 !important;
    border-color: #00b7e5 !important;
    color: #1a2b3c !important;
  }
  /* Hide the desktop progress-bar/eyebrow under each tab — they were
     positioned relative to the row layout. */
  .platform-tab .tab-progress { display: none !important; }

  /* === Platform panels (active tab content) === */
  .platform-panels {
    padding: 32px 0 0 !important;
    margin: 0 !important;
  }
  .platform-panel {
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* === Demo (form CTA) section === */
  .demo-inner {
    grid-template-columns: minmax(0, 1fr) !important;   /* minmax(0,...) lets fr shrink below content size */
    gap: 28px !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .demo-left,
  .demo-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
  .demo-form-card {
    width: 100%;
    max-width: 100%;
    padding: 24px !important;
    box-sizing: border-box;
    min-width: 0;
  }
  .demo-form,
  .demo-form-title,
  .demo-form-sub {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .demo-form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .demo-input,
  .demo-select,
  .demo-submit {
    width: 100% !important;
    box-sizing: border-box;
    min-width: 0;
  }
  .demo-title { font-size: 28px !important; line-height: 1.15 !important; }
  .demo-bullet { width: 100% !important; }
  .demo h2 { font-size: 28px; }
  .demo-text { padding-right: 0; }
  .demo-list li { font-size: 15px; line-height: 1.5; }

  /* === Industries grid 4 → 2 → 1 === */
  .industries-grid,
  .industry-grid,
  .industries .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
  .hero-anchor { font-size: 16px; }
}

/* Rotating-word headlines (homepage hero, changes section) need to
   wrap on mobile — desktop nowrap pushes the longest rotation past
   the viewport. */
@media (max-width: 640px) {
  .hero-rotate-word,
  .changes-rotate-word {
    white-space: normal !important;
  }
  .changes-hero { font-size: 28px !important; line-height: 1.2 !important; }
  .changes-rotate-slot { display: inline; }
  .changes-rotate-word:not(.active) {
    /* Hide non-active words completely on mobile so the slot collapses
       to the active word's size (avoids the abs-positioned siblings
       inflating layout). */
    display: none;
  }
}

/* ============================================================
   === MOBILE: INDUSTRY/PRODUCT INLINE-STYLE OVERRIDES (Phase 2E/2F) ===
   Industry and product pages use inline-styled value-block sections
   with desktop padding/grid built in. These overrides reach the
   common patterns at mobile widths.
   ============================================================ */

@media (max-width: 1024px) {
  /* Inline-styled section wrappers (padding:80px 0) */
  section[style*="padding:80px"],
  section[style*="padding: 80px"] {
    padding: 56px 0 !important;
  }
  /* Inner containers with desktop horizontal padding */
  div[style*="padding:0 40px"],
  div[style*="padding: 0 40px"] {
    padding: 0 16px !important;
    box-sizing: border-box;
    max-width: 100% !important;
  }
  /* 4-col integrations / partner grids — drop to 2-col */
  .ind-integrations-grid,
  .pa-integrations-grid,
  .prod-integrations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  /* Inline 2-col grids that overflow at phone widths */
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Inline-styled cards/sections with hardcoded large padding */
  div[style*="padding:32px"],
  div[style*="padding: 32px"] {
    padding: 20px !important;
  }
  div[style*="padding:40px"],
  div[style*="padding: 40px"] {
    padding: 24px !important;
  }

  /* Industry page sections — outer 0, inner 16 (handled in section-rhythm
     block below). The grid children just need width/box-sizing. */
  .ind-hero,
  .ind-intro,
  .ind-pain,
  .ind-integrations,
  .ind-cta,
  .pa-all-caps {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Breadcrumbs above industry/product pages — match 16 px rhythm. */
  .pa-breadcrumb,
  .ind-breadcrumb,
  .prod-breadcrumb {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .ind-pain-grid,
  .ind-integrations-grid,
  .pa-all-caps-grid,
  .ind-feature-row {
    box-sizing: border-box;
    max-width: 100% !important;
  }
  .ind-pain-grid,
  .pa-all-caps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ind-integrations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Industries index grid */
  .ind-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Product page sub-nav pills (e.g. /product/integrations/) — horizontal scroll */
  .prod-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    scroll-snap-type: x mandatory;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .prod-nav-inner::-webkit-scrollbar { display: none; }
  .prod-nav-pill {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .ind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .ind-grid > * { min-width: 0; }
}

/* === Marketing-consent checkbox on demo / lead forms === */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  cursor: pointer;
  user-select: none;
}
.form-consent input[type="checkbox"] {
  margin: 3px 0 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #00b7e5;
  cursor: pointer;
}
.form-consent span {
  flex: 1;
  min-width: 0;
  color: #5a6670;
}
