/* =========================================================
   Tawhid Space — brand layer on top of the Appix template.
   Loaded after style.css / responsive.css; only overrides.
   Palette mirrors the app (src/global.css + colors.js):
   navy #0D1B2A / #142a41, brand blue #4f80b3, cream #f4eee0,
   gold from logo_light.png.
   ========================================================= */

:root {
  --light-yellow: #f6f0e3;   /* page background — app tertiary cream */
  --primery: #2f5d8a;        /* buttons, badges (AA on white text)    */
  --dark-black: #0f1e2e;     /* dark bands — app primary-600/650      */
  --dark-greay: #8a94a6;
  --text-greay: #5d6676;

  --tw-blue: #4f80b3;        /* logo blue, accents on dark            */
  --tw-blue-soft: #e6eef8;
  --tw-gold: #e3bd72;        /* logo gold                              */
  --tw-gold-soft: #f8ecd2;
  --tw-ink: #142a41;
  --tw-card: #fffdf8;
  --tw-line: rgba(20, 42, 65, .1);
  --tw-mint: #1abd8c;
}

body { color: var(--tw-ink); }
::selection { background: var(--tw-gold-soft); }

/* Headline accent: brand blue on cream, gold on dark bands */
.banner_section .banner_text h1 span,
.section_title h2 span { color: var(--primery); }
.white_text .section_title h2 span,
.how_it_section .section_title h2 span,
.pricing_section .section_title h2 span { color: var(--tw-gold); }

.title_badge { font-weight: 600; letter-spacing: .02em; }
.white_text .title_badge { background: var(--tw-blue); }

/* ---------- Header ---------- */
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand img { width: 44px; height: 44px; }
.navbar-brand .tw-wordmark {
  font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--tw-ink);
}
.navbar-brand .tw-wordmark span { color: var(--primery); }

/* ---------- Hero ---------- */
#preloader { display: none !important; }
.banner_section::before { opacity: .55; }
.banner_section .banner_text .type-wrap span { color: var(--primery); font-weight: 700; }
.banner_section .banner_text h1 { letter-spacing: -1.5px; }
.banner_section .banner_text p { color: var(--text-greay); max-width: 520px; }

.tw-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 28px;
  font-size: 15px; color: var(--tw-ink); font-weight: 600;
}
.tw-trust li { display: flex; align-items: center; gap: 8px; }
.tw-trust i { color: var(--tw-mint); font-size: 18px; }

/* Store badges (CSS-built, black per Apple/Google guidance) */
.tw-stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tw-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff !important; border-radius: 12px;
  padding: 9px 18px 9px 14px; min-width: 172px; height: 56px;
  border: 1px solid #a6a6a6; transition: transform .25s ease, box-shadow .25s ease;
}
.tw-store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 30, 46, .25); }
.tw-store i { font-size: 30px; line-height: 1; }
.tw-store svg { width: 26px; height: 28px; flex: none; }
.tw-store small { display: block; font-size: 11px; line-height: 1.1; letter-spacing: .02em; opacity: .9; }
.tw-store strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -.3px; }

.tw-qr {
  display: flex; align-items: center; gap: 16px; margin-top: 26px;
  padding: 12px 18px 12px 12px; background: var(--tw-card); border-radius: 18px;
  border: 1px solid var(--tw-line); width: max-content; max-width: 100%;
}
.tw-qr .tw-qr-code {
  width: 88px; height: 88px; padding: 6px; background: #fff; border-radius: 10px; flex: none;
}
.tw-qr .tw-qr-code img, .tw-qr .tw-qr-code canvas { width: 100% !important; height: 100% !important; }
.tw-qr p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-greay); }
.tw-qr p strong { color: var(--tw-ink); display: block; font-size: 15px; }

/* Hero visual: tilted navy card + phone mockup + floating notes */
.banner_section .banner_slider::before { background-color: var(--dark-black); }
.tw-hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0 40px; flex: 1 1 100%; width: 100%; }

.tw-phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px;
  background: #0b1622; padding: 11px; box-shadow: 0 40px 80px rgba(15, 30, 46, .35);
}
.tw-phone::before { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0b1622; border-radius: 20px; z-index: 3;
}
.tw-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #f9f4e8 0%, #f4eee0 55%, #efe6d2 100%);
  padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; color: var(--tw-ink);
}
.tw-screen .tw-s-top { display: flex; justify-content: space-between; align-items: center; }
.tw-screen .tw-s-top b { font-size: 15px; letter-spacing: -.2px; }
.tw-chip {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 11px;
  background: var(--tw-gold-soft); color: #8a5a10; padding: 3px 9px; border-radius: 999px;
}
.tw-noor-row { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; }
.tw-noor-row img { width: 108px; height: 108px; flex: none; }
.tw-bubble {
  position: relative; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px;
  padding: 9px 11px; font-weight: 600; line-height: 1.35; margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(20, 42, 65, .08);
}
.tw-card {
  background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 6px 16px rgba(20, 42, 65, .06);
  border-curve: continuous;
}
.tw-card h6 { font-size: 12px; font-weight: 800; margin: 0 0 8px; color: var(--tw-ink); }
.tw-moods { display: flex; justify-content: space-between; }
.tw-moods span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; color: var(--text-greay); }
.tw-moods span i {
  width: 30px; height: 30px; border-radius: 50%; display: block; font-style: normal;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06);
}
.tw-moods span.on { color: var(--tw-ink); font-weight: 700; }
.tw-moods span.on i { outline: 2px solid var(--tw-blue); outline-offset: 2px; }
.tw-prayers { display: flex; justify-content: space-between; }
.tw-prayers span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; }
.tw-prayers span i {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--tw-line);
  display: grid; place-items: center; font-size: 11px; color: #fff; font-style: normal;
}
.tw-prayers span.done i { background: var(--tw-mint); border-color: var(--tw-mint); }
.tw-prayers span.next i { border-color: var(--tw-blue); }
.tw-next {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--tw-ink); color: #fff; border-radius: 18px; padding: 12px 14px;
}
.tw-next small { display: block; opacity: .75; font-size: 10px; }
.tw-next b { font-size: 14px; }
.tw-next em { font-style: normal; background: var(--tw-blue); border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: 11px; }

.tw-float {
  position: absolute; z-index: 4; background: var(--tw-card); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(15, 30, 46, .18); font-size: 13px; line-height: 1.35; max-width: 210px;
  animation: twFloat 6s ease-in-out infinite;
}
.tw-float b { display: block; font-size: 14px; color: var(--tw-ink); }
.tw-float span { color: var(--text-greay); }
.tw-float { max-width: 175px; }
.tw-float.one { left: 0; top: 210px; }
.tw-float.two { right: 0; bottom: 34px; animation-delay: -3s; }
.tw-float .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tw-mint); margin-right: 6px; }
@keyframes twFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Four moments (dark feature band) ---------- */
.key_feature_section .feature_box { text-align: left; }
.key_feature_section .feature_box .tw-step-kicker {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tw-gold); margin-bottom: 6px;
}
.key_feature_section .feature_box .img { display: flex; justify-content: center; }
.key_feature_section .feature_box .img img { width: 190px !important; height: 190px; object-fit: contain; }
.key_feature_section .section_title p { color: rgba(255, 255, 255, .78); max-width: 640px; margin: 10px auto 0; }

/* ---------- Why (about) ---------- */
.about_section .app_statstic li .text p span:last-child { color: var(--primery); }
.tw-why-visual {
  position: relative; width: 300px; height: 300px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--tw-gold-soft) 60%, #f1dfb8 100%);
  display: grid; place-items: center;
}
.tw-why-visual img { width: 250px; height: 250px; }
.tw-ayah {
  background: var(--dark-black); color: #fff; border-radius: 22px; padding: 24px 24px 20px; margin-bottom: 20px;
  border-curve: continuous;
}
.tw-ayah .ar { font-family: 'Amiri', serif; font-size: 26px; line-height: 1.9; direction: rtl; text-align: right; color: var(--tw-gold); margin: 0 0 8px; }
.tw-ayah p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 16px; }
.tw-ayah cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--tw-blue); letter-spacing: .05em; }

.tw-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 40px; }
.tw-principle {
  background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: 22px; padding: 22px;
  border-curve: continuous;
}
.tw-principle i { font-size: 26px; color: var(--primery); }
.tw-principle h3 { font-size: 18px; margin: 10px 0 6px; color: var(--tw-ink); }
.tw-principle p { margin: 0; font-size: 15px; color: var(--text-greay); line-height: 1.6; }

/* ---------- Feature (service) blocks ---------- */
.service_section .service_text .service_badge { background: var(--tw-blue-soft); }
.service_section .service_text .service_badge i,
.service_section .service_text .service_badge span { color: var(--primery); }
.service_section .listing_block .icon span,
.service_section .feature_list .icon span i { color: var(--primery); }
.tw-feature-art {
  border-radius: 32px; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto;
  display: grid; place-items: center; position: relative; overflow: hidden; border-curve: continuous;
}
.tw-feature-art img { width: 74%; height: 74%; object-fit: contain; position: relative; z-index: 1; }
.tw-feature-art.blue { background: linear-gradient(160deg, #e9f0f9, #cfdff1); }
.tw-feature-art.gold { background: linear-gradient(160deg, #fbf3e1, #f1dcb2); }
.tw-feature-art.mint { background: linear-gradient(160deg, #e6f7f0, #c4ecdc); }
.tw-feature-art.night { background: linear-gradient(170deg, #1b3756, #0f1e2e); }
.tw-feature-art .tw-tag {
  position: absolute; z-index: 2; left: 22px; bottom: 22px; background: #fff; border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--tw-ink); box-shadow: 0 8px 20px rgba(15, 30, 46, .12);
}
.tw-free-pill {
  display: inline-block; background: #e3f6ee; color: #0a6b4e; font-weight: 700; font-size: 12px;
  padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.tw-premium-pill {
  display: inline-block; background: var(--tw-gold-soft); color: #8a5a10; font-weight: 700; font-size: 12px;
  padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}

/* ---------- How it works ---------- */
.how_it_inner .steps_block .icon img { width: 96px; height: 96px; object-fit: contain; }
.how_it_inner .steps_block .text .social li a { color: var(--tw-ink); }

/* ---------- Noor companion ---------- */
.tw-noor-section .tw-noor-intro { max-width: 680px; margin: 12px auto 0; color: var(--text-greay); text-align: center; }
.tw-noor-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 46px 0 40px; }
.tw-noor-step {
  background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: 22px; padding: 24px; border-curve: continuous;
}
.tw-noor-step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primery); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.tw-noor-step h3 { margin-bottom: 6px; color: var(--tw-ink); }
.tw-noor-step p { margin: 0; color: var(--text-greay); font-size: 15px; }

.tw-stages {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--dark-black);
  border-radius: 28px; padding: 34px 18px 28px; position: relative; overflow: hidden; border-curve: continuous;
}
.tw-stages::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 104px; height: 2px;
  background: linear-gradient(90deg, rgba(79, 128, 179, .3), var(--tw-gold));
}
.tw-stage { text-align: center; position: relative; color: #fff; }
.tw-stage img { width: 96px; height: 96px; object-fit: contain; position: relative; z-index: 1; }
.tw-stage:nth-child(1) img { width: 62px; height: 62px; margin-top: 34px; opacity: .8; filter: saturate(.6); }
.tw-stage:nth-child(2) img { width: 72px; height: 72px; margin-top: 24px; }
.tw-stage:nth-child(3) img { width: 84px; height: 84px; margin-top: 12px; }
.tw-stage:nth-child(4) img { filter: drop-shadow(0 0 14px rgba(227, 189, 114, .55)); }
.tw-stage:nth-child(5) img { filter: drop-shadow(0 0 22px rgba(227, 189, 114, .9)); }
.tw-stage h4 { font-size: 17px; font-weight: 800; margin: 12px 0 2px; color: #fff; }
.tw-stage span { font-size: 13px; color: rgba(255, 255, 255, .7); }

.tw-cosmetics { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.tw-cosmetic {
  display: flex; align-items: center; gap: 10px; background: var(--tw-card); border: 1px solid var(--tw-line);
  border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 600; font-size: 14px;
}
.tw-cosmetic img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--tw-gold-soft); }
.tw-noor-note { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-greay); }

/* ---------- Language band ---------- */
.tw-langs { text-align: center; }
.tw-lang-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px; margin: 22px 0 18px; }
.tw-lang-row span { font-size: 40px; font-weight: 800; color: var(--tw-ink); line-height: 1.6; }
.tw-lang-row span.ar { font-family: 'Amiri', serif; font-weight: 700; }
.tw-lang-row span.ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 34px; font-weight: 400; line-height: 2; }
.tw-lang-row span.hi { font-family: 'Hind', sans-serif; font-weight: 700; }
.tw-lang-row b { color: var(--tw-gold); font-size: 30px; }
.tw-langs p { max-width: 640px; margin: 0 auto; color: var(--text-greay); }

/* ---------- Reviews ---------- */
.review_section .review_block .avtar .tw-initial {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tw-blue-soft); color: var(--primery); font-weight: 800; font-size: 20px; flex: none;
}
.review_section .sidebar_text .tw-review-lead { color: var(--text-greay); margin: 14px 0 22px; max-width: 420px; }
.review_section .review_block p { font-size: 17px; color: var(--tw-ink); }
.review_section .review_block .tw-quote { font-size: 34px; color: var(--tw-gold); line-height: 1; }
.review_section .sidebar_text .smiley_icon img { width: 160px; }

/* ---------- Pricing ---------- */
.pricing_section .pricing_pannel { margin-top: 30px; }
.pricing_section .pannel_block .heading span { color: var(--dark-greay); }
.pricing_section .pannel_block.highlited_block { background: var(--primery); }
.pricing_section .pannel_block .features li p { text-align: left; }
.pricing_section .pannel_block .tw-plan-note { font-size: 13px; opacity: .8; margin: -6px 0 16px; }
.pricing_section .pannel_block .features li .icon i.icofont-heart { color: var(--tw-gold); }
.pricing_section .tw-pricing-footnote {
  max-width: 720px; margin: 24px auto 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq_section .section_title p { color: var(--text-greay); }
.faq_section .card-body a { color: var(--primery); font-weight: 700; }
.faq_section .accordion { margin-top: 30px; }

/* ---------- Download ---------- */
.downaload_section .center_screen .img img { width: 260px; }
.downaload_section .center_screen h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 10px 0 6px; color: var(--tw-ink); }
.downaload_section .center_screen p { color: var(--text-greay); margin-bottom: 22px; }
.downaload_section .center_screen .tw-stores { justify-content: center; }

/* ---------- Footer ---------- */
footer .logo_side .logo a { display: flex; align-items: center; gap: 12px; }
footer .logo_side .logo img { width: 54px; height: 54px; }
footer .logo_side .logo .tw-wordmark { font-weight: 800; font-size: 24px; color: #fff; }
footer .tw-footer-tag { color: rgba(255, 255, 255, .78); max-width: 420px; margin-bottom: 26px; }
footer .contact_info li a, footer .contact_info li span { color: rgba(255, 255, 255, .9); }
footer .download_side .tw-stores { margin-top: 18px; }
footer .tw-crisis {
  margin-top: 28px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.6;
}
footer .tw-crisis b { color: var(--tw-gold); }
footer .footer_bottom .design_by p, footer .footer_bottom .copy_text p { color: rgba(255, 255, 255, .7); }

/* ---------- Legal / support pages ---------- */
.tw-doc { padding: 140px 0 60px; }
.tw-doc .container { max-width: 820px; }
.tw-doc h1 { font-size: 44px; font-weight: 800; letter-spacing: -1px; color: var(--tw-ink); }
.tw-doc .tw-updated { color: var(--text-greay); margin-bottom: 30px; }
.tw-doc h2 { font-size: 24px; font-weight: 800; color: var(--tw-ink); margin: 34px 0 10px; }
.tw-doc p, .tw-doc li { color: #2c3a4b; font-size: 17px; line-height: 1.75; }
.tw-doc ul { margin: 0 0 12px 0; }
.tw-doc ul li { list-style: disc; margin-left: 22px; }
.tw-doc a { color: var(--primery); font-weight: 700; }
.tw-doc .tw-callout {
  background: var(--tw-card); border: 1px solid var(--tw-line); border-left: 4px solid var(--tw-gold);
  border-radius: 16px; padding: 18px 20px; margin: 20px 0;
}

/* ---------- Accessibility & motion ---------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--tw-gold); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tw-hero-visual { margin-top: 30px; }
  .tw-float.one { left: 0; }
  .tw-float.two { right: 0; }
  .tw-noor-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tw-stages { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .tw-stages::before { display: none; }
  .tw-stage:nth-child(n) img { margin-top: 0; }
  .tw-lang-row span { font-size: 30px; }
  .tw-lang-row span.ur { font-size: 26px; }
  .tw-doc { padding-top: 110px; }
  .tw-doc h1 { font-size: 34px; }
}
@media (max-width: 420px) {
  .tw-phone { width: 270px; height: 560px; }
  .tw-float { max-width: 170px; font-size: 12px; }
  .tw-float.one { top: 70px; }
  .tw-store { min-width: 0; flex: 1 1 150px; }
}

/* ---------- Evidence page (evidence.html) ---------- */
.tw-ev .container { max-width: 1120px; }
.tw-ev h1 span { color: var(--primery); }
.tw-ev .tw-ev-lead { max-width: 760px; font-size: 18px; color: var(--text-greay); }
.tw-ev-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.tw-ev .tw-ev-stats li, .tw-ev .tw-ev-group li { list-style: none; margin-left: 0; }
.tw-ev-stats li {
  background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: 18px; padding: 14px 20px;
  min-width: 150px; border-curve: continuous;
}
.tw-ev-stats b { display: block; font-size: 34px; font-weight: 800; color: var(--primery); line-height: 1.1; }
.tw-ev-stats span { font-size: 14px; color: var(--text-greay); }
.tw-ev .tw-ev-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.tw-ev .tw-ev-controls input {
  flex: 1 1 320px; height: 50px; border-radius: 16px; border: 1px solid var(--tw-line); background: #fff;
  padding: 0 18px; font-size: 16px;
}
.tw-ev .tw-ev-controls input:focus { border-color: var(--primery); box-shadow: 0 0 0 3px rgba(47, 93, 138, .15); }
.tw-ev-langs, .tw-ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-ev-chips { margin-top: 14px; }
.tw-ev-chip {
  border: 1px solid var(--tw-line); background: var(--tw-card); color: var(--tw-ink); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600; min-height: 40px; cursor: pointer;
}
.tw-ev-chip[lang="ar"] { font-family: 'Amiri', serif; font-size: 16px; }
.tw-ev-chip[lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; font-size: 13px; }
.tw-ev-chip[lang="hi"] { font-family: 'Hind', sans-serif; }
.tw-ev-chip.on { background: var(--primery); border-color: var(--primery); color: #fff; }
.tw-ev-meta { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 12px; color: var(--text-greay); font-size: 14px; }
.tw-ev-expand { background: none; border: 0; color: var(--primery); font-weight: 700; padding: 8px 0; cursor: pointer; }

.tw-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; align-items: start; }
.tw-ev-card {
  background: #fff; border: 1px solid var(--tw-line); border-radius: 22px; padding: 22px; border-curve: continuous;
  scroll-margin-top: 110px;
}
.tw-ev-card h3 { font-size: 20px; margin: 0 0 4px; color: var(--tw-ink); }
.tw-ev-card h3[lang="ar"], .tw-ev-card .tw-ev-desc[lang="ar"] { font-family: 'Amiri', serif; }
.tw-ev-card h3[lang="ur"], .tw-ev-card .tw-ev-desc[lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; line-height: 2.1; }
.tw-ev-card h3[lang="hi"], .tw-ev-card .tw-ev-desc[lang="hi"] { font-family: 'Hind', sans-serif; }
.tw-ev-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tw-ev-ar { font-family: 'Amiri', serif; font-size: 21px; color: #8a5a10; }
.tw-ev-tr { font-size: 14px; font-style: italic; color: var(--text-greay); }
.tw-ev-clinical {
  margin: 10px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--primery);
  text-transform: uppercase;
}
.tw-ev-card .tw-ev-desc { font-size: 16px; color: #2c3a4b; margin: 0 0 10px; }
.tw-ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tw-ev-tags span { background: var(--tw-gold-soft); color: #7a4f0c; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tw-ev-details summary {
  cursor: pointer; font-weight: 700; color: var(--tw-ink); font-size: 14px; padding: 10px 0 2px; list-style: none;
}
.tw-ev-details summary::-webkit-details-marker { display: none; }
.tw-ev-details summary::before { content: "+"; display: inline-block; width: 18px; color: var(--primery); font-weight: 800; }
.tw-ev-details[open] summary::before { content: "–"; }
.tw-ev-group { margin-top: 14px; }
.tw-ev-group h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-greay); margin-bottom: 8px; }
.tw-ev-group li { list-style: none; margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--tw-line); }
.tw-ev-group li b { font-size: 15px; color: var(--tw-ink); }
.tw-ev-group li p { font-size: 14px; line-height: 1.55; color: var(--text-greay); margin: 2px 0 0; }
.tw-ev-kind { margin-left: 8px; font-size: 11px; font-weight: 700; background: var(--tw-blue-soft); color: var(--primery); padding: 1px 8px; border-radius: 999px; }
.tw-ev-link { display: inline-block; margin-top: 4px; font-size: 13px; }
.tw-ev-link::after { content: " ↗"; }
.tw-ev-empty { text-align: center; color: var(--text-greay); margin: 30px 0; }

.tw-ev-api { margin-top: 60px; background: var(--dark-black); color: #fff; border-radius: 28px; padding: 34px; border-curve: continuous; }
.tw-ev-api h2 { color: #fff; margin-top: 0; }
.tw-ev-api p { color: rgba(255, 255, 255, .82); }
.tw-ev-api a { color: var(--tw-gold); }
.tw-ev-api pre {
  background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 16px 18px; color: #e8eef6; font-size: 13px;
  white-space: pre; overflow-x: auto; margin: 14px 0;
}
.tw-ev-api details summary { cursor: pointer; font-weight: 700; color: var(--tw-gold); }
.tw-ev-api .tw-ev-updated { font-size: 14px; margin: 18px 0 0; }

@media (max-width: 575px) {
  .tw-ev-grid { grid-template-columns: 1fr; }
  .tw-ev-api { padding: 24px 18px; }
  .tw-ev-stats li { flex: 1 1 140px; min-width: 0; }
}

/* ---------- Mobile polish ---------- */
.tw-doc, .tw-ev-card { text-align: left; }
@media (max-width: 575px) {
  .tw-float { display: none; }
  .tw-moods span { font-size: 8px; letter-spacing: -.2px; }
  .tw-moods span i { width: 26px; height: 26px; }
  .tw-doc header .btn_block .nav-link, header .ml-auto.btn_block .nav-link { padding: 6px 14px; font-size: 14px; }
}
/* Sub-pages: keep logo + Download on one row on phones */
header .navbar:has(> .ml-auto.btn_block) { flex-wrap: nowrap; }
@media (max-width: 575px) { header .navbar:has(> .ml-auto.btn_block) .tw-wordmark { font-size: 19px; } }
.tw-store strong, .tw-store small { white-space: nowrap; }
@media (max-width: 420px) {
  .tw-store { padding: 8px 12px; gap: 8px; }
  .tw-store strong { font-size: 17px; }
}

/* ---------- Shared chrome (built by tools/build.py) ---------- */
:where(img[width][height]) { height: auto; }
header { background-color: rgba(246, 240, 227, .9); border-bottom-color: var(--tw-line); }
.navbar-expand-lg .navbar-nav .nav-link[aria-current="page"] { color: var(--primery); position: relative; }
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 30px; height: 2px; border-radius: 2px; background: var(--primery);
  }
}
.tw-doc { padding: 46px 0 60px; }
.tw-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--text-greay); }
.tw-crumbs li { list-style: none !important; margin: 0 !important; font-size: 14px !important; }
.tw-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--dark-greay); }
.tw-crumbs a { color: var(--primery); font-weight: 600; }

.tw-eyebrow { color: var(--primery) !important; font-weight: 700; font-size: 16px; letter-spacing: .01em; margin-bottom: 8px !important; }
.tw-evlink { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--primery); border-bottom: 1px solid rgba(47, 93, 138, .3); }
.tw-evlink:hover { border-bottom-color: var(--primery); }

.tw-footer .tw-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tw-footer .tw-footer-links h3, .tw-footer .download_side h3 { font-size: 18px; color: #fff; margin-bottom: 14px; }
.tw-footer .tw-footer-links li { margin-bottom: 8px; }
.tw-footer .tw-footer-links a { color: rgba(255, 255, 255, .78); font-size: 15px; }
.tw-footer .tw-footer-links a:hover { color: var(--tw-gold); }
@media (max-width: 991px) { .tw-footer .tw-footer-links, .tw-footer .download_side { margin-top: 34px; } }

.tw-404 { text-align: center; }
.tw-404 img { width: 200px; }
.tw-404 h1 { margin-top: 10px; }
.tw-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.tw-404-links li { list-style: none !important; margin: 0 !important; }
.tw-404-links a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--tw-card); border: 1px solid var(--tw-line); }

/* ---------- Audit fixes (desktop) ---------- */
.puprple_btn { text-transform: none; }
@media (min-width: 576px) {
  .tw-float.one { left: calc(50% - 300px); top: 118px; }
  .tw-float.two { right: calc(50% - 300px); bottom: 40px; }
}
.how_it_inner .steps_block .text .social li a { color: #fff; border-color: rgba(255, 255, 255, .35); }
.how_it_inner .steps_block .text .social li a:hover { color: var(--tw-gold); }
.tw-cosmetic img { width: 46px; height: 46px; object-fit: contain; background: none; transform: scale(1.35); }
.pricing_section .pannel_block .tw-plan-note { margin: 12px 0 18px; }

.tw-cta-inner {
  display: flex; align-items: center; gap: 40px; background: var(--dark-black); color: #fff;
  border-radius: 32px; padding: 50px 60px; position: relative; overflow: hidden; border-curve: continuous;
}
.tw-cta-inner::before {
  content: ""; position: absolute; left: -80px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(227, 189, 114, .28) 0%, transparent 65%);
}
.tw-cta-noor { width: 250px; flex: none; position: relative; filter: drop-shadow(0 0 30px rgba(227, 189, 114, .35)); }
.tw-cta-text { position: relative; }
.tw-cta-text h2 { font-size: 44px; font-weight: 800; letter-spacing: -1.2px; color: #fff; margin: 8px 0 8px; }
.tw-cta-text p { color: rgba(255, 255, 255, .8); font-size: 17px; margin-bottom: 24px; }
.tw-cta .tw-store { border-color: rgba(255, 255, 255, .35); }
@media (max-width: 767px) {
  .tw-cta-inner { flex-direction: column; text-align: center; padding: 36px 22px; gap: 10px; }
  .tw-cta-noor { width: 170px; }
  .tw-cta-text h2 { font-size: 32px; }
  .tw-cta-text .tw-stores { justify-content: center; }
}

footer .contact_info { display: block; }
footer .contact_info li { display: block; margin: 0 0 6px; padding: 0; }
footer .contact_info li::before, footer .contact_info li::after { display: none !important; content: none !important; }
footer .download_side, footer .download_side h3 { text-align: left; }
footer .download_side .tw-stores { justify-content: flex-start; }
footer .tw-crisis { text-align: left; }

/* Dressed-up Noor — mirrors the app's layering (companion-art.ts ITEM_BOX: scale .92/.76, offset .08/.76) */
.tw-dressup {
  --b: 220px; position: relative; width: 320px; height: 320px; border-radius: 32px; overflow: hidden; flex: none;
  background: url(../images/tawhid/background_starry_sky.webp) center / cover; border-curve: continuous;
  box-shadow: 0 24px 50px rgba(15, 30, 46, .25);
}
.tw-dressup .body-box { position: absolute; width: var(--b); height: var(--b); left: calc(50% - var(--b) / 2); bottom: 22px; }
.tw-dressup .body-box img { position: absolute; }
.tw-dressup .body-box .body { inset: 0; width: 100%; height: 100%; }
.tw-dressup .body-box .item {
  width: calc(var(--b) * 1.2105); height: calc(var(--b) * 1.2105);
  left: calc(var(--b) * -0.1053); top: calc(var(--b) * -0.1053);
}
.tw-noor-showcase { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.tw-noor-showcase .tw-cosmetics { flex-direction: column; align-items: flex-start; margin: 0; gap: 10px; }
.tw-cosmetics .tw-cosmetic i { width: 34px; height: 34px; border-radius: 50%; background: var(--tw-gold-soft); color: #8a5a10; display: grid; place-items: center; font-style: normal; font-size: 16px; }
@media (max-width: 767px) {
  .tw-noor-showcase .tw-cosmetics { flex-direction: row; justify-content: center; }
  .tw-dressup { width: 280px; height: 280px; --b: 196px; }
}
.tw-noor-note { margin-top: 30px; }
section[id], div[id="download"], .tw-ev-card { scroll-margin-top: 96px; }
.about_section .app_statstic li .text p:last-child { font-size: 14px; line-height: 1.3; padding: 0 8px; }
footer { background-image: none; }

/* ---------- Hero phone = the real app home screen (src/features/home) ---------- */
.tw-screen.tw-app {
  padding: 0; gap: 0; background: #F9F6EE; font-family: 'Inter', 'Manrope', sans-serif; display: block;
}
.tw-app .app-scene {
  position: relative; height: 262px; overflow: hidden;
  background: linear-gradient(180deg, #92400e 0%, #f59e0b 100%); /* PRAYER_SCENE_GRADIENTS.asr.early */
}
.tw-app .app-top { position: absolute; left: 14px; right: 14px; top: 44px; display: flex; justify-content: space-between; align-items: center; }
.tw-app .app-menu {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px;
}
.tw-app .app-menu i { display: block; width: 12px; height: 1.6px; border-radius: 2px; background: #fff; }
.tw-app .app-pills { display: flex; gap: 6px; }
.tw-app .app-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .3); color: #fff; font-size: 10px; font-weight: 600;
}
.tw-app .app-pill svg { width: 11px; height: 11px; }
.tw-app .app-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.tw-app .app-noor { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-direction: column; align-items: center; }
.tw-app .app-noor img { width: 112px; height: 112px; }
.tw-app .app-bubble {
  position: relative; background: #FFFDF6; color: #1F2E5A; font-weight: 600; font-size: 11px; line-height: 1.35;
  padding: 7px 11px; border-radius: 12px; margin-bottom: 4px; text-align: center; max-width: 190px;
}
.tw-app .app-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; background: #FFFDF6;
  transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.tw-app .app-journey {
  margin: 9px 11px 3px; background: #0e1d2d; border-radius: 16px; padding: 10px 11px; color: #fff; border-curve: continuous;
}
.tw-app .app-jhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.tw-app .app-jhead > b { font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.tw-app .app-chip {
  display: inline-flex; align-items: center; gap: 3px; background: rgba(232, 148, 63, .18); border-radius: 999px;
  padding: 2px 7px; font-size: 8px; font-weight: 700; color: #f9c3a0;
}
.tw-app .app-chip small { font-size: 6px; letter-spacing: .4px; color: rgba(255, 255, 255, .55); font-weight: 700; }
.tw-app .app-chip .app-dot { width: 7px; height: 7px; }
.tw-app .app-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.tw-app .app-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F9C36B, #E8943F); }
.tw-app .app-journey p { margin: 6px 0 0; font-size: 8px; color: rgba(255, 255, 255, .7); line-height: 1.2; }
.tw-app .app-h { margin: 11px 12px 7px; font-size: 11px; font-weight: 600; color: #17314c; }
.tw-app .app-prayer {
  margin: 0 11px 7px; border-radius: 16px; padding: 10px 13px; display: flex; justify-content: space-between; align-items: center;
  color: #fff; border: .5px solid rgba(255, 255, 255, .1); border-curve: continuous; position: relative; overflow: hidden;
}
.tw-app .app-prayer.asr { background: #7A3500; }
.tw-app .app-prayer.maghrib { background: #7A1200; }
.tw-app .app-prayer.locked { opacity: .55; }
.tw-app .app-prayer::before { /* soft celestial glow, as PrayerCelestialLayer */
  content: ""; position: absolute; right: -20px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, .22), transparent 70%);
}
.tw-app .app-prayer b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 700; line-height: 1.1; }
.tw-app .app-prayer span[lang="ar"] { display: block; font-family: 'Amiri', serif; font-size: 10px; color: rgba(255, 255, 255, .6); line-height: 1.4; }
.tw-app .app-prayer small { display: block; font-size: 8px; color: rgba(255, 255, 255, .5); margin-top: 1px; }
.tw-app .app-play {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(232, 148, 63, .18); display: grid; place-items: center; position: relative;
}
.tw-app .app-play i {
  width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #f9c3a0, #E8943F); position: relative;
  box-shadow: 0 2px 6px rgba(232, 148, 63, .45);
}
.tw-app .app-play i::after {
  content: ""; position: absolute; left: 9px; top: 7px; border-left: 8px solid #0e1d2d; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.tw-app .app-lock { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.tw-app .app-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: #F9F6EE; border-top: 1px solid #d9cda9;
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 8px;
}
.tw-app .app-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; font-weight: 600; color: #89816a; }
.tw-app .app-tabs svg { width: 17px; height: 17px; fill: #89816a; stroke: #89816a; }
.tw-app .app-tabs span.on { color: #b5732f; }
.tw-app .app-tabs span.on svg { fill: #b5732f; stroke: #b5732f; }
@media (max-width: 420px) { .tw-app .app-scene { height: 236px; } }
@media (min-width: 576px) { .tw-float.two { bottom: 130px; right: calc(50% - 320px); } }

/* Evidence cards: equal height per row, "Sources" pinned to the bottom of each card */
.tw-ev-grid { align-items: stretch; }
.tw-ev-card { display: flex; flex-direction: column; height: 100%; }
.tw-ev-card .tw-ev-details { margin-top: auto; border-top: 1px solid var(--tw-line); padding-top: 4px; }
.tw-ev-updated { margin: 34px 0 0; text-align: center; color: var(--text-greay); font-size: 15px; }
.tw-ev-updated a { color: var(--primery); font-weight: 700; }
.tw-screen.tw-app, .tw-screen.tw-app * { text-align: left; }
.tw-app .app-bubble, .tw-app .app-tabs span { text-align: center; }

/* ---------- QA fixes ---------- */
/* The template declares both Bold and ExtraBold as weight 700, so every 800-weight heading fell back to Bold */
@font-face {
  font-family: 'Manrope'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('../fonts/manrope/Manrope-ExtraBold.woff2') format('woff2'), url('../fonts/manrope/Manrope-ExtraBold.woff') format('woff');
}
/* Contrast (WCAG AA) */
.key_feature_section .feature_box .tw-step-kicker { color: #8a5a10; }
.white_text .title_badge, .key_feature_section .title_badge, .how_it_section .title_badge, .pricing_section .title_badge { background: var(--primery); }
.pricing_section .pannel_block .heading span { color: #5d6676; }
.pricing_section .pannel_block.highlited_block .heading span:not(.offer) { color: rgba(255, 255, 255, .85); }
.tw-ev-group h4 { color: #5d6676; }
/* Skip link */
.tw-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100000; background: var(--tw-ink); color: #fff !important;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s;
}
.tw-skip:focus { top: 12px; }
/* Tap targets */
.owl-carousel .owl-nav button { min-width: 44px; min-height: 44px; }
@media (max-width: 767px) {
  .tw-footer .tw-footer-links a, footer .footer_bottom .links a { display: inline-block; padding: 7px 0; }
  .tw-footer .tw-footer-links li { margin-bottom: 0; }
  footer .contact_info li a { display: inline-block; padding: 6px 0; }
}
