/* ==========================================================================
   WASEL LANDING PAGE — styles.css
   Custom design system, RTL Arabic, no frameworks
   ========================================================================== */

/* ─── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --ink:       #0D0D14;
  --ink-soft:  #1C1C28;
  --surface:   #F5F4F0;
  --surface-2: #ECEAE4;
  --signal:    #1DA462;   /* WhatsApp-green — earned, not decorative */
  --signal-dk: #158A50;
  --pulse:     #2563EB;
  --pulse-lt:  #3B82F6;
  --muted:     #6B7280;
  --border:    rgba(13,13,20,.10);
  --border-lt: rgba(255,255,255,.14);
  --glass:     rgba(255,255,255,.07);
  --glass-dk:  rgba(13,13,20,.35);

  /* Bubble colors */
  --bubble-in:  #FFFFFF;
  --bubble-out: #DCF8C6;

  /* Typography */
  --font-display: 'IBM Plex Sans Arabic', sans-serif;
  --font-body:    'Tajawal', sans-serif;

  /* Spacing scale */
  --sp-xs:  .5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 7rem;

  /* Radii */
  --r-sm:  6px;
  --r-md:  14px;
  --r-lg:  24px;
  --r-xl:  36px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13,13,20,.08);
  --shadow-md: 0 8px 28px rgba(13,13,20,.12);
  --shadow-lg: 0 20px 60px rgba(13,13,20,.18);

  /* Transitions */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 180ms;
  --t-med:  340ms;
  --t-slow: 600ms;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Utility ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-sm);
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .75rem;
  max-width: 52ch;
}
section { padding-block: var(--sp-xl); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  padding: .85rem 2rem;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.btn:focus-visible {
  outline: 3px solid var(--pulse);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(29,164,98,.35);
}
.btn-primary:hover {
  background: var(--signal-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,164,98,.40);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}
.btn-pulse {
  background: var(--pulse);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.30);
}
.btn-pulse:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.38);
}

/* ─── NAV ───────────────────────────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245,244,240,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-med) var(--ease);
  /* Prevent any child from overflowing and clipping the logo */
  overflow: visible;
  width: 100%;
}
#site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;    /* anchor for the absolute dropdown */
  min-width: 0;          /* prevent flex blowout */
  gap: .5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;   /* NEVER compress the logo */
  min-width: 0;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--ink);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  opacity: .75;
  transition: opacity var(--t-fast);
}
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-links a:focus-visible { outline: 2px solid var(--pulse); border-radius: 3px; }
.nav-cta { margin-inline-start: 1rem; }

/* Login button — subtle outline, between the plain links and the primary CTA */
.nav-login { margin-inline-start: .5rem; }
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(13,13,20,.2);
  border-radius: var(--r-full);
  padding: .55rem 1.1rem;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn-nav-login:hover {
  background: rgba(13,13,20,.06);
  border-color: rgba(13,13,20,.35);
  transform: translateY(-1px);
}
.btn-nav-login:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 2px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .65rem;
  border-radius: var(--r-sm);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.nav-hamburger:focus-visible { outline: 2px solid var(--pulse); }
.ham-line {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.ham-line + .ham-line { margin-top: 5px; }

/* ─── MOBILE NAV ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-hamburger { display: flex; flex-direction: column; }

  /* Collapse the <nav> wrapper out of the flex row so only
     logo + hamburger compete for space in the 64px bar */
  .nav-inner > nav { display: contents; }

  /* Full-viewport-width dropdown below the sticky bar.
     position:fixed ensures it's always aligned to the screen,
     not to any container/wrapper — fixes the RTL misalignment bug. */
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 244, 240, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    /* RTL: right-align items — must be explicit since fixed removes from RTL context */
    align-items: flex-end;
    direction: rtl;
    text-align: right;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: .85rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease),
                opacity var(--t-med) var(--ease);
    z-index: 9999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { font-size: 1rem; opacity: 1; padding-block: .2rem; }
  .nav-links li.nav-login { margin-inline-start: 0; width: 100%; }
  .nav-links li.nav-login .btn-nav-login { width: 100%; justify-content: center; }
  .nav-links li.nav-cta { margin-inline-start: 0; width: 100%; }
  .nav-links li.nav-cta .btn { width: 100%; justify-content: center; }
}


/* ─── HERO ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: calc(100svh - 64px);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding-block: var(--sp-xl) var(--sp-2xl);
}

/* Subtle grain texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .3;
  pointer-events: none;
}

/* Glow orb */
#hero::after {
  content: '';
  position: absolute;
  top: -180px; left: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(29,164,98,.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(29,164,98,.15);
  border: 1px solid rgba(29,164,98,.3);
  border-radius: var(--r-full);
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: #5EE8A0;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}
.hero-headline em {
  font-style: normal;
  color: var(--signal);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  margin-top: 1.25rem;
  max-width: 48ch;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.hero-channels {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-channels-label {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-full);
  padding: .3rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  font-family: var(--font-display);
}

/* ─── CHAT WINDOW ─────────────────────────────────────────────────────── */
.hero-chat {
  position: relative;
}
.chat-phone {
  background: #ECE5DD;
  border-radius: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  max-width: 340px;
  margin-inline: auto;
  font-family: var(--font-body);
  border: 8px solid rgba(255,255,255,.04);
}
.chat-header {
  background: #075E54;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.chat-avatar {
  width: 40px; height: 40px;
  background: var(--signal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chat-contact-name {
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  direction: rtl;
}
.chat-status {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.chat-status-dot {
  width: 6px; height: 6px;
  background: #5EE8A0;
  border-radius: 50%;
}

.chat-body {
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 320px;
  background: #ECE5DD url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='.03' fill='%23000'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='30' cy='10' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.bubble {
  max-width: 78%;
  padding: .55rem .85rem;
  border-radius: 10px;
  font-size: .87rem;
  line-height: 1.5;
  direction: rtl;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}
.bubble.in {
  background: var(--bubble-in);
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
  color: #111;
}
.bubble.out {
  background: var(--bubble-out);
  align-self: flex-start;
  border-radius: 10px 10px 10px 2px;
  color: #111;
}
.bubble .bubble-time {
  display: block;
  font-size: .68rem;
  color: rgba(0,0,0,.45);
  margin-top: .3rem;
  direction: ltr;
  text-align: left;
}
.bubble.in .bubble-time { text-align: right; }
.bubble .ticks {
  display: inline-block;
  margin-inline-start: .3rem;
  color: #53BDEB;
}
.bubble.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--bubble-in);
  border-radius: 10px 10px 10px 2px;
  padding: .75rem 1rem;
  align-self: flex-start;
  max-width: 70px;
  opacity: 0;
  transition: opacity .3s;
}
.typing-indicator.visible { opacity: 1; }
.typing-dot {
  width: 7px; height: 7px;
  background: #aaa;
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
.chat-footer-bar {
  background: #F0F0F0;
  padding: .6rem .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chat-input-fake {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: .4rem .85rem;
  font-size: .8rem;
  color: #999;
  direction: rtl;
}

/* floating glow behind phone */
.hero-chat::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(29,164,98,.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  /* Content ABOVE phone on mobile */
  .hero-content { order: 0; }
  .hero-chat { order: 1; }
  .hero-sub, .section-sub { max-width: 100%; }
  .hero-badge { justify-content: center; }
  .hero-channels {
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .hero-actions { justify-content: center; }
  .hero-headline { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
  .chat-phone { max-width: 300px; }
}

@media (max-width: 480px) {
  #hero { padding-block: 2.5rem 3rem; min-height: auto; }
  .hero-headline { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-sub { font-size: .95rem; }
  .hero-badge { font-size: .72rem; padding: .28rem .8rem; }
  .channel-pill { font-size: .72rem; padding: .25rem .6rem; }
  .hero-channels { gap: .35rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  .chat-phone { max-width: 100%; }
}

/* ─── PAIN SECTION ─────────────────────────────────────────────────────── */
#pain {
  background: var(--surface-2);
  padding-block: var(--sp-xl);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pain-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  line-height: 1;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.pain-card p { font-size: .9rem; color: var(--muted); }

/* ─── HOW IT WORKS ─────────────────────────────────────────────────────── */
#how {
  background: var(--surface);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}
/* connector line */
.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  right: 15%;
  left: 15%;
  height: 2px;
  background: linear-gradient(to left, var(--signal), var(--pulse));
  border-radius: 2px;
  z-index: 0;
}
@media (max-width: 768px) { .how-steps::before { display: none; } }

.how-step {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--t-med), transform var(--t-med);
}
.how-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--signal);
  line-height: 1;
  margin-bottom: .85rem;
  opacity: .22;
}
.how-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.how-step p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* conversation demo inside step 3 */
.mini-convo {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mini-bubble {
  padding: .42rem .75rem;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.4;
  max-width: 90%;
}
.mini-bubble.in {
  background: #E9E9EB;
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}
.mini-bubble.out {
  background: var(--bubble-out);
  align-self: flex-start;
  border-radius: 10px 10px 10px 2px;
}

/* ─── CHANNELS ─────────────────────────────────────────────────────────── */
#channels {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}
#channels::before {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.channels-heading { color: #fff; }
.channels-sub { color: rgba(255,255,255,.55); }
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .channels-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .channels-grid { grid-template-columns: 1fr; }
  .channel-card { padding: 1.5rem 1.25rem; }
}

.channel-card {
  background: var(--glass);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  cursor: default;
}
.channel-card:hover {
  background: rgba(255,255,255,.11);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.channel-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}
.channel-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: .4rem;
}
.channel-card p { font-size: .85rem; color: rgba(255,255,255,.5); }

/* ─── CAPABILITIES ─────────────────────────────────────────────────────── */
#capabilities { background: var(--surface-2); }
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 680px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: box-shadow var(--t-med), transform var(--t-med);
}
.cap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cap-top {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.cap-emoji {
  font-size: 1.5rem;
  width: 50px; height: 50px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cap-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.cap-scenario {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-top: .85rem;
}
.cap-scenario-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-display);
}
.mini-convo-cap {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mini-bubble-cap {
  padding: .4rem .7rem;
  border-radius: 8px;
  font-size: .82rem;
  max-width: 90%;
  line-height: 1.45;
}
.mini-bubble-cap.in {
  background: #E9E9EB;
  align-self: flex-end;
  border-radius: 8px 8px 2px 8px;
  color: #111;
}
.mini-bubble-cap.out {
  background: #DCF8C6;
  align-self: flex-start;
  border-radius: 8px 8px 8px 2px;
  color: #111;
}

/* ─── PRICING ───────────────────────────────────────────────────────────── */
#pricing { background: var(--surface); }
.pricing-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(29,164,98,.1);
  border: 1px solid rgba(29,164,98,.25);
  border-radius: var(--r-full);
  padding: .4rem 1rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--signal-dk);
  margin-top: .85rem;
  font-family: var(--font-display);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--t-med), transform var(--t-med), border-color var(--t-med);
  position: relative;
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pricing-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,.6); }
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.1); }
.pricing-card.featured .pricing-feature svg { color: var(--signal); }

.featured-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--signal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  padding: .3rem 1rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .3rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: .6;
}
.pricing-desc {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature svg {
  flex-shrink: 0;
  color: var(--signal);
}

/* ─── FORM SECTION ─────────────────────────────────────────────────────── */
#signup {
  background: linear-gradient(160deg, var(--ink) 0%, #111827 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#signup::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(29,164,98,.15) 0%, transparent 70%);
  pointer-events: none;
}
.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .signup-inner { grid-template-columns: 1fr; }
}
.signup-pitch h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.signup-pitch p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  margin-top: 1rem;
  max-width: 40ch;
}
.signup-bullets {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.signup-bullets li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .92rem;
  color: rgba(255,255,255,.75);
}
.signup-bullets li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(29,164,98,.2);
  border: 1px solid rgba(29,164,98,.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: #5EE8A0;
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: .45rem;
  font-family: var(--font-display);
}
.form-group label .req { color: #EF4444; margin-inline-start: .2rem; }

.form-control {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: #fff;
  direction: rtl;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-control::placeholder { color: rgba(255,255,255,.3); }
.form-control:focus {
  border-color: var(--signal);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(29,164,98,.2);
}
.form-control:focus-visible {
  outline: none;
}
.form-control.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
select.form-control option { color: var(--ink); background: #fff; }

.field-error {
  font-size: .8rem;
  color: #FCA5A5;
  margin-top: .4rem;
  display: none;
  font-family: var(--font-display);
  font-weight: 500;
}
.field-error.visible { display: block; }

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

/* Submit button states */
#submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--r-md);
  margin-top: .5rem;
  position: relative;
  overflow: hidden;
}
#submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submit-btn.loading .btn-text { opacity: 0; }
#submit-btn.loading .btn-spinner { display: inline-block; position: absolute; }

/* Success / error states */
.form-success, .form-error-msg {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--r-xl);
}
.form-success {
  background: rgba(29,164,98,.12);
  border: 1px solid rgba(29,164,98,.3);
}
.form-success.visible, .form-error-msg.visible { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #5EE8A0;
  margin-bottom: .5rem;
}
.form-success p { color: rgba(255,255,255,.65); font-size: .95rem; }
.form-error-msg {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
}
.form-error-msg h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #FCA5A5;
  margin-bottom: .5rem;
}
.form-error-msg p { color: rgba(255,255,255,.6); font-size: .9rem; }
.form-error-msg button {
  margin-top: 1rem;
  background: none;
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: var(--r-full);
  padding: .5rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .87rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.form-error-msg button:hover { background: rgba(255,255,255,.08); }
.form-error-msg button:focus-visible { outline: 2px solid var(--pulse); }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--ink-soft);
  color: rgba(255,255,255,.55);
  padding-block: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.footer-tagline {
  font-size: .83rem;
  color: rgba(255,255,255,.4);
  margin-top: .15rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: #fff; }
.footer-links a:focus-visible { outline: 2px solid var(--pulse); border-radius: 3px; }
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.25);
  width: 100%;
  text-align: center;
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-links {
    gap: 1rem;
  }
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── COMPREHENSIVE MOBILE SWEEP ────────────────────────────────────────── */

/* Tighten section vertical padding on small screens */
@media (max-width: 640px) {
  section { padding-block: 3rem; }
  #hero { padding-block: 2.25rem 2.75rem; }

  /* Section headings */
  .section-heading { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Pain grid: 1 column */
  .pain-grid { grid-template-columns: 1fr; }

  /* How-it-works: min-width prevents narrow 2-col */
  .how-steps { grid-template-columns: 1fr; }

  /* Pricing: full width cards, no artificial max-width constraint */
  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 1.6rem 1.25rem; border-radius: var(--r-lg); }
  .pricing-price { font-size: 2rem; }
  .featured-badge { font-size: .72rem; padding: .25rem .85rem; }

  /* Capabilities: already 1-col at 680px, add padding tweak */
  .cap-card { padding: 1.4rem; }

  /* Signup section */
  .form-card { padding: 1.75rem 1.25rem; border-radius: var(--r-lg); }
  .signup-pitch p { max-width: 100%; }

  /* Channels: tighten heading on dark bg */
  #channels .section-heading { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* Nav CTA hidden on very small mobile — form CTA is enough */
  .nav-links li.nav-cta { display: none; }
}

/* Extra small: 360px and below */
@media (max-width: 380px) {
  .container { padding-inline: 1rem; }
  .hero-headline { font-size: 1.5rem; }
  .btn { padding: .78rem 1.4rem; font-size: .9rem; }
  .chat-body { min-height: 240px; }
  .bubble { font-size: .82rem; }
}


/* ══════════════════════════════════════════════════════
     POINTS SYSTEM DESIGN
═══════════════════════════════════════════════════════ */
.points-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.points-visual {
  background: linear-gradient(135deg, rgba(29, 164, 98, 0.05) 0%, rgba(29, 164, 98, 0.15) 100%);
  border-radius: var(--r-lg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(29, 164, 98, 0.3);
  position: relative;
}

.points-coin {
  background: #fff;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15), 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  border: 4px solid #fff;
  position: relative;
}
.points-coin::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.5);
  animation: rotate-dashed 15s linear infinite;
}

@keyframes rotate-dashed {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.coin-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
  line-height: 1.2;
}

.coin-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.points-rates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.rate-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--text-dark);
}

.rate-icon {
  font-size: 1.5rem;
}

.points-content {
  display: flex;
  flex-direction: column;
}

.points-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.points-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.points-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.points-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-reg);
  line-height: 1.5;
}

.points-list li strong {
  color: var(--text-dark);
}

.pt-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.points-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.points-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .points-layout {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .points-action {
    flex-direction: column;
    align-items: flex-start;
  }
}

.points-rates-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.rate-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.rate-icon-new {
  color: var(--primary);
  margin-bottom: 0.75rem;
  background: rgba(29, 164, 98, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rate-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rate-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rate-cost {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}
