/* ============================================================
   Pikud HaOref Bot — Landing Page Stylesheet
   Design: Modern SaaS / Glassmorphism
   Direction: RTL / Hebrew
   ============================================================ */

/* ----------------------------------------------------------
   Self-hosted Heebo (Hebrew + Latin subset, 4 weights)
   Source: google-webfonts-helper (gwfh.mranftl.com)
   Files: landing/template/fonts/heebo-{400,500,700,900}.woff2
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://yonatan2021.github.io/pikud-haoref-bot-landing/fonts/heebo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://yonatan2021.github.io/pikud-haoref-bot-landing/fonts/heebo-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://yonatan2021.github.io/pikud-haoref-bot-landing/fonts/heebo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://yonatan2021.github.io/pikud-haoref-bot-landing/fonts/heebo-900.woff2') format('woff2');
}

/* ----------------------------------------------------------
   0. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* ── Core palette ─────────────────────────────── */
  --bg:            #07080f;
  --surface:       rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(15, 17, 28, 0.85);
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(34, 158, 217, 0.4);
  --accent:        #229ED9;
  --accent-hover:  #1e93cc;
  --accent-glow:   rgba(34, 158, 217, 0.15);
  --accent-deep:   rgba(34, 158, 217, 0.07);
  --purple:        #7c3aed;
  --red:           #ef4444;
  --green:         #22c55e;
  /* ── WhatsApp ─────────────────────────────────── */
  --whatsapp:      #25D366;
  --whatsapp-hover:#1ebe5d;
  --whatsapp-glow: rgba(37, 211, 102, 0.15);
  /* ── Sponsor button ───────────────────────────── */
  --sponsor-color: #f472b6;
  --sponsor-bg:    rgba(234, 74, 170, 0.08);
  --sponsor-border:rgba(234, 74, 170, 0.35);
  /* ── Terminal / code syntax ───────────────────── */
  --terminal-bg:       #0d1527;
  --terminal-wa-bg:    #081711;
  --terminal-fg:       #f8fafc;
  --terminal-meta:     #94a3b8;
  --terminal-cities:   #cbd5e1;
  --terminal-alert:    #ef4444;
  --terminal-warn:     #fbbf24;
  --terminal-ok:       #22c55e;
  --terminal-highlight:#38bdf8;
  /* ── Chips ────────────────────────────────────── */
  --chip-yes-color:    #4ade80;
  --chip-yes-bg:       rgba(34, 197, 94, 0.12);
  --chip-yes-border:   rgba(34, 197, 94, 0.3);
  --chip-no-color:     #94a3b8;
  --chip-no-bg:        rgba(148, 163, 184, 0.08);
  --chip-no-border:    rgba(148, 163, 184, 0.2);
  /* ── Misc ─────────────────────────────────────── */
  --city-dd-bg:        #0e1822;
  /* ── Text ─────────────────────────────────────── */
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  /* ── Typography & layout ──────────────────────── */
  --font:          'Heebo', 'Arial Hebrew', sans-serif;
  --container-max: 1100px;
  --section-py:    5rem;
  --radius-card:   16px;
  --radius-btn:    10px;
  /* ── Spacing scale (4pt system) ───────────────── */
  --sp-1:  0.25rem;  /* 4px  */
  --sp-2:  0.5rem;   /* 8px  */
  --sp-3:  0.75rem;  /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.25rem;  /* 20px */
  --sp-6:  1.5rem;   /* 24px */
  --sp-8:  2rem;     /* 32px */
  --sp-10: 2.5rem;   /* 40px */
  --sp-12: 3rem;     /* 48px */
  /* ── Animation timing ─────────────────────────── */
  --dur-fast:       0.22s;
  --dur-medium:     0.32s;
  --dur-reveal:     0.65s;
  --ease-out-cubic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition:     var(--dur-fast) ease;
  /* ── Screenshot widths ────────────────────────── */
  --screenshot-w:   200px;
  /* Updated by JS for cursor spotlight */
  --cursor-x:      50%;
  --cursor-y:      50%;
  /* ── Nav + Sub-page tokens ────────────────────── */
  --nav-height:    64px;
  --nav-bg:        rgba(7,8,15,0.72);
  --prose-max:     72ch;
  --prose-leading: 1.85;
  --legal-muted:   #8b94a8;    /* AA: 4.6:1 vs --bg */
  --breadcrumb-sep-color: #475569;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  /* Subtle dot-grid pattern for depth */
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { opacity: 0.85; }

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

/* ----------------------------------------------------------
   1b. Focus-visible ring system (accessibility)
   ---------------------------------------------------------- */
/* Default ring — applies to all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Pill-shaped elements */
.btn:focus-visible,
.features-tab:focus-visible,
.hero-ticker:focus-visible,
.changelog-show-more:focus-visible,
.features-show-more:focus-visible {
  border-radius: var(--radius-btn);
  outline-offset: 2px;
}
/* Circular elements */
.mobile-fab:focus-visible,
.cmd-trigger:focus-visible,
.cmd-close:focus-visible {
  border-radius: 50%;
}
/* Full-width accordion button — inset ring */
.faq-q:focus-visible {
  outline-offset: -2px;
  border-radius: 0;
}
/* City dropdown — custom shadow-based focus */
.city-dropdown-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.35);
}

/* ----------------------------------------------------------
   2. Utilities
   ---------------------------------------------------------- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-reveal) ease,
    transform var(--dur-reveal) ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section titles */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  margin: 0.65rem auto 0;
}

/* ----------------------------------------------------------
   3. Keyframes
   ---------------------------------------------------------- */

/* Aurora blob floating */
@keyframes floatBlob1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 40px) scale(1.12); }
}
@keyframes floatBlob2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(45px, -55px) scale(1.18); }
}

/* Pulse dot */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Typing reveal (RTL: clip from right = reveals first chars first) */
@keyframes revealText {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0%); }
}

/* Cursor blink */
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes cursorFade {
  to { opacity: 0; visibility: hidden; }
}

/* Simulated alert cycle (21s total: each card shows for ~7s) */
@keyframes alertCycle {
  0%   { opacity: 0; transform: translateX(-32px); }
  6%   { opacity: 1; transform: translateX(0); }
  27%  { opacity: 1; transform: translateX(0); }
  33%  { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 0; transform: translateX(-32px); }
}

/* Step connector line draw */
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Screenshots auto-scroll (LTR direction override on strip) */
@keyframes scrollForward {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: #fff;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 6px 24px var(--whatsapp-glow);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.btn--large {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------
   5. Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(5rem, 8vh, 6.5rem) 3.5rem;
  padding-inline: 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* Aurora blobs */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.aurora-blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.22) 0%, transparent 70%);
  top: -12%;
  right: -8%;
  animation: floatBlob1 22s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: floatBlob2 28s ease-in-out infinite alternate;
}
/* 3rd blob: subtle red warmth — urgency cue for emergency product (max 0.09 opacity) */
.aurora-blob--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.09) 0%, transparent 65%);
  top: 40%;
  right: 55%;
  animation: floatBlob2 18s ease-in-out 6s infinite alternate;
}

/* Cursor spotlight */
.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--cursor-x) var(--cursor-y),
    rgba(34, 158, 217, 0.07),
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
  transition: background 0.1s;
}

/* ── Hero Container (2-column responsive grid) ── */
.hero-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 1040px) {
  .hero-container {
    grid-template-columns: 1fr;
    max-width: 740px;
  }
}

/* Hero Content Box */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  border-top: 3px solid var(--accent);
}

/* Bersaglio Pill Badge */
.bersaglio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: all var(--dur-fast) ease;
}
.bersaglio-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.bersaglio-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.bersaglio-pill b {
  color: var(--text-primary);
  font-weight: 700;
}

/* Hero Brand Header */
.hero-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

@keyframes logoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.4), 0 0 32px var(--accent-glow), 0 4px 24px rgba(0,0,0,0.5); }
  50%  { box-shadow: 0 0 0 14px rgba(34, 158, 217, 0), 0 0 52px rgba(34,158,217,0.3), 0 4px 24px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0), 0 0 32px var(--accent-glow), 0 4px 24px rgba(0,0,0,0.5); }
}

.hero-logo {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  border: 1px solid rgba(34, 158, 217, 0.3);
  box-shadow:
    0 0 32px var(--accent-glow),
    0 4px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  flex-shrink: 0;
  animation: logoPulse 2.5s ease-out 0.3s 1 forwards;
}

.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(315deg, var(--text-primary) 15%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-wrap {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 0;
}

@media (max-width: 1040px) {
  .hero-subtitle-wrap {
    justify-content: center;
  }
}

/* Simulator column in hero */
.hero-sim-col {
  width: 100%;
  display: flex;
  justify-content: center;
}
.typing-text {
  clip-path: inset(0 0 0 100%);
  animation: revealText 2.2s steps(38, end) 0.6s forwards;
}
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-inline-start: 1px;
  animation: blink 0.75s step-end infinite, cursorFade 0.4s ease 2.9s forwards;
}

/* CTA group — 2g: staggered entrance after typing animation (~2.5s) */
@keyframes btnAppear {
  to { opacity: 1; transform: translateY(0); }
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.cta-group .btn {
  opacity: 0;
  transform: translateY(8px);
  animation: btnAppear 0.4s ease forwards;
  animation-delay: calc(var(--btn-delay, 0s) + 2.5s);
}

/* Live badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(34, 158, 217, 0.06);
  border: 1px solid rgba(34, 158, 217, 0.15);
  border-radius: 999px;
  padding: 0.3rem 1rem;
}
.badge-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.badge-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-ring 2s ease-out infinite;
}

/* Simulated alert cards */
.alert-sim {
  position: absolute;
  z-index: 3;
  top: 18%;
  left: 4%;
  width: 240px;
  background: var(--surface-glass);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-inline-start: 3px solid var(--red);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  text-align: right;
  direction: rtl;
}
.alert-sim--1 { animation: alertCycle 21s ease-in-out 1.5s infinite both; }
.alert-sim--2 { animation: alertCycle 21s ease-in-out 8.5s infinite both; }
.alert-sim--3 { animation: alertCycle 21s ease-in-out 15.5s infinite both; }
/* 2f: right-side card for compositional balance — inset-inline-start: auto unsets inherited left:4% */
.alert-sim--4 {
  inset-inline-start: auto;
  inset-inline-end: 4%;
  top: 25%;
  animation: alertCycle 21s ease-in-out 5s infinite both;
}

.alert-sim-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.alert-sim-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.alert-sim-type {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.alert-sim-cities {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.alert-sim-action {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hide alert cards on narrow viewports */
@media (max-width: 900px) {
  .alert-sim { display: none; }
}

/* ----------------------------------------------------------
   6. Stats Strip
   ---------------------------------------------------------- */
.stats-strip {
  padding-block: 2.5rem;
  border-block: 1px solid var(--border);
  position: relative;
}
/* Accent frame lines — top and bottom glow tracks */
.stats-strip::before,
.stats-strip::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.stats-strip::before { top: 0; }
.stats-strip::after  { bottom: 0; }
.stats-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  min-width: 0; /* prevent grid cell overflow */
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-deep);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-item:hover {
  border-color: rgba(34, 158, 217, 0.35);
  box-shadow: 0 0 24px var(--accent-glow);
}
.stat-item:hover::before { opacity: 1; }

.stat-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: var(--accent-deep);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(34, 158, 217, 0.15);
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  line-height: 1;
  position: relative;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.stat-unit {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   7. How It Works
   ---------------------------------------------------------- */
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.step:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 32px var(--accent-glow);
}

.step-number {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-deep);
  border: 1px solid rgba(34, 158, 217, 0.2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  align-self: flex-start;
}
.step-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-top: 0.25rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}
.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Connector between steps */
.step-connector {
  display: flex;
  align-items: center;
  flex: 0 0 64px;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding-block: 2rem;
}
.step-connector-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.9s ease;
}
.step-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease 0.7s;
  box-shadow: 0 0 8px var(--accent);
}
.how-it-works.animated .step-connector-line { transform: scaleY(1); }
.how-it-works.animated .step-connector-dot  { opacity: 1; }

/* ----------------------------------------------------------
   8. Features
   ---------------------------------------------------------- */

/* Mobile tab switcher — hidden on desktop */
.features-tabs {
  display: none;
}

/* "Show more" buttons — visible on all viewports */
.features-grid .feature-card:nth-child(n+7) { display: none; }
.features-grid.expanded .feature-card:nth-child(n+7) { display: flex; }

.features-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  min-height: 44px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}
.features-show-more:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--surface-hover);
}
.features-show-more[aria-expanded="true"] {
  border-color: var(--border-hover);
  color: var(--accent);
}
.features-show-more[aria-expanded="true"]::before  { content: '▲ '; font-size: 0.7rem; }
.features-show-more[aria-expanded="false"]::before { content: '▼ '; font-size: 0.7rem; }

/* Two-column layout: user panel | dev panel */
.features-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.features-panel {
  padding: 1.75rem;
}
.features-panel--user { border-top: 2px solid var(--accent); }
.features-panel--dev  { border-top: 2px solid var(--purple); }

.features-panel-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.features-panel-icon  { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.features-panel-title { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; }
.features-panel-sub   { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Standalone grid (outside panels) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

/* Single-column grid inside panels */
.features-panel .features-grid {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

/* Feature cards — injected by build.js (horizontal layout) */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.875rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
  transition-delay: var(--reveal-delay, 0s);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  border-color: rgba(34, 158, 217, 0.25);
  background: var(--surface-hover);
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.35;
}
.feature-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile expand chevron — hidden on desktop */
.feature-card::after {
  content: none;
}

/* ----------------------------------------------------------
   9. Two Paths
   ---------------------------------------------------------- */
.paths .section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 2rem;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.path-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}
.path-card:hover {
  background: var(--surface-hover);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.path-card--join {
  border-color: rgba(34, 158, 217, 0.3);
}
.path-card--join:hover {
  border-color: rgba(34, 158, 217, 0.5);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.path-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
}
.path-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.1);
}

.path-card--selfhost {
  border-color: rgba(124, 58, 237, 0.3);
}
.path-card--selfhost:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.1);
}

.path-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.path-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.path-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.path-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.83rem;
  color: var(--text-primary);
}

/* Code block with copy button */
.path-code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  direction: ltr;
  text-align: left;
}
.path-code code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  min-height: 36px; /* secondary action — 44px would bulk up code blocks */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
  font-size: 0.75rem;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.copy-feedback {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.copy-btn.copied .copy-feedback {
  max-width: 50px;
  opacity: 1;
}
.copy-btn.copied {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--green);
}

.btn--path {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.88rem;
  padding: 0.55rem 1.2rem;
}

/* ----------------------------------------------------------
   10. Screenshots
   ---------------------------------------------------------- */
.screenshots-overflow {
  overflow: hidden;
  /* LTR context for the auto-scrolling strip */
  direction: ltr;
}

.screenshots-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-block: 0.5rem 1rem;
  animation: scrollForward 35s linear infinite;
}
.screenshots-overflow:hover .screenshots-track {
  animation-play-state: paused;
}
.screenshots-pause-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding-block: 0.5rem;
  user-select: none;
}
.screenshots-overflow:hover ~ .screenshots-pause-hint { opacity: 1; }

.screenshot-item {
  flex: 0 0 auto;
  width: var(--screenshot-w);
}

/* Phone frame */
.screenshot-frame {
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: #0d0d12;
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.screenshot-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  z-index: 1;
  pointer-events: none;
}
.screenshot-item:hover .screenshot-frame {
  transform: scale(1.04) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(34, 158, 217, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 24px var(--accent-glow);
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Caption with fade-on-hover overlay */
.screenshot-caption-wrap {
  position: relative;
  margin-top: 0.6rem;
}
.screenshot-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  direction: rtl;
}

/* ----------------------------------------------------------
   11. Live Counter
   ---------------------------------------------------------- */
.live-counter {
  text-align: center;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin-inline: auto;
}
.counter-item {
  padding: 2rem 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.counter-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}
.counter-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.counter-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ----------------------------------------------------------
   12. CTA Section
   ---------------------------------------------------------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(34, 158, 217, 0.08), transparent);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
  position: relative;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

/* ----------------------------------------------------------
   13. Footer
   ---------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  text-align: center;
}
.footer-sep {
  color: var(--border);
  user-select: none;
}
.footer-credit {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ----------------------------------------------------------
   14. What's New Section
   ---------------------------------------------------------- */
.whats-new {
  text-align: center;
}
.changelog-list {
  list-style: none;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.changelog-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: right;
  transition: border-color var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color var(--transition),
    background var(--transition);
}
.changelog-list li.visible,
.changelog-list.visible li {
  opacity: 1;
  transform: none;
}
.changelog-list li:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.changelog-footer {
  margin-top: 0.5rem;
}
.changelog-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.changelog-link:hover {
  color: var(--accent);
}

/* What's New show-more — hidden on desktop */
.changelog-show-more {
  display: none;
}

/* ----------------------------------------------------------
   15. Sponsor Button (footer)
   ---------------------------------------------------------- */
.footer-sponsor {
  margin-top: 1rem;
  text-align: center;
}
.sponsor-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--sponsor-border);
  background: var(--sponsor-bg);
  color: var(--sponsor-color);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.sponsor-btn:hover {
  background: rgba(234, 74, 170, 0.18);
  border-color: rgba(234, 74, 170, 0.6);
  color: #f9a8d4; /* lighter variant of --sponsor-color on hover */
  opacity: 1;
}

/* ----------------------------------------------------------
   16. Mobile FAB
   ---------------------------------------------------------- */
.mobile-fab {
  display: none;
}

/* ----------------------------------------------------------
   17. Responsive — tablet (900px)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --section-py: 4rem;
  }
  .section-title {
    margin-bottom: 2rem;
  }

  .steps {
    flex-direction: column;
    gap: 1rem;
  }
  .step-connector {
    flex-direction: row;
    flex: unset;
    height: 40px;
    padding-block: 0;
    padding-inline: 2rem;
  }
  .step-connector-line {
    height: 2px;
    width: 100%;
    flex: 1;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.9s ease;
  }
  .how-it-works.animated .step-connector-line { transform: scaleX(1); }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Feature tabs (mobile only) ── */
  .features-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .features-tab {
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.4rem;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition:
      background var(--transition),
      color var(--transition),
      border-color var(--transition),
      box-shadow var(--transition);
  }
  .features-tab--active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
  }

  .features-columns {
    grid-template-columns: 1fr;
  }

  /* ── Compact feature cards ── */
  .feature-card {
    padding: 0.7rem 0.9rem;
    gap: 0.65rem;
    cursor: pointer;
    position: relative;
  }
  .feature-desc {
    display: none;
  }
  .feature-card.expanded .feature-desc {
    display: -webkit-box;
  }
  .feature-icon {
    font-size: 1.2rem;
  }
  /* Expand chevron indicator — RTL: ‹ points toward reading direction "more" */
  .feature-card::after {
    content: '‹';
    position: absolute;
    left: 0.9rem; /* physical left = reading-end in RTL = correct for expand indicator */
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    line-height: 1;
  }
  .feature-card.expanded::after {
    transform: translateY(-50%) rotate(-90deg); /* ‹ rotated -90deg = downward arrow */
  }

  /* Show-more button + truncation now global — see above desktop rules */

  /* ── What's New truncation ── */
  .changelog-list li:nth-child(n+4) {
    display: none;
  }
  .changelog-list.expanded li:nth-child(n+4) {
    display: block;
  }
  .changelog-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1.2rem;
    min-height: 44px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition:
      border-color var(--transition),
      color var(--transition),
      background var(--transition);
  }
  .changelog-show-more:hover {
    border-color: var(--border-hover);
    color: var(--accent);
  }

  /* ── Mobile FAB ── */
  /* RTL fix: inset-inline-start = right in RTL, opposite side from cmd-trigger (inline-end=left) */
  .mobile-fab {
    display: flex;
    position: fixed;
    bottom: 1.25rem;
    inset-inline-start: 1.25rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 4px 20px rgba(34, 158, 217, 0.4),
      0 0 0 1px rgba(34, 158, 217, 0.2);
    z-index: 100;
    text-decoration: none;
    transition:
      transform var(--transition),
      box-shadow var(--transition),
      opacity 0.3s ease;
  }
  .mobile-fab:hover {
    transform: scale(1.08);
    opacity: 1;
  }
  .mobile-fab--hidden {
    opacity: 0;
    pointer-events: none;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }
  .counters-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* ----------------------------------------------------------
   15. Responsive — mobile (640px)
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --section-py: 3rem;
  }

  .hero { padding-block: 5rem 3rem; }
  .hero-content { padding: 1.75rem 1.25rem; }

  .cta-group,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
  .stat-item { padding: 1rem 0.75rem; }
  .stat-num { font-size: 2rem; }

  .paths-grid {
    grid-template-columns: 1fr;
  }
  .btn--path {
    width: 100%;
    justify-content: center;
  }

  /* Keep counters as compact 3-column row */
  .counters-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
  }
  .counter-value { font-size: 1.6rem; }
  .counter-label { font-size: 0.72rem; }

  .footer-inner {
    flex-direction: column;
    gap: 0.3rem;
  }

  :root { --screenshot-w: 170px; }
}



/* ----------------------------------------------------------
   16. Reduced motion — disable animations for users who prefer it
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .feature-card { opacity: 1; transform: none; }
  .typing-text { clip-path: inset(0 0 0 0) !important; }
  .typing-cursor { display: none; }
  .screenshots-track { animation: none; }
  .step-connector-line { transform: scaleX(1); }
  .mobile-fab { transition: none; }
  .feature-card::after { transition: none; }
  /* Phase 2 additions */
  .hero-logo   { animation: none; }
  .hero-ticker { animation: none; }
  .cta-group .btn { opacity: 1; transform: none; animation: none; }
  /* Show only first left-side alert card statically; hide rest + right-side card */
  .alert-sim--1 { animation: none; opacity: 1; }
  .alert-sim--2, .alert-sim--3, .alert-sim--4 { display: none; }
  /* FAQ opacity — skip fade animation, show immediately */
  .faq-a { opacity: 1; transition: max-height var(--dur-medium) ease; }
  /* Stat sparkle — no scale pop */
  .stat-num.stat-counted { animation: none; }
}

/* ----------------------------------------------------------
   17. Micro-interactions (Phase 6)
   ---------------------------------------------------------- */

/* 6a. Stat count-up completion sparkle */
@keyframes statPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); color: #fff; }
  100% { transform: scale(1); }
}
.stat-num.stat-counted {
  animation: statPop 0.5s var(--ease-out-cubic) forwards;
}

/* 6b. Copy button checkmark scale-in */
@keyframes checkPop {
  0%   { transform: scale(0.7); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.copy-btn.copied .copy-feedback {
  animation: checkPop 0.25s var(--ease-out-cubic) forwards;
}

/* ----------------------------------------------------------
   18. Hero ticker — replaces old hero-badge (no duplication)
   ---------------------------------------------------------- */
@keyframes tickerShimmer {
  0%, 100% { border-color: rgba(255, 255, 255, 0.1); }
  50%       { border-color: rgba(34, 158, 217, 0.3); }
}
.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  white-space: nowrap;
  flex-wrap: nowrap;
  /* 2e: slow shimmer conveys "live feed" without being distracting */
  animation: tickerShimmer 3s ease-in-out infinite;
}
.hero-ticker-text { color: var(--text-primary); font-weight: 600; }
.hero-ticker-sep  { opacity: 0.3; }

/* ----------------------------------------------------------
   18. Path badge (⭐ מומלץ on Telegram path card)
   ---------------------------------------------------------- */
.path-card {
  position: relative;
}
.path-badge {
  position: absolute;
  inset-block-start: -0.6rem;
  inset-inline-end: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ----------------------------------------------------------
   19. Platform Comparison section
   ---------------------------------------------------------- */
/* Note: content-visibility: auto removed — it breaks IntersectionObserver
   for .reveal elements inside (they stay at opacity:0 forever) */
.compare { }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}

/* Platform cards */
.compare-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-card--telegram {
  border-color: rgba(34, 158, 217, 0.45);
  box-shadow: 0 0 32px rgba(34, 158, 217, 0.1);
  /* 3d: subtle gradient differentiates from WhatsApp card (additive — verify visually) */
  background: linear-gradient(160deg, rgba(34, 158, 217, 0.07) 0%, var(--surface) 60%);
}
.compare-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
}

.compare-card-badge {
  position: absolute;
  inset-block-start: -0.6rem;
  /* 3e: use physical left:50% for centering — translateX(-50%) is physical,
     not logical; inset-inline-start:50% breaks centering in RTL */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.compare-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.compare-platform-icon { font-size: 1.3rem; }

/* Terminal windows */
.compare-terminal {
  background: var(--terminal-bg, #0d1527);
  border: 1px solid rgba(34, 158, 217, 0.25);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.compare-terminal--wa {
  background: var(--terminal-wa-bg, #081711);
  border-color: rgba(37, 211, 102, 0.25);
}
.compare-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(34, 158, 217, 0.12);
  border-bottom: 1px solid rgba(34, 158, 217, 0.18);
}
.compare-terminal-bar--wa {
  background: rgba(37, 211, 102, 0.1);
  border-bottom-color: rgba(37, 211, 102, 0.18);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot--red    { background: #ef4444; }
.terminal-dot--yellow { background: #f59e0b; }
.terminal-dot--green  { background: #22c55e; }
.terminal-title {
  font-size: 0.75rem;
  color: var(--terminal-meta, #94a3b8);
  margin-inline-start: 0.25rem;
  font-family: var(--font);
  font-weight: 500;
}
.compare-terminal-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.terminal-line { color: var(--terminal-fg, #f8fafc); line-height: 1.5; }
.terminal-line--alert       { color: var(--terminal-alert, #ef4444); font-weight: 700; }
.terminal-line--meta        { color: var(--terminal-meta, #94a3b8); font-size: 0.78rem; }
.terminal-line--instruction { color: var(--terminal-warn, #fbbf24); }
.terminal-line--bar         { color: var(--terminal-alert, #ef4444); }
.terminal-line--cities      { color: var(--terminal-cities, #cbd5e1); }
.terminal-highlight         { color: var(--terminal-highlight, #38bdf8); font-weight: 700; }

/* Chips row */
.compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.chip--yes {
  background: var(--chip-yes-bg);
  border-color: var(--chip-yes-border);
  color: var(--chip-yes-color);
}
.chip--no {
  background: var(--chip-no-bg);
  border-color: var(--chip-no-border);
  color: var(--chip-no-color);
}

/* Interactive city preview */
.city-preview {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}
.city-preview-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}
/* Custom city dropdown */
.city-dropdown {
  position: relative;
  min-width: 220px;
  font-family: var(--font);
}
.city-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: inherit;
}
.city-dropdown-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.15);
}
.city-dropdown[aria-expanded="true"] .city-dropdown-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.15);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.city-dropdown-arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.city-dropdown[aria-expanded="true"] .city-dropdown-arrow {
  transform: rotate(180deg);
}
.city-dropdown-list {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 100%;
  background: var(--city-dd-bg);
  border: 1px solid var(--accent);
  border-top: none;
  border-end-start-radius: var(--radius-btn);
  border-end-end-radius: var(--radius-btn);
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  z-index: 9999;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 158, 217, 0.4) transparent;
}
.city-dropdown[aria-expanded="true"] .city-dropdown-list {
  display: block;
}
.city-dropdown-item {
  padding: 0.5rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background var(--transition);
}
.city-dropdown-item:hover {
  background: rgba(34, 158, 217, 0.15);
}
.city-dropdown-item[aria-selected="true"] {
  color: var(--accent);
}
.city-dropdown-item--placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.city-preview-bubble {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  min-width: 300px;
  max-width: 420px;
  width: 100%;
}
.city-preview-bubble[hidden] { display: none; }
.preview-bubble-header {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 0.4rem;
}
.preview-bubble-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.city-preview-bubble--animate {
  animation: bubbleIn 0.35s ease forwards;
}

/* ----------------------------------------------------------
   20. What's New — grid with descriptions
   ---------------------------------------------------------- */
.wn-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
/* Override centered section-title defaults inside wn-header */
.wn-header .section-title {
  margin-bottom: 0;
  text-align: start;
}
.wn-header .section-title::after {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.wn-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  white-space: nowrap;
}
.wn-ticker .badge-pulse {
  width: 7px;
  height: 7px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
}

.wn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
/* Show only first 4 wn-cards by default */
.wn-grid .wn-card:nth-child(n+5) { display: none; }
.wn-grid.expanded .wn-card:nth-child(n+5) { display: flex; }

.wn-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(34, 158, 217, 0.35);
  border-radius: var(--radius-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
/* Freshness hierarchy — most recent card brightest top border */
.wn-card:nth-child(1)   { border-top-color: rgba(34,158,217,0.65); }
.wn-card:nth-child(2)   { border-top-color: rgba(34,158,217,0.45); }
.wn-card:nth-child(3)   { border-top-color: rgba(34,158,217,0.35); }
.wn-card:nth-child(n+4) { border-top-color: rgba(34,158,217,0.22); }

.wn-card:hover {
  border-color: rgba(34, 158, 217, 0.45);
  box-shadow: 0 0 20px var(--accent-glow);
}
.wn-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.wn-desc {
  display: block;
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ----------------------------------------------------------
   21. FAQ — glass accordion (matches page glassmorphism aesthetic)
   ---------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  margin-top: 2rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  padding: 1.1rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
  line-height: 1.4;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease, content 0s;
}
.faq-q--open {
  background: rgba(34, 158, 217, 0.06);
  border-inline-start: 3px solid var(--accent); /* RTL: inline-start = right edge (reading-start) */
}
.faq-q--open::after {
  content: '−';
}
.faq-q:hover { background: rgba(255, 255, 255, 0.06); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-medium) ease, opacity var(--dur-fast) ease;
}

.faq-bubble--bot {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(34, 158, 217, 0.04);
  border-top: 1px solid rgba(34, 158, 217, 0.1);
}
.faq-avatar {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}
.faq-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.faq-text code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

/* ----------------------------------------------------------
   22. Command palette
   ---------------------------------------------------------- */
.cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.cmd-overlay[hidden] { display: none; }

.cmd-modal {
  background: rgba(20, 22, 35, 0.97);
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: 16px;
  width: min(560px, 92vw);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 158, 217, 0.1);
  overflow: hidden;
}

.cmd-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cmd-prefix {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  direction: rtl;
}
.cmd-input::placeholder { color: var(--text-muted); }
.cmd-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.cmd-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }

.cmd-list {
  list-style: none;
  padding: 0.5rem 0;
  max-height: 320px;
  overflow-y: auto;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cmd-item--active,
.cmd-item:hover { background: rgba(34, 158, 217, 0.1); }
.cmd-icon  { font-size: 1rem; flex-shrink: 0; }
.cmd-label {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 130px;
}
.cmd-desc  { font-size: 0.82rem; color: var(--text-secondary); }

.cmd-trigger {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.3);
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.cmd-trigger:hover {
  background: rgba(34, 158, 217, 0.2);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ----------------------------------------------------------
   23. Responsive — new sections (≤900px)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  /* Platform comparison */
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* What's New grid → single column */
  .wn-grid {
    grid-template-columns: 1fr;
  }
  .wn-header { flex-direction: column; align-items: flex-start; }

  /* FAQ */
  .faq-list { max-width: 100%; }

  /* Command palette trigger */
  .cmd-trigger { bottom: 5rem; } /* above FAB */

  /* Stats strip — 3+2 on tablet */
  .stats-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* Stats strip — 2+3 split on small phones; 5th item spans full width */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-inner .stat-item:last-child {
    grid-column: 1 / -1;
  }

  .city-preview-bubble { min-width: unset; }
  .wn-grid .wn-card { padding: 0.75rem 1rem; }

  /* Command palette full-width on mobile */
  .cmd-modal { width: 96vw; border-radius: 12px; }
  .cmd-trigger { inset-inline-end: 1rem; }
}

/* ----------------------------------------------------------
   Nav bar + Skip link (shared chrome)
   ---------------------------------------------------------- */

/* Skip to main content — visually hidden until focused */
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 200;
  border-end-end-radius: 6px;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Hidden checkbox for hamburger toggle (no JS) */
.nav-toggle-input { display: none; }

/* Nav bar */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: var(--nav-height, 64px);
  background: var(--nav-bg, rgba(7,8,15,0.72));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .nav-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7,8,15,0.96); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding-inline: 1.5rem;
  gap: 1rem;
}

/* Brand */
.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.nav-brand img {
  border-radius: 6px;
}
.nav-endorsement {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) ease;
}
.nav-endorsement:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
@media (max-width: 520px) {
  .nav-endorsement {
    display: none;
  }
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
}
.nav-links a.is-active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 2px;
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* Keyboard shortcut hint chip */
.nav-palette-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  cursor: pointer;
  transition: border-color 0.2s ease;
  user-select: none;
}
.nav-palette-hint:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile — hamburger visible, links slide open */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-palette-hint { display: none; }

  .nav-links {
    position: absolute;
    top: var(--nav-height, 64px);
    inset-inline-start: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--nav-mobile-bg, rgba(7,8,15,0.97));
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links a {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* :has on checkbox is widely supported (2023+) */
  .nav-bar:has(~ .nav-toggle-input:checked) .nav-links,
  body:has(#nav-toggle:checked) .nav-links {
    max-height: 400px;
  }

  /* Hamburger → X animation when open */
  body:has(#nav-toggle:checked) .nav-hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body:has(#nav-toggle:checked) .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  body:has(#nav-toggle:checked) .nav-hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links { transition: none; }
  }
}

/* ----------------------------------------------------------
   Footer legal strip
   ---------------------------------------------------------- */

.footer-legal {
  padding: 3.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--footer-bg, rgba(10, 14, 26, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-grid h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}
.footer-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--dur-fast) ease;
}
.footer-grid a:hover {
  color: var(--accent);
}
.footer-grid .sponsor-link {
  color: var(--sponsor-color);
}
.footer-grid .sponsor-link:hover {
  opacity: 0.85;
}

.footer-meta {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-endorsement {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-brand-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur-fast) ease;
}

.footer-brand-link:hover {
  opacity: 0.85;
}

.footer-disclaimer {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ----------------------------------------------------------
   Hero disclaimer strip
   ---------------------------------------------------------- */

.hero-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  font-size: 0.92rem;
  text-align: start;
}

.hero-disclaimer-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-disclaimer p {
  margin: 0;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hero-disclaimer p b {
  color: var(--text-primary);
}

.hero-disclaimer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------
   Alert Simulator v2 — city input + Telegram-clone bubble
   ---------------------------------------------------------- */

.sim-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 1.5rem;
  border-top: 3px solid rgba(239, 68, 68, 0.7);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.sim-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.sim-header-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  letter-spacing: 0.03em;
}

.sim-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sim-chip-btn {
  font-size: 0.78rem;
  font-family: var(--font);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.sim-chip-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent);
  color: var(--text-primary);
}

.sim-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-input-wrap {
  position: relative;
}

.sim-city-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  direction: rtl;
  outline: none;
  transition: border-color var(--dur-fast) ease;
}

.sim-city-input:focus {
  border-color: var(--accent);
}

.sim-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: #0e1822;
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.sim-suggestion {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.93rem;
  color: var(--text-primary);
  transition: background var(--dur-fast) ease;
}

.sim-suggestion:hover,
.sim-suggestion[aria-selected="true"] {
  background: rgba(34,158,217,0.12);
  color: var(--accent);
}

.sim-run-btn {
  width: 100%;
  justify-content: center;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ── Pulse glow (motion-safe only) ── */
.sim-pulse-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .sim-pulse-container:not([hidden]) {
    animation: sim-pulse-glow 2.5s ease-in-out infinite alternate;
  }
  @keyframes sim-pulse-glow {
    0%   { filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.25)); }
    100% { filter: drop-shadow(0 4px 20px rgba(239, 68, 68, 0.5)); }
  }
}

/* ── Telegram bubble ── */
.tg-bubble {
  background: #17212b;
  max-width: 520px;
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  direction: rtl;
  position: relative;
}

.tg-bubble-avatar img {
  border-radius: 50%;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.tg-bubble-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tg-bubble-sender {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.tg-sender-name {
  color: #6ab3f3;
}

.tg-sender-verified {
  color: #5288c1;
  font-size: 0.85rem;
}

.tg-bubble-content {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tg-alert-header {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.tg-alert-zones {
  color: #e1e8ec;
  margin-top: 6px;
}

.tg-alert-cities {
  color: #b0bec5;
  font-size: 0.9rem;
}

.tg-alert-instructions {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(239,68,68,0.12);
  border-inline-end: 3px solid var(--red);
  border-radius: 6px;
  font-size: 0.9rem;
}

.tg-alert-countdown {
  margin-top: 10px;
}

.tg-countdown-label {
  color: #7d8e98;
  font-size: 0.85rem;
  margin-inline-start: 8px;
}

.tg-countdown-value {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tg-countdown-bar {
  margin-top: 4px;
  height: 6px;
  background: rgba(239,68,68,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.tg-countdown-fill {
  height: 100%;
  background: var(--red);
  width: 100%;
  transform-origin: right;
  transition: transform 1s linear;
}

.tg-bubble-meta {
  display: flex;
  gap: 10px;
  color: #7d8e98;
  font-size: 0.8rem;
  margin-top: 6px;
}

.tg-watermark {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Light mode adjustments for simulator */
:root[data-theme="light"] .sim-city-input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

:root[data-theme="light"] .sim-suggestions {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .sim-suggestion {
  color: #0f172a;
}

:root[data-theme="light"] .sim-suggestion:hover,
:root[data-theme="light"] .sim-suggestion[aria-selected="true"] {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

:root[data-theme="light"] .sim-chip-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .sim-chip-btn:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0284c7;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sim-city-input {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  :root:not([data-theme="dark"]) .sim-suggestions {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  }
  :root:not([data-theme="dark"]) .sim-suggestion {
    color: #0f172a;
  }
  :root:not([data-theme="dark"]) .sim-chip-btn {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
  }
}

/* ----------------------------------------------------------
   Light / Dark Theme Toggle
   ---------------------------------------------------------- */

:root {
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.94);
  --border: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(2, 132, 199, 0.45);
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --accent-deep: rgba(2, 132, 199, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --legal-muted: #475569;
  --city-dd-bg: #ffffff;
  --chip-yes-color: #15803d;
  --chip-yes-bg: rgba(22, 163, 74, 0.08);
  --chip-yes-border: rgba(22, 163, 74, 0.28);
  --chip-no-color: #475569;
  --chip-no-bg: rgba(100, 116, 139, 0.08);
  --chip-no-border: rgba(100, 116, 139, 0.22);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --surface-glass: rgba(255, 255, 255, 0.94);
    --border: rgba(15, 23, 42, 0.09);
    --border-hover: rgba(2, 132, 199, 0.45);
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.15);
    --accent-deep: rgba(2, 132, 199, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --legal-muted: #475569;
    --city-dd-bg: #ffffff;
    --chip-yes-color: #15803d;
    --chip-yes-bg: rgba(22, 163, 74, 0.08);
    --chip-yes-border: rgba(22, 163, 74, 0.28);
    --chip-no-color: #475569;
    --chip-no-bg: rgba(100, 116, 139, 0.08);
    --chip-no-border: rgba(100, 116, 139, 0.22);
  }
}

/* Light mode specific component overrides */
:root[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 10px 30px -5px rgba(15, 23, 42, 0.05);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .glass-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow:
      0 1px 3px rgba(15, 23, 42, 0.04),
      0 10px 30px -5px rgba(15, 23, 42, 0.05);
  }
}

/* Stat items in light mode */
:root[data-theme="light"] .stat-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 4px 12px -2px rgba(15, 23, 42, 0.04);
}
:root[data-theme="light"] .stat-icon {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.18);
}
:root[data-theme="light"] .stat-num,
:root[data-theme="light"] .stat-unit {
  color: #0284c7;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .stat-item {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.03),
      0 4px 12px -2px rgba(15, 23, 42, 0.04);
  }
  :root:not([data-theme="dark"]) .stat-icon {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.18);
  }
  :root:not([data-theme="dark"]) .stat-num,
  :root:not([data-theme="dark"]) .stat-unit {
    color: #0284c7;
  }
}

/* Compare cards in light mode */
:root[data-theme="light"] .compare-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .compare-card--telegram {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08);
  background: linear-gradient(160deg, rgba(2, 132, 199, 0.03) 0%, #ffffff 60%);
}
:root[data-theme="light"] .compare-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .compare-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  }
  :root:not([data-theme="dark"]) .compare-card--telegram {
    border-color: rgba(2, 132, 199, 0.35);
    background: linear-gradient(160deg, rgba(2, 132, 199, 0.03) 0%, #ffffff 60%);
  }
  :root:not([data-theme="dark"]) .compare-card--whatsapp {
    border-color: rgba(37, 211, 102, 0.35);
  }
}

/* Disclaimer in light mode */
:root[data-theme="light"] .hero-disclaimer {
  background: #fffbeb;
  border-color: #fcd34d;
}
:root[data-theme="light"] .hero-disclaimer p {
  color: #78350f;
}
:root[data-theme="light"] .hero-disclaimer p b {
  color: #451a03;
}
:root[data-theme="light"] .hero-disclaimer a {
  color: #b45309;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-disclaimer {
    background: #fffbeb;
    border-color: #fcd34d;
  }
  :root:not([data-theme="dark"]) .hero-disclaimer p {
    color: #78350f;
  }
  :root:not([data-theme="dark"]) .hero-disclaimer p b {
    color: #451a03;
  }
  :root:not([data-theme="dark"]) .hero-disclaimer a {
    color: #b45309;
  }
}

/* Hero ticker in light mode */
:root[data-theme="light"] .hero-ticker {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.09);
  color: #475569;
}
:root[data-theme="light"] .hero-ticker-text {
  color: #0f172a;
}

/* City dropdown in light mode */
:root[data-theme="light"] .city-dropdown-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
:root[data-theme="light"] .city-dropdown-list {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .city-dropdown-item {
  color: #334155;
}
:root[data-theme="light"] .city-dropdown-item:hover,
:root[data-theme="light"] .city-dropdown-item--selected {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* Aurora blobs: reduce in light mode */
:root[data-theme="light"] .aurora-blob {
  opacity: 0.25;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .aurora-blob {
    opacity: 0.25;
  }
}

/* Footer in light mode */
:root[data-theme="light"] .footer-legal {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .footer-grid h3 {
  color: #0f172a;
}
:root[data-theme="light"] .footer-grid a {
  color: #475569;
}
:root[data-theme="light"] .footer-grid a:hover {
  color: #0284c7;
}
:root[data-theme="light"] .footer-meta {
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}
:root[data-theme="light"] .footer-endorsement {
  color: #334155;
}
:root[data-theme="light"] .footer-disclaimer {
  color: #64748b;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .footer-legal {
    background: #ffffff;
    border-top-color: rgba(15, 23, 42, 0.08);
  }
  :root:not([data-theme="dark"]) .footer-grid h3 {
    color: #0f172a;
  }
  :root:not([data-theme="dark"]) .footer-grid a {
    color: #475569;
  }
  :root:not([data-theme="dark"]) .footer-grid a:hover {
    color: #0284c7;
  }
  :root:not([data-theme="dark"]) .footer-meta {
    border-top-color: rgba(15, 23, 42, 0.08);
    color: #475569;
  }
  :root:not([data-theme="dark"]) .footer-endorsement {
    color: #334155;
  }
  :root:not([data-theme="dark"]) .footer-disclaimer {
    color: #64748b;
  }
}

/* Mobile nav in light mode */
:root[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
:root[data-theme="light"] .nav-links a {
  color: #334155;
}
:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links a.is-active {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(15, 23, 42, 0.1);
  }
  :root:not([data-theme="dark"]) .nav-links a {
    color: #334155;
  }
  :root:not([data-theme="dark"]) .nav-links a:hover,
  :root:not([data-theme="dark"]) .nav-links a.is-active {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
  }
}

/* Telegram bubble in light mode */
:root[data-theme="light"] .tg-bubble,
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .tg-bubble {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  }
  :root:not([data-theme="dark"]) .tg-bubble-content {
    color: #0f172a;
  }
  :root:not([data-theme="dark"]) .tg-sender-name {
    color: #0284c7;
  }
  :root:not([data-theme="dark"]) .tg-sender-verified {
    color: #0369a1;
  }
  :root:not([data-theme="dark"]) .tg-alert-zones {
    color: #1e293b;
  }
  :root:not([data-theme="dark"]) .tg-alert-cities {
    color: #475569;
  }
  :root:not([data-theme="dark"]) .tg-alert-instructions {
    background: #fef2f2;
    border-inline-end-color: #ef4444;
    color: #991b1b;
  }
  :root:not([data-theme="dark"]) .tg-countdown-label {
    color: #64748b;
  }
  :root:not([data-theme="dark"]) .tg-countdown-value {
    color: #dc2626;
  }
  :root:not([data-theme="dark"]) .tg-countdown-bar {
    background: #fee2e2;
  }
  :root:not([data-theme="dark"]) .tg-countdown-fill {
    background: #dc2626;
  }
  :root:not([data-theme="dark"]) .tg-bubble-meta {
    color: #64748b;
  }
  :root:not([data-theme="dark"]) .tg-watermark {
    color: rgba(15, 23, 42, 0.25);
  }
}

/* Nav theme toggle button */
.nav-theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
  flex-shrink: 0;
}

.nav-theme-toggle:hover {
  background: var(--surface);
}
