/* Chattu landing — design tokens + Tailwind companions */

:root {
  color-scheme: light;

  /* Brand */
  --lp-brand: #25d366;
  --lp-brand-hover: #20bd5a;
  --lp-brand-strong: #128c7e;
  --lp-brand-soft: rgba(37, 211, 102, 0.14);
  --lp-on-brand: #0b1220;

  /* Surfaces (no pure #000 / #fff) */
  --lp-bg-canvas: #eceff4;
  --lp-bg-raised: #f7f8fa;
  --lp-bg-muted: #e2e8f0;
  --lp-bg-inset: #d8dee9;

  /* Foreground — WCAG-friendly pairs on surfaces above */
  --lp-fg-default: #0b1220;
  --lp-fg-secondary: #334155;
  --lp-fg-muted: #546274;
  --lp-fg-subtle: #64748b;

  /* Lines & dividers */
  --lp-line-default: #b8c5d4;
  --lp-line-muted: #d5dde8;

  /* Nav */
  --lp-nav-bg: rgba(247, 248, 250, 0.92);
  --lp-nav-line: rgba(184, 197, 212, 0.72);

  /* Focus / interactive ring */
  --lp-ring-brand: rgba(37, 211, 102, 0.5);

  /* Status chips, QR tile on cards */
  --lp-status-bg: #e2e8f0;
  --lp-status-fg: #475569;
  --lp-status-on-bg: rgba(209, 250, 229, 0.95);
  --lp-status-on-fg: #047857;
  --lp-qr-tile-bg: #f7f8fa;
  --lp-qr-tile-line: #c5d0dc;

  /* Shadows */
  --lp-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --lp-shadow-nav-scrolled: 0 4px 14px rgba(11, 18, 32, 0.08);

  /* Hero orbs (neutral gradient stops) */
  --lp-orb-deep: #0f172a;
  --lp-orb-mid: #475569;

  /* WhatsApp mock (isolated from page theme) */
  --lp-wa-bg: #0b141a;
  --lp-bubble-light: #dcf8c6;
  --lp-wa-bubble-out-fg: #0b1220;
  --lp-secondary: #075e54;

  /* Language menu */
  --lp-lang-active-fg: #0f766e;

  /* Legacy aliases (existing components) */
  --lp-primary: var(--lp-brand);
  --lp-primary-dark: var(--lp-brand-strong);
  --lp-text: var(--lp-fg-default);
  --lp-muted: var(--lp-fg-muted);
  --lp-border: var(--lp-line-default);
  --lp-surface-page: var(--lp-bg-canvas);
  --lp-surface-0: var(--lp-bg-raised);
  --lp-surface-1: var(--lp-bg-muted);
  --lp-surface-2: var(--lp-bg-inset);
  --lp-nav-glass: var(--lp-nav-bg);
  --lp-lang-hover: var(--lp-bg-muted);
  --lp-lang-option-hover: var(--lp-bg-inset);
  --lp-lang-option-active: rgba(209, 250, 229, 0.88);
}

html.dark {
  color-scheme: dark;

  --lp-bg-canvas: #121212;
  --lp-bg-raised: #1c1c1f;
  --lp-bg-muted: #26262c;
  --lp-bg-inset: #2f2f36;

  --lp-fg-default: #eef1f5;
  --lp-fg-secondary: #c8d0da;
  --lp-fg-muted: #9ca8b8;
  --lp-fg-subtle: #8491a3;

  --lp-line-default: #3f4a5c;
  --lp-line-muted: #2c323c;

  --lp-nav-bg: rgba(28, 28, 31, 0.94);
  --lp-nav-line: rgba(63, 74, 92, 0.78);

  --lp-status-bg: #2a2b30;
  --lp-status-fg: #9ca8b8;
  --lp-status-on-bg: rgba(6, 78, 59, 0.48);
  --lp-status-on-fg: #6ee7b7;

  --lp-qr-tile-bg: #ebecef;
  --lp-qr-tile-line: #8b95a3;

  --lp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --lp-shadow-nav-scrolled: 0 4px 20px rgba(0, 0, 0, 0.45);

  --lp-orb-deep: #1e293b;
  --lp-orb-mid: #64748b;

  --lp-lang-hover: #323238;
  --lp-lang-option-hover: #3a3a42;
  --lp-lang-option-active: rgba(6, 95, 70, 0.42);
  --lp-lang-active-fg: #86efac;
}

.lp-landing-body {
  background-color: var(--lp-bg-canvas);
  color: var(--lp-fg-secondary);
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

.lp-landing-body main section,
.lp-landing-body .lp-preview-card,
.lp-landing-body .feature-card,
.lp-landing-body .lp-trust-pill,
.lp-landing-body .lp-price-card,
.lp-landing-body #navbar,
.lp-landing-body footer {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease,
    fill 0.4s ease;
}

/* Theme toggle (nav, top-right cluster with hamburger) */
.lp-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--lp-line-default);
  background: var(--lp-bg-raised);
  color: var(--lp-fg-default);
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    transform 0.2s ease;
}

.lp-theme-toggle:hover {
  border-color: var(--lp-ring-brand);
  color: var(--lp-brand);
  background: var(--lp-bg-muted);
}

.lp-theme-toggle:active {
  transform: scale(0.96);
}

@media (max-width: 1023px) {
  .lp-theme-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

/* Login — understated secondary control (nav + hero) */
.lp-login-btn:focus-visible {
  outline: 2px solid var(--lp-ring-brand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lp-login-btn:hover {
    transform: none !important;
  }
}

.lp-theme-toggle .lp-theme-icon-light {
  display: none;
}

html.dark .lp-theme-toggle .lp-theme-icon-dark {
  display: none;
}

html.dark .lp-theme-toggle .lp-theme-icon-light {
  display: inline-block;
}

/* Mobile drawer backdrop (dim page below fixed nav) */
.lp-nav-backdrop-sheet {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lp-nav-backdrop-sheet.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.dark .lp-nav-backdrop-sheet {
  background: rgba(0, 0, 0, 0.52);
}

/* Subtle brand accent under bar */
.lp-nav-accent-line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 211, 102, 0.38) 24%,
    rgba(56, 189, 248, 0.22) 52%,
    rgba(37, 211, 102, 0.32) 76%,
    transparent 100%
  );
}

html.dark .lp-nav-accent-line {
  opacity: 0.55;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 211, 102, 0.35) 28%,
    rgba(56, 189, 248, 0.18) 52%,
    rgba(37, 211, 102, 0.28) 78%,
    transparent 100%
  );
}

/* Stronger glass when scrolled */
#navbar.lp-nav.lp-nav--elevated .lp-nav-backdrop {
  background-color: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.dark #navbar.lp-nav.lp-nav--elevated .lp-nav-backdrop {
  background-color: rgba(28, 28, 31, 0.94);
}

/* Hero orbs + parallax targets */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.28;
  animation: lp-float 18s infinite ease-in-out;
}

.orb-1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: linear-gradient(135deg, #25d366, #128c7e);
  top: -25%;
  left: -15%;
}

.orb-2 {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  background: linear-gradient(135deg, var(--lp-orb-deep), var(--lp-orb-mid));
  top: 40%;
  right: -12%;
  animation-delay: 4s;
}

.orb-3 {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  background: linear-gradient(135deg, #128c7e, #25d366);
  bottom: -20%;
  left: 35%;
  animation-delay: 8s;
}

@keyframes lp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -14px) scale(1.06); }
  66% { transform: translate(-12px, 12px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-orb { animation: none; }
}

/* --- Premium dual-phone hero (chat + dashboard) --- */
.lp-dual-phones-stage {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 0.5rem 2rem;
}

.lp-dual-phones-glow {
  position: absolute;
  inset: -12% -8% 0 -8%;
  background:
    radial-gradient(ellipse 70% 55% at 55% 95%, rgba(37, 211, 102, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(18, 140, 126, 0.1), transparent 55%);
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.95;
}

.lp-dual-phones-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.lp-dual-phones-perspective {
  position: relative;
  z-index: 1;
  perspective: 1400px;
  perspective-origin: 55% 40%;
}

.lp-dual-phones-tilt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding: 0.5rem 0 1rem;
  transform-origin: center center;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

@media (min-width: 1024px) {
  .lp-dual-phones-tilt {
    display: block;
    height: min(520px, 58vh);
    padding: 0;
    margin-right: -0.5rem;
  }
}

.lp-hero-device {
  position: relative;
  width: 100%;
  max-width: min(276px, 100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .lp-hero-device {
    position: absolute;
    bottom: 0;
    max-width: min(278px, 34vw);
  }

  .lp-hero-device--dashboard {
    left: 0;
    z-index: 1;
    transform: rotate(-11deg) rotateY(6deg) scale(0.9) translate(4px, 18px);
  }

  .lp-hero-device--chat {
    right: 0;
    z-index: 2;
    transform: rotate(9deg) rotateY(-5deg) scale(1.02) translate(-6px, -10px);
  }

  .lp-dual-phones-perspective:hover .lp-hero-device--dashboard {
    transform: rotate(-10deg) rotateY(5deg) scale(0.91) translate(2px, 14px);
  }

  .lp-dual-phones-perspective:hover .lp-hero-device--chat {
    transform: rotate(8deg) rotateY(-4deg) scale(1.03) translate(-8px, -14px);
  }
}

@media (min-width: 1280px) {
  .lp-hero-device--dashboard {
    transform: rotate(-12deg) rotateY(7deg) scale(0.91) translate(8px, 14px);
  }
  .lp-hero-device--chat {
    transform: rotate(8deg) rotateY(-6deg) scale(1.03) translate(-12px, -12px);
  }
}

.lp-hero-phone-float {
  margin-left: auto;
  margin-right: auto;
  animation: lp-phone 5.5s ease-in-out infinite;
}

.lp-hero-phone-float--delayed {
  animation-delay: -2.75s;
}

@keyframes lp-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-phone-float,
  .lp-hero-phone-float--delayed {
    animation: none;
  }
  .lp-dual-phones-perspective:hover .lp-hero-device--dashboard,
  .lp-dual-phones-perspective:hover .lp-hero-device--chat {
    transform: none;
  }
}

/* Legacy single-stage (unused on index hero; kept for any older markup) */
.lp-iphone-stage {
  display: flex;
  justify-content: center;
  transform: rotate(-2.5deg);
}

@media (min-width: 1024px) {
  .lp-iphone-stage {
    justify-content: flex-end;
    padding-right: 0.25rem;
    transform: rotate(-3.25deg) translateX(1.35rem) translateY(0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-iphone-stage {
    transform: none;
    padding-left: 0;
    padding-right: 0;
  }
}

.lp-iphone-bezel--hero {
  /* Depth via box-shadow only — avoids filter+3D-transform raster blur on screen UI */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 48px 96px -24px rgba(0, 0, 0, 0.58),
    0 24px 48px -16px rgba(0, 0, 0, 0.42),
    0 12px 28px -8px rgba(0, 0, 0, 0.32),
    0 0 88px -28px rgba(37, 211, 102, 0.14);
}

.lp-iphone-bezel--hero .lp-iphone-screen {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.lp-iphone-screen--hero {
  min-height: 400px;
  max-height: min(56vh, 500px);
}

/* Dashboard screen inside hero phone */
.lp-dash-mock {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  background: linear-gradient(180deg, #0c1218 0%, #080c10 100%);
  overflow: hidden;
}

.lp-dash-sidebar {
  width: 36px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  background: linear-gradient(180deg, #0f1720 0%, #0a0e14 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-dash-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.lp-dash-nav-ico {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.lp-dash-nav-ico--active {
  background: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}

.lp-dash-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
}

.lp-dash-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.95);
}

.lp-dash-stats {
  display: flex;
  gap: 6px;
}

.lp-dash-stat {
  flex: 1;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-dash-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.lp-dash-stat-lbl {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.95);
}

.lp-dash-row {
  display: flex;
  align-items: center;
  padding: 9px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid #25d366;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.lp-dash-row--muted {
  opacity: 0.88;
  border-left-color: rgba(37, 211, 102, 0.45);
}

.lp-dash-row-title {
  font-size: 10px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.lp-dash-row-sub {
  margin-top: 2px;
  font-size: 8px;
  color: #94a3b8;
  line-height: 1.2;
}

body.rtl .lp-dash-sidebar,
[dir="rtl"] .lp-dash-sidebar {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body.rtl .lp-dash-row,
[dir="rtl"] .lp-dash-row {
  border-left: none;
  border-right: 3px solid #25d366;
}

body.rtl .lp-dash-row--muted,
[dir="rtl"] .lp-dash-row--muted {
  border-right-color: rgba(37, 211, 102, 0.45);
}

.lp-iphone-bezel {
  position: relative;
  border-radius: 2.75rem;
  padding: 11px;
  background: linear-gradient(155deg, #5a5a5e 0%, #2a2a2c 28%, #0e0e0f 52%, #252527 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 36px 72px -16px rgba(0, 0, 0, 0.5),
    0 16px 32px -12px rgba(0, 0, 0, 0.35);
}

.lp-iphone-glare {
  pointer-events: none;
  position: absolute;
  inset: 11px;
  border-radius: 2.2rem;
  z-index: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, transparent 38%, transparent 100%);
  opacity: 0.45;
}

.lp-iphone-screen {
  position: relative;
  z-index: 1;
  border-radius: 2.2rem;
  overflow: hidden;
  background: #0a0a0b;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: min(58vh, 520px);
  box-shadow: 0 0 0 1px rgba(10, 10, 11, 0.85) inset;
}

/* iOS status + Dynamic Island */
.lp-ios-status {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 10px;
  background: #0a0a0b;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lp-ios-time {
  min-width: 3rem;
}

.lp-ios-dynamic-island {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  width: 92px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.lp-ios-trailing {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  opacity: 0.92;
  min-width: 3rem;
  justify-content: flex-end;
}

.lp-ios-battery {
  display: inline-block;
  width: 23px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  position: relative;
  margin-left: 2px;
  vertical-align: middle;
}

.lp-ios-battery::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  right: 5px;
  background: #fff;
  border-radius: 1px;
}

.lp-ios-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0 1px 1px 0;
}

.whatsapp-interface {
  flex: 1;
  min-height: 0;
  background: var(--lp-wa-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wa-header {
  background: var(--lp-secondary);
  padding: 8px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.wa-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  opacity: 0.92;
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lp-primary);
}

.lp-wa-avatar-glow {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  animation: lp-avatar-ring 2.8s ease-in-out infinite;
}
@keyframes lp-avatar-ring {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.45); }
}

.wa-name { font-weight: 600; font-size: 0.875rem; }
.wa-status { font-size: 0.7rem; opacity: 0.85; }

.wa-messages {
  flex: 1;
  min-height: 0;
  padding: 10px 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23182229' fill-opacity='0.35'%3E%3Cpath d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.wa-day-sep {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.wa-day-sep span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(233, 237, 239, 0.55);
  background: rgba(11, 20, 26, 0.85);
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wa-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 88%;
}

.wa-bubble-wrap--out {
  align-items: flex-end;
  margin-left: auto;
}

.wa-bubble-wrap--in {
  align-items: flex-start;
}

.wa-msg-meta {
  font-size: 0.62rem;
  color: #8696a0;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wa-message.sent .wa-msg-meta::after {
  content: '';
  width: 14px;
  height: 10px;
  margin-left: 1px;
  opacity: 0.85;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='%2353bdeb' d='M5.7 9.5.5 4.3l1.4-1.4 3.8 3.8L14.1.3l1.4 1.4-6.5 6.5-1.4 1.3z'/%3E%3C/svg%3E");
}

.wa-message {
  display: flex;
  animation: lp-msg 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wa-message.sent { justify-content: flex-end; }
.wa-message.received { justify-content: flex-start; }

#waMessagesHero .wa-message:nth-child(2) { animation-delay: 0.2s; }
#waMessagesHero .wa-message:nth-child(3) { animation-delay: 0.58s; }
#waMessagesHero .wa-message:nth-child(4) { animation-delay: 0.96s; }

@keyframes lp-msg {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typing indicator (hero mock) */
.wa-typing {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 4px 0 2px;
  animation: lp-msg 0.4s ease-out 1.28s both;
}

.wa-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  background: #202c33;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.wa-typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696a0;
  animation: lp-typing-bounce 1.1s ease-in-out infinite;
}
.wa-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing-bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lp-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.message-bubble {
  max-width: 100%;
  padding: 7px 11px 8px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.38;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.wa-message.sent .message-bubble {
  background: var(--lp-bubble-light);
  color: var(--lp-wa-bubble-out-fg);
  border-bottom-right-radius: 3px;
}

.wa-message.received .message-bubble {
  background: #202c33;
  color: #e9edef;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.wa-message.auto-reply .message-bubble {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* iOS-style input stub (WhatsApp-ish) */
.wa-ios-compose {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 12px;
  background: #1e2a30;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8696a0;
  font-size: 0.95rem;
}

.wa-ios-compose .fa-plus {
  opacity: 0.85;
}

.wa-ios-compose-field {
  flex: 1;
  background: #2a3942;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: #8696a0;
  line-height: 1.25;
}

.wa-ios-compose .fa-microphone {
  opacity: 0.9;
  color: #00a884;
}

body.rtl .lp-iphone-stage,
[dir="rtl"] .lp-iphone-stage {
  transform: rotate(2.5deg);
}

@media (min-width: 1024px) {
  body.rtl .lp-iphone-stage,
  [dir="rtl"] .lp-iphone-stage {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 0.25rem;
    transform: rotate(3.25deg) translateX(-1.35rem) translateY(0.35rem);
  }

  body.rtl .phone-mockup.lp-iphone-float,
  [dir="rtl"] .phone-mockup.lp-iphone-float {
    margin-left: 0;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  body.rtl .lp-hero-device--dashboard,
  [dir="rtl"] .lp-hero-device--dashboard {
    left: auto;
    right: 0;
    transform: rotate(11deg) rotateY(-6deg) scale(0.9) translate(-4px, 18px);
  }

  body.rtl .lp-hero-device--chat,
  [dir="rtl"] .lp-hero-device--chat {
    right: auto;
    left: 0;
    transform: rotate(-9deg) rotateY(5deg) scale(1.02) translate(6px, -10px);
  }

  body.rtl .lp-dual-phones-perspective:hover .lp-hero-device--dashboard,
  [dir="rtl"] .lp-dual-phones-perspective:hover .lp-hero-device--dashboard {
    transform: rotate(10deg) rotateY(-5deg) scale(0.91) translate(-2px, 14px);
  }

  body.rtl .lp-dual-phones-perspective:hover .lp-hero-device--chat,
  [dir="rtl"] .lp-dual-phones-perspective:hover .lp-hero-device--chat {
    transform: rotate(-8deg) rotateY(4deg) scale(1.03) translate(8px, -14px);
  }
}

/* Language dropdown (i18n.js toggles .show) */
.language-selector { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--lp-border);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lp-text);
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  background: var(--lp-lang-hover);
  border-color: var(--lp-primary);
}

.lang-btn i.fa-globe { color: var(--lp-primary); }
.lang-btn i.fa-chevron-down { font-size: 0.65rem; transition: transform 0.2s; }

.language-selector:has(.lang-dropdown.show) .lang-btn i.fa-chevron-down {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--lp-bg-raised);
  border-radius: 0.75rem;
  box-shadow: 0 16px 48px rgba(11, 18, 32, 0.12);
  border: 1px solid var(--lp-line-default);
  min-width: 168px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
  overflow: hidden;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--lp-text);
  transition: background 0.15s;
  font-family: inherit;
}

.lang-option:hover { background: var(--lp-lang-option-hover); }
.lang-option.active {
  background: var(--lp-lang-option-active);
  color: var(--lp-lang-active-fg);
  font-weight: 600;
}

/* Nav links — desktop row; mobile overlay below */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    position: static !important;
    transform: none !important;
    max-height: none !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}

/* Mobile menu — visibility: use Tailwind on #hamburger (e.g. flex lg:hidden) */
.hamburger {
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  z-index: 60;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--lp-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 1023px) {
  /* Right-edge sheet (below top bar), matches premium mobile patterns */
  .nav-menu {
    position: fixed;
    top: calc(4rem + env(safe-area-inset-top, 0px));
    left: auto;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    max-height: calc(100dvh - 4rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-top-left-radius: 1.15rem;
    box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12), -2px 0 0 rgba(37, 211, 102, 0.08);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 90;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .nav-menu > li {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.5rem 0;
  }
  .nav-menu > li.lp-mobile-drawer-head {
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0 1rem;
    margin-bottom: 0.35rem;
  }
  .nav-menu .lp-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lp-fg-default);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .nav-menu > li:last-child { border-bottom: none; }
  .hamburger.active {
    background: rgba(37, 211, 102, 0.12);
  }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

@media (max-width: 1023px) {
  body.rtl .nav-menu,
  [dir='rtl'] .nav-menu {
    right: auto;
    left: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 1.15rem;
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.12), 2px 0 0 rgba(37, 211, 102, 0.08);
    transform: translateX(-105%);
  }

  body.rtl .nav-menu.active,
  [dir='rtl'] .nav-menu.active {
    transform: translateX(0);
  }

  html.dark body.rtl .nav-menu,
  html.dark [dir='rtl'] .nav-menu {
    box-shadow: 10px 0 44px rgba(0, 0, 0, 0.45), 2px 0 0 rgba(37, 211, 102, 0.12);
  }
}

/* Scroll reveal (landing.js adds .aos-animate) */
[data-aos] {
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-aos].aos-animate { opacity: 1; }
[data-aos="fade-up"] { transform: translateY(20px); }
[data-aos="fade-up"].aos-animate { transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-16px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(16px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* Benefits mini preview */
.dashboard-preview {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--lp-border);
  background: #fff;
}
.dashboard-header {
  background: #f8fafc;
  padding: 10px 12px;
  border-bottom: 1px solid var(--lp-border);
}
.dashboard-controls { display: flex; gap: 6px; }
.control-dot { width: 10px; height: 10px; border-radius: 50%; }
.control-dot.red { background: #f87171; }
.control-dot.yellow { background: #fbbf24; }
.control-dot.green { background: #25d366; }
.dashboard-content { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dashboard-card {
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  min-height: 72px;
}
.card-header { height: 8px; background: #e2e8f0; border-radius: 8px 8px 0 0; }
.card-body { padding: 10px; }
.chart-placeholder {
  height: 48px;
  background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%);
  border-radius: 6px;
}
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-box { height: 36px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border-radius: 6px; }

/* Pricing feature list — keep height reasonable */
.lp-price-features {
  max-height: 11.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
}
.lp-price-features::-webkit-scrollbar { width: 4px; }
.lp-price-features::-webkit-scrollbar-thumb {
  background: var(--lp-line-default);
  border-radius: 4px;
}

/* Product preview */
.lp-preview-card { transition: box-shadow 0.25s ease, transform 0.25s ease; }
.lp-preview-card:hover { transform: translateY(-2px); }

.lp-skel {
  display: inline-block;
  border-radius: 9999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: lp-skel 1.2s ease-in-out infinite;
}
.lp-skel-dot { width: 8px; height: 8px; }
@keyframes lp-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-skel { animation: none; background: #e2e8f0; }
}

/* QR mock — realistic code + scan frame */
.lp-qr-scan-frame {
  position: relative;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 12px;
  background: var(--lp-qr-tile-bg);
  box-shadow:
    inset 0 0 0 1px var(--lp-qr-tile-line),
    var(--lp-shadow-sm);
}
.lp-qr-scan-frame::before,
.lp-qr-scan-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(37, 211, 102, 0.55);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  border-radius: 3px;
}
.lp-qr-scan-frame::before {
  top: 4px;
  left: 4px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.lp-qr-scan-frame::after {
  bottom: 4px;
  right: 4px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}
.lp-qr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(37, 211, 102, 0.55);
  border-style: solid;
  border-width: 0;
  border-radius: 3px;
  pointer-events: none;
}
.lp-qr-corner-tr {
  top: 4px;
  right: 4px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.lp-qr-corner-bl {
  bottom: 4px;
  left: 4px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.lp-qr-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.lp-qr-scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  top: 18px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 211, 102, 0.15),
    rgba(37, 211, 102, 0.85),
    rgba(37, 211, 102, 0.15),
    transparent
  );
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.45);
  animation: lp-qr-scan 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes lp-qr-scan {
  0%, 100% { top: 18px; opacity: 0.35; }
  50% { top: calc(100% - 22px); opacity: 1; }
}

.lp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid var(--lp-line-default);
  background: var(--lp-status-bg);
  color: var(--lp-status-fg);
}
.lp-status-on {
  border-color: var(--lp-ring-brand);
  background: var(--lp-status-on-bg);
  color: var(--lp-status-on-fg);
}
.lp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.lp-status-on .lp-status-dot {
  background: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  animation: lp-pulse-dot 2s ease-in-out infinite;
}
.lp-status-header {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #f4f4f5;
  font-size: 9px;
}
.lp-status-header .lp-status-dot {
  background: #bbf7d0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  animation: lp-pulse-dot 2s ease-in-out infinite;
}
@keyframes lp-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-status-on .lp-status-dot,
  .lp-status-header .lp-status-dot { animation: none; }
}

/* --- Motion layer: hero entrance, marquee, nav, CTA, polish --- */
.lp-phone-tilt {
  transform-origin: center center;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

/* Hero staggered entrance */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: lp-reveal-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lp-reveal-d1 { animation-delay: 0.04s; }
.lp-reveal-d2 { animation-delay: 0.1s; }
.lp-reveal-d3 { animation-delay: 0.18s; }
.lp-reveal-d4 { animation-delay: 0.26s; }
.lp-reveal-d5 { animation-delay: 0.34s; }
.lp-reveal-d6 { animation-delay: 0.42s; }

@keyframes lp-reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust strip — static grid, no scroll animation */
.lp-trust-grid { align-items: stretch; }
.lp-trust-pill:focus-within {
  outline: 2px solid var(--lp-ring-brand);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .lp-trust-pill { transition: none; }
  .lp-trust-pill:hover { transform: none; }
}

/* Nav link underline (desktop) */
@media (min-width: 1024px) {
  .lp-nav .lp-nav-link {
    position: relative;
  }
  .lp-nav .lp-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--lp-primary);
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .lp-nav .lp-nav-link:hover::after {
    width: 100%;
  }
}

/* Stat tiles */
.lp-stat-tile {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lp-stat-tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 211, 102, 0.35);
}

/* Message bubble subtle shine */
.message-bubble.lp-bubble-shine {
  position: relative;
  overflow: hidden;
}
.message-bubble.lp-bubble-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 58%
  );
  transform: translateX(-120%);
  animation: lp-bubble-shine 5s ease-in-out infinite;
  pointer-events: none;
}
.wa-message.received .message-bubble.lp-bubble-shine::after {
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 62%
  );
}
@keyframes lp-bubble-shine {
  0%, 35% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

/* QR mock — outer card pulse */
.lp-qr-mock {
  animation: lp-qr-breathe 4s ease-in-out infinite;
}
@keyframes lp-qr-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 1px rgba(226, 232, 240, 0.9);
    transform: scale(1);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 0 0 1px rgba(37, 211, 102, 0.28),
      0 12px 28px rgba(37, 211, 102, 0.08);
    transform: scale(1.01);
  }
}

html.dark .lp-qr-mock {
  animation: lp-qr-breathe-dark 4s ease-in-out infinite;
}

@keyframes lp-qr-breathe-dark {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 0 1px var(--lp-line-default);
    transform: scale(1);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 0 1px rgba(37, 211, 102, 0.38),
      0 12px 28px rgba(37, 211, 102, 0.1);
    transform: scale(1.01);
  }
}

/* Inbox & status — richer product preview */
.lp-inbox-mock {
  background: #0b141a;
}
.lp-inbox-body {
  min-height: 168px;
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 8c2 0 3 1 3 3s-1 3-3 3-3-1-3-3 1-3 3-3zm0 58c2 0 3 1 3 3s-1 3-3 3-3-1-3-3 1-3 3-3zM8 40c0-2 1-3 3-3s3 1 3 3-1 3-3 3-3-1-3-3zm58 0c0-2 1-3 3-3s3 1 3 3-1 3-3 3-3-1-3-3z'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-inbox-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-inbox-tab-active {
  color: #fff;
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.35);
}
.lp-inbox-tab-pill {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(37, 211, 102, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.lp-inbox-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lp-inbox-row-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.lp-inbox-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.lp-inbox-avatar-brand {
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
}
.lp-inbox-unread {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  color: #0b141a;
  background: #25d366;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
body.rtl .lp-inbox-tab-pill,
[dir="rtl"] .lp-inbox-tab-pill {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* Template caret */
.lp-tpl-editor .lp-tpl-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--lp-primary);
  animation: lp-caret-blink 1s step-end infinite;
}
@keyframes lp-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* CTA background blobs */
.lp-blob {
  animation: lp-blob-drift 14s ease-in-out infinite alternate;
}
.lp-blob-b {
  animation-duration: 18s;
  animation-delay: -4s;
}
@keyframes lp-blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12px, 18px) scale(1.08); }
}

/* Primary CTA soft pulse (shadow) */
.lp-cta-pulse {
  animation: lp-cta-glow 2.8s ease-in-out infinite;
}
@keyframes lp-cta-glow {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28); }
  50% { box-shadow: 0 14px 36px rgba(37, 211, 102, 0.42); }
}

/* Popular pricing badge pulse */
.lp-popular-badge {
  animation: lp-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-badge-pulse {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, 0) scale(1.03); }
}

/* AOS: zoom-in */
[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .lp-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lp-iphone-stage {
    transform: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .lp-hero-device--dashboard,
  .lp-hero-device--chat {
    transform: none !important;
  }
  .lp-dual-phones-perspective:hover .lp-hero-device--dashboard,
  .lp-dual-phones-perspective:hover .lp-hero-device--chat {
    transform: none !important;
  }
  .lp-blob { animation: none; }
  .lp-cta-pulse { animation: none; }
  .lp-popular-badge { animation: none; transform: translate(-50%, 0); }
  .message-bubble.lp-bubble-shine::after { animation: none; display: none; }
  .lp-qr-mock { animation: none; }
  .lp-qr-scan-line { animation: none; opacity: 0.55; top: 42%; }
  .lp-tpl-editor .lp-tpl-caret { animation: none; opacity: 1; }
  .wa-typing-bubble span { animation: none; opacity: 0.7; }
  .lp-wa-avatar-glow { animation: none; }
  #waMessagesHero .wa-message,
  .wa-typing { animation: none; opacity: 1; transform: none; }
  .wa-message { animation: none; opacity: 1; transform: none; }
}

/* --- html.dark: Tailwind utility bridges (landing index) — all colors via tokens --- */
/* Nav bar fill + blur: apply to .lp-nav-backdrop so fixed #navMenu is not inside a backdrop-filter subtree */
html.dark #navbar.lp-nav {
  background-color: transparent !important;
  border-color: var(--lp-nav-line) !important;
}

html.dark #navbar.lp-nav .lp-nav-backdrop {
  background-color: var(--lp-nav-glass) !important;
  border-bottom-color: var(--lp-nav-line) !important;
}

html.dark #navbar.ring-slate-200\/70,
html.dark #navbar[class*="ring-slate"] {
  --tw-ring-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark #navbar.shadow-md {
  box-shadow: var(--lp-shadow-nav-scrolled) !important;
}

html.dark .lang-dropdown {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--lp-line-default);
}

@media (max-width: 1023px) {
  html.dark .nav-menu {
    background: var(--lp-bg-raised) !important;
    box-shadow: -10px 0 44px rgba(0, 0, 0, 0.45), -2px 0 0 rgba(37, 211, 102, 0.12) !important;
  }

  html.dark .nav-menu > li {
    border-bottom-color: var(--lp-line-muted);
  }

  html.dark .nav-menu > li.lp-mobile-drawer-head {
    border-bottom-color: var(--lp-line-default);
  }

  html.dark .nav-menu .lp-nav-link {
    color: var(--lp-fg-default);
  }
}

html.dark .gradient-orb {
  opacity: 0.13;
}

html.dark .lp-trust-strip {
  background: linear-gradient(
    to bottom,
    var(--lp-bg-muted),
    var(--lp-bg-raised),
    var(--lp-bg-canvas)
  ) !important;
  border-color: var(--lp-line-muted) !important;
}

html.dark .lp-stat-tile {
  background-color: var(--lp-bg-muted) !important;
  border-color: var(--lp-line-default) !important;
}

html.dark .feature-card:hover {
  background-color: var(--lp-bg-raised) !important;
}

/* Preview card status chip: already uses .lp-status + tokens; reinforce on dark cards */
html.dark .lp-preview-card .lp-status:not(.lp-status-header) {
  background: var(--lp-status-bg);
  border-color: var(--lp-line-default);
  color: var(--lp-status-fg);
}

html.dark .lp-preview-card .lp-status-on {
  background: var(--lp-status-on-bg);
  border-color: var(--lp-ring-brand);
  color: var(--lp-status-on-fg);
}

html.dark .bg-white {
  background-color: var(--lp-bg-raised) !important;
}

html.dark .bg-slate-50 {
  background-color: var(--lp-bg-canvas) !important;
}

html.dark .bg-slate-50\/80 {
  background-color: rgba(38, 38, 44, 0.88) !important;
}

html.dark .bg-slate-100 {
  background-color: var(--lp-bg-muted) !important;
}

html.dark .bg-slate-800 {
  background-color: var(--lp-bg-inset) !important;
}

html.dark .bg-slate-900 {
  background-color: #252528 !important;
}

html.dark .bg-emerald-50 {
  background-color: rgba(37, 211, 102, 0.12) !important;
}

html.dark .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.12) !important;
}

html.dark .bg-white\/70 {
  background-color: rgba(28, 28, 31, 0.82) !important;
}

html.dark .bg-white\/95 {
  background-color: rgba(28, 28, 31, 0.94) !important;
}

html.dark .from-brand-muted\/50.to-white {
  background-image: linear-gradient(
    to bottom,
    rgba(37, 211, 102, 0.14),
    var(--lp-bg-raised)
  ) !important;
}

html.dark .border-slate-200 {
  border-color: var(--lp-line-default) !important;
}

html.dark .border-slate-200\/90 {
  border-color: rgba(63, 74, 92, 0.72) !important;
}

html.dark .border-slate-100 {
  border-color: var(--lp-line-muted) !important;
}

html.dark .border-slate-300 {
  border-color: var(--lp-line-default) !important;
}

html.dark .hover\:border-slate-300:hover {
  border-color: #5c6570 !important;
}

/* Ghost / outline nav & pricing buttons stay readable */
html.dark a.border-slate-200.bg-white,
html.dark .border-slate-200.text-slate-800 {
  border-color: var(--lp-line-default) !important;
}

html.dark .text-slate-900 {
  color: var(--lp-fg-default) !important;
}

html.dark .text-slate-800 {
  color: var(--lp-fg-secondary) !important;
}

html.dark .text-slate-700 {
  color: var(--lp-fg-secondary) !important;
}

html.dark .text-slate-600 {
  color: var(--lp-fg-muted) !important;
}

html.dark .text-slate-500 {
  color: var(--lp-fg-muted) !important;
}

html.dark .text-slate-400 {
  color: var(--lp-fg-subtle) !important;
}

html.dark .text-slate-300 {
  color: var(--lp-fg-subtle) !important;
}

html.dark #cta-banner .text-slate-300 {
  color: var(--lp-fg-secondary) !important;
}

html.dark #cta-banner .text-slate-400 {
  color: var(--lp-fg-muted) !important;
}

html.dark .bg-slate-900 .text-slate-300,
html.dark .bg-slate-900 .text-slate-400 {
  color: var(--lp-fg-secondary) !important;
}

html.dark .bg-slate-900 .text-slate-500 {
  color: var(--lp-fg-muted) !important;
}

html.dark a.bg-brand.text-slate-900,
html.dark .bg-brand.text-slate-900 {
  color: var(--lp-on-brand) !important;
}

html.dark footer .text-slate-500,
html.dark footer .text-slate-400 {
  color: var(--lp-fg-muted) !important;
}

/* Product preview: template editor panel */
html.dark .lp-tpl-editor {
  background: var(--lp-bg-muted) !important;
  border-color: var(--lp-line-default) !important;
  color: var(--lp-fg-secondary) !important;
}

html.dark .lp-inbox-mock {
  border-color: var(--lp-line-default) !important;
}

/* RTL */
body.rtl, [dir="rtl"] { direction: rtl; text-align: right; }
body.rtl .lang-dropdown, [dir="rtl"] .lang-dropdown { right: auto; left: 0; }
