/* ============================================================
   FinApp — cinematic fintech landing
   Design tokens
   ============================================================ */
:root{
  --bg-0:#05070f;
  --bg-1:#070b18;
  --bg-2:#0b1124;
  --ink:#eaf0ff;
  --ink-dim:#9aa6c4;
  --ink-faint:#5b678a;

  --emerald:#34d399;
  --emerald-deep:#10b981;
  --blue:#38bdf8;
  --blue-deep:#3b82f6;
  --violet:#a78bfa;
  --violet-deep:#8b5cf6;

  --glass:rgba(255,255,255,0.045);
  --glass-strong:rgba(255,255,255,0.07);
  --stroke:rgba(255,255,255,0.09);
  --stroke-soft:rgba(255,255,255,0.06);

  --shadow-xl:0 40px 120px -30px rgba(0,0,0,0.85);
  --font-display:'Sora',system-ui,sans-serif;
  --font-body:'Manrope',system-ui,sans-serif;
  --font-fa:'Vazirmatn','Manrope',system-ui,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:auto;min-height:100%;}
body{
  background:#fff;
  color:var(--ink);
  font-family:var(--font-body);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
#root{min-height:100vh;width:100%;overflow:visible;}

/* ============================================================
   Stage
   ============================================================ */
.stage{
  position:fixed;
  inset:0;
  overflow:hidden;
  background:
    radial-gradient(1200px 800px at 18% 18%, rgba(56,189,248,0.10), transparent 60%),
    radial-gradient(1100px 760px at 82% 82%, rgba(139,92,246,0.12), transparent 62%),
    radial-gradient(900px 700px at 60% 8%, rgba(16,185,129,0.08), transparent 60%),
    linear-gradient(180deg,var(--bg-1),var(--bg-0) 70%);
}


/* ============================================================
   Brand mark (used in site-nav)
   ============================================================ */
.brand-mark{
  width:36px; height:36px; border-radius:50%; position:relative; overflow:hidden;
  display:grid; place-items:center;
  background:radial-gradient(circle at 34% 28%, #2950b8, #0a1734 72%);
  border:1px solid rgba(120,170,255,.4);
  box-shadow:0 8px 24px -8px rgba(40,90,210,.85), inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-mark .f, .flogo .f{
  font-family:var(--font-display); font-weight:800; line-height:1; font-size:19px; z-index:2;
  background:linear-gradient(180deg,#ffe27a,#f5b81a);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 6px rgba(245,184,26,.6));
  animation:fBreathe 2.6s ease-in-out infinite;
}
@keyframes fBreathe{ 0%,100%{ transform:scale(1); filter:drop-shadow(0 0 4px rgba(245,184,26,.45)); }
  50%{ transform:scale(1.18); filter:drop-shadow(0 0 10px rgba(255,210,74,.85)); } }
.brand-mark::after{ content:""; position:absolute; inset:0; border-radius:50%; z-index:1;
  background:radial-gradient(circle at 50% 120%, rgba(245,184,26,.25), transparent 60%); }
.social-links{ display:flex; align-items:center; gap:6px; }
.social-ico{ display:grid; place-items:center; width:34px; height:34px; border-radius:50%;
  color:var(--ink-dim); cursor:pointer; text-decoration:none;
  background:var(--glass); border:1px solid var(--stroke); backdrop-filter:blur(8px);
  transition:transform .3s cubic-bezier(.16,.84,.3,1), color .3s, border-color .3s, background .3s, box-shadow .3s; }
.social-ico:hover{ color:#fff; transform:translateY(-2px);
  border-color:rgba(120,180,255,.42); background:rgba(255,255,255,.09);
  box-shadow:0 12px 26px -14px rgba(56,189,248,.8); }
.social-ico:active{ transform:translateY(0) scale(.94); }
/* shared social row */
.social-row{ display:flex; align-items:center; gap:10px; }
.cta-foot .foot-social{ margin-top:4px; }
/* trust row: social icons + Enamad seal, tidy on desktop & mobile */
.foot-trust{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center; margin-top:6px; }
.enamad-badge{ display:inline-flex; align-items:center; line-height:0; border-radius:10px; overflow:hidden;
  background:rgba(255,255,255,.04); border:1px solid var(--stroke-soft); padding:4px; transition:transform .25s, border-color .25s; }
.enamad-badge:hover{ transform:translateY(-2px); border-color:rgba(120,180,255,.32); }
.enamad-badge img{ display:block; width:auto; height:64px; max-width:90px; object-fit:contain; }
.contact-social{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-top:clamp(20px,3vh,34px); }
.contact-social-label{ font-family:var(--font-fa); font-size:12.5px; color:var(--ink-dim); font-weight:600; }
.contact-social-row .social-ico{ width:42px; height:42px; }
.contact-social-row .social-ico svg{ width:20px; height:20px; }

/* sec-reveal / stk-reveal: always visible */
.sec-reveal{ opacity:1; transform:none; }
.stk-reveal{ opacity:1; transform:none; }

/* ============================================================
   PRICING — light premium redesign
   ============================================================ */
.pr-section{ background:#F5F7FC; padding:clamp(64px,7vh,80px) clamp(24px,4vw,48px); font-family:var(--font-fa); }
.pr-inner{ max-width:1180px; margin:0 auto; display:flex; flex-direction:column; gap:clamp(36px,4vh,52px); }

/* heading block */
.pr-head{ display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
.pr-eyebrow{ font-family:var(--font-fa); font-size:13px; font-weight:700; color:#172750;
  letter-spacing:.04em; text-transform:uppercase; }
.pr-title{ font-family:var(--font-fa); font-weight:800; font-size:clamp(24px,2.8vw,36px);
  color:#172750; line-height:1.35; margin:0; }
.pr-sub{ font-family:var(--font-fa); font-size:clamp(14px,1vw,15.5px); color:#63728B;
  line-height:1.8; max-width:520px; margin:0; }

/* card grid — 4 cols on desktop */
.pr-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; align-items:stretch; }

/* cards */
.pr-card{ background:#FFFFFF; border:1px solid #E0E5EF; border-radius:16px;
  padding:clamp(18px,1.8vw,26px); display:flex; flex-direction:column; gap:16px; }
.pr-card--annual{ border-color:#172750; border-width:2px; }

/* card top — name + price */
.pr-card-top{ display:flex; flex-direction:column; gap:10px; }
.pr-plan-name{ font-family:var(--font-fa); font-weight:700; font-size:15px; color:#172750; }
.pr-price-row{ display:flex; align-items:flex-end; gap:6px; flex-wrap:wrap; }
.pr-price{ font-family:var(--font-fa); font-weight:800; font-size:clamp(20px,1.6vw,26px);
  color:#172750; line-height:1.1; }
.pr-cur{ font-family:var(--font-fa); font-size:12.5px; color:#63728B; font-weight:500; margin-bottom:2px; }

/* feature list */
.pr-feats{ list-style:none; display:flex; flex-direction:column; gap:10px; flex:1; margin:0; padding:0; }
.pr-fi{ display:flex; align-items:flex-start; gap:9px; font-family:var(--font-fa);
  font-size:13px; color:#63728B; line-height:1.65; }
.pr-fi-icon{ flex:none; margin-top:2px; width:18px; height:18px; border-radius:5px;
  display:grid; place-items:center;
  color:#172750; background:rgba(23,39,80,.08); border:1px solid rgba(23,39,80,.12); }

/* shared subscription notice */
.pr-notice{ font-family:var(--font-fa); font-size:14.5px; font-weight:700; color:#fff;
  background:#172750; border-radius:12px; padding:18px 24px;
  text-align:center; margin-top:4px; user-select:none; }

/* responsive */
@media (max-width:1024px){ .pr-grid{ gap:14px; } }
@media (max-width:900px){ .pr-grid{ grid-template-columns:repeat(2,1fr); gap:16px; } }
@media (max-width:560px){
  .pr-section{ padding:clamp(40px,5vh,56px) clamp(20px,5vw,28px); }
  .pr-grid{ grid-template-columns:1fr; gap:14px; }
}

/* ============================================================
   Ghost button (used in legal modals)
   ============================================================ */
.btn-ghost{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-fa); font-weight:700; font-size:16px;
  color:var(--ink); padding:14px 26px; border-radius:15px; text-decoration:none; cursor:pointer;
  background:var(--glass-strong); border:1px solid var(--stroke); backdrop-filter:blur(10px);
  transition:transform .35s cubic-bezier(.16,.84,.3,1), border-color .35s, background .35s; }
.btn-ghost:hover{ transform:translateY(-3px); border-color:rgba(120,180,255,.45); background:rgba(255,255,255,.1); }
.btn-ghost:active{ transform:translateY(-1px) scale(.98); transition-duration:.12s; }

.flogo{ width:26px; height:26px; border-radius:50%; position:relative; overflow:hidden; display:grid; place-items:center; flex:none;
  background:radial-gradient(circle at 34% 28%, #2950b8, #0a1734 72%);
  border:1px solid rgba(120,170,255,.4); box-shadow:0 6px 16px -6px rgba(40,90,210,.8), inset 0 1px 0 rgba(255,255,255,.16); }
.flogo .f{ font-size:14px; }

/* legal modal (privacy / terms) */
.legal-overlay{ position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:24px;
  background:rgba(4,6,12,.72); backdrop-filter:blur(8px); animation:legalFade .3s ease; }
@keyframes legalFade{ from{ opacity:0; } to{ opacity:1; } }
.legal-modal{ position:relative; width:min(560px,100%); max-height:80vh; display:flex; flex-direction:column; overflow:hidden;
  background:linear-gradient(165deg, rgba(22,28,46,.96), rgba(10,14,26,.97));
  border:1px solid var(--stroke); border-radius:22px; padding:0;
  box-shadow:0 40px 100px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  animation:legalRise .4s cubic-bezier(.16,.84,.3,1); font-family:var(--font-fa); }
.legal-modal.terms{ width:min(720px,100%); max-height:86vh; }
@keyframes legalRise{ from{ opacity:0; transform:translateY(22px) scale(.97); } to{ opacity:1; transform:none; } }
.legal-bar{ flex:none; display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:20px 26px; border-bottom:1px solid var(--stroke-soft);
  background:linear-gradient(180deg, rgba(18,24,40,.9), rgba(14,19,32,.6));
  backdrop-filter:blur(8px); position:relative; z-index:2; }
.legal-bar::after{ content:""; position:absolute; left:26px; right:26px; bottom:-1px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(56,189,248,.5), rgba(167,139,250,.4), transparent); }
.legal-modal h3{ font-family:var(--font-fa); font-weight:800; font-size:21px; color:#fff; margin:0; letter-spacing:0; }
.legal-body{ display:flex; flex-direction:column; gap:13px; overflow-y:auto; padding:24px 26px 26px;
  scrollbar-width:thin; scrollbar-color:rgba(120,180,255,.4) transparent; }
.legal-body::-webkit-scrollbar{ width:8px; }
.legal-body::-webkit-scrollbar-thumb{ background:rgba(120,180,255,.3); border-radius:8px; border:2px solid transparent; background-clip:padding-box; }
.legal-body::-webkit-scrollbar-thumb:hover{ background:rgba(120,180,255,.5); background-clip:padding-box; }
.legal-body p{ font-family:var(--font-fa); font-size:14.5px; line-height:2.05; color:var(--ink-dim); font-weight:500; }
.legal-intro{ color:#cdd7ee !important; font-size:15px !important;
  background:rgba(56,189,248,.07); border:1px solid rgba(120,180,255,.16); border-radius:14px; padding:15px 17px; }
.legal-sec{ display:flex; flex-direction:column; gap:9px; padding-top:6px; }
.legal-sec h4{ font-family:var(--font-fa); font-weight:800; font-size:16px; color:#eaf0ff; margin:0;
  padding-inline-start:13px; position:relative; line-height:1.7; }
.legal-sec h4::before{ content:""; position:absolute; inset-inline-start:0; top:.4em; width:4px; height:1.1em; border-radius:3px;
  background:linear-gradient(180deg,var(--emerald),var(--blue)); box-shadow:0 0 10px rgba(56,189,248,.5); }
.legal-ul{ list-style:none; display:flex; flex-direction:column; gap:8px; margin:2px 0; padding:0; }
.legal-ul li{ position:relative; padding-inline-start:18px; font-family:var(--font-fa); font-size:14px; line-height:1.9; color:var(--ink-dim); font-weight:500; }
.legal-ul li::before{ content:""; position:absolute; inset-inline-start:4px; top:.72em; width:6px; height:6px; border-radius:50%;
  background:var(--emerald); box-shadow:0 0 8px var(--emerald); }
.legal-foot-btn{ display:flex; justify-content:center; padding-top:10px; margin-top:4px; border-top:1px solid var(--stroke-soft); }
.legal-foot-btn .btn-ghost{ margin-top:14px; }
.legal-close{ flex:none; width:36px; height:36px; border-radius:11px; cursor:pointer;
  background:var(--glass-strong); border:1px solid var(--stroke); color:var(--ink-dim);
  display:grid; place-items:center; transition:.25s; }
.legal-close:hover{ color:#fff; border-color:rgba(120,180,255,.4); background:rgba(255,255,255,.1); transform:rotate(90deg); }

@media (max-width:560px){
  .legal-modal, .legal-modal.terms{ width:100%; max-height:84vh; }
  .legal-bar{ padding:16px 18px; }
  .legal-body{ padding:18px 18px 22px; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.18s !important; }
}


/* ============================================================
   Site navigation + Hero
   ============================================================ */
/* --- Site navigation --- */
.site-nav{
  position:fixed; top:0; left:0; right:0; z-index:40;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(23,39,80,0.09);
  box-shadow:0 1px 8px -2px rgba(23,39,80,0.08);
}
.site-nav-inner{
  max-width:1200px; margin:0 auto;
  padding:0 clamp(20px,5vw,64px);
  height:66px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.nav-brand{
  display:flex; align-items:center; gap:10px;
  outline:none;
}
.nav-brand-name{
  font-family:var(--font-fa); font-weight:700; font-size:17px;
  color:#172750;
}
.nav-links{
  display:flex; align-items:center; gap:2px;
  margin:0 auto;
}
.nav-link{
  font-family:var(--font-fa); font-size:14px; font-weight:500;
  color:#63728B; padding:8px 14px; border-radius:8px;
  cursor:pointer; text-decoration:none; border:none; background:none;
  transition:color .2s, background .2s;
  white-space:nowrap;
}
.nav-link:hover{ color:#172750; background:rgba(23,39,80,0.055); }
.nav-cta{
  font-family:var(--font-fa); font-size:13.5px; font-weight:700;
  color:#fff; background:#172750; border:none; border-radius:10px;
  padding:9px 22px; cursor:pointer; white-space:nowrap;
  transition:background .2s, transform .2s, box-shadow .2s;
  box-shadow:0 4px 14px -4px rgba(23,39,80,0.35);
  flex-shrink:0;
}
.nav-cta:hover{ background:#1d3068; transform:translateY(-1px); box-shadow:0 8px 20px -4px rgba(23,39,80,0.4); }
.nav-cta:active{ transform:translateY(0) scale(.97); transition-duration:.1s; }

/* --- Hero section --- */
.hero-section{
  min-height:100vh; max-height:100vh; width:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:clamp(82px,10vh,106px) clamp(20px,5vw,60px) clamp(20px,2.5vh,40px);
  gap:clamp(18px,2.5vh,32px);
  background:#fff; text-align:center; overflow:hidden;
}
.hero-content{
  display:flex; flex-direction:column; align-items:center; gap:18px;
  max-width:680px;
}
.hero-eyebrow{
  font-family:var(--font-fa); font-size:13px; font-weight:600;
  color:#3b5ddb; letter-spacing:0;
  background:rgba(59,93,219,0.08); border-radius:999px;
  padding:5px 16px; display:inline-block;
}
.hero-head{
  font-family:var(--font-fa);
  font-size:clamp(30px,4.8vw,54px);
  font-weight:800; color:#172750;
  line-height:1.4; letter-spacing:-0.5px;
}
.hero-sub{
  font-family:var(--font-fa); font-size:clamp(14.5px,1.6vw,17px);
  font-weight:400; color:#63728B; line-height:2;
  max-width:560px;
}
.hero-cta{
  font-family:var(--font-fa); font-size:15px; font-weight:700;
  color:#fff; background:linear-gradient(135deg,#172750 0%,#2a4699 100%);
  border:none; border-radius:12px; padding:14px 34px;
  cursor:pointer; margin-top:6px;
  transition:transform .25s cubic-bezier(.16,.84,.3,1), box-shadow .25s;
  box-shadow:0 14px 36px -10px rgba(23,39,80,0.38);
}
.hero-cta:hover{ transform:translateY(-2px); box-shadow:0 20px 44px -10px rgba(23,39,80,0.46); }
.hero-cta:active{ transform:translateY(0) scale(.97); transition-duration:.1s; }

/* --- Phone carousel --- */
.phone-carousel{
  position:relative; width:100%; flex-shrink:0;
  /* height tracks center phone: clamp(168px,22vw,262px) × 1280/591 ≈ 2.166 */
  height:clamp(364px,47.6vw,567px);
}
.phone-item{
  position:absolute; bottom:0; left:50%;
  width:clamp(168px,22vw,262px);
  border-radius:clamp(20px,2.5vw,28px); overflow:hidden;
  background:#000;
  outline:2px solid rgba(0,0,0,0.72); outline-offset:-1px;
  transform-origin:50% 100%;
  transition:transform .85s cubic-bezier(.4,0,.2,1),
             opacity .85s ease,
             box-shadow .85s ease;
  will-change:transform,opacity;
}
.phone-item img{ display:block; width:100%; height:auto; }
.phone-item.pos-0{
  transform:translateX(-50%) scale(1);
  z-index:3; opacity:1; cursor:default;
  box-shadow:0 32px 80px -16px rgba(23,39,80,.22),
             0 12px 28px -8px rgba(23,39,80,.12);
}
.phone-item.pos-1{
  transform:translateX(calc(-50% + clamp(160px,24vw,280px))) scale(.76);
  z-index:2; opacity:.82; cursor:pointer;
  box-shadow:0 20px 52px -12px rgba(23,39,80,.14);
}
.phone-item.pos-2{
  transform:translateX(calc(-50% - clamp(160px,24vw,280px))) scale(.76);
  z-index:2; opacity:.82; cursor:pointer;
  box-shadow:0 20px 52px -12px rgba(23,39,80,.14);
}
.phone-item.pos-1:hover,.phone-item.pos-2:hover{ opacity:.95; }

/* --- Mobile adjustments --- */
@media (max-width:680px){
  .nav-links{ display:none; }

  /* Hero: content-driven height — removes 100vh lock and clipping */
  .hero-section{
    min-height:0; max-height:none;
    justify-content:flex-start;
    overflow:visible;
    padding-bottom:clamp(36px,5vh,60px);
  }

  /* Carousel: static 3-phone composition */
  .phone-item{ width:clamp(148px,46vw,210px); }
  .phone-carousel{
    height:clamp(330px,calc(46vw * 2.166),460px);
    overflow:visible;
  }
  /* income (pos-1) → left, goals (pos-2) → right; both static, non-interactive */
  .phone-item.pos-1{
    opacity:0.65; pointer-events:none; cursor:default;
    transform:translateX(calc(-50% - clamp(76px,26vw,116px))) scale(.68);
    box-shadow:0 10px 28px -10px rgba(23,39,80,.12);
    transition:none;
  }
  .phone-item.pos-2{
    opacity:0.65; pointer-events:none; cursor:default;
    transform:translateX(calc(-50% + clamp(76px,26vw,116px))) scale(.68);
    box-shadow:0 10px 28px -10px rgba(23,39,80,.12);
    transition:none;
  }
  .phone-item.pos-1:hover,.phone-item.pos-2:hover{ opacity:0.65; }
}
@media (max-width:400px){
  .hero-head{ font-size:26px; }
  .nav-cta{ padding:8px 16px; font-size:13px; }
}

/* ============================================================
   FEATURE SECTIONS — Phase 2 editorial product layout
   ============================================================ */

/* Section backgrounds */
.feat-layer{ background:#fff; }
.feat-layer.feat-alt{ background:#F5F7FC; }

/* Two-column editorial container */
.feat-inner{
  width:100%; max-width:1200px;
  display:flex; flex-direction:row; align-items:center;
  gap:clamp(48px,7vw,120px);
}

/* Text column */
.feat-text{
  flex:1 1 0; min-width:0;
  display:flex; flex-direction:column; align-items:flex-start;
  gap:clamp(14px,2vh,22px);
}
.feat-eyebrow{
  font-family:var(--font-fa); font-size:13px; font-weight:600;
  color:#3b5ddb; background:rgba(59,93,219,0.08);
  border-radius:999px; padding:5px 16px; display:inline-block;
}
.feat-h{
  font-family:var(--font-fa);
  font-size:clamp(24px,3.2vw,42px);
  font-weight:800; color:#172750;
  line-height:1.45; letter-spacing:-0.3px; text-wrap:balance;
}
.feat-p{
  font-family:var(--font-fa); font-size:clamp(14px,1.2vw,16.5px);
  font-weight:400; color:#63728B; line-height:2;
  max-width:480px; text-wrap:pretty;
}

/* Visual column */
.feat-visual{
  flex:0 0 auto;
  display:flex; justify-content:center; align-items:flex-end;
}

/* Phone mockup — black frame, same style as hero */
.feat-phone{
  width:clamp(170px,18vw,240px);
  border-radius:clamp(20px,2.5vw,28px); overflow:hidden;
  background:#000;
  outline:2px solid rgba(0,0,0,0.72); outline-offset:-1px;
  box-shadow:0 28px 72px -14px rgba(23,39,80,.20),
             0 10px 24px -6px rgba(23,39,80,.10);
  flex-shrink:0;
}
.feat-phone img{ display:block; width:100%; height:auto; }
.fp-solo{ width:clamp(185px,20vw,256px); }
.fp-large{ width:clamp(195px,22vw,272px); }

/* Dual phone composition — expenses behind, income in front */
.feat-duo{
  display:flex; align-items:flex-end;
  direction:ltr; /* LTR for predictable overlap regardless of RTL context */
}
.feat-duo .feat-phone{ width:clamp(140px,14vw,200px); }
.feat-duo .fp-back{
  margin-right:clamp(-22px,-3vw,-38px);
  transform:translateY(clamp(-20px,-2.8vw,-36px));
  opacity:0.80;
  z-index:1;
  box-shadow:0 16px 44px -10px rgba(23,39,80,.13);
}
.feat-duo .fp-front{
  z-index:2;
  box-shadow:0 28px 72px -14px rgba(23,39,80,.24),
             0 10px 24px -6px rgba(23,39,80,.14);
}

/* Mobile: stack vertically, keep phones readable */
@media (max-width:680px){
  .feat-layer{
    padding:clamp(70px,9vh,96px) clamp(20px,5vw,36px) clamp(28px,4vh,44px);
    overflow-y:auto;
  }
  .feat-inner{
    flex-direction:column; align-items:center;
    gap:clamp(24px,4vh,40px); text-align:right;
  }
  /* On mobile, always show text first */
  .feat-inner .feat-visual{ order:2; }
  .feat-inner .feat-text{ order:1; }
  .feat-text{ align-items:flex-start; width:100%; }
  .feat-p{ max-width:none; }
  .feat-phone,.fp-solo,.fp-large{ width:clamp(150px,46vw,210px); }
  .feat-duo .feat-phone{ width:clamp(125px,36vw,165px); }
  .feat-duo .fp-back{ margin-right:clamp(-16px,-4vw,-26px); transform:translateY(clamp(-14px,-4vw,-22px)); }
}

/* ============================================================
   Layout overrides
   ============================================================ */

/* Document always flows naturally */
html,body{ height:auto !important; }
body{ overflow-x:hidden; }
#root{ height:auto !important; min-height:100vh; overflow:visible !important; }

/* Feature sections: compact content-driven padding (~24px per side = ~48px between sections) */
.feat-layer{
  position:relative !important;
  display:flex !important; flex-direction:column !important;
  align-items:center !important; justify-content:center !important;
  padding:clamp(20px,2.5vh,28px) clamp(28px,5vw,80px) !important;
  min-height:auto !important;
}
/* First feature gets extra top padding to create hero→feature breathing room */
#features.feat-layer{
  padding-top:clamp(120px,10vh,140px) !important;
}
@media (max-width:680px){
  .feat-layer{
    padding:clamp(16px,2vh,22px) clamp(20px,5vw,32px) !important;
    overflow-y:visible !important;
  }
  #features.feat-layer{
    padding-top:clamp(72px,8vh,96px) !important;
  }
}

/* Reveal classes are always visible (no scroll-triggered animations) */
.stk-reveal{ opacity:1 !important; transform:none !important; }
.stk-reveal.revealed{ opacity:1; transform:none; }

/* Nav stays fixed above natural scroll content */
.site-nav{ position:fixed !important; z-index:100 !important; }

/* Ensure main content sits above fixed background */
main{ position:relative; z-index:10; }
#hero{ position:relative; z-index:10; }

/* ============================================================
   Why FinApp — dark navy section
   ============================================================ */
.wfa-section{
  background:#111F43;
  width:100%;
  padding:clamp(64px,7vh,88px) clamp(24px,5vw,64px);
}
.wfa-inner{
  max-width:1140px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(40px,5vh,56px);
}
.wfa-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  text-align:center;
  max-width:640px;
}
.wfa-eyebrow{
  font-family:var(--font-fa);
  font-size:13px;
  font-weight:600;
  color:#AABFFF;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.wfa-title{
  font-family:var(--font-fa);
  font-weight:800;
  font-size:clamp(26px,3.2vw,38px);
  line-height:1.35;
  color:#FFFFFF;
  letter-spacing:-.01em;
}
.wfa-desc{
  font-family:var(--font-fa);
  font-size:clamp(14px,1.1vw,16px);
  line-height:1.85;
  color:#CFD7E7;
  max-width:560px;
}
.wfa-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  width:100%;
}
.wfa-card{
  background:#1D3159;
  border:1px solid #364A71;
  border-radius:16px;
  padding:clamp(24px,2.5vw,32px);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.wfa-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  background:rgba(170,191,255,0.1);
  border:1px solid rgba(170,191,255,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#AABFFF;
  flex-shrink:0;
}
.wfa-card-title{
  font-family:var(--font-fa);
  font-weight:700;
  font-size:clamp(15px,1.2vw,17px);
  line-height:1.4;
  color:#FFFFFF;
}
.wfa-card-desc{
  font-family:var(--font-fa);
  font-size:clamp(13px,0.95vw,14.5px);
  line-height:1.8;
  color:#CFD7E7;
}

/* Tablet: 2-col then 1-col */
@media (max-width:900px){
  .wfa-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .wfa-section{ padding:clamp(48px,6vh,64px) clamp(20px,5vw,28px); }
  .wfa-grid{ grid-template-columns:1fr; gap:16px; }
  .wfa-card{ padding:22px 20px; }
  .wfa-head{ align-items:center; }
  .wfa-card-title,.wfa-card-desc{ text-align:right; }
}

/* ============================================================
   Download section — prominent CTA redesign
   ============================================================ */
.dl-section{
  background:#FFFFFF;
  width:100%;
  display:flex;
  flex-direction:column;
}
.dl-inner{
  max-width:760px;
  margin:0 auto;
  width:100%;
  padding:clamp(88px,9vh,120px) clamp(28px,5vw,56px) clamp(72px,7vh,100px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(40px,5vh,56px);
}

/* heading */
.dl-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  text-align:center;
}
.dl-eyebrow{
  font-family:var(--font-fa);
  font-size:13px;
  font-weight:700;
  color:#63728B;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.dl-title{
  font-family:var(--font-fa);
  font-weight:800;
  font-size:clamp(28px,3.6vw,48px);
  color:#172750;
  line-height:1.3;
  margin:0;
}
.dl-sub{
  font-family:var(--font-fa);
  font-size:clamp(15px,1.15vw,17px);
  color:#63728B;
  line-height:1.85;
  max-width:500px;
  margin:0;
}

/* platform buttons row */
.dl-platforms{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
  width:100%;
}

/* base platform button */
.dl-plat-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-family:var(--font-fa);
  font-size:17px;
  font-weight:700;
  border-radius:16px;
  padding:18px 44px;
  cursor:pointer;
  text-decoration:none;
  min-width:200px;
  transition:transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border:2px solid transparent;
}
.dl-plat-btn:focus-visible{
  outline:3px solid rgba(23,39,80,.35);
  outline-offset:3px;
}
.dl-plat-btn:active{ transform:scale(.97); transition-duration:.1s; }

/* Android — primary filled navy */
.dl-plat-btn:not(.dl-plat-btn--ios){
  background:#172750;
  color:#fff;
  border-color:#172750;
}
.dl-plat-btn:not(.dl-plat-btn--ios):hover{
  background:#1d3068;
  border-color:#1d3068;
  box-shadow:0 10px 32px -10px rgba(23,39,80,.45);
  transform:translateY(-2px);
}
/* active (expanded) state stays same as default — already navy */
.dl-plat-btn--active{
  background:#172750 !important;
  border-color:#172750 !important;
  color:#fff !important;
}

/* iOS — secondary outlined */
.dl-plat-btn--ios{
  background:#FFFFFF;
  color:#172750;
  border-color:#172750;
}
.dl-plat-btn--ios:hover{
  background:#F0F3FA;
  box-shadow:0 10px 32px -10px rgba(23,39,80,.18);
  transform:translateY(-2px);
}

/* Android expandable panel */
.dl-android-panel{
  background:#F5F7FC;
  border:1px solid #E0E5EF;
  border-radius:16px;
  padding:clamp(22px,2.5vw,32px);
  width:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.dl-panel-label{
  font-family:var(--font-fa);
  font-size:14px;
  font-weight:600;
  color:#63728B;
  text-align:center;
  margin:0;
}
.dl-android-opts{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}

/* individual download option buttons */
.dl-opt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-fa);
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  border-radius:13px;
  padding:15px 28px;
  flex:1;
  min-width:180px;
  max-width:240px;
  transition:filter .2s, box-shadow .2s, transform .2s;
  border:none;
}
.dl-opt-btn:focus-visible{
  outline:3px solid rgba(23,39,80,.35);
  outline-offset:2px;
}
.dl-opt-btn:hover{ transform:translateY(-2px); }
.dl-opt-btn--direct{
  background:#253F82;
  color:#fff;
}
.dl-opt-btn--direct:hover{
  filter:brightness(1.1);
  box-shadow:0 10px 28px -8px rgba(37,63,130,.55);
}
.dl-opt-btn--bazaar{
  background:#16A05D;
  color:#fff;
}
.dl-opt-btn--bazaar:hover{
  filter:brightness(1.08);
  box-shadow:0 10px 28px -8px rgba(22,160,93,.55);
}
.dl-bazaar-logo{
  height:22px;
  width:auto;
  flex:none;
  filter:brightness(0) invert(1);
}

/* mobile */
@media (max-width:600px){
  .dl-inner{ padding:clamp(64px,7vh,88px) clamp(20px,5vw,28px) clamp(52px,5vh,72px); gap:32px; }
  .dl-plat-btn{ min-width:0; width:calc(50% - 8px); padding:16px 20px; font-size:16px; }
  .dl-android-opts{ flex-direction:column; align-items:stretch; }
  .dl-opt-btn{ max-width:100%; }
}
@media (max-width:400px){
  .dl-plat-btn{ width:100%; }
}

/* ============================================================
   Footer / Contact section  (#111F43 dark navy)
   ============================================================ */
.ft-section{
  background:#111F43;
  color:#fff;
  width:100%;
  padding:56px 0 28px;
  font-family:var(--font-fa);
  direction:rtl;
}
.ft-inner{
  max-width:1160px;
  margin:0 auto;
  padding:0 clamp(20px,5vw,64px);
}

/* top row */
.ft-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:36px;
}
.ft-brand{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:340px;
}
.ft-logo-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.ft-flogo{
  width:36px !important;
  height:36px !important;
  font-size:16px !important;
  flex-shrink:0;
}
.ft-brand-name{
  font-weight:700;
  font-size:18px;
  color:#fff;
  letter-spacing:.2px;
}
.ft-brand-desc{
  font-size:14px;
  line-height:1.75;
  color:#C7D1E5;
  margin:0;
}
.ft-enamad{
  flex-shrink:0;
}
.ft-enamad-img{
  display:block;
  width:90px;
  height:90px;
  object-fit:contain;
  border-radius:8px;
  border:1px solid #34466C;
  background:#1a2d56;
  padding:4px;
}

/* divider */
.ft-divider{
  height:1px;
  background:#34466C;
  margin:0;
}

/* mid row */
.ft-mid{
  display:flex;
  gap:40px;
  padding:36px 0;
  flex-wrap:wrap;
}
.ft-col{
  flex:1;
  min-width:160px;
}
.ft-col-title{
  font-size:14px;
  font-weight:700;
  color:#AFC5FF;
  margin:0 0 18px;
  letter-spacing:.2px;
}
.ft-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ft-links a,
.ft-modal-link{
  font-size:14px;
  font-weight:500;
  color:#C7D1E5;
  text-decoration:none;
  cursor:pointer;
  background:none;
  border:none;
  padding:0;
  font-family:var(--font-fa);
  transition:color .2s;
}
.ft-links a:hover,
.ft-modal-link:hover{
  color:#fff;
}
.ft-legal-links{
  margin-top:20px;
}

/* social */
.ft-social{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:0;
}
.ft-social-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:500;
  color:#C7D1E5;
  text-decoration:none;
  transition:color .2s;
}
.ft-social-link:hover{
  color:#fff;
}

/* copyright */
.ft-copy{
  font-size:13px;
  color:#8899BB;
  margin:0;
  padding:28px 0 0;
  text-align:center;
}

/* responsive */
@media (max-width:700px){
  .ft-top{
    flex-direction:column;
    align-items:flex-start;
    gap:28px;
    padding-bottom:28px;
  }
  .ft-enamad{
    align-self:flex-start;
  }
  .ft-mid{
    flex-direction:column;
    gap:28px;
    padding:28px 0;
  }
}
@media (max-width:400px){
  .ft-flogo{
    width:30px !important;
    height:30px !important;
    font-size:13px !important;
  }
  .ft-brand-name{ font-size:16px; }
}

/* Enamad fallback (shown when official image fails to load in local dev) */
.ft-enamad-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ft-enamad-fallback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #AFC5FF;
  border: 1px solid #34466C;
  border-radius: 8px;
  padding: 10px 14px;
  background: #1a2d56;
  text-align: center;
  line-height: 1.5;
  max-width: 140px;
  transition: border-color .2s, color .2s;
}
.ft-enamad-link:hover .ft-enamad-fallback {
  border-color: #AFC5FF;
  color: #fff;
}

/* short divider between social and legal links in footer col */
.ft-col-divider {
  width: 100px;
  height: 1px;
  background: #34466C;
  margin: 18px 0;
}

/* ============================================================
   iOS Installation Guide Modal
   ============================================================ */
.ios-overlay{
  position:fixed; inset:0; z-index:130;
  display:grid; place-items:center; padding:16px;
  background:rgba(10,16,32,.6); backdrop-filter:blur(6px);
  animation:iosOverlayIn .22s ease;
}
@keyframes iosOverlayIn{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion:reduce){
  .ios-overlay{ animation:none; }
  .ios-modal{ animation:none; }
}

.ios-modal{
  position:relative; width:min(520px,100%);
  max-height:calc(100dvh - 32px);
  display:flex; flex-direction:column; overflow:hidden;
  background:#fff; border-radius:20px;
  box-shadow:0 24px 80px -20px rgba(10,16,32,.28), 0 4px 16px -4px rgba(10,16,32,.12);
  animation:iosModalIn .28s cubic-bezier(.16,.84,.3,1);
}
@keyframes iosModalIn{ from{ opacity:0; transform:translateY(18px) scale(.97); } to{ opacity:1; transform:none; } }

.ios-modal-bar{
  flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:20px 22px 16px;
  border-bottom:1px solid #EEF0F5;
}
.ios-modal-title{
  font-family:var(--font-fa); font-weight:800; font-size:17px;
  color:#172750; margin:0; line-height:1.4;
}
.ios-modal-close{
  flex:none; width:34px; height:34px; border-radius:9px; cursor:pointer;
  background:#F0F3FA; border:none; color:#63728B;
  display:grid; place-items:center;
  transition:background .2s, color .2s;
}
.ios-modal-close:hover{ background:#E2E7F2; color:#172750; }
.ios-modal-close:focus-visible{ outline:3px solid rgba(23,39,80,.3); outline-offset:2px; }

.ios-modal-body{
  flex:1; overflow-y:auto; padding:16px 20px 12px;
  display:flex; flex-direction:column; gap:14px;
  scrollbar-width:thin; scrollbar-color:rgba(23,39,80,.2) transparent;
  overscroll-behavior:contain;
}
.ios-modal-footer{
  flex:none; padding:12px 20px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid #EEF0F5;
  background:#fff;
  border-radius:0 0 20px 20px;
}
.ios-modal-body::-webkit-scrollbar{ width:6px; }
.ios-modal-body::-webkit-scrollbar-thumb{ background:rgba(23,39,80,.18); border-radius:6px; }

.ios-modal-intro{
  font-family:var(--font-fa); font-size:14px; color:#63728B;
  line-height:1.85; margin:0;
}

.ios-steps{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:8px;
}
.ios-step{
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 12px; border-radius:12px;
  background:#F5F7FC; border:1px solid #E8EBF3;
}
.ios-step-icon{
  flex:none; width:34px; height:34px; border-radius:9px;
  background:#EEF1FA; border:1px solid #DDE2F0;
  display:grid; place-items:center; color:#172750;
}
.ios-step-body{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.ios-step-heading{
  font-family:var(--font-fa); font-size:13.5px; font-weight:700;
  color:#172750; display:block; line-height:1.4;
}
.ios-step-text{
  font-family:var(--font-fa); font-size:12.5px; color:#63728B;
  line-height:1.7; margin:0; word-break:break-word;
}

.ios-modal-note{
  font-family:var(--font-fa); font-size:13px; color:#63728B;
  line-height:1.85; margin:0; text-align:center;
  padding:12px 16px; background:#F5F7FC; border-radius:12px;
  border:1px solid #E8EBF3;
}

.ios-modal-action{
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-fa); font-size:16px; font-weight:700;
  color:#fff; background:#172750; border-radius:14px;
  padding:16px 28px; text-decoration:none; text-align:center;
  transition:background .2s, transform .2s, box-shadow .2s;
  box-shadow:0 8px 24px -8px rgba(23,39,80,.4);
}
.ios-modal-action:hover{ background:#1d3068; transform:translateY(-2px); box-shadow:0 12px 30px -8px rgba(23,39,80,.5); }
.ios-modal-action:active{ transform:translateY(0) scale(.97); transition-duration:.1s; }
.ios-modal-action:focus-visible{ outline:3px solid rgba(23,39,80,.4); outline-offset:3px; }

/* Mobile: bottom-sheet layout — header always visible below nav */
@media (max-width:680px){
  .ios-overlay{
    display:flex; flex-direction:column; justify-content:flex-end; align-items:stretch;
    padding:0;
  }
  .ios-modal{
    width:100%;
    max-height:calc(100dvh - 72px);
    border-radius:20px 20px 0 0;
  }
}

/* narrow screens */
@media (max-width:400px){
  .ios-modal-bar{ padding:14px 16px 12px; }
  .ios-modal-body{ padding:14px 16px 10px; gap:12px; }
  .ios-modal-footer{
    padding:10px 16px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .ios-modal-title{ font-size:15px; }
  .ios-step{ padding:8px 10px; gap:8px; }
  .ios-step-icon{ width:30px; height:30px; }
  .ios-modal-action{ font-size:15px; padding:13px 20px; }
}
