/* SBot · Dark Modern SaaS · RTL · Mobile-first
   WhatsApp emerald accents (#25D366) · Heebo typography */

:root {
  /* Core dark palette */
  --bg: #0a0f14;
  --bg-elevated: #0f1419;
  --surface: #151b23;
  --surface-hover: #1a222c;
  --surface-active: #1f2937;
  
  /* Text */
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* WhatsApp emerald accent */
  --emerald: #25D366;
  --emerald-dark: #1da855;
  --emerald-soft: rgba(37, 211, 102, 0.12);
  --emerald-glow: rgba(37, 211, 102, 0.4);
  --emerald-subtle: rgba(37, 211, 102, 0.08);
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-active: rgba(37, 211, 102, 0.4);
  
  /* Shadows & glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glow-emerald: 0 0 20px rgba(37, 211, 102, 0.3);
  --glow-emerald-strong: 0 0 40px rgba(37, 211, 102, 0.4);
  
  /* Layout */
  --max: 1040px;
  --header-h: 68px;
  --radius: 14px;
  --radius-lg: 20px;
  
  /* Input */
  --input-bg: #1a222c;
  --input-border: rgba(255, 255, 255, 0.1);
  
  /* Animation */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  
  /* Semantic */
  --wa: #25D366;
  --wa-dark: #1da855;
  --error-bg: rgba(220, 38, 38, 0.15);
  --error-border: rgba(220, 38, 38, 0.35);
  --success-bg: rgba(37, 211, 102, 0.15);
  --success-border: rgba(37, 211, 102, 0.35);
  --footer-bg: #050810;
  
  /* Legacy mapping for compatibility */
  --navy: #f1f5f9;
  --navy-mid: #e2e8f0;
  --teal: #25D366;
  --teal-dark: #1da855;
  --teal-soft: rgba(37, 211, 102, 0.12);
  --teal-line: #25D366;
  --card: #151b23;
  --muted: #94a3b8;
  --header-bg: rgba(10, 15, 20, 0.85);
  --bubble-bot: rgba(37, 211, 102, 0.1);
  --bubble-user: rgba(255, 255, 255, 0.06);
}

/* Light theme (optional override) */
html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-active: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --emerald-soft: rgba(37, 211, 102, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.1);
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --card: #ffffff;
  --muted: #64748b;
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #0f172a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--emerald-dark); }

ul { list-style: none; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 640px) {
  .wrap { padding-inline: 20px; }
}

/* ══════════════════════════════════════════
   Header
   ══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-inline: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo span { color: var(--emerald); }
.logo:hover { opacity: 0.85; color: var(--text); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  background: var(--emerald-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--emerald);
  color: #000 !important;
  text-decoration: none !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: var(--glow-emerald);
  transition: transform 0.15s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: var(--glow-emerald-strong);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}
.menu-btn:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 0 18px;
  background: var(--bg-elevated);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--emerald); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .nav-mobile { display: none !important; }
}

/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: transform 0.15s var(--ease-spring), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-wa {
  background: var(--emerald);
  color: #000 !important;
  box-shadow: var(--glow-emerald);
}
.btn-wa:hover {
  background: var(--emerald-dark);
  box-shadow: var(--glow-emerald-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.btn-teal {
  background: var(--emerald);
  color: #000 !important;
  box-shadow: var(--glow-emerald);
}
.btn-teal:hover {
  background: var(--emerald-dark);
  box-shadow: var(--glow-emerald-strong);
}

.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pulsing CTA animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-emerald); }
  50% { box-shadow: var(--glow-emerald-strong), 0 0 60px rgba(37, 211, 102, 0.2); }
}
.btn-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}

/* ══════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════ */
.hero {
  padding-block: 48px 60px;
  padding-inline: 24px;
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-block: 64px 80px;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--emerald);
  text-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
}

.lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 36em;
  line-height: 1.7;
}

.trust-row {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}

/* Hero demo frame - polished phone mockup */
.hero-demo-frame {
  position: relative;
  max-width: min(380px, 100%);
  margin-inline: auto;
  width: 100%;
}

.phone-mockup {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 60px rgba(37, 211, 102, 0.15);
  transition: box-shadow 0.3s var(--ease-out);
}
.phone-mockup:hover {
  box-shadow: 
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 80px rgba(37, 211, 102, 0.25);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  min-height: 520px;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 28px;
}

/* Floating badges around demo */
.demo-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.demo-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow-md), var(--glow-emerald);
  animation: badge-float 3s ease-in-out infinite;
}

.demo-badge:nth-child(1) {
  top: 8%;
  right: -8px;
  animation-delay: 0s;
}
.demo-badge:nth-child(2) {
  top: 35%;
  left: -8px;
  animation-delay: 0.5s;
}
.demo-badge:nth-child(3) {
  bottom: 18%;
  right: -8px;
  animation-delay: 1s;
}
@media (min-width: 480px) {
  .demo-badge:nth-child(1) { right: -40px; }
  .demo-badge:nth-child(2) { left: -60px; }
  .demo-badge:nth-child(3) { right: -35px; }
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

/* Legacy hero card (static preview) */
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), rgba(37, 211, 102, 0.3));
}
.hero-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.bubble {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  max-width: 92%;
  line-height: 1.5;
}
.bubble.bot {
  background: var(--emerald-soft);
  border-inline-end: 3px solid var(--emerald);
}
.bubble.user {
  background: var(--bubble-user);
  margin-inline-start: auto;
  margin-inline-end: 0;
  border-inline-start: 3px solid var(--text-muted);
}
.bubble small {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 5px;
}

/* ══════════════════════════════════════════
   Sections
   ══════════════════════════════════════════ */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
  max-width: 38em;
  margin-inline: auto;
}
.section-head h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}
.section-head.right {
  text-align: right;
  margin-inline: 0;
}

.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 42em;
}

/* ══════════════════════════════════════════
   Feature Grid
   ══════════════════════════════════════════ */
.features {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-spring);
}
.feature:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md), var(--glow-emerald);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .feature:hover { transform: none; }
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
  border: 1px solid rgba(37, 211, 102, 0.2);
}
.feature h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}
.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   Steps
   ══════════════════════════════════════════ */
.steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.step .num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--emerald);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 1.04rem;
  color: var(--text);
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════
   Pricing
   ══════════════════════════════════════════ */
.price-card {
  max-width: 540px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--emerald-subtle) 0%, var(--surface) 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(37, 211, 102, 0.1);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--emerald);
}

.price-card .tag {
  display: inline-block;
  background: var(--emerald);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-card h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 10px;
}
.price-lock {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald);
  margin-bottom: 18px;
}
.price-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-row strong {
  font-size: 1.15rem;
  color: var(--emerald);
  white-space: nowrap;
}
.price-row.total {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald);
}
.price-row.total strong {
  color: #000;
  font-size: 1.25rem;
}

.price-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.price-lists {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  text-align: right;
}
@media (min-width: 480px) {
  .price-lists { grid-template-columns: 1fr 1fr; }
}
.price-lists h4 {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
}
.price-lists ul li {
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.price-lists .yes li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 700;
}
.price-lists .no li::before {
  content: "– ";
  color: var(--text-muted);
  font-weight: 700;
}
.price-lists .no li {
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   Two Column Layout
   ══════════════════════════════════════════ */
.two-col {
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}

.prose {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.75;
}
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--text); font-weight: 700; }

/* ══════════════════════════════════════════
   Cards
   ══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.card h3 {
  color: var(--text);
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}
.card + .card { margin-top: 16px; }

/* ══════════════════════════════════════════
   Contact Grid
   ══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1.25fr 0.75fr; }
}

.contact-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.contact-main h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.contact-main .body {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.phone-display {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.meta-line a { color: var(--emerald); }

/* ══════════════════════════════════════════
   Demo Panel
   ══════════════════════════════════════════ */
.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: var(--shadow-md), 0 0 50px rgba(37, 211, 102, 0.08);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.demo-panel h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.demo-panel p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.demo-note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: right;
  border: 1px dashed var(--border);
}

/* CTA Band */
.cta-band {
  text-align: center;
  padding: 52px 0;
}
.cta-band h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 10px;
}
.cta-band p {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 32px;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
}

.footer-brand {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.footer-brand:hover { color: #fff; }
.footer-brand span { color: var(--emerald); }

.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--emerald); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-disclaimers {
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ══════════════════════════════════════════
   Badge Row
   ══════════════════════════════════════════ */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ══════════════════════════════════════════
   Theme Toggle
   ══════════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  font-size: 1.15rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease-spring);
}
.theme-toggle:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: border-color 0.2s, background 0.2s; }
  .theme-toggle:hover { transform: none; }
}

.theme-toggle-corner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.theme-toggle-corner:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg), var(--glow-emerald);
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle-corner { transition: box-shadow 0.2s; }
  .theme-toggle-corner:hover { transform: none; }
}

/* ══════════════════════════════════════════
   Privacy Box
   ══════════════════════════════════════════ */
.privacy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.privacy-box h2 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 26px 0 10px;
}
.privacy-box h2:first-child { margin-top: 0; }
.privacy-box p,
.privacy-box li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 10px;
  line-height: 1.7;
}
.privacy-box ul {
  padding-right: 20px;
  list-style: disc;
}
.privacy-box li { margin-bottom: 6px; }

/* ══════════════════════════════════════════
   Scroll Animations
   ══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-stagger {
  opacity: 0;
  transform: translateY(20px);
}
.fade-up-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════
   Form Styles
   ══════════════════════════════════════════ */
.contact-form-inline .form-group {
  margin-bottom: 18px;
}
.contact-form-inline .form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.contact-form-inline .form-group label .required {
  color: #ef4444;
  margin-right: 3px;
}
.contact-form-inline .form-group input,
.contact-form-inline .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-inline .form-group input:focus,
.contact-form-inline .form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}
.contact-form-inline .form-group input::placeholder,
.contact-form-inline .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.contact-form-inline .form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.contact-form-inline .form-group input.error,
.contact-form-inline .form-group textarea.error {
  border-color: #ef4444;
}
.contact-form-inline .form-actions {
  margin-top: 20px;
}

.form-message {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}
.form-message.success {
  display: block;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--emerald);
}
.form-message.error {
  display: block;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #f87171;
}

.wa-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.wa-divider::before,
.wa-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════════
   Sticky WhatsApp Bar (Mobile)
   ══════════════════════════════════════════ */
.sticky-wa {
  display: none;
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--emerald);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: var(--glow-emerald-strong);
}
.sticky-wa:hover { background: var(--emerald-dark); color: #000 !important; }
.sticky-wa.is-on { display: flex; }
@media (min-width: 900px) {
  .sticky-wa { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-wa { transition: none; }
}

/* ══════════════════════════════════════════
   LTR Helper
   ══════════════════════════════════════════ */
.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ══════════════════════════════════════════
   Typography Polish
   ══════════════════════════════════════════ */
h1, h2, h3, .hero-title, .section-title { text-wrap: pretty; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-cta:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════
   Hero Card WA Polish
   ══════════════════════════════════════════ */
.hero-card .bubble-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   Responsive Type Adjustments
   ══════════════════════════════════════════ */
.hero p, .lead, .hero-lead { font-size: 1.14rem; line-height: 1.72; }
.price-lock { font-size: 1.05rem; }
.card p, .feature p { font-size: 1rem; }

/* ══════════════════════════════════════════
   Stories Strip (Instagram-style)
   ══════════════════════════════════════════ */
.stories-strip {
  grid-column: 1 / -1;
  padding-block: 8px 0;
}

.stories-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stories-row::-webkit-scrollbar { display: none; }

.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform 0.2s var(--ease-spring);
}
.story-circle:hover { transform: scale(1.05); }
.story-circle:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .story-circle:hover { transform: none; }
}

.story-circle__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald) 0%, #f59e0b 50%, #ec4899 100%);
  z-index: 0;
  transition: opacity 0.3s;
}

.story-circle__thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--bg);
  z-index: 1;
}
.story-circle__thumb img,
.story-circle__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.story-circle__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-circle.is-watched .story-circle__ring {
  background: var(--border);
  opacity: 0.5;
}

/* Make the ring a wrapper */
.story-circle {
  position: relative;
}
.story-circle__ring {
  position: absolute;
  inset: 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--emerald) 0%, #f59e0b 50%, #ec4899 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ══════════════════════════════════════════
   Story Viewer Overlay
   ══════════════════════════════════════════ */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.story-viewer[hidden] { display: none; }

.story-viewer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.story-viewer__container {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.story-viewer__progress {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.story-viewer__progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.story-viewer__progress-seg.is-done {
  background: #fff;
}
.story-viewer__progress-seg.is-active {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.3) 100%);
}

.story-viewer__close {
  position: absolute;
  top: 28px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.story-viewer__close:hover { background: rgba(0, 0, 0, 0.7); }

.story-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}
.story-viewer__nav:hover { background: rgba(255, 255, 255, 0.25); }
.story-viewer__nav:disabled { opacity: 0.3; cursor: default; }
.story-viewer__nav--prev { left: 8px; }
.story-viewer__nav--next { right: 8px; }

.story-viewer__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.story-viewer__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* RTL adjustments for story viewer nav */
html[dir="rtl"] .story-viewer__nav--prev { left: auto; right: 8px; }
html[dir="rtl"] .story-viewer__nav--next { right: auto; left: 8px; }
html[dir="rtl"] .story-viewer__close { right: auto; left: 12px; }

@media (max-width: 480px) {
  .story-viewer__container {
    max-width: 100%;
    border-radius: 0;
    aspect-ratio: auto;
    height: 100%;
  }
  .story-viewer { padding: 0; }
  .story-viewer__nav { display: none; }
}
