/* ============================================================
   LIVIO DESIGN SYSTEM — style.css
   Brand: livio-brand-identity.md + ui-ux-pro-max rules
   Fonts: Plus Jakarta Sans (Google Fonts)
   Colors: Primary #0000E1 | Accent #1F5EFF | BG #0a0a0f
   Pro Max: WCAG AA/AAA contrast, 44px touch targets, 
            reduced-motion, visible focus, cursor-pointer
   ============================================================ */

/* ── RESET & ROOT ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --color-primary: #0000E1;
  --color-primary-hover: #0000b8;
  --color-accent: #1F5EFF;
  --color-accent-light: rgba(31, 94, 255, 0.15);

  /* Backgrounds */
  --bg-base: #06060f;
  --bg-surface: #0d0d1a;
  --bg-elevated: #13132a;

  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Green (success/paid) */
  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.12);

  /* Red (error) */
  --color-error: #f87171;
  --color-error-bg: rgba(248, 113, 113, 0.12);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Navbar specifics */
  --nav-bg: rgba(6, 6, 15, 0.75);
  --nav-bg-scrolled: rgba(6, 6, 15, 0.92);
  --chip-bg: rgba(13, 13, 26, 0.85);

  /* Glass Extended */
  --glass-border-strong: rgba(255, 255, 255, 0.1);
  --glass-border-focus: rgba(255, 255, 255, 0.18);
  --glass-border-active: rgba(255, 255, 255, 0.32);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-bg-alt: rgba(255, 255, 255, 0.05);
  --glass-bg-faint: rgba(255, 255, 255, 0.03);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Z-index scale (Pro Max rule) */
  --z-navbar: 30;
  --z-chip: 20;
  --z-modal: 50;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
}

html {
  font-size: 16px;
  /* Pro Max: min 16px on mobile */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  /* Pro Max: 1.5–1.75 */
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── FOCUS STATES (Pro Max: visible focus rings) ───────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── REDUCED MOTION (Pro Max rule) ────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  /* Brand: pill-shaped */
  border: none;
  cursor: pointer;
  /* Pro Max: cursor-pointer */
  transition:
    background-color var(--duration-normal) var(--ease-default),
    box-shadow var(--duration-normal) var(--ease-default),
    transform var(--duration-fast) var(--ease-default),
    opacity var(--duration-normal) var(--ease-default);
  user-select: none;
  position: relative;
  overflow: hidden;
}

/* Pro Max: min 44×44px touch targets */
.btn-lg {
  min-height: 52px;
  padding: 0 var(--space-8);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(0, 0, 225, 0);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 0 24px rgba(0, 0, 225, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--glass-border-focus);
}

.btn-secondary:hover {
  background-color: var(--glass-bg-hover);
  box-shadow: inset 0 0 0 1.5px var(--glass-border-active);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-coming-soon-wrapper {
  position: relative;
  display: inline-flex;
  margin-top: var(--space-4);
}

.coming-soon-chip {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: var(--glass-bg-alt);
}

.btn-icon {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-default);
}

.btn:hover .inline-transition {
  transform: translateX(4px);
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--space-4);
  /* Pro Max: floating, not stuck to edge */
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-navbar);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-6);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  min-height: 44px;
  /* Pro Max: touch target */
  min-width: 44px;
  cursor: pointer;
}

/* Logo images: show correct variant per theme */
.logo-img {
  height: 28px;
  max-height: 28px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

.logo-img--light {
  display: none;
}

[data-theme="light"] .logo-img--dark {
  display: none;
}

[data-theme="light"] .logo-img--light {
  display: block;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

/* ── SEGMENTED CONTROL TOGGLE ────────────────────────────── */
.nav-toggle-wrapper {
  margin-left: auto;
  display: flex;
}

.segmented-control {
  position: relative;
  display: inline-flex;
  background: var(--glass-border);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.segment-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  min-height: 44px;
  /* Pro Max: touch target size */
  min-width: 140px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color var(--duration-default) var(--ease-default);
}

.segment-label:hover {
  color: var(--text-primary);
}

/* Active Text Color */
input[value="landlord"]:checked~.label-landlord,
input[value="tenant"]:checked~.label-tenant {
  color: #fff;
}

.segment-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  /* Assuming equal width segments */
  background: var(--color-primary);
  /* #0000E1 default */
  border-radius: var(--radius-pill);
  z-index: 1;
  transition: transform 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 225, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

input[value="tenant"]:checked~.segment-slider {
  transform: translateX(100%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-4);
}

.nav-cta {
  min-height: 44px;
  /* Pro Max: touch target */
  padding: 0 var(--space-5);
  font-size: 0.9rem;
}

.hamburger {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* Pro Max: touch target */
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  margin-left: auto;
  transition: background-color var(--duration-normal) var(--ease-default);
}

.hamburger:hover {
  background-color: var(--glass-border);
}

/* ── HERO ──────────────────────────────────────────────────── */

/* Mode Logic */
/* Default: hide tenant content before JS sets data-mode */
body:not([data-mode]) .hero-tenant,
body[data-mode="landlord"] .hero-tenant,
body[data-mode="tenant"] .hero-landlord {
  display: none !important;
}

.hero-landlord,
.hero-tenant {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  /* room for fixed navbar */
  padding-bottom: var(--space-24);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  overflow: hidden;
}

/* Ambient background glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow--left {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 0, 225, 0.18), transparent 70%);
  top: 10%;
  left: -120px;
}

.hero-glow--right {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(31, 94, 255, 0.14), transparent 70%);
  top: 5%;
  right: -140px;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 50/50 split */
  align-items: center;
  gap: var(--space-16);
}

/* ── LEFT: Copy ── */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-bg);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  width: fit-content;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 16ch;
  /* Pro Max: ~65 char line-length equiv */
}

.headline-accent {
  color: var(--color-accent);
}

.hero-subheadline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  /* Pro Max: 1.5–1.75 */
  max-width: 46ch;
}

.hero-subheadline strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-2);
}

.hero-ctas .btn-secondary {
  align-self: center;
}

/* ── Stats row ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border);
}

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

.stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* ── RIGHT: Visual ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 94, 255, 0.16), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  /* Ensures it stays behind the image */
  pointer-events: none;
  animation: visual-pulse 4s ease-in-out infinite;
}

@keyframes visual-pulse {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.hero-illustration {
  position: relative;
  z-index: 2;
  /* Ensure image is above glow */
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 24px 64px rgba(0, 0, 225, 0.14));
  animation: float-illustration 5s ease-in-out infinite;
}

@keyframes float-illustration {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ── Floating UI chips ── */
.ui-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  z-index: var(--z-chip);
  white-space: nowrap;
  pointer-events: none;
}

.ui-chip--paid {
  bottom: 22%;
  left: -4%;
  color: var(--color-success);
  animation: chip-float-a 4.5s ease-in-out infinite;
}

.ui-chip--time {
  top: 20%;
  right: -4%;
  color: var(--color-accent);
  animation: chip-float-b 5s ease-in-out infinite;
}

@keyframes chip-float-a {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(0deg);
  }
}

@keyframes chip-float-b {

  0%,
  100% {
    transform: translateY(0px) rotate(1deg);
  }

  50% {
    transform: translateY(-8px) rotate(0deg);
  }
}

/* ── ENTRANCE ANIMATIONS ───────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s var(--ease-default),
    transform 0.55s var(--ease-default);
}

[data-animate="fade-left"] {
  transform: translateX(24px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

[data-animate="fade-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

/* 1024px — compress side-by-side */
@media (max-width: 1024px) {
  .hero-inner {
    gap: var(--space-10);
  }

  .nav-links {
    display: none;
  }
}

/* 768px — stack layout */
@media (max-width: 768px) {
  /* Extra top padding for taller 2-row navbar */
  .hero {
    padding-top: 180px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-headline {
    max-width: none;
  }

  .hero-subheadline {
    max-width: 100%;
  }

  .hero-ctas {
    align-items: center;
    justify-content: center;
  }

  /* Store buttons side-by-side on mobile */
  .cta-store-buttons {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center !important;
    gap: var(--space-3);
    width: 100%;
  }

  .store-btn {
    min-width: 0;
    flex: 1;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
    justify-content: center;
  }

  .store-btn__sub {
    font-size: 8px;
  }

  .store-btn__main {
    font-size: 12px;
  }

  .store-btn__icon svg {
    width: 18px;
    height: 18px;
  }

  /* Center "See How it Works" button */
  .hero-ctas .btn-secondary {
    align-self: center;
  }

  .hero-stats {
    justify-content: center;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    /* illustration above copy on mobile */
  }

  .ui-chip--paid {
    left: 2%;
    bottom: 10%;
  }

  .ui-chip--time {
    right: 2%;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Move segmented control below navbar on mobile */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: var(--space-3) 0;
    gap: var(--space-3);
  }

  .nav-toggle-wrapper {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: var(--space-2);
  }

  .segmented-control {
    width: 100%;
  }

  .segment-label {
    flex: 1;
    min-width: 0;
    padding: 0 var(--space-4);
    min-height: 40px;
    font-size: 0.85rem;
  }
}

/* 375px — smallest supported (Pro Max rule) */
@media (max-width: 400px) {
  .hero {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .navbar {
    left: var(--space-3);
    right: var(--space-3);
    padding: 0 var(--space-4);
  }
}

/* ============================================================
   PROBLEM / AGITATION SECTION
   Background elevated from hero (var(--bg-surface)) for visual contrast
   Pro Max: readable fonts, 1.6–1.75 line-height, WCAG AA text
   ============================================================ */

/* ── Shared section utilities ──────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(31, 94, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  width: fit-content;
}

.section-headline {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-body {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
  /* Pro Max: 1.5–1.75 */
  max-width: 62ch;
  /* Pro Max: 65-75 ch */
}

/* ── Problem Section ───────────────────────────────────────── */
.problem {
  position: relative;
  background-color: var(--bg-surface);
  /* Elevated surface from hero's var(--bg-base) */
  padding: var(--space-24) var(--space-6);
  overflow: hidden;
}

/* Subtle top edge separator */
.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(31, 94, 255, 0.25) 50%,
      transparent);
}

.problem-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

/* ── Compare Grid ──────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-6);
  width: 100%;
  margin-top: var(--space-4);
}

/* ── Each Panel ────────────────────────────────────────────── */
.compare-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-default);
}

.compare-panel:hover {
  transform: translateY(-4px);
}

.compare-panel--before {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-bg);
}

.compare-panel--after {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-bg);
}

/* Subtle ambient glow per panel */
.compare-panel--before::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(248, 113, 113, 0.07), transparent 60%);
  pointer-events: none;
}

.compare-panel--after::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(34, 197, 94, 0.07), transparent 60%);
  pointer-events: none;
}

/* ── Panel labels (pill badges) ────────────────────────────── */
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  border: 1px solid;
  z-index: 1;
}

.panel-badge--before {
  color: var(--color-error);
  background: var(--color-error-bg);
  border-color: rgba(248, 113, 113, 0.25);
}

.panel-badge--after {
  color: var(--color-success);
  background: var(--color-success-bg);
  border-color: rgba(34, 197, 94, 0.25);
}

/* ── Comparison image ──────────────────────────────────────── */
.compare-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

/* ── Pain / Win lists ──────────────────────────────────────── */
.pain-list,
.win-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  z-index: 1;
}

.pain-item,
.win-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.88rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.pain-item {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.06);
}

.win-item {
  color: #86efac;
  background: rgba(34, 197, 94, 0.07);
}

/* ── Center VS Divider ─────────────────────────────────────── */
.compare-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-12);
}

.divider-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom,
      transparent,
      var(--glass-border) 30%,
      var(--glass-border) 70%,
      transparent);
}

.divider-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Responsive — stack at 768px ───────────────────────────── */
@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .compare-divider {
    flex-direction: row;
    padding-top: 0;
  }

  .divider-line {
    width: 100%;
    height: 1px;
    min-height: unset;
    background: linear-gradient(to right,
        transparent,
        var(--glass-border) 30%,
        var(--glass-border) 70%,
        transparent);
  }

  .compare-panel {
    padding: var(--space-6);
  }
}

@media (max-width: 400px) {
  .problem {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ── Problem Section Mode Toggles ─────────────────────────── */
body:not([data-mode]) .problem-tenant,
body[data-mode="landlord"] .problem-tenant {
  display: none;
}

body[data-mode="tenant"] .problem-landlord {
  display: none;
}

/* ── Tenant Problem Background & Contrast ─────────────────── */
.problem-tenant {
  background-color: var(--bg-surface) !important;
  /* Slightly lighter than base var(--bg-base) for contrast */
  position: relative;
  overflow: hidden;
}

/* ── Custom Mockup Styles (Tenant Mode) ──────────────────── */

/* SMS Mockup */
.mockup-sms {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* "Tail" for SMS bubble */
.mockup-sms div[style*="align-self: flex-start"]::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -6px;
  width: 12px;
  height: 12px;
  background: var(--bg-elevated);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Livio Dashboard Mockup */
.mockup-livio {
  transition: transform 0.3s var(--ease-out);
}

.mockup-livio:hover {
  transform: translateY(-5px);
}

.mockup-livio::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 0, 225, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Interactive elements within mockup */
.mockup-livio [style*="cursor: pointer"] {
  transition: all 0.2s ease;
}

.mockup-livio [style*="cursor: pointer"]:hover {
  background: var(--color-accent) !important;
  filter: brightness(1.1);
}

/* ============================================================
   FEATURES BENTO GRID — "Everything in one place"
   Pro Max: min 16px body text, no emojis, SVG icons only
   Brand: #0000E1 icon accents, glassmorphic cards, pill labels
   ============================================================ */

.features {
  position: relative;
  background-color: var(--bg-base);
  /* back to deep var(--bg-base) */
  padding: var(--space-24) var(--space-6);
  overflow: hidden;
}

/* Ambient upper glow */
.features-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 0, 225, 0.1), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Top separator line */
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 0, 225, 0.2) 50%,
      transparent);
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

/* ── Section header ── */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  max-width: 680px;
}

/* ── Asymmetrical App Bento Grid ─────────────────────────────────*/
.app-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: var(--space-6);
  width: 100%;
}

/* Base Card Styling */
.app-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-faint);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: default;
  transition:
    transform var(--duration-slow) var(--ease-default),
    box-shadow var(--duration-slow) var(--ease-default),
    border-color var(--duration-slow) var(--ease-default);
  overflow: hidden;
  position: relative;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 225, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 225, 0.15);
}

/* Inner glow accent on top edge */
.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.5;
}

/* Card Content Layout */
.app-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 225, 0.12);
  color: #7ba8ff;
  border: 1px solid rgba(0, 0, 225, 0.25);
  margin-bottom: var(--space-6);
  transition: transform var(--duration-slow) var(--ease-default),
    background var(--duration-slow) var(--ease-default);
}

.app-card:hover .app-card__icon {
  transform: scale(1.05);
  background: rgba(0, 0, 225, 0.2);
}

.app-card__content {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.app-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.app-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Specific Card Placements ── */
/* Card 1: Wide (Top Left) */
.app-card--1 {
  grid-column: span 2;
  grid-row: span 1;
}

/* Card 2: Tall (Top Right) */
.app-card--2 {
  grid-column: span 1;
  grid-row: span 2;
}

/* Card 3: Mobile Mockup Center (Tall) */
.app-card--mockup {
  grid-column: span 1;
  grid-row: span 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 225, 0.03);
}

.app-card--mockup:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 225, 0.3);
}

/* Card 4: Tall (Bottom Left) */
.app-card--4 {
  grid-column: span 1;
  grid-row: span 2;
}

/* Card 5: Wide (Bottom Right) */
.app-card--5 {
  grid-column: span 2;
  grid-row: span 1;
}

/* ── Mobile Phone UI Placeholder ── */
.app-mockup-frame {
  width: 80%;
  height: 110%;
  /* Extends past edges intentionally */
  border-radius: 32px;
  background: #020205;
  /* completely black inner */
  border: 4px solid var(--glass-border-strong);
  box-shadow: inset 0 0 0 1px var(--glass-bg-alt),
    0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  margin-top: 10%;
  /* pushes it down a bit to look nested */
}

/* Phone notch */
.app-mockup-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 20px;
  background: var(--glass-border-strong);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

.app-mockup-screen {
  width: 100%;
  height: 100%;
  padding: var(--space-10) var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mockup-header {
  height: 48px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 225, 0.2);
  border: 1px solid rgba(0, 0, 225, 0.3);
}

.mockup-card {
  height: 120px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-hover);
}

/* ── Responsive Bento ── */
@media (max-width: 1024px) {
  .app-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .app-card--mockup {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    min-height: 400px;
  }

  .app-mockup-frame {
    width: 320px;
    height: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .app-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .app-card {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 220px;
  }

  .app-card--mockup {
    min-height: 380px;
  }
}

@media (max-width: 400px) {
  .features {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .app-card {
    padding: var(--space-6);
  }
}

/* ============================================================
   LEASING PILLAR SECTION — "From Yes to Signed in 5 Minutes"
   Sits between Problem (var(--bg-surface)) and Features (var(--bg-base))
   ============================================================ */

.leasing {
  position: relative;
  background-color: var(--bg-base);
  padding: var(--space-24) var(--space-6);
  overflow: hidden;
}

.leasing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(31, 94, 255, 0.1), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.leasing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 94, 255, 0.25) 50%, transparent);
}

.leasing-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  text-align: center;
}

/* 3-Step Visual */
.steps-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.steps-img {
  width: 100%;
  max-width: 820px;
  height: 320px;
  /* crop the excess top/bottom dark space */
  object-fit: cover;
  object-position: center 48%;
  border-radius: var(--radius-lg);
  display: block;
}

.steps-labels {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  max-width: 820px;
}

.step-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-label--center .step-number {
  color: #6b9fff;
}

.step-number {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 3 Bullet Cards */
.leasing-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  width: 100%;
  text-align: left;
}

.leasing-bullet {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* handled per-element below */
  padding: var(--space-8) var(--space-10);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-slow) var(--ease-default),
    border-color var(--duration-slow) var(--ease-default);
}

.leasing-bullet:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 94, 255, 0.2);
}

.bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 225, 0.15);
  color: #7ba8ff;
  border: 1px solid rgba(0, 0, 225, 0.2);
  margin-bottom: var(--space-6);
  /* generous space between icon and title */
  flex-shrink: 0;
}

.bullet-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bullet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.bullet-body {
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  /* Pro Max: comfortable reading */
}

@media (max-width: 768px) {
  .leasing-bullets {
    grid-template-columns: 1fr;
  }
}

/* ── Features Section Mode Toggles ───────────────────────── */
body:not([data-mode]) .features-tenant,
body[data-mode="landlord"] .features-tenant {
  display: none;
}

body[data-mode="tenant"] .features-landlord {
  display: none;
}

/* ── Tenant Bento Grid ────────────────────────────────────────── */
.tenant-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  grid-template-areas:
    "payment payment spending"
    "score refund spending"
    "score chat chat";
  gap: var(--space-6);
  width: 100%;
}

/* Tenant Card Base */
.tenant-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-faint);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-default),
    border-color var(--duration-slow) var(--ease-default),
    box-shadow var(--duration-slow) var(--ease-default);
}

.tenant-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 225, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 225, 0.15);
}

.tenant-card__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tenant-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tenant-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 225, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7ba8ff;
  border: 1px solid rgba(0, 0, 225, 0.2);
}

/* ── Specific Card Toggles ───────────────────────────────────── */
.tenant-card--payment {
  grid-area: payment;
}

.tenant-card--spending {
  grid-area: spending;
}

.tenant-card--refund {
  grid-area: refund;
}

.tenant-card--score {
  grid-area: score;
}

.tenant-card--chat {
  grid-area: chat;
}

/* Smart Payment Widget */
.tenant-card--payment .tenant-card__content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.tenant-card__badge {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tenant-card__badge--due {
  background: rgba(255, 171, 0, 0.15);
  color: #ffab00;
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.payment-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.payment-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.payment-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.payment-btn {
  margin-top: var(--space-4);
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.payment-btn:hover {
  background: #0000ff;
  transform: scale(1.05);
}

/* Visual Spending (Chart) */
.spending-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: var(--space-4) 0;
}

.chart-bar {
  flex: 1;
  background: rgba(31, 94, 255, 0.2);
  border-radius: 4px 4px 0 0;
  transition: height var(--duration-base) var(--ease-default), background 0.3s;
}

.chart-bar--active {
  background: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 0, 225, 0.4);
}

.tenant-card:hover .chart-bar {
  background: rgba(31, 94, 255, 0.3);
}

.tenant-card:hover .chart-bar--active {
  background: var(--color-primary);
}

/* Refund Tracker */
.refund-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.refund-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.refund-item .val {
  font-weight: 600;
  color: var(--text-primary);
}

.refund-item .val.neg {
  color: #ff4d4d;
}

.refund-divider {
  height: 1px;
  background: var(--glass-border-strong);
  margin: var(--space-1) 0;
}

.refund-item.total {
  font-weight: 700;
  color: var(--text-primary);
}

.refund-item.total .val.highlight {
  color: #4ade80;
  font-size: 1.1rem;
}

/* Tenant Score (Progress Ring) */
.score-circular {
  display: flex;
  justify-content: center;
  padding: var(--space-2) 0;
}

.circular-chart {
  display: block;
  margin: 10px auto;
  max-width: 100px;
  max-height: 100px;
}

.circle-bg {
  fill: none;
  stroke: var(--glass-bg-alt);
  stroke-width: 3;
}

.circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke: var(--color-primary);
  filter: drop-shadow(0 0 5px rgba(0, 0, 225, 0.5));
}

.percentage {
  fill: var(--text-primary);
  font-family: inherit;
  font-size: 7px;
  font-weight: 800;
  text-anchor: middle;
}

.score-badge {
  display: inline-block;
  align-self: center;
  background: rgba(0, 0, 225, 0.15);
  color: #7ba8ff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 225, 0.2);
}

/* Chat & Lease */
.chat-snippets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snippet {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 80%;
}

.snippet--in {
  background: var(--glass-bg-alt);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.snippet--out {
  background: var(--color-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.file-access {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--glass-bg-faint);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Mobile Responsiveness for Tenant Bento ──────────────────── */
@media (max-width: 1024px) {
  .tenant-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "payment payment"
      "spending score"
      "refund score"
      "refund chat"
      "chat chat";
  }
}

@media (max-width: 768px) {
  .tenant-bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    grid-auto-rows: auto;
    display: flex;
    flex-direction: column;
  }

  .tenant-card {
    grid-area: auto !important;
  }

  .tenant-card--payment .tenant-card__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Leasing Section Mode Toggles ─────────────────────────── */
body:not([data-mode]) .leasing-tenant,
body[data-mode="landlord"] .leasing-tenant {
  display: none;
}

body[data-mode="tenant"] .leasing-landlord {
  display: none;
}

/* ── Seamless Relocation Pathway (Tenant Mode) ────────────── */
.relocation-pathway {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  margin-top: var(--space-12);
  position: relative;
  gap: var(--space-4);
}

.pathway-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  z-index: 1;
}

.step-indicator {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  /* #0000E1 */
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 225, 0.3);
}

.step-num {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.step-glow {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(0, 0, 225, 0.4), transparent 70%);
  z-index: -1;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 28ch;
}

/* Connector Lines */
.step-line {
  flex: 0.5;
  height: 1px;
  background: linear-gradient(90deg,
      var(--color-primary) 0%,
      rgba(0, 0, 225, 0.3) 50%,
      var(--color-primary) 100%);
  margin-top: 26px;
  /* align with center of 52px indicator */
  opacity: 0.4;
  min-width: 40px;
}

/* Vertical Stacking for Mobile */
@media (max-width: 820px) {
  .relocation-pathway {
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
  }

  .step-line {
    width: 1px;
    height: 40px;
    flex: none;
    background: linear-gradient(180deg,
        var(--color-primary) 0%,
        rgba(0, 0, 225, 0.3) 50%,
        var(--color-primary) 100%);
    margin-top: 0;
    margin-bottom: 0;
  }

  .pathway-step {
    flex: none;
    width: 100%;
  }

  .step-desc {
    max-width: 45ch;
  }
}

/* ============================================================
   ECOSYSTEM — Vertical Stepper / Process Timeline
   Centered layout, Step 1 active+glowing, 2-5 muted
   ============================================================ */

.ecosystem {
  position: relative;
  background-color: var(--bg-surface);
  padding: var(--space-24) var(--space-6);
  overflow: hidden;
}

.ecosystem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 225, 0.2) 50%, transparent);
}

/* Ambient glow top-center */
.ecosystem::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(0, 0, 225, 0.08), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.ecosystem-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

/* ── Section header (centered) ── */
.ecosystem-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  max-width: 640px;
}

/* ── ECOSYSTEM ZIGZAG ROADMAP (LANDLORD) ── */
.roadmap-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: 100%;
  max-width: 800px;
  margin: var(--space-10) auto 0;
}

/* Glowing central path line (Desktop) */
@media (min-width: 900px) {
  .roadmap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--glass-border) 30%);
    transform: translateX(-50%);
    z-index: 1;
  }
}

.roadmap-step {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 2;
}

/* Base Node Styling */
.roadmap-node {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  z-index: 3;
}

.roadmap-step--active .roadmap-node {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 225, 0.15), 0 0 20px rgba(0, 0, 225, 0.4);
}

/* Card Styling */
.roadmap-card {
  background: var(--glass-bg-faint);
  border: 1px solid var(--glass-bg-hover);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  width: 100%;
  transition: all var(--duration-slow) var(--ease-default);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.roadmap-step--active .roadmap-card {
  background: rgba(0, 0, 225, 0.06);
  border-color: rgba(0, 0, 225, 0.25);
  box-shadow: 0 0 30px rgba(0, 0, 225, 0.08), inset 0 0 40px rgba(0, 0, 225, 0.04);
}

.roadmap-step--soon .roadmap-card {
  opacity: 0.5;
}

.roadmap-step--soon .roadmap-card:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.roadmap-card__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

/* ── Status badge ── */
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px var(--space-3);
  background: var(--glass-bg-alt);
  border: 1px solid var(--glass-border-strong);
  color: var(--text-muted);
}

.step-badge--active {
  background: rgba(0, 0, 225, 0.15);
  border-color: rgba(0, 0, 225, 0.35);
  color: #7ba8ff;
}

.roadmap-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.roadmap-step--soon .roadmap-title {
  color: var(--text-secondary);
}

.roadmap-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.roadmap-step--active .roadmap-desc {
  color: var(--text-secondary);
}

/* Desktop Zigzag Layout */
@media (min-width: 900px) {
  .roadmap-step {
    width: 50%;
  }

  /* Left Side */
  .roadmap-step--left {
    justify-content: flex-end;
    padding-right: var(--space-10);
    text-align: right;
  }

  .roadmap-step--left .roadmap-card__top {
    align-items: flex-end;
  }

  .roadmap-step--left .roadmap-node {
    right: -18px;
    /* half of 36px node */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Right Side */
  .roadmap-step--right {
    margin-left: 50%;
    padding-left: var(--space-10);
    text-align: left;
  }

  .roadmap-step--right .roadmap-card__top {
    align-items: flex-start;
  }

  .roadmap-step--right .roadmap-node {
    left: -18px;
    /* half of 36px node */
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Mobile Vertical Layout */
@media (max-width: 899px) {
  .roadmap-container {
    gap: var(--space-8);
  }

  .roadmap-step {
    padding-left: 56px;
    /* Space for node on left */
    text-align: left;
  }

  .roadmap-step::before {
    /* Connective line per step on mobile */
    content: '';
    position: absolute;
    left: 17px;
    /* Center of 36px node */
    top: 36px;
    bottom: calc(-1 * var(--space-8));
    width: 2px;
    background: var(--glass-border);
    z-index: 1;
  }

  .roadmap-step:last-child::before {
    display: none;
  }

  .roadmap-step--active::before {
    background: linear-gradient(to bottom, var(--color-primary), var(--glass-border));
  }

  .roadmap-node {
    left: 0;
    top: 24px;
    /* Align slightly down to match card */
  }

  .roadmap-card__top {
    align-items: flex-start;
  }

  .roadmap-card {
    padding: var(--space-5) var(--space-6);
  }
}

@media (max-width: 400px) {
  .ecosystem {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ── Tenant Ecosystem Timeline (Horizontal) ────────────── */
body:not([data-mode]) .ecosystem-tenant,
body[data-mode="landlord"] .ecosystem-tenant {
  display: none;
}

body[data-mode="tenant"] .ecosystem-landlord {
  display: none;
}

.timeline-horizontal {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
  margin-top: var(--space-10);
}

.timeline-step {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--space-5);
  position: relative;
  flex: 1;
}

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--glass-border-strong);
  z-index: 2;
  position: relative;
}

.timeline-step--active .timeline-node {
  background: rgba(0, 0, 225, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 0, 225, 0.4);
}

.node-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-step--active .node-number {
  color: var(--color-primary);
}

.timeline-card {
  background: var(--glass-bg-faint);
  border: 1px solid var(--glass-bg-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  flex: 1;
  transition: all var(--duration-default) var(--ease-default);
}

.timeline-step--active .timeline-card {
  background: rgba(0, 0, 225, 0.06);
  border-color: rgba(0, 0, 225, 0.25);
  box-shadow: 0 0 30px rgba(0, 0, 225, 0.08), inset 0 0 40px rgba(0, 0, 225, 0.04);
}

.timeline-step--soon .timeline-card {
  opacity: 0.5;
}

.timeline-step--soon .timeline-card:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.15);
}

.timeline-card__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.timeline-title {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-step--soon .timeline-title {
  color: var(--text-secondary);
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-step--active .timeline-desc {
  color: var(--text-secondary);
}

/* Mobile Vertical Connector */
@media (max-width: 899px) {
  .timeline-step::after {
    content: '';
    position: absolute;
    top: 32px;
    bottom: calc(-1 * var(--space-8));
    left: 15px;
    /* Center of 32px node */
    width: 1px;
    background: var(--glass-border);
    z-index: 1;
  }

  .timeline-step:last-child::after {
    display: none;
  }

  .timeline-step--active::after {
    background: linear-gradient(180deg, var(--color-primary), var(--glass-border));
  }
}

/* Desktop horizontal flow */
@media (min-width: 900px) {
  .timeline-horizontal {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    padding: 0 var(--space-2);
  }

  /* Horizontal Connector Lines */
  .timeline-step::before {
    content: '';
    position: absolute;
    top: 15px;
    /* Half of 32px node */
    left: 50%;
    right: -50%;
    height: 1px;
    background: var(--glass-border);
    z-index: 1;
  }

  .timeline-step:last-child::before {
    display: none;
  }

  .timeline-step--active::before {
    background: linear-gradient(90deg, var(--color-primary), var(--glass-border) 50%);
  }

  .timeline-card {
    width: 100%;
    padding: var(--space-5) var(--space-4);
  }

  .timeline-card__top {
    align-items: center;
  }
}

/* ============================================================
   SOCIAL PROOF & FINAL CTA
   Stat metric cards + big CTA block + site footer
   ============================================================ */

.social-proof {
  position: relative;
  background: var(--bg-base);
  padding: var(--space-24) var(--space-6) 0;
  overflow: hidden;
}

/* Top separator line */
.social-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 225, 0.18) 50%, transparent);
}

.social-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
}

/* ── Stats block ── */
.stats-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  width: 100%;
}

/* Ensure mode visibility toggles work on block children */
body[data-mode="tenant"] .stats-block .landlord-only {
  display: none;
}

body:not([data-mode]) .stats-block .tenant-only,
body[data-mode="landlord"] .stats-block .tenant-only {
  display: none;
}

.stats-label {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: var(--space-16);
}

/* 3-column stat grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  width: 100%;
}

/* ── Each stat card ── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-faint);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 160px;
  justify-content: center;
  transition: border-color var(--duration-slow) var(--ease-default),
    transform var(--duration-slow) var(--ease-default);
}

.stat-card:hover {
  border-color: rgba(0, 0, 225, 0.2);
  transform: translateY(-3px);
}

/* Large bold number */
.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  /* Subtle gradient */
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 18ch;
}

/* ── Final CTA block ── */
.cta-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  padding: var(--space-20) var(--space-6);
  width: 100%;
  max-width: 720px;
}

/* Ambient blue glow behind CTA */
.cta-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 0, 225, 0.14), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.cta-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Premium App Store & Google Play Buttons */
.cta-store-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--glass-bg-alt);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  flex: 1;
  white-space: nowrap;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--duration-default) var(--ease-default);
  box-shadow: inset 0 1px 0 var(--glass-bg-alt),
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.store-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--glass-border);
  border-color: rgba(0, 0, 225, 0.6);
  /* Blue glow border */
  box-shadow: inset 0 1px 0 var(--glass-border-strong),
    0 0 20px rgba(0, 0, 225, 0.3),
    /* Ambient blue glow */
    0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* ── High-Contrast Tenant Mode Buttons ── */
body[data-mode="tenant"] .store-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 225, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body[data-mode="tenant"] .store-btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 8px 25px rgba(0, 0, 225, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.store-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.store-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  /* SVGs inherit this */
}

.store-btn__icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--duration-default) var(--ease-default);
}

.store-btn:hover .store-btn__icon svg {
  transform: scale(1.05);
  /* Icon subtle scale on hover */
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-btn__sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.store-btn__main {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -0.01em;
}

.cta-subtext {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--glass-bg-alt);
  padding: var(--space-8) var(--space-6);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
  /* Pro Max: min 44px touch target */
  padding: var(--space-2) 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--text-secondary);
}

.footer-link:focus-visible {
  outline: 2px solid #7ba8ff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .stats-grid .stat-card {
    padding: var(--space-8);
  }

  .cta-btn {
    font-size: 1rem;
    padding: var(--space-4) var(--space-8);
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .social-proof {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .cta-block {
    padding: var(--space-12) 0;
  }
}

[data-theme="light"] {
  /* Brand Colors */
  --color-primary: #0000E1;
  --color-primary-hover: #0000b8;
  --color-accent: #1F5EFF;
  --color-accent-light: rgba(31, 94, 255, 0.15);

  /* Backgrounds */
  --bg-base: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F5F9;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Green (success/paid) */
  --color-success: #16a34a;
  --color-success-bg: rgba(22, 163, 74, 0.15);

  /* Red (error) */
  --color-error: #dc2626;
  --color-error-bg: rgba(220, 38, 38, 0.15);

  /* Glass Default */
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);

  /* Navbar specifics */
  --nav-bg: rgba(248, 250, 252, 0.75);
  --nav-bg-scrolled: rgba(248, 250, 252, 0.95);
  --chip-bg: rgba(255, 255, 255, 0.85);

  /* Glass Extended */
  --glass-border-strong: rgba(0, 0, 0, 0.1);
  --glass-border-focus: rgba(0, 0, 0, 0.18);
  --glass-border-active: rgba(0, 0, 0, 0.32);
  --glass-bg-hover: rgba(0, 0, 0, 0.06);
  --glass-bg-alt: rgba(0, 0, 0, 0.05);
  --glass-bg-faint: rgba(0, 0, 0, 0.03);
}

body,
.navbar,
.ui-chip,
.btn-secondary,
.segmented-control,
.problem-landlord,
.problem-tenant,
.compare-panel,
.leasing-inner,
.features-inner,
.ecosystem-inner {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
  background: var(--glass-border);
  border-color: var(--glass-border-strong);
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  transform: scale(1.05);
}