/* Sandouq web — global styles
 * Hybrid design system: Things 3 warmth + Cron navy-gradient stage + gold detail.
 * Mirrors the app's design tokens (navy + sand + gold accent) for visual continuity.
 *
 * SECTIONS:
 *   1. Design tokens
 *   2. Base typography & body
 *   3. Layout helpers (.wrap / .container)
 *   4. Sticky frosted header
 *   5. Buttons
 *   6. Sections + section heads
 *   7. Feature cards
 *   8. Tools / Nisab preview
 *   9. CTA banner
 *  10. Forms + calculator (.live-prices, .result-card, .faq)
 *  11. Footer
 *  12. Reveal animation
 *  13. Responsive
 *  14. prefers-reduced-motion
 */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Core palette */
  --navy:        #1A2840;
  --navy-soft:   #2B3A55;
  --navy-deep:   #0E1828;
  --navy-mute:   #5A6478;
  --sand:        #F5EBDD;
  --sand-soft:   #FAF4E9;
  --sand-deep:   #ECDFCB;
  --terra:       #C66B4F;
  --terracotta:  #C66B4F; /* alias kept for legacy */
  --gold:        #C9A961;
  --gold-soft:   #E0C893;
  --gold-deep:   #A88A47;
  --gold-glow:   rgba(201, 169, 97, 0.55);
  --green:       #4A7C59;
  --success:     #4A7C59;
  --error:       #B8553A;
  --paper:       #FFFFFF;

  --text:        #1A2840;
  --text-muted:  #5A6478;

  /* Borders / lines */
  --line:        rgba(26, 40, 64, 0.08);
  --line-strong: rgba(26, 40, 64, 0.14);
  --border:      rgba(26, 40, 64, 0.12);

  /* Layered shadow stack (Things3-inspired) */
  --shadow-1:    0 1px 2px rgba(26, 40, 64, 0.04);
  --shadow-2:    0 4px 12px rgba(26, 40, 64, 0.06), 0 1px 3px rgba(26, 40, 64, 0.04);
  --shadow-3:    0 12px 32px rgba(26, 40, 64, 0.10), 0 4px 12px rgba(26, 40, 64, 0.06), 0 1px 3px rgba(26, 40, 64, 0.04);
  --shadow-lift: 0 22px 48px rgba(26, 40, 64, 0.14), 0 8px 20px rgba(26, 40, 64, 0.08), 0 2px 4px rgba(26, 40, 64, 0.04);
  --shadow-phone:0 60px 110px -22px rgba(0, 0, 0, 0.55), 0 24px 48px -16px rgba(0, 0, 0, 0.35);
  --shadow-sm:   var(--shadow-1);
  --shadow-md:   var(--shadow-2);

  /* Navy gradient stage util — for hero + tools */
  --gradient-navy-stage: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  --gradient-navy-soft:  linear-gradient(170deg, var(--navy) 0%, var(--navy-soft) 100%);

  /* Frosted header tokens */
  --header-bg-scrolled: rgba(250, 244, 233, 0.72);
  --header-blur:        saturate(180%) blur(12px);

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-card: 22px;
  --radius-btn:  28px;
  --radius-pill: 999px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ================================================================
   2. BASE TYPOGRAPHY
   ================================================================ */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--sand);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 169, 97, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(198, 107, 79, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[lang="ar"],
body[dir="rtl"] {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover { color: var(--terra); }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.12;
}
h1 {
  /* Bold fluid scale, Linear-style */
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}
h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.4em;
}

p, ul, ol { margin-bottom: 1em; }
ul, ol { padding-inline-start: 1.5em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 700; color: var(--navy); }

::selection { background: var(--gold-soft); color: var(--navy); }

/* ================================================================
   3. LAYOUT HELPERS
   ================================================================ */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.container--wide { max-width: 1080px; }

/* ================================================================
   4. STICKY FROSTED HEADER
   ================================================================ */
header.site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              padding 0.25s var(--ease), box-shadow 0.25s var(--ease);
  color: var(--navy);
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom-color: rgba(26, 40, 64, 0.08);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.site-header .nav,
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-image: url('/assets/logo.png');
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  position: relative;
  box-shadow: var(--shadow-2);
  flex-shrink: 0;
}

/* Real app screenshot inside the .phone-screen frame.
 * Replaces the CSS-drawn home view when a /assets/screenshots/*.png is
 * wired in (per locale). Status bar + app chrome are baked into the
 * image — the surrounding .phone frame still provides the bezel +
 * gesture bar via global.css.
 */
.phone-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--paper);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.lang-switch a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--navy-mute);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active {
  background: var(--navy);
  color: var(--sand-soft);
  box-shadow: 0 2px 8px rgba(26, 40, 64, 0.25);
}

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  border: none;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  color: var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong);
  color: var(--navy);
}
.btn--primary {
  background: linear-gradient(180deg, #FAF4E9 0%, #ECDFCB 100%);
  color: var(--navy);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px var(--gold);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px var(--gold-deep);
}
.btn--ghost {
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sand-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  color: var(--sand-soft);
}
.btn--accent {
  background: var(--terra);
  color: var(--sand-soft);
  box-shadow: 0 10px 24px rgba(198, 107, 79, 0.30), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn--accent:hover { color: var(--sand-soft); background: #b15e44; }
.btn-icon { width: 18px; height: 18px; display: inline-block; }

/* ================================================================
   6. SECTIONS
   ================================================================ */
.section {
  padding: 84px 0;
  background: var(--sand);
}
.section--navy {
  background: var(--gradient-navy-soft);
  color: var(--sand-soft);
  position: relative;
  overflow: hidden;
}
.section--navy::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.section--navy h2,
.section--navy h3 { color: var(--sand-soft); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
.section--navy .section-eyebrow {
  color: rgba(245, 235, 221, 0.65);
}
.section-sub {
  font-size: 17.5px;
  color: var(--navy-mute);
  line-height: 1.55;
  max-width: 640px;
}
.section--navy .section-sub {
  color: rgba(245, 235, 221, 0.72);
}

/* ================================================================
   7. FEATURE CARDS
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid--2col { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line-strong);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(26, 40, 64, 0.06);
}
.feature-icon svg {
  width: 24px; height: 24px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--navy);
}
.feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy-mute);
  margin-bottom: 0;
}

/* Card style used by simpler pages (privacy/terms section blocks) */
.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
}

/* Page hero used by nisab/privacy/terms */
.page-hero {
  position: relative;
  background: var(--gradient-navy-soft);
  color: var(--sand-soft);
  padding: 72px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -25%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.18) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--sand-soft);
  margin-bottom: 14px;
  line-height: 1.06;
}
.page-hero h1 .accent {
  position: relative;
  color: var(--gold-soft);
}
.page-hero .page-hero-sub {
  font-size: 17px;
  color: rgba(245, 235, 221, 0.78);
  max-width: 680px;
  line-height: 1.55;
}
.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(245, 235, 221, 0.65);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.page-hero .breadcrumb a {
  color: rgba(245, 235, 221, 0.85);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--gold-soft); }

/* Long-form article wrapper for privacy / terms / nisab body */
.article {
  background: var(--sand);
  padding: 56px 0 88px;
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.article-inner h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 2.2em;
  margin-bottom: 0.5em;
}
.article-inner h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.article-inner p,
.article-inner li {
  color: var(--navy-soft);
  line-height: 1.62;
  font-size: 16.5px;
}
.article-inner a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 40, 64, 0.3);
}
.article-inner a:hover {
  color: var(--terra);
  text-decoration-color: var(--terra);
}
.article-inner .muted {
  color: var(--navy-mute);
  font-size: 14.5px;
}

/* ================================================================
   8. TOOLS / NISAB PREVIEW
   ================================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.tools-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(201, 169, 97, 0.16);
  color: var(--gold-soft);
  border: 1px solid rgba(201, 169, 97, 0.32);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tools-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.tools-grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}
.tools-grid p {
  font-size: 16.5px;
  color: rgba(245, 235, 221, 0.78);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 28px;
}
.tools-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--sand-soft);
  color: var(--navy);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px var(--gold);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tools-cta:hover {
  transform: translateY(-2px);
  color: var(--navy);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px var(--gold-deep);
}
.nisab-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 50px rgba(0, 0, 0, 0.22);
}
.nisab-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nisab-row:last-child { border-bottom: none; }
.nisab-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(245, 235, 221, 0.92);
}
.nisab-label small {
  display: block;
  font-size: 11.5px;
  color: rgba(245, 235, 221, 0.40);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.nisab-value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sand-soft);
}
.nisab-value.gold { color: var(--gold-soft); }

/* ================================================================
   9. CTA BANNER (the one terracotta moment)
   ================================================================ */
.cta {
  padding: 90px 0;
  background: var(--sand);
}
.cta-banner {
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(201, 169, 97, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--terra) 0%, #A8492D 100%);
  border-radius: 32px;
  padding: 64px 56px;
  text-align: center;
  color: var(--sand-soft);
  box-shadow:
    0 30px 70px rgba(198, 107, 79, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(201, 169, 97, 0.30);
  position: relative;
  overflow: hidden;
  margin: 0;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -80px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.30) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -90px; right: -50px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-banner-eyebrow::before, .cta-banner-eyebrow::after {
  content: "";
  width: 22px; height: 1px;
  background: rgba(224, 200, 147, 0.6);
}
.cta-banner h2,
.cta-banner h3 {
  color: var(--sand-soft);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.cta-price {
  font-size: 18px;
  color: rgba(250, 244, 233, 0.86);
  margin-bottom: 32px;
}
.cta-price strong {
  color: var(--gold-soft);
  font-weight: 700;
}
.cta-banner .btn--primary {
  background: var(--sand-soft);
  color: var(--terra);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(201, 169, 97, 0.45);
}
.cta-banner .btn--primary:hover {
  background: #fff;
  transform: translateY(-2px);
  color: var(--terra);
}
.cta-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(250, 244, 233, 0.65);
}

/* ================================================================
   10. FORMS + CALCULATOR (live-prices, result-card, faq)
   ================================================================ */
.live-prices {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--navy-mute);
  flex-wrap: wrap;
}
.live-prices span {
  background: var(--paper);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-prices strong { color: var(--navy); font-weight: 700; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--navy);
}

input[type="number"],
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--navy);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}

.hint {
  font-size: 0.85rem;
  color: var(--navy-mute);
  margin-top: 0.4rem;
}

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

.result-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--sand-soft);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  text-align: center;
  margin: 1.75rem 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 40px -10px rgba(26, 40, 64, 0.30),
    inset 0 1px 0 rgba(201, 169, 97, 0.30),
    inset 0 0 0 1px rgba(201, 169, 97, 0.18);
}
.result-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.30) 0%, transparent 70%);
  pointer-events: none;
}
.result-card .label {
  font-size: 0.8rem;
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.result-card .value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.4rem 0;
  color: var(--sand-soft);
}
.result-card .verdict {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-top: 0.6rem;
  color: var(--sand-soft);
}
.result-card.below {
  background: linear-gradient(135deg, var(--green) 0%, #3f6d4d 100%);
  box-shadow: 0 18px 40px -10px rgba(74, 124, 89, 0.30), inset 0 1px 0 rgba(255,255,255,0.10);
}
.result-card.below::before { background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, transparent 70%); }
.result-card.below .label { color: rgba(245, 235, 221, 0.85); }

.faq details {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  outline: none;
  font-size: 16px;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--terra); }
.faq details[open] summary { margin-bottom: 12px; }
.faq details p { margin-bottom: 0; color: var(--navy-soft); line-height: 1.62; }

.muted { color: var(--navy-mute); font-size: 0.9rem; }

/* ================================================================
   11. FOOTER
   ================================================================ */
footer.site-footer,
.site-footer {
  padding: 50px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--sand);
  color: var(--navy);
  font-size: 14.5px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--navy-mute);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--navy); }
.footer-copy {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 24px 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--navy-mute);
  opacity: 0.75;
  border-top: 1px solid var(--line);
}

/* ================================================================
   12. REVEAL — IntersectionObserver fade-in
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   13. RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .features-grid,
  .features-grid--2col { grid-template-columns: repeat(2, 1fr); }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 600px) {
  .wrap, .nav { padding: 0 20px; }
  .features-grid, .features-grid--2col { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 28px; }
  .section { padding: 64px 0; }
  .cta { padding: 60px 0; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { gap: 18px; }
  .page-hero { padding: 56px 0 44px; }
  .article { padding: 40px 0 64px; }
  .article-inner { padding: 0 20px; }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .brand { font-size: 17px; }
  .lang-switch a { padding: 6px 10px; font-size: 13px; }
}

/* RTL refinements */
body[dir="rtl"] .lang-switch a { margin-inline-start: 0; }
body[dir="rtl"] .result-card .value { direction: ltr; display: inline-block; }
/* Numbers + currency codes stay LTR even inside Arabic context */
body[dir="rtl"] .balance-value,
body[dir="rtl"] .balance-meta-item strong,
body[dir="rtl"] .tx-amt,
body[dir="rtl"] .nisab-value,
body[dir="rtl"] .live-prices strong,
body[dir="rtl"] .cta-price strong,
body[dir="rtl"] .hero-meta span {
  direction: ltr;
  unicode-bidi: isolate;
}
/* Pixel-side buttons mirror to the left side in RTL */
body[dir="rtl"] .phone::before,
body[dir="rtl"] .phone::after {
  right: auto;
  left: -2px;
  border-radius: 2px 0 0 2px;
}
/* Status-bar in phone mockup: clock should sit visually where Arabic eye expects */
body[dir="rtl"] .phone-statusbar { direction: rtl; }
body[dir="rtl"] .phone-statusbar .clock { direction: ltr; unicode-bidi: isolate; }
/* Greeting line: ensure right-to-left alignment naturally */
body[dir="rtl"] .screen-greeting,
body[dir="rtl"] .screen-greeting-eyebrow,
body[dir="rtl"] .screen-greeting-name { text-align: right; }
body[dir="rtl"] .tx-amt { text-align: left; }
/* Hero arrows: flip the trailing arrow span (any `aria-hidden` span next to text) */
body[dir="rtl"] .btn .arrow,
body[dir="rtl"] .tools-cta .arrow { transform: scaleX(-1); display: inline-block; }
/* Balance "currency" suffix: keep ltr but pad on the correct logical side */
body[dir="rtl"] .balance-value .currency { margin-left: 0; margin-inline-start: 4px; }

/* ================================================================
   14. PREFERS-REDUCED-MOTION — non-negotiable accessibility
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
