/* ============================================================
   Iraq Pharma Guide — MOBILE-FIRST CSS
   Primary: #1D8478 | Font: Cairo | Direction: RTL
   ============================================================ */

:root {
  --teal:    #1D8478;
  --teal-d:  #166B61;
  --teal-m:  #20917E;
  --teal-lt: #E3F4F2;
  --white:   #FFFFFF;
  --bg:      #F6FAF9;
  --dark:    #1A2832;
  --slate:   #3A5260;
  --muted:   #7A8E98;
  --border:  #D4E8E5;
  --radius:  16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --pill: 999px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --trans: 0.26s var(--ease);
  --font: 'Cairo', sans-serif;
  --hh: 60px;
  --bar-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  font-family:var(--font);direction:rtl;
  background:var(--white);color:var(--dark);
  line-height:1.7;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  padding-bottom:calc(var(--bar-h) + var(--safe-b));
}
a{text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent;}
img{display:block;max-width:100%;}
ul{list-style:none;}
button{font-family:var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent;}
*{touch-action:manipulation;}

.container{width:100%;padding-inline:20px;}
.text-c{text-align:center;}
.section-pad{padding:56px 20px;}

.section-tag{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--teal-lt);color:var(--teal-d);
  font-size:.72rem;font-weight:700;
  padding:5px 14px;border-radius:var(--pill);
  margin-bottom:10px;letter-spacing:.04em;
}
.section-head{margin-bottom:28px;}
.section-title{font-size:1.55rem;font-weight:800;color:var(--dark);line-height:1.35;}

/* Reveal */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .5s var(--ease),transform .5s var(--ease);}
.reveal.visible{opacity:1;transform:none;}
.delay-1{transition-delay:.07s;}.delay-2{transition-delay:.14s;}
.delay-3{transition-delay:.21s;}.delay-4{transition-delay:.28s;}

/* ══ HEADER ══ */
#header{
  position:fixed;top:0;right:0;left:0;z-index:1000;
  background:var(--teal);
  box-shadow:0 2px 16px rgba(29,132,120,.3);
  transition:background var(--trans);
}
#header.scrolled{background:rgba(22,107,97,.97);backdrop-filter:blur(12px);}

.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:var(--hh);padding:0 16px;gap:12px;
}

/* Logo */
.logo{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.logo-img{height:36px;width:auto;max-width:130px;object-fit:contain;}
.logo-fallback{font-size:1.3rem;}
.logo-name{
  color:#fff;font-weight:800;font-size:.88rem;
  white-space:nowrap;
}

/* Desktop Nav — hidden mobile, shown ≥1024px */
.desktop-nav{display:none;}

/* Mobile Hamburger */
.menu-btn{
  background:rgba(255,255,255,.15);border:none;border-radius:10px;
  width:40px;height:40px;min-width:40px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.menu-btn:active{background:rgba(255,255,255,.25);}
.menu-btn span{display:block;width:20px;height:2px;background:#fff;border-radius:2px;transition:all var(--trans);}
.menu-btn.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.menu-btn.open span:nth-child(2){opacity:0;}
.menu-btn.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Dropdown */
.drop-menu{display:none;background:var(--teal-d);padding:8px 16px 16px;flex-direction:column;gap:2px;}
.drop-menu.open{display:flex;}
.drop-link{
  color:rgba(255,255,255,.9);font-size:.97rem;font-weight:600;
  padding:13px 14px;border-radius:12px;min-height:50px;
  display:flex;align-items:center;gap:10px;
}
.drop-link:active{background:rgba(255,255,255,.12);}

/* ══ HERO ══ */
#hero{
  padding-top:calc(var(--hh) + 32px);padding-bottom:48px;
  background:linear-gradient(160deg,#e4f3f1 0%,#fff 60%,#f0faf9 100%);
  text-align:center;position:relative;overflow:hidden;
}
.hero-bg-blob{
  position:absolute;top:-120px;left:50%;transform:translateX(-50%);
  width:500px;height:500px;
  background:radial-gradient(circle,rgba(29,132,120,.1) 0%,transparent 65%);
  pointer-events:none;
}
.hero-content{position:relative;z-index:2;padding:0 20px;}

.hero-badge{
  display:inline-flex;align-items:center;gap:7px;
  background:var(--teal-lt);color:var(--teal-d);
  border:1px solid rgba(29,132,120,.2);border-radius:var(--pill);
  padding:6px 16px;font-size:.77rem;font-weight:700;margin-bottom:18px;
}
.badge-dot{
  width:7px;height:7px;background:var(--teal);
  border-radius:50%;animation:blink 1.8s infinite;
}
@keyframes blink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}

.hero-title{font-size:1.9rem;font-weight:900;color:var(--dark);line-height:1.3;margin-bottom:14px;}
.hero-hl{color:var(--teal);position:relative;display:inline-block;}
.hero-hl::after{
  content:'';position:absolute;bottom:2px;right:0;left:0;
  height:3px;background:var(--teal);border-radius:2px;opacity:.3;
}
.hero-sub{font-size:.92rem;color:var(--slate);line-height:1.8;margin-bottom:28px;max-width:320px;margin-inline:auto;}

/* Hero text wrapper — stacks on mobile, becomes grid column on desktop */
.hero-text{display:flex;flex-direction:column;align-items:center;}

/* Mockup */
.mockup-wrap{position:relative;display:inline-block;margin-bottom:32px;}
.mockup-glow{
  position:absolute;inset:-20px;
  background:radial-gradient(circle,rgba(29,132,120,.18) 0%,transparent 70%);
  border-radius:50%;pointer-events:none;
}
.mockup-phone{
  position:relative;display:inline-block;width:220px;
  background:#1a1a1a;border-radius:40px;padding:10px;
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 0 0 6px rgba(29,132,120,.12),0 30px 70px rgba(0,0,0,.25);
  animation:floatPhone 4s ease-in-out infinite;overflow:hidden;
}
@keyframes floatPhone{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.mockup-notch{
  position:absolute;top:12px;left:50%;transform:translateX(-50%);
  width:64px;height:6px;background:#1a1a1a;border-radius:99px;z-index:10;
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.15);
}
/* Mockup image — correct aspect ratio 9:19.5 (iPhone proportions) */
.mockup-img{
  width:100%;
  aspect-ratio:9/19.5;
  object-fit:cover;
  object-position:top;
  border-radius:30px;
  display:block;
}

/* Placeholder shown when screenshot is missing */
.mockup-placeholder{
  display:none;flex-direction:column;align-items:center;justify-content:center;
  width:100%;min-height:360px;border-radius:30px;
  background:var(--teal-lt);color:var(--teal-d);text-align:center;
  padding:24px 16px;gap:8px;
}
.mockup-placeholder span{font-size:2.5rem;}
.mockup-placeholder p{font-size:.85rem;font-weight:700;}
.mockup-placeholder small{font-size:.7rem;opacity:.6;direction:ltr;}

/* Chips */
.chip{
  position:absolute;background:#fff;border-radius:20px;padding:7px 12px;
  font-size:.72rem;font-weight:700;color:var(--dark);
  box-shadow:0 6px 20px rgba(0,0,0,.12);white-space:nowrap;border:1px solid var(--border);
}
.chip-1{bottom:30px;right:-10px;}
.chip-2{top:60px;right:-10px;}
.chip-3{top:50%;left:-10px;transform:translateY(-50%);}

/* Stats */
.hero-stats{
  display:flex;align-items:center;justify-content:center;
  background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);
  padding:16px 0;box-shadow:0 4px 20px rgba(29,132,120,.08);
  max-width:340px;margin-inline:auto;
}
.stat{flex:1;text-align:center;}
.stat-n{display:block;font-size:1.15rem;font-weight:900;color:var(--teal);line-height:1;}
.stat-l{display:block;font-size:.67rem;color:var(--muted);font-weight:600;margin-top:4px;}
.stat-divider{width:1px;height:36px;background:var(--border);flex-shrink:0;}

.scroll-hint{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:28px;}
.scroll-hint span{display:block;width:2px;height:8px;background:var(--teal);border-radius:2px;opacity:.5;animation:scrollBounce 1.4s infinite;}
.scroll-hint span:nth-child(2){animation-delay:.2s;opacity:.3;}
@keyframes scrollBounce{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.6)}}

/* ══ FEATURES ══ */
#features{padding:56px 0;background:var(--bg);}
#features .section-head{padding:0 20px;}
.feat-track{
  display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;padding:8px 20px 16px;scrollbar-width:none;
}
.feat-track::-webkit-scrollbar{display:none;}
.feat-card{
  flex:0 0 240px;scroll-snap-align:start;background:#fff;
  border-radius:var(--radius-lg);padding:24px 20px;border:1px solid var(--border);
}
.feat-card:active{transform:scale(.97);}
.feat-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:16px;}
.feat-card h3{font-size:1rem;font-weight:800;color:var(--dark);margin-bottom:8px;}
.feat-card p{font-size:.85rem;color:var(--slate);line-height:1.7;margin-bottom:14px;}
.feat-tag{display:inline-block;font-size:.7rem;font-weight:700;color:var(--teal);background:var(--teal-lt);padding:3px 10px;border-radius:var(--pill);}
.feat-dots{display:flex;justify-content:center;gap:6px;padding:0 20px;}
.fdot{width:6px;height:6px;border-radius:50%;background:var(--border);transition:all var(--trans);}
.fdot.active{background:var(--teal);width:18px;border-radius:3px;}

/* ══ APP PREVIEW ══ */
.preview-section{
  background:linear-gradient(150deg,var(--teal) 0%,var(--teal-d) 100%);
  overflow:hidden;position:relative;
}
.preview-section::before{content:'';position:absolute;top:-80px;left:-80px;width:300px;height:300px;background:rgba(255,255,255,.05);border-radius:50%;}
.preview-inner{display:flex;flex-direction:column;gap:32px;align-items:center;position:relative;z-index:2;}
.preview-text{text-align:center;}
.preview-sub{font-size:.92rem;color:rgba(255,255,255,.8);margin:12px 0 20px;line-height:1.8;}
.preview-list{list-style:none;text-align:right;display:inline-block;}
.preview-list li{display:flex;align-items:center;gap:10px;font-size:.93rem;color:rgba(255,255,255,.9);margin-bottom:10px;font-weight:600;}
.check{width:22px;height:22px;background:rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;flex-shrink:0;color:#fff;}
.preview-phone-wrap{display:flex;justify-content:center;}
.preview-phone{position:relative;width:200px;background:#1a1a1a;border-radius:36px;padding:10px;box-shadow:0 30px 60px rgba(0,0,0,.3),0 0 0 5px rgba(255,255,255,.08);}
.preview-notch{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:56px;height:5px;background:#1a1a1a;border-radius:99px;z-index:10;}
.preview-img{width:100%;border-radius:27px;display:block;}

/* ══ STATS ══ */
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px;}
.stat-card{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:22px 16px;text-align:center;
  box-shadow:0 2px 12px rgba(29,132,120,.06);
}
.stat-card:active{transform:scale(.97);}
.stat-icon{display:block;font-size:1.8rem;margin-bottom:8px;}
.stat-big{display:block;font-size:1.9rem;font-weight:900;color:var(--teal);line-height:1;margin-bottom:6px;}
.stat-desc{font-size:.78rem;color:var(--muted);font-weight:600;}

/* ══ HOW IT WORKS ══ */
.how-section{background:var(--bg);}
.steps-list{margin-top:28px;}
.step{display:flex;align-items:flex-start;gap:16px;}
.step-num{
  width:52px;height:52px;min-width:52px;border-radius:50%;
  background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;font-weight:900;
  box-shadow:0 6px 20px rgba(29,132,120,.3);
}
.step-body h3{font-size:1rem;font-weight:800;color:var(--dark);margin-bottom:4px;}
.step-body p{font-size:.88rem;color:var(--muted);line-height:1.75;}
.step-connector{width:2px;height:32px;background:linear-gradient(180deg,var(--teal),rgba(29,132,120,.2));margin-right:25px;margin-block:6px;}

/* ══ DOWNLOAD CTA ══ */
.dl-section{background:var(--bg);}
.dl-card{
  background:linear-gradient(140deg,var(--teal) 0%,var(--teal-d) 100%);
  border-radius:var(--radius-xl);padding:40px 24px;text-align:center;
  box-shadow:0 16px 48px rgba(29,132,120,.35);position:relative;overflow:hidden;
}
.dl-card::before{content:'';position:absolute;top:-80px;left:-60px;width:220px;height:220px;background:rgba(255,255,255,.06);border-radius:50%;}
.dl-emoji{font-size:2.4rem;margin-bottom:12px;position:relative;z-index:2;}
.dl-title{font-size:1.55rem;font-weight:900;color:#fff;margin-bottom:10px;position:relative;z-index:2;}
.dl-sub{font-size:.9rem;color:rgba(255,255,255,.82);margin-bottom:28px;line-height:1.8;position:relative;z-index:2;}
.dl-btns{display:flex;flex-direction:column;gap:12px;position:relative;z-index:2;max-width:280px;margin-inline:auto;}
.dl-btn{
  display:flex;align-items:center;justify-content:center;gap:12px;
  padding:15px 20px;border-radius:var(--radius);border:none;
  min-height:56px;width:100%;font-family:var(--font);
  transition:transform var(--trans);
}
.dl-btn:active{transform:scale(.96);}
.dl-btn-primary{background:#fff;color:var(--teal-d);box-shadow:0 6px 20px rgba(0,0,0,.15);}
.dl-btn-secondary{background:rgba(255,255,255,.12);color:#fff;border:2px solid rgba(255,255,255,.3);}
.dl-icon{font-size:1.6rem;flex-shrink:0;}
.dl-txt{display:flex;flex-direction:column;text-align:right;}
.dl-txt small{font-size:.65rem;opacity:.75;font-weight:500;}
.dl-txt strong{font-size:1rem;font-weight:800;}

/* ══ FOOTER ══ */
#contact{background:var(--dark);color:rgba(255,255,255,.7);padding:48px 20px 32px;text-align:center;}
.footer-logo-wrap{margin-bottom:14px;}
.footer-logo-img{height:44px;width:auto;margin-inline:auto;}
.footer-logo-fb{display:block;color:#fff;font-size:1rem;font-weight:800;}
.footer-desc{font-size:.87rem;color:rgba(255,255,255,.5);line-height:1.8;margin-bottom:28px;max-width:320px;margin-inline:auto;}
.footer-contact{display:flex;flex-direction:column;gap:12px;margin-bottom:28px;}
.contact-row{
  display:flex;align-items:center;gap:14px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);padding:14px 16px;min-height:64px;
}
.contact-row:active{background:rgba(29,132,120,.15);}
.c-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.email-icon{background:rgba(29,132,120,.2);color:var(--teal);font-size:1.1rem;}
.wa-icon{background:rgba(37,211,102,.15);}
.c-info{display:flex;flex-direction:column;text-align:right;}
.c-info small{font-size:.68rem;color:rgba(255,255,255,.4);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;}
.c-info span{font-size:.85rem;color:rgba(255,255,255,.8);font-weight:600;}
.footer-legal{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:16px;}
.footer-legal a{font-size:.8rem;color:rgba(255,255,255,.4);}
.footer-legal a:active{color:var(--teal);}
.footer-legal span{color:rgba(255,255,255,.2);}
.footer-copy{font-size:.78rem;color:rgba(255,255,255,.25);}

/* ══ STICKY BAR ══ */
.sticky-bar{
  position:fixed;bottom:0;right:0;left:0;z-index:900;
  background:#fff;display:flex;gap:10px;
  padding:10px 16px;padding-bottom:calc(10px + var(--safe-b));
  box-shadow:0 -1px 0 var(--border),0 -8px 32px rgba(0,0,0,.1);
  transition:transform var(--trans),opacity var(--trans);
}
.sticky-bar.hide{transform:translateY(110%);opacity:0;}
.sb-btn{
  flex:1;display:flex;align-items:center;justify-content:center;gap:10px;
  border-radius:14px;border:none;min-height:52px;
  font-family:var(--font);transition:transform var(--trans);
}
.sb-btn:active{transform:scale(.96);}
.sb-primary{background:var(--teal);color:#fff;box-shadow:0 4px 16px rgba(29,132,120,.35);}
.sb-secondary{background:var(--dark);color:#fff;}
.sb-icon{font-size:1.3rem;flex-shrink:0;}
.sb-txt{display:flex;flex-direction:column;text-align:right;}
.sb-txt small{font-size:.6rem;opacity:.7;font-weight:500;}
.sb-txt strong{font-size:.88rem;font-weight:800;}

/* Scroll to top */
#scrollTop{
  position:fixed;bottom:calc(var(--bar-h) + var(--safe-b) + 12px);left:14px;
  width:44px;height:44px;border-radius:50%;
  background:var(--teal);color:#fff;border:none;font-size:1.1rem;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(29,132,120,.4);
  opacity:0;transform:translateY(10px);transition:all var(--trans);z-index:500;
}
#scrollTop.visible{opacity:1;transform:translateY(0);}
#scrollTop:active{transform:scale(.92);}

/* ══ ADVERTISE BANNER ══ */
#advertise{
  padding:16px 20px 32px;
}
.ads-banner{
  background:linear-gradient(135deg, rgba(17,94,84,.07) 0%, rgba(29,132,120,.13) 100%);
  border:1.5px solid rgba(29,132,120,.25);
  border-radius:24px;
  max-width:900px;
  margin-inline:auto;
  overflow:hidden;
  position:relative;
  box-shadow:0 8px 32px rgba(17,94,84,.08);
}
/* shimmer top line */
.ads-banner::before{
  content:'';
  position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg, transparent 0%, var(--teal) 50%, transparent 100%);
  opacity:.6;
}
/* decorative circle bg */
.ads-banner::after{
  content:'';
  position:absolute;
  width:220px;height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(29,132,120,.08) 0%, transparent 70%);
  left:-40px;bottom:-60px;
  pointer-events:none;
}
.ads-inner{
  display:flex;
  align-items:center;
  gap:20px;
  padding:32px 28px;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}
.ads-icon-wrap{
  flex-shrink:0;
  width:64px;height:64px;
  background:rgba(29,132,120,.12);
  border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(29,132,120,.2);
}
.ads-icon{
  font-size:2rem;
  animation:ads-pulse 2.5s ease-in-out infinite;
}
@keyframes ads-pulse{
  0%,100%{transform:scale(1) rotate(-6deg);}
  50%{transform:scale(1.18) rotate(6deg);}
}
.ads-text{
  flex:1;
  min-width:180px;
}
.ads-tag{
  display:inline-block;
  font-size:.75rem;
  font-weight:700;
  color:var(--teal);
  background:rgba(29,132,120,.1);
  border:1px solid rgba(29,132,120,.25);
  border-radius:var(--pill);
  padding:3px 12px;
  margin-bottom:10px;
  letter-spacing:.3px;
}
.ads-text h3{
  margin:0 0 6px;
  font-size:1.15rem;
  font-weight:800;
  color:var(--teal-d);
  line-height:1.4;
}
.ads-text p{
  margin:0;
  font-size:.85rem;
  color:var(--slate);
  line-height:1.6;
}
/* ── CTA Button — prominent glow ── */
.ads-cta{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:14px 28px;
  background:linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%);
  color:#fff;
  border-radius:var(--pill);
  font-size:.95rem;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  transition:all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow:0 6px 20px rgba(17,94,84,.35), 0 2px 6px rgba(17,94,84,.2);
  flex-shrink:0;
  position:relative;
  overflow:hidden;
}
/* inner shine sweep */
.ads-cta::before{
  content:'';
  position:absolute;
  top:0;left:-60%;
  width:40%;height:100%;
  background:rgba(255,255,255,.18);
  transform:skewX(-20deg);
  transition:left .45s ease;
}
.ads-cta:hover::before{
  left:130%;
}
.ads-cta:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 12px 28px rgba(17,94,84,.45), 0 4px 10px rgba(17,94,84,.25);
}
.ads-cta:active{
  transform:translateY(-1px) scale(.99);
}
.ads-cta-icon{
  font-size:1.1rem;
}

/* ── Mobile adjustments ── */
@media(max-width:560px){
  .ads-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    padding:24px 20px;
  }
  .ads-cta{
    width:100%;
    justify-content:center;
    padding:14px 20px;
    font-size:.9rem;
  }
  .ads-text h3{
    font-size:1.05rem;
  }
}

/* ══ LEGAL MODAL (PREMIUM DESIGN) ══ */
.modal-overlay{
  position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(15, 33, 30, 0.4);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  z-index:9999;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;
  transition:all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding:20px;
}
.modal-overlay.active{
  opacity:1;visibility:visible;
}
.modal-box{
  background:#ffffff;
  width:100%;max-width:800px;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 32px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.4) inset;
  transform:translateY(40px) scale(0.96);
  opacity:0;
  transition:all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display:flex;flex-direction:column;
  max-height:85vh;
}
.modal-overlay.active .modal-box{
  transform:translateY(0) scale(1);
  opacity:1;
}
.modal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:24px 32px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  background:linear-gradient(to right, #ffffff, #f8fcfb);
}
.modal-header h3{
  margin:0;
  font-size:1.35rem;
  color:var(--teal-d);
  font-weight:700;
  display:flex;
  align-items:center;
  gap:12px;
}
.modal-header h3::before {
  content: '📄';
  font-size: 1.4rem;
}
.modal-close{
  background:rgba(0,0,0,0.04);
  border:none;
  width:40px;height:40px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;line-height:1;
  color:var(--slate);
  cursor:pointer;
  transition:all 0.25s ease;
}
.modal-close:hover{
  background:#ffebee;
  color:#e53935;
  transform:rotate(90deg);
}
.modal-body{
  flex:1;
  overflow-y:auto;
  position:relative;
  background:#f8fafc;
  -webkit-overflow-scrolling:touch;
}

/* ── Custom Styled Content inside Modal ── */
.modal-text-content {
  text-align: right;
  direction: rtl;
}

.legal-hero {
  padding: 36px 24px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.legal-privacy {
  background: linear-gradient(135deg, #115e54 0%, #1d8478 100%);
}

.legal-terms {
  background: linear-gradient(135deg, #283593 0%, #3f51b5 100%);
}

.legal-disclaimer {
  background: linear-gradient(135deg, #bf360c 0%, #d84315 100%);
}

.legal-hero-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.legal-hero h4 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.legal-hero p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.legal-container {
  padding: 24px;
}

.legal-date {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  background-color: var(--teal);
}

.legal-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.legal-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-d);
  margin: 0 0 10px 0;
  border-bottom: 2px solid rgba(29, 132, 120, 0.08);
  padding-bottom: 8px;
}

.legal-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}

.legal-card ul {
  padding-right: 20px;
  margin: 10px 0 0 0;
}

.legal-card li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 6px;
}

.legal-card li:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: var(--slate-d);
}

.legal-card a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-warning-card {
  border-right: 4px solid #d84315 !important;
}


/* ══ TABLET ≥ 640px ══ */
@media(min-width:640px){
  .hero-title{font-size:2.3rem;}
  .mockup-phone{width:260px;}
  .chip-1{right:-20px;}.chip-2{right:-20px;}.chip-3{left:-20px;}
  .dl-btns{flex-direction:row;max-width:420px;}
  .preview-inner{flex-direction:row;text-align:right;align-items:center;gap:40px;}
  .preview-text{flex:1;}
  .preview-phone{width:220px;}
}

/* ══ DESKTOP ≥ 1024px ══ */
@media(min-width:1024px){
  :root{--hh:68px;--bar-h:0px;}
  body{padding-bottom:0;overflow-x:hidden;}

  /* ── Hide mobile-only elements ── */
  .sticky-bar{display:none;}
  .menu-btn{display:none;}
  .drop-menu{display:none !important;}

  /* ── Desktop Nav ── */
  .desktop-nav{
    display:flex;align-items:center;gap:4px;
    margin-right:auto;
  }
  .desktop-nav a{
    color:rgba(255,255,255,.88);font-size:.88rem;font-weight:600;
    padding:7px 14px;border-radius:var(--pill);
    transition:background var(--trans),color var(--trans);
    white-space:nowrap;
  }
  .desktop-nav a:hover{background:rgba(255,255,255,.18);color:#fff;}
  .desk-nav-cta{
    background:rgba(255,255,255,.15) !important;
    border:1px solid rgba(255,255,255,.3) !important;
  }
  .desk-nav-cta:hover{background:#fff !important;color:var(--teal-d) !important;}
  .logo-name{font-size:.92rem;}

  /* ── Global section spacing ── */
  .section-pad{padding:80px 40px;max-width:1200px;margin-inline:auto;}
  .hero-title{font-size:2.7rem;}
  .section-title{font-size:2rem;}
  .section-head{margin-bottom:44px;}

  /* ══════════════════════════════════
     HERO — 2-Column Grid Fix
     Column RIGHT: Text | Column LEFT: Phone
  ══════════════════════════════════ */
  #hero{
    text-align:right;
    padding:calc(var(--hh) + 48px) 0 72px;
    overflow:hidden;
  }

  #hero .hero-content{
    max-width:1100px;
    margin-inline:auto;
    padding-inline:40px;
    display:grid;
    /* Text column gets flexible space; phone column gets fixed 420px */
    grid-template-columns:1fr 420px;
    align-items:center;
    gap:40px;
    /* No overflow issues */
    overflow:visible;
  }

  /* Text column — left-aligned in its cell */
  .hero-text{
    align-items:flex-start;
    text-align:right;
  }
  .hero-badge,.hero-title{text-align:right;}
  .hero-sub{
    margin-inline:0;
    max-width:460px;
    margin-bottom:32px;
  }
  .hero-stats{
    margin-inline:0;
    max-width:420px;
  }

  /* Phone mockup column — centered inside its 420px grid cell */
  .mockup-wrap{
    margin-bottom:0;
    position:relative;
    /* The 420px column gives plenty of room for the 280px phone + chips on sides */
    display:flex;
    justify-content:center;
    align-items:center;
    /* Extra padding so chips don't overflow the grid cell */
    padding:40px 80px;
    box-sizing:border-box;
    width:420px;
  }

  /* Phone itself is 280px — leaves ~70px each side for chips */
  .mockup-phone{
    width:280px;
    flex-shrink:0;
  }

  /* Floating chips — positioned relative to .mockup-wrap (which is 420px wide) */
  /* Chips are positioned so they stay INSIDE the 420px cell */
  .chip{font-size:.68rem;padding:6px 11px;}
  .chip-1{
    /* Bottom right of phone */
    bottom:30px;
    right:5px;
    left:auto;
    transform:none;
  }
  .chip-2{
    /* Top right of phone */
    top:50px;
    right:5px;
    left:auto;
    transform:none;
  }
  .chip-3{
    /* Left middle of phone */
    top:50%;
    left:5px;
    right:auto;
    transform:translateY(-50%);
  }

  .scroll-hint{display:none;}

  /* ── Features ── */
  #features{padding:80px 0;}
  #features .section-head{
    padding:0 40px;
    max-width:1200px;
    margin-inline:auto;
  }
  .feat-track{
    max-width:1200px;
    margin-inline:auto;
    padding:8px 40px 16px;
  }
  .feat-card{flex:0 0 260px;}
  .feat-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(29,132,120,.12);}

  /* ── Stats ── */
  .stats-grid{grid-template-columns:repeat(4,1fr);gap:20px;}

  /* ── Download ── */
  .dl-btns{flex-direction:row;max-width:440px;}

  /* ── Scroll to top ── */
  #scrollTop{bottom:24px;}
  #scrollTop:hover{background:var(--teal-d);transform:translateY(-2px);}

  /* ── Footer ── */
  .footer-legal a:hover{color:var(--teal);}
  .contact-row:hover{background:rgba(29,132,120,.12);}
}

@supports(padding-bottom:env(safe-area-inset-bottom)){
  .sticky-bar{padding-bottom:calc(10px + env(safe-area-inset-bottom));}
}