/* ===== MsgBox - Plain CSS rebuild ===== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --background: hsl(220, 20%, 97%);
  --foreground: hsl(222, 47%, 11%);
  --card: #ffffff;
  --card-foreground: hsl(222, 47%, 11%);
  --primary: hsl(250, 89%, 60%);
  --primary-foreground: #ffffff;
  --primary-glow: hsl(250, 95%, 70%);
  --secondary-accent: hsl(330, 85%, 60%);
  --tertiary: hsl(180, 70%, 50%);
  --secondary: hsl(220, 25%, 94%);
  --secondary-foreground: hsl(222, 47%, 11%);
  --muted: hsl(220, 20%, 94%);
  --muted-foreground: hsl(220, 10%, 45%);
  --accent: hsl(250, 89%, 60%);
  --border: hsl(220, 20%, 88%);
  --input: hsl(220, 20%, 88%);
  --ring: hsl(250, 89%, 60%);
  --destructive: hsl(0, 84%, 60%);
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(250 89% 60% / .08) 0%, hsl(330 85% 60% / .05) 25%, hsl(0 0% 100%) 50%, hsl(180 70% 50% / .05) 75%, hsl(220 20% 97%) 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, hsl(220 25% 98%));
  --gradient-text: linear-gradient(135deg, hsl(250 89% 60%), hsl(330 85% 60%));
  --gradient-vibrant: linear-gradient(135deg, hsl(250 89% 60%), hsl(330 85% 60%), hsl(180 70% 50%));
  --gradient-mesh: radial-gradient(at 40% 20%, hsl(250 89% 60% / .15) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, hsl(330 85% 60% / .1) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, hsl(180 70% 50% / .1) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, hsl(250 89% 60% / .08) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, hsl(330 85% 60% / .12) 0px, transparent 50%);

  --shadow-glow: 0 0 80px hsl(250 89% 60% / .25);
  --shadow-card: 0 8px 32px hsl(222 47% 11% / .08);
  --shadow-button: 0 8px 24px hsl(250 89% 60% / .4);
}

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

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

body {
  font-family: Heebo, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn-hero {
  background: var(--gradient-vibrant);
  color: #fff;
  box-shadow: var(--shadow-button);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 32px hsl(250 89% 60% / .5); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--secondary); border-color: var(--border); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-glow); }
.btn-wa {
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-wa:hover { background: #1fb957; color: #fff; }
.btn-wa svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color .2s;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; gap: 0.5rem; align-items: center; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 7rem 0 5rem;
  background: var(--gradient-hero);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: 2.25rem;  /* 36px - text-4xl */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }      /* 48px - text-5xl */
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }  /* 60px - text-6xl */
.text-gradient {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero p.lead {
  font-size: 1.25rem;  /* text-xl */
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 36rem;
}
@media (min-width: 768px) { .hero p.lead { font-size: 1.5rem; } } /* md:text-2xl */
.hero p.lead .accent { color: var(--primary); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;            /* text-sm */
  color: var(--muted-foreground);
}
.badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}
.badge.glass {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge.success { color: #16a34a; }
.badge.info { color: var(--primary); }
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: badgePulse 2s ease-in-out infinite;
}
.badge-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ===== WhatsApp chat mock (customer-service style) ===== */
.wa-chat {
  background: #ECE5DD;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.18), 0 8px 24px -8px rgba(0,0,0,.08);
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  font-family: 'Heebo', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

.wa-chat-header {
  background: #075E54;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wa-chat-header .ai-tag {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.wa-chat-header .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: end;
}
.wa-chat-header .title-text .who {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
}
.wa-chat-header .title-text .status {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 2px;
}
.wa-chat-header .avatar {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.wa-chat-header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.wa-chat-header .avatar .online-dot {
  position: absolute;
  bottom: 1px;
  inset-inline-end: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #075E54;
}

.wa-chat-body {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 1px, transparent 1px 14px),
    #ECE5DD;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
/* Scrollbar styling */
.wa-chat-body::-webkit-scrollbar { width: 6px; }
.wa-chat-body::-webkit-scrollbar-track { background: transparent; }
.wa-chat-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.wa-chat-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

.wa-bubble {
  position: relative;
  max-width: 85%;
  padding: 8px 12px 6px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.625; /* leading-relaxed */
  box-shadow: 0 1px 0.5px rgba(0,0,0,.13);
}
.wa-bubble .time {
  display: block;
  font-size: 0.65rem;
  color: rgba(0,0,0,.45);
  text-align: end;
  margin-top: 4px;
}

.wa-bubble.customer {
  background: #DCF8C6;
  align-self: flex-start;
  border-top-right-radius: 0;
}
.wa-bubble.customer::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: -7px;
  width: 0; height: 0;
  border-top: 7px solid #DCF8C6;
  border-inline-start: 7px solid transparent;
}
.wa-bubble.customer .time {
  color: #4ea372;
}

.wa-bubble.bot {
  background: #fff;
  align-self: flex-end;
  border-top-left-radius: 0;
}
.wa-bubble.bot::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: -7px;
  width: 0; height: 0;
  border-top: 7px solid #fff;
  border-inline-end: 7px solid transparent;
}

.wa-chat-footer {
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-chat-footer .send-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #22c55e;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-chat-footer .input-pill {
  flex: 1;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: rgba(0,0,0,.4);
}

/* ===== "Not just a bot" app section ===== */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsl(250 60% 94%);
  color: hsl(250 70% 50%);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.app-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.app-subtitle {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.app-features { gap: 1rem !important; margin-bottom: 2rem; }
.app-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
}
.app-feature .feat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: hsl(250 60% 94%);
  color: hsl(250 70% 50%);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.app-feature .feat-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.app-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.app-feature p { color: var(--muted-foreground); font-size: 0.85rem; line-height: 1.5; }

.app-downloads {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.app-downloads .btn { gap: 0.5rem; }

/* Clean contacts list mockup (used inside iPhone frame) */
.contacts-mock {
  background: #fff;
  font-family: 'Heebo', sans-serif;
  flex: 1;
  overflow-y: auto;
}
.contacts-mock::-webkit-scrollbar { width: 4px; }
.contacts-mock::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 2px; }

/* Phone status bar (sleek black bar at top of iPhone screen) */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: #fff;
}
.phone-status-bar .icons { display: flex; align-items: center; gap: 5px; }
.cm-search {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  background: #fafafb;
  flex-direction: row-reverse;
}
.cm-search span {
  flex: 1;
  font-size: 0.85rem;
  text-align: start;
}
.cm-row {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid hsl(220 20% 95%);
  align-items: center;
  cursor: default;
  transition: background .15s;
}
.cm-row:last-child { border-bottom: none; }
.cm-row:hover { background: hsl(220 20% 98%); }
.cm-row.active {
  background: hsl(250 60% 97%);
  border-inline-end: 3px solid hsl(250 89% 60%);
}
.cm-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: hsl(250 30% 92%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cm-meta { flex: 1; min-width: 0; }
.cm-name-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  align-items: baseline;
}
.cm-name-row .name {
  font-weight: 600;
  font-size: 0.92rem;
}
.cm-name-row .time {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  white-space: nowrap;
}
.cm-row .last {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-unread {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
  align-self: center;
}

/* iPhone with contacts list */
.iphone-app { width: 320px; aspect-ratio: 320 / 660; }
.iphone-screen-app {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.app-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  background: hsl(250 89% 60%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.app-status-bar .icons { display: flex; align-items: center; gap: 5px; }
.app-header {
  background: hsl(250 89% 60%);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 0 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.app-list {
  flex: 1;
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.app-row {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.app-row.unread {
  border: 1.5px solid hsl(250 89% 60%);
  background: hsl(250 60% 98%);
}
.app-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: hsl(250 30% 90%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.app-meta { flex: 1; min-width: 0; }
.app-meta .top-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.app-meta .who { font-weight: 600; font-size: 0.85rem; }
.app-meta .when { font-size: 0.7rem; color: var(--muted-foreground); }
.app-meta .last {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.app-badge {
  background: hsl(250 89% 60%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-status-line {
  text-align: center;
  padding: 12px 16px 14px;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.app-status-line .dot-green {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; gap: 3rem; }
  .iphone-app { margin: 0 auto; }
}

/* ===== iPhone mockup (kept for compat, unused on home) ===== */
.iphone {
  position: relative;
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 360 / 740;
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 50%, #1c1c1e 100%);
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #3a3a3c,
    0 30px 60px -15px rgba(0,0,0,.45),
    0 18px 36px -8px rgba(0,0,0,.3),
    inset 0 0 1px 1px rgba(255,255,255,.08);
}
/* Side buttons */
.iphone::before {
  content: '';
  position: absolute;
  top: 110px;
  left: -2px;
  width: 3px;
  height: 32px;
  background: #2a2a2c;
  border-radius: 2px 0 0 2px;
  box-shadow:
    0 50px 0 0 #2a2a2c, 0 50px 0 0 #2a2a2c,
    0 56px 0 -3px transparent, 0 56px 0 -3px transparent;
}
.iphone::after {
  content: '';
  position: absolute;
  top: 130px;
  right: -2px;
  width: 3px;
  height: 56px;
  background: #2a2a2c;
  border-radius: 0 2px 2px 0;
}
.iphone .side-btn {
  position: absolute;
  background: #2a2a2c;
  border-radius: 2px;
  inset-inline-start: -2px;
  width: 3px;
}
.iphone .side-btn.b1 { top: 145px; height: 32px; }
.iphone .side-btn.b2 { top: 195px; height: 56px; }

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #efeae2;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  background: linear-gradient(135deg, hsl(250 89% 60%), hsl(330 85% 60%));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  position: relative;
  z-index: 5;
}
.status-bar .time { font-size: 14px; }
.status-bar .icons { display: flex; align-items: center; gap: 5px; }
.status-bar svg { display: block; }

/* WhatsApp top bar */
.wa-top {
  background: linear-gradient(135deg, hsl(250 89% 60%), hsl(330 85% 60%));
  color: #fff;
  padding: 4px 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 4;
}
.wa-top .back {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.95;
  transform: scaleX(-1);
}
.wa-top .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.wa-top .who { font-weight: 600; font-size: 0.9rem; line-height: 1.1; }
.wa-top .status { font-size: 0.72rem; opacity: 0.88; }

/* Chat body */
.wa-body {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 1px, transparent 1px 12px),
    #efeae2;
  padding: 12px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.bubble {
  padding: 7px 10px 5px;
  border-radius: 8px;
  max-width: 78%;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 1px 0.5px rgba(0,0,0,.13);
  position: relative;
}
.bubble.in {
  background: #fff;
  align-self: flex-start;
  border-top-right-radius: 0;
}
.bubble.in::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: -6px;
  width: 0; height: 0;
  border-top: 6px solid #fff;
  border-inline-start: 6px solid transparent;
}
.bubble.out {
  background: #d9fdd3;
  align-self: flex-end;
  border-top-left-radius: 0;
}
.bubble.out::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: -6px;
  width: 0; height: 0;
  border-top: 6px solid #d9fdd3;
  border-inline-end: 6px solid transparent;
}
.bubble .time {
  font-size: 0.6rem;
  color: rgba(0,0,0,.45);
  display: block;
  text-align: end;
  margin-top: 2px;
}
.bubble.out .time::after {
  content: ' ✓✓';
  color: #53bdeb;
}

/* Input bar */
.wa-input {
  background: #f0f2f5;
  padding: 6px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.wa-input .text-pill {
  flex: 1;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-input .send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: hsl(250 89% 60%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Home indicator */
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(0,0,0,.35);
  border-radius: 2px;
  z-index: 10;
}

/* ===== Section base ===== */
.section { padding: 5rem 0; position: relative; }
.section.alt { background: var(--gradient-card); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h1,
.section-head h2 {
  font-size: 1.5rem;   /* 24px */
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .section-head h1,
  .section-head h2 { font-size: 1.875rem; }
} /* 30px */
.section-head p {
  font-size: 1.125rem; /* text-lg */
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: hsl(250 89% 60% / .5);
  box-shadow: var(--shadow-card);
}
.card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, hsl(330 85% 60%), hsl(250 89% 60%));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.card .icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  flex-shrink: 0;
}
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--muted-foreground); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6; }
.card .feat-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card .feat-list li {
  background: hsl(250 50% 96%);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid hsl(250 50% 90%);
}

/* ===== Pricing ===== */
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 16px 40px hsl(250 89% 60% / .15);
  transform: scale(1.02);
}
.popular-tag {
  position: absolute;
  top: -14px;
  inset-inline-end: 1.5rem;
  background: var(--gradient-vibrant);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; } /* text-2xl */
.price-card .desc { color: var(--muted-foreground); font-size: 1rem; margin-bottom: 1.5rem; min-height: 3em; }
.price-card .price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.price-card .price .currency { font-size: 1.5rem; color: var(--muted-foreground); }
.price-card .price .price-period { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
.price-card .vat-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0.25rem 0 1rem;
  opacity: 0.8;
}
.price-card .messages {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.price-card ul.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.price-card ul.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.price-card ul.features li.included::before { content: '✓'; color: #16a34a; font-weight: 700; }
.price-card ul.features li.excluded::before { content: '✕'; color: #dc2626; font-weight: 700; }
.price-card ul.features li.excluded { color: var(--muted-foreground); }
.price-card ul.features li .note { color: var(--muted-foreground); font-size: 0.78rem; display: block; }

.billing-toggle {
  display: inline-flex;
  background: var(--secondary);
  padding: 0.25rem;
  border-radius: 999px;
  margin: 0 auto 2rem;
}
.billing-toggle button {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: all .2s;
}
.billing-toggle button.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.billing-toggle .save-badge {
  background: var(--gradient-vibrant);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-inline-start: 0.4rem;
}

/* ===== Setup services (one-time pricing cards) ===== */
.setup-yearly-note {
  display: inline-flex !important;
  align-items: center;
  background: hsl(142 60% 95%);
  color: hsl(142 70% 28%);
  border: 1px solid hsl(142 50% 80%);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem !important;
  font-weight: 500;
  margin-top: 1rem !important;
  max-width: none !important;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.setup-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.setup-card:hover {
  transform: translateY(-3px);
  border-color: hsl(250 89% 60% / .5);
  box-shadow: var(--shadow-card);
}
.setup-card.highlighted {
  border-color: var(--primary);
  border-width: 1.5px;
  box-shadow: 0 0 0 4px hsl(250 89% 60% / .08);
}
.setup-card.required {
  border-color: hsl(20 90% 55%);
  border-width: 1.5px;
  background: linear-gradient(180deg, hsl(20 90% 97%), var(--card) 60%);
  box-shadow: 0 0 0 4px hsl(20 90% 55% / .08);
}
.setup-grid-single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-bottom: 3rem;
}
.setup-grid-single .setup-card {
  padding: 2rem 1.75rem 1.75rem;
}
.setup-grid-single .setup-card h3 {
  font-size: 1.25rem;
}
.setup-grid-single .setup-card p {
  font-size: 0.95rem;
  min-height: 0;
}
.setup-grid-single .setup-price {
  font-size: 1.75rem;
}
.setup-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.setup-badge.required {
  background: hsl(20 90% 55%);
  color: #fff;
}
.setup-badge.optional {
  background: hsl(220 15% 92%);
  color: hsl(220 15% 35%);
}
.setup-subhead {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 1.25rem;
  color: var(--foreground);
}
.setup-subhead-note {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-inline-start: 0.4rem;
}
.setup-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.setup-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 3em;
}
.setup-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Yearly-only perk shown inside the price-card under .desc */
.yearly-perk { display: none; }
body.billing-yearly .price-card .desc {
  margin-bottom: 0.5rem;
  min-height: 0;
}
body.billing-yearly .price-card .yearly-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 1.25rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: yearly-perk-in .25s ease-out;
}
.yearly-perk svg { width: 14px; height: 14px; flex-shrink: 0; }
@keyframes yearly-perk-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ===== FAQ ===== */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: hsl(250 89% 60% / .5); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: start;
  font-family: inherit;
  font-weight: 600;     /* font-semibold */
  font-size: 1.125rem;  /* text-lg */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--foreground);
}
.faq-q .chevron { transition: transform .25s; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--muted-foreground);
  padding: 0 1.5rem;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* ===== Contact form ===== */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.contact-card h3 { text-align: center; margin-bottom: 0.5rem; font-size: 1.5rem; font-weight: 700; } /* text-2xl font-bold */
.contact-card .sub { text-align: center; color: var(--muted-foreground); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field textarea {
  border: 1px solid var(--input);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(250 89% 60% / .15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Honeypot - invisible to humans, visible to bots */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  left: -9999px;
}

.form-msg {
  padding: 0.85rem 1rem;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.form-msg.success-msg { background: hsl(142 76% 90%); color: hsl(142 70% 28%); border: 1px solid hsl(142 60% 60%); }
.form-msg.error-msg { background: hsl(0 80% 95%); color: hsl(0 70% 35%); border: 1px solid hsl(0 70% 60%); }

/* ===== Footer ===== */
.site-footer {
  background: var(--foreground);
  color: hsl(220 20% 80%);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: hsl(220 20% 80%); transition: color .2s; }
.site-footer a:hover { color: var(--primary-glow); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-about { font-size: 0.95rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid hsl(220 20% 25%);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(220 15% 60%);
}

/* ===== Conversations preview (whatsapp interface mock) ===== */
.chat-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.chat-preview .top {
  background: var(--gradient-vibrant);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 600;
}
.chat-preview .row {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.chat-preview .row:hover { background: hsl(220 25% 98%); }
.chat-preview .row .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.chat-preview .row .meta { flex: 1; min-width: 0; }
.chat-preview .row .meta .top-line {
  display: flex; justify-content: space-between; gap: 0.5rem;
}
.chat-preview .row .who { font-weight: 600; }
.chat-preview .row .when { font-size: 0.8rem; color: var(--muted-foreground); }
.chat-preview .row .last { font-size: 0.875rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Article / static page ===== */
.article-page { padding: 8rem 0 4rem; }
.article-page h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.25; }
.article-page h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.article-page h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.article-page p  { color: var(--muted-foreground); margin-bottom: 1rem; line-height: 1.75; font-size: 1rem; }
.article-page .meta { color: var(--muted-foreground); margin-bottom: 2rem; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); border-color: hsl(250 89% 60% / .5); box-shadow: var(--shadow-card); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; } /* text-xl font-bold */
.article-card p { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1rem; flex: 1; } /* text-sm */
.article-card .read-more { color: var(--primary); font-weight: 600; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease-out both; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }

/* Hero WhatsApp chat: gentle float + staggered message reveal */
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero .wa-chat {
  animation: waFloat 6s ease-in-out infinite;
  animation-delay: 1.2s;
}
.hero .wa-chat-body .wa-bubble {
  opacity: 0;
  animation: waBubbleIn .45s ease-out forwards;
  transform-origin: bottom center;
}
.hero .wa-chat-body .wa-bubble:nth-child(1) { animation-delay: .6s; }
.hero .wa-chat-body .wa-bubble:nth-child(2) { animation-delay: 1.4s; }
.hero .wa-chat-body .wa-bubble:nth-child(3) { animation-delay: 2.4s; }
.hero .wa-chat-body .wa-bubble:nth-child(4) { animation-delay: 3.2s; }
@media (prefers-reduced-motion: reduce) {
  .hero .wa-chat { animation: none; }
  .hero .wa-chat-body .wa-bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Video card (replaces a card slot in the grid) ===== */
.card-video {
  padding: 0 !important;
  overflow: hidden;
  background: #000 !important;
  position: relative;
  min-height: 280px;
  display: flex;
}
.card-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.card-video:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: hsl(250 89% 60% / .5);
}

/* ===== Image disclaimer (small caption) ===== */
.image-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.6rem;
  font-style: italic;
  opacity: 0.8;
}

/* ===== Footnote (asterisk legends) ===== */
.footnote {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-top: 2.5rem;
  font-style: italic;
}

/* ===== System dashboard mockup (CSS-built) ===== */
.system-mock {
  max-width: 1000px;
  margin: 0 auto 3.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 48px -12px rgba(0,0,0,.18),
    0 8px 24px -8px rgba(0,0,0,.08);
  font-family: 'Heebo', sans-serif;
}

/* Top toolbar */
.sm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(180deg, #fafafb, #f4f4f6);
  border-bottom: 1px solid var(--border);
}
.sm-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sm-tool {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: default;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-date-pill {
  background: hsl(250 60% 95%);
  color: hsl(250 70% 50%);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}
.sm-brand img { width: 26px; height: 26px; border-radius: 6px; }
.sm-brand .brand-name {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 3-column workspace */
.sm-workspace {
  display: grid;
  grid-template-columns: 270px 1fr 48px;
  height: 480px;
  background: #f5f5f7;
}

/* Contacts list (right in RTL) */
.sm-contacts {
  background: #fff;
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sm-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #fafafb;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
}
.sm-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--foreground);
}
.sm-contact {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid hsl(220 20% 95%);
  align-items: center;
  cursor: default;
  transition: background .15s;
}
.sm-contact:hover { background: hsl(220 20% 98%); }
.sm-contact.active {
  background: hsl(250 60% 97%);
  border-inline-end: 3px solid hsl(250 89% 60%);
}
.sm-contact .sm-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: hsl(250 30% 92%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.sm-contact .sm-meta { flex: 1; min-width: 0; }
.sm-contact .sm-name-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.sm-contact .name { font-weight: 600; font-size: 0.85rem; }
.sm-contact .time {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  white-space: nowrap;
}
.sm-contact .last {
  font-size: 0.76rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active chat (middle) */
.sm-chat {
  display: flex;
  flex-direction: column;
  background: #efeae2;
  min-width: 0;
}
.sm-chat-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sm-chat-header .sm-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: hsl(250 30% 92%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.sm-chat-header .sm-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
}
.sm-chat-header .sm-status {
  font-size: 0.7rem;
  color: #16a34a;
  margin-top: 1px;
}
.sm-bot-toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: hsl(142 60% 95%);
  color: hsl(142 70% 28%);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.sm-bot-toggle .dot-on {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}

.sm-chat-body {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 1px, transparent 1px 12px),
    #efeae2;
}
.sm-chat-body::-webkit-scrollbar { width: 5px; }
.sm-chat-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

.sm-date-divider {
  align-self: center;
  background: rgba(255,255,255,.85);
  font-size: 0.68rem;
  color: rgba(0,0,0,.55);
  padding: 3px 12px;
  border-radius: 6px;
  margin: 4px 0 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.sm-msg {
  max-width: 70%;
  padding: 6px 10px 4px;
  border-radius: 7px;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 1px 0.5px rgba(0,0,0,.13);
  position: relative;
}
.sm-msg.in {
  background: #fff;
  align-self: flex-start;
  border-top-right-radius: 0;
}
.sm-msg.in::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: -6px;
  width: 0; height: 0;
  border-top: 6px solid #fff;
  border-inline-start: 6px solid transparent;
}
.sm-msg.out {
  background: #d9fdd3;
  align-self: flex-end;
  border-top-left-radius: 0;
}
.sm-msg.out::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: -6px;
  width: 0; height: 0;
  border-top: 6px solid #d9fdd3;
  border-inline-end: 6px solid transparent;
}
.sm-msg .time {
  display: block;
  font-size: 0.62rem;
  color: rgba(0,0,0,.45);
  text-align: end;
  margin-top: 2px;
}

/* Input bar */
.sm-input {
  background: #f0f2f5;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--border);
}
.sm-input input {
  flex: 1;
  background: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
  color: var(--muted-foreground);
}
.sm-attach, .sm-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
}
.sm-attach {
  background: transparent;
  color: var(--muted-foreground);
}
.sm-send {
  background: hsl(250 89% 60%);
  color: #fff;
}

/* Left tools sidebar */
.sm-sidebar {
  background: linear-gradient(180deg, #f4f4f6, #ececef);
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}
.sm-sidebar button {
  background: #fff;
  border: 1px solid var(--border);
  cursor: default;
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}
.sm-sidebar button:hover {
  background: hsl(250 60% 95%);
  color: hsl(250 70% 50%);
}

@media (max-width: 800px) {
  .sm-workspace { grid-template-columns: 200px 1fr; height: 460px; }
  .sm-sidebar { display: none; }
  .sm-bot-toggle { display: none; }
}
@media (max-width: 540px) {
  .sm-workspace { grid-template-columns: 1fr; height: 420px; }
  .sm-contacts { display: none; }
}

/* ===== Why-us icon features ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.why-feature {
  text-align: center;
  padding: 0 0.5rem;
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: hsl(250 60% 94%);
  color: hsl(250 70% 50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.why-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; }
.why-feature h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.why-feature p { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.6; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .why-list { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta a[href*="app.msgbox.co.il"] { display: none; }
  .nav-links.show {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .articles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .hero { padding-top: 6rem; }
}

/* ===== Accessibility settings panel ===== */
.access-fab {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-vibrant);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-button);
  z-index: 90;
  transition: transform .2s;
}
.access-fab:hover { transform: scale(1.05); }

.access-panel {
  position: fixed;
  bottom: 6rem;
  inset-inline-end: 1.5rem;
  width: 320px;
  max-width: calc(100vw - 3rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.18);
  display: none;
  z-index: 90;
  font-family: inherit;
}
.access-panel.open { display: block; }

.ap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ap-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.ap-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.ap-close:hover { color: var(--foreground); }

.ap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: hsl(220 25% 97%);
  border-radius: 0.625rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}
.ap-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.ap-label svg { color: var(--muted-foreground); flex-shrink: 0; }

/* Stepper (text size +/-) */
.ap-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border);
}
.ap-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.ap-step:hover { background: hsl(250 60% 95%); border-color: var(--primary); color: var(--primary); }
.ap-step:active { transform: scale(0.95); }
.ap-value {
  min-width: 38px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* Cycle button (contrast) */
.ap-cycle {
  background: hsl(250 60% 95%);
  color: hsl(250 70% 50%);
  border: 1px solid hsl(250 60% 88%);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Toggle switch */
.ap-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: hsl(220 15% 80%);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.ap-toggle span {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ap-toggle[aria-pressed="true"] {
  background: var(--primary);
}
.ap-toggle[aria-pressed="true"] span {
  inset-inline-end: calc(100% - 19px);
}

/* Reset button */
.ap-reset {
  width: 100%;
  background: hsl(0 80% 96%);
  color: hsl(0 70% 45%);
  border: 1px solid hsl(0 70% 88%);
  padding: 0.6rem;
  border-radius: 0.625rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.ap-reset:hover { background: hsl(0 80% 92%); }

/* ===== Accessibility modes (applied to <html>) ===== */
html.contrast-high { background: #000 !important; }
html.contrast-high body { background: #000 !important; color: #fff !important; }
html.contrast-high .card,
html.contrast-high .price-card,
html.contrast-high .faq-item,
html.contrast-high .contact-card,
html.contrast-high .why-feature,
html.contrast-high .article-card { background: #111 !important; border-color: #fff !important; color: #fff !important; }
html.contrast-high p, html.contrast-high h1, html.contrast-high h2, html.contrast-high h3, html.contrast-high h4 { color: #fff !important; }

html.contrast-inverted { filter: invert(1) hue-rotate(180deg); }
html.contrast-inverted img, html.contrast-inverted iframe { filter: invert(1) hue-rotate(180deg); }

html.highlight-links a {
  text-decoration: underline !important;
  color: hsl(50, 100%, 50%) !important;
  font-weight: 700 !important;
  background: rgba(0,0,0,.85) !important;
  padding: 1px 4px;
  border-radius: 3px;
}

html.cursor-large,
html.cursor-large * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path fill='%23000' stroke='%23fff' stroke-width='2' d='M5 5 L5 33 L13 25 L18 36 L23 33 L18 23 L30 23 Z'/></svg>") 5 5, auto !important;
}

/* Mobile: keep accessibility panel away from MsgBox chat widget (bottom-right) */
@media (max-width: 480px) {
  .access-panel {
    bottom: 7rem;
    width: 280px;
    max-width: calc(100vw - 5rem);
  }
}

/* ===== Demo video cards (used on /demos) ===== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-badge svg { width: 16px; height: 16px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.video-card {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card, #fff);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.video-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card, 0 12px 32px -8px rgba(0,0,0,.12));
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary, #f5f5f5);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background .2s;
}
.video-card:hover .play-overlay { background: rgba(0, 0, 0, 0.4); }
.play-overlay svg {
  width: 64px;
  height: 64px;
  padding: 18px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  fill: #fff;
  box-shadow: var(--shadow-button, 0 4px 16px rgba(0,123,255,.3));
  transition: transform .2s;
}
.video-card:hover .play-overlay svg { transform: scale(1.1); }

.video-body { padding: 1.5rem; }
.video-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}
.video-body p {
  color: var(--muted-foreground, #666);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Video lightbox modal */
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
  animation: video-modal-fade .2s ease-out;
}
@keyframes video-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.video-modal-content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background .2s;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.25); }
@media (max-width: 600px) {
  .video-modal { padding: 0.5rem; }
  .video-modal-close { top: 0.5rem; inset-inline-end: 0.5rem; }
}
