
  :root{
    --paper:#FFFFFF;
    --card:#FFFFFF;
    --ink:#122B3A;
    --ink-soft:#4F6A78;
    --pine:#1670B3;
    --pine-dk:#0D4C7A;
    --pine-lt:#3C93D1;
    --sage:#E7F1FA;
    --sage-dk:#CFE3F3;
    --ochre:#0EA5A0;
    --ochre-lt:#D7F3F0;
    --brick:#D64550;
    --line:#DCE7EF;
    --shadow: 0 8px 24px rgba(20,70,100,0.08);
    --shadow-lg: 0 16px 40px rgba(20,70,100,0.14);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth; overflow-x:hidden;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Noto Naskh Arabic','Noto Nastaliq Urdu',serif;
    font-size:18px;
    line-height:1.95;
    overflow-x:hidden;
    max-width:100vw;
  }
  h1,h2,h3,.display{
    font-family:'Noto Nastaliq Urdu','Noto Naskh Arabic',serif;
    font-weight:700;
    color:var(--pine-dk);
  }
  .brand-en{
    font-family:'JetBrains Mono',monospace;
    direction:ltr;
    unicode-bidi:embed;
    letter-spacing:.02em;
  }
  ::selection{ background:var(--ochre-lt); }

  a{ color:inherit; }
  img,svg{ display:block; }

  /* ===================== TOP NAV ===================== */
  .topbar{
    position:sticky; top:0; z-index:50;
    background:rgba(243,245,238,.92);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
  }
  .topbar-inner{
    max-width:920px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 18px;
    gap:10px;
    flex-wrap:wrap;
  }
  .logo{
    display:flex;
    align-items:center;
    gap:10px;
  }
  .logo-mark{
    width:34px; height:34px;
    border-radius:9px;
    background:linear-gradient(155deg, var(--pine-lt), var(--pine-dk));
    display:flex; align-items:center; justify-content:center;
    box-shadow:var(--shadow);
  }
  .logo-mark svg{ width:18px; height:18px; }
  .logo-text{
    font-family:'JetBrains Mono',monospace;
    direction:ltr; unicode-bidi:embed;
    font-weight:700;
    font-size:21px;
    color:var(--pine-dk);
  }
  .logo-text span{ color:var(--ochre); }
  nav.tabs{
    display:flex;
    gap:4px;
    background:var(--sage);
    padding:4px;
    border-radius:11px;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  nav.tabs::-webkit-scrollbar{ display:none; }
  nav.tabs button{
    border:none;
    cursor:pointer;
    padding:9px 14px;
    background:transparent;
    color:var(--pine-dk);
    font-family:'Noto Naskh Arabic',serif;
    font-size:14.5px;
    font-weight:700;
    border-radius:8px;
    transition:background .15s ease, color .15s ease;
    white-space:nowrap;
    flex:0 0 auto;
  }
  nav.tabs button.active{
    background:var(--card);
    color:var(--pine-dk);
    box-shadow:var(--shadow);
  }

  /* ===================== HERO ===================== */
  .hero{
    max-width:920px;
    margin:0 auto;
    padding:64px 20px 40px;
    text-align:center;
    position:relative;
  }
  .hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--sage);
    color:var(--pine-dk);
    font-size:13px;
    font-family:'JetBrains Mono',monospace;
    direction:ltr; unicode-bidi:embed;
    padding:6px 14px;
    border-radius:999px;
    margin-bottom:22px;
    letter-spacing:.03em;
  }
  .hero-badge .dot{
    width:6px; height:6px; border-radius:50%;
    background:var(--ochre);
  }
  .hero h1{
    font-size:44px;
    margin:0 0 14px;
    line-height:1.5;
  }
  .hero p.lead{
    max-width:540px;
    margin:0 auto 30px;
    color:var(--ink-soft);
    font-size:18px;
  }
  .hero-actions{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
  }
  .hero-stats{
    display:flex;
    justify-content:center;
    gap:36px;
    margin-top:52px;
    flex-wrap:wrap;
  }
  .stat{ text-align:center; }
  .stat .num{
    font-family:'JetBrains Mono',monospace;
    direction:ltr; unicode-bidi:embed;
    font-size:26px;
    font-weight:600;
    color:var(--pine);
  }
  .stat .lbl{
    font-size:13.5px;
    color:var(--ink-soft);
    margin-top:2px;
  }

  /* ---- gradient stat cards ---- */
  .stat-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    max-width:820px;
    margin:52px auto 0;
  }
  .stat-card{
    border-radius:20px;
    padding:22px 20px;
    text-align:start;
    color:#fff;
    min-height:118px;
    display:flex; flex-direction:column; justify-content:flex-end;
    box-shadow:var(--shadow);
  }
  .stat-card.c1{ background:linear-gradient(150deg,#12A5A0,#0B6E6A); }
  .stat-card.c2{ background:linear-gradient(150deg,#3C93D1,#155A93); }
  .stat-card.c3{ background:linear-gradient(150deg,#0EA5A0,#0D4C7A); }
  .stat-card .num{
    font-family:'JetBrains Mono',monospace; direction:ltr; unicode-bidi:embed;
    font-size:28px; font-weight:700; line-height:1.2;
  }
  .stat-card .lbl{ font-size:13.5px; opacity:.92; margin-top:4px; }
  @media (max-width:680px){ .stat-cards{ grid-template-columns:1fr 1fr; } .stat-cards .stat-card:last-child{ grid-column:1 / -1; } }

  /* ---- dark CTA break ---- */
  .cta-dark{
    max-width:1080px; margin:56px auto 0; padding:44px 30px;
    background:linear-gradient(150deg,var(--pine-dk),#082438);
    border-radius:24px; color:#fff; text-align:center;
  }
  .cta-dark .tag{
    font-family:'JetBrains Mono',monospace; direction:ltr; unicode-bidi:embed;
    font-size:12.5px; letter-spacing:.08em; color:var(--ochre-lt, #D7F3F0);
    text-transform:uppercase; margin-bottom:10px;
  }
  .cta-dark h2{ color:#fff; font-size:26px; margin:0 0 10px; }
  .cta-dark p{ color:#CFE0D8; max-width:520px; margin:0 auto 24px; font-size:15.5px; }
  .cta-chips{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-bottom:26px; }
  .cta-chip{
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
    border-radius:14px; padding:16px 20px; min-width:150px; text-align:start; cursor:pointer;
  }
  .cta-chip:hover{ background:rgba(255,255,255,0.1); }
  .cta-chip .t{ font-weight:700; font-size:15px; margin-bottom:3px; }
  .cta-chip .s{ font-size:12.5px; color:#B9CFC5; }
  .cta-dark .btn{ background:var(--ochre); }

  /* ===================== SHARED ===================== */
  main{ max-width:920px; margin:0 auto; padding:0 18px 70px; }
  .section-title{
    text-align:center;
    margin-bottom:8px;
  }
  .section-sub{
    text-align:center;
    color:var(--ink-soft);
    font-size:15.5px;
    max-width:480px;
    margin:0 auto 34px;
  }

  section.view{ display:none; }
  section.view.active{ display:block; animation:fadeUp .35s ease; }
  @keyframes fadeUp{
    from{ opacity:0; transform:translateY(8px); }
    to{ opacity:1; transform:translateY(0); }
  }

  .card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:16px;
    padding:30px 26px;
    box-shadow:var(--shadow);
  }
  .card + .card{ margin-top:18px; }

  .grid2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  @media (max-width:560px){ .grid2{ grid-template-columns:1fr; } }

  .field{ margin-bottom:4px; }
  label{
    display:block;
    font-size:14px;
    color:var(--pine-dk);
    margin-bottom:7px;
    font-weight:700;
  }
  input, select{
    width:100%;
    padding:13px 14px;
    border:1.5px solid var(--line);
    border-radius:10px;
    font-family:'Noto Naskh Arabic',serif;
    font-size:17px;
    background:#FBFCF9;
    color:var(--ink);
    transition:border-color .15s ease;
  }
  input:focus, select:focus{
    outline:none;
    border-color:var(--pine-lt);
    box-shadow:0 0 0 3px rgba(46,122,103,.15);
  }
  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--pine);
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:10px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    font-family:'Noto Naskh Arabic',serif;
    box-shadow:var(--shadow);
    transition:transform .12s ease, background .15s ease;
  }
  .btn:hover{ background:var(--pine-dk); transform:translateY(-1px); }
  .btn:focus-visible{ outline:2px solid var(--ochre); outline-offset:2px; }
  .btn.ghost{
    background:var(--card);
    color:var(--pine-dk);
    border:1.5px solid var(--pine);
    box-shadow:none;
  }
  .btn.ghost:hover{ background:var(--sage); }

  .result{
    margin-top:26px;
    padding-top:24px;
    border-top:2px dashed var(--line);
    display:none;
  }
  .result.show{ display:block; animation:fadeUp .3s ease; }
  .result-number{
    font-family:'JetBrains Mono',monospace;
    direction:ltr; unicode-bidi:embed;
    font-size:44px;
    font-weight:600;
    color:var(--pine-dk);
    line-height:1;
  }
  .badge{
    display:inline-block;
    padding:7px 18px;
    border-radius:999px;
    font-weight:700;
    font-size:15px;
    margin-top:10px;
  }
  .badge.green{ background:#DCEEE1; color:#1F5C3E; }
  .badge.yellow{ background:#FBF0D6; color:#8A6210; }
  .badge.orange{ background:#FBE3CE; color:#9A4E10; }
  .badge.red{ background:#F6DCD8; color:var(--brick); }

  .note{
    background:var(--sage);
    border-radius:12px;
    padding:16px 18px;
    font-size:15px;
    margin-top:18px;
    color:#2C3B34;
  }
  .disclaimer{
    background:var(--ochre-lt);
    border-right:4px solid var(--ochre);
    padding:15px 18px;
    border-radius:8px;
    font-size:14.5px;
    color:#5C4212;
    margin-bottom:24px;
  }

  /* ===== feature cards on home ===== */
  .feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-top:44px;
  }
  @media (max-width:680px){ .feature-grid{ grid-template-columns:1fr; } }

  @media (max-width:480px){
    .topbar-inner{ padding:10px 14px; }
    .hero{ padding:44px 16px 30px; }
    .hero h1{ font-size:32px; }
    .hero p.lead{ font-size:16px; }
    main{ padding:0 14px 60px; }
    .card{ padding:22px 16px; }
    .card + .card{ margin-top:28px; }
    .grid2{ gap:22px; }
    nav.tabs button{ padding:8px 11px; font-size:13.5px; }
  }
  .feature{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:16px;
    padding:26px 22px;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease;
    text-align:right;
  }
  .feature:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
  .feature .icon{
    width:44px; height:44px;
    border-radius:12px;
    background:var(--sage);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:16px;
    font-size:22px;
  }
  .feature h3{ font-size:19px; margin:0 0 8px; }
  .feature p{ font-size:14.5px; color:var(--ink-soft); margin:0; }

  /* ===== Q&A ===== */
  .qa{
    border:1px solid var(--line);
    border-radius:12px;
    margin-bottom:14px;
    overflow:hidden;
    background:var(--card);
  }
  .qa summary{
    cursor:pointer;
    padding:17px 20px;
    font-weight:700;
    color:var(--pine-dk);
    list-style:none;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:16.5px;
  }
  .qa summary::-webkit-details-marker{ display:none; }
  .qa summary::after{
    content:"+";
    font-family:'JetBrains Mono',monospace;
    font-size:20px;
    color:var(--ochre);
    flex-shrink:0;
    margin-inline-start:12px;
  }
  .qa[open] summary::after{ content:"–"; }
  .qa[open] summary{ border-bottom:1px solid var(--line); }
  .qa .qa-body{ padding:16px 20px 20px; color:var(--ink-soft); }
  .qa .qa-body ol{ padding-inline-start:22px; margin:8px 0 0; color:var(--ink); }
  .qa .qa-body li{ margin-bottom:7px; }

  footer{
    text-align:center;
    font-size:13.5px;
    color:#7C8A82;
    padding:34px 20px 40px;
    border-top:1px solid var(--line);
    margin-top:20px;
  }
  footer .brand-en{ color:var(--pine); font-weight:600; }
  footer a{ color:var(--pine); text-decoration:none; }
  footer a:hover{ text-decoration:underline; }

  .wa-float{
    position:fixed;
    bottom:22px;
    left:22px;
    width:56px; height:56px;
    background:#25D366;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    z-index:60;
    transition:transform .15s ease;
  }
  .wa-float:hover{ transform:scale(1.08); }
.field-error{ color:#B23A2E; font-size:13px; margin-top:4px; display:none; font-family:'Noto Naskh Arabic',serif; }
.input-error{ border-color:#B23A2E !important; box-shadow:0 0 0 2px rgba(178,58,46,0.15); }
.btn.is-loading{ opacity:.7; pointer-events:none; position:relative; }
.btn.is-success{ background:var(--pine-lt) !important; }
@keyframes fc-pop{ 0%{ transform:scale(1); } 40%{ transform:scale(1.03); } 100%{ transform:scale(1); } }
.result.show{ animation:fc-pop .35s ease; }

[data-theme="dark"]{
  --paper:#0E1F2B; --card:#152F3F; --ink:#EAF3F8; --ink-soft:#B4CBD6;
  --pine:#4FAADB; --pine-dk:#7BC4E8; --pine-lt:#3C93D1;
  --sage:#1B3A4D; --sage-dk:#234A61; --ochre:#3FCFC5; --ochre-lt:#153531;
  --line:#254458; --shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.theme-toggle{
  border:1px solid var(--line); background:var(--card); color:var(--ink);
  border-radius:10px; padding:7px 12px; cursor:pointer; font-size:13px;
  font-family:'JetBrains Mono',monospace;
}
html.lang-en .ur-txt{ display:none !important; }
html.lang-en .en-txt{ display:inline !important; }
html:not(.lang-en) .en-txt{ display:none !important; }
html.lang-en .en-block{ display:block !important; }
html:not(.lang-en) .en-block{ display:none !important; }
html.lang-en{ direction:ltr; }
html.lang-en body{ font-family:Georgia,'Times New Roman',serif; }
html.lang-en h1, html.lang-en h2, html.lang-en h3{ font-family:Georgia,'Times New Roman',serif; }
html.lang-en .section-title, html.lang-en .section-sub, html.lang-en .card, html.lang-en .field, html.lang-en .note{ text-align:left; direction:ltr; }
.lang-switch{
  border:1px solid var(--line); background:var(--card); color:var(--ink);
  border-radius:10px; padding:7px 12px; cursor:pointer; font-size:13px;
  font-family:'JetBrains Mono',monospace;
}
