/* =========================================================
   أثر — Landing page styles
   Palette: deep evergreen · warm cream · muted rose · soft gold
   ========================================================= */

:root {
  --green-900: #112a1a;
  --green-800: #173a24;
  --green-700: #1f4a2e;
  --green-500: #3f7c52;
  --green-400: #5a9b6e;
  --green-100: #e3efe5;

  --cream:     #faf4ec;
  --cream-2:   #f3e7d8;
  --paper:     #fffaf3;

  --rose:      #c7948c;
  --rose-soft: #e7c7c0;
  --gold:      #c2a067;
  --gold-soft: #e7d6b3;

  --ink:       #25302a;
  --muted:     #6f7c73;
  --line:      #ece2d6;

  --maxw: 1160px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(37, 48, 42, .05);
  --shadow-md: 0 18px 50px -20px rgba(23, 58, 36, .25);
  --shadow-lg: 0 40px 90px -30px rgba(23, 58, 36, .35);

  --font-body: "Tajawal", system-ui, "Segoe UI", sans-serif;
  --font-display: "Amiri", "Tajawal", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.nowrap { white-space: nowrap; }

/* soft paper wash over the whole page */
.page-wash {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(199,148,140,.16), transparent 60%),
    radial-gradient(55% 45% at 5% 8%, rgba(90,155,110,.12), transparent 60%),
    radial-gradient(50% 40% at 95% 70%, rgba(194,160,103,.10), transparent 60%),
    var(--cream);
}

/* subtle Arabic geometric pattern (eight-pointed star / Rub el Hizb) */
.page-pattern {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231f4a2e' stroke-opacity='0.06' stroke-width='1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Cpath d='M32 11 L53 32 L32 53 L11 32 Z'/%3E%3Ccircle cx='32' cy='32' r='3.2'/%3E%3Cpath d='M0 32 L11 32 M53 32 L64 32 M32 0 L32 11 M32 53 L32 64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
}

/* gold motif overlay for dark sections */
.pattern-gold {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c2a067' stroke-opacity='0.16' stroke-width='1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Cpath d='M32 11 L53 32 L32 53 L11 32 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --b-bg: var(--green-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .95em 1.8em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b-bg); color: #fff;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 12px 26px -12px rgba(23,58,36,.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(23,58,36,.6); background: var(--green-700); }
.btn-sm { padding: .65em 1.3em; font-size: .95rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250,244,236,.72);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(250,244,236,.92);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow-sm); }

.nav { display: flex; gap: 30px; margin-inline-start: auto; }
.nav a { font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); border-radius: 2px; transition: width .25s ease;
}
.nav a:hover { color: var(--green-700); }
.nav a:hover::after { width: 100%; }
.nav-cta { margin-inline-start: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-inline-start: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-800); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 6px; padding: 14px 24px 22px; background: rgba(250,244,236,.98); border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: 0; margin-top: 10px; color: #fff; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .9rem; font-weight: 700; letter-spacing: .5px;
  color: var(--green-700); background: var(--green-100);
  padding: .5em 1.1em; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow-rose { color: #a9655c; background: rgba(199,148,140,.18); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700; color: var(--green-900); line-height: 1.18; letter-spacing: -.5px;
}
.hero-title .ink {
  color: var(--green-700);
}
.hero-lead { margin-top: 24px; font-size: 1.18rem; color: var(--muted); max-width: 36ch; }
.hero-lead .nowrap { color: var(--green-700); font-weight: 700; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--green-800); color: #fff;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  transition: transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 14px 28px -16px rgba(23,58,36,.6);
}
.store-btn:hover { transform: translateY(-3px); background: var(--green-700); box-shadow: 0 20px 36px -16px rgba(23,58,36,.7); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-btn-text small { font-size: .72rem; opacity: .8; font-weight: 400; }
.store-btn-text strong { font-size: 1.12rem; font-weight: 700; }

.store-buttons-light .store-btn { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.store-buttons-light .store-btn:hover { background: var(--paper); color: var(--green-900); }

.hero-note { margin-top: 20px; font-size: .92rem; color: var(--muted); }

/* hero visual / phone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 286px; aspect-ratio: 286 / 600;
  background: #fff; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; background: #0c1f14; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen { border-radius: 33px; overflow: hidden; height: 100%; background: var(--cream); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-tilt { transform: rotate(-4deg); }

.floating-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px;
  font-weight: 700; font-size: .92rem; color: var(--green-800);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
}
.floating-card-a { top: 16%; inset-inline-end: -6%; animation: float 5s ease-in-out infinite; }
.floating-card-b { bottom: 14%; inset-inline-start: -4%; color: var(--rose); animation: float 6s ease-in-out infinite .6s; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(90,155,110,.22); }

.hero-blob { position: absolute; border-radius: 50%; filter: blur(48px); z-index: -1; }
.hero-blob-rose { width: 360px; height: 360px; background: rgba(199,148,140,.30); top: -60px; inset-inline-end: -40px; }
.hero-blob-green { width: 300px; height: 300px; background: rgba(90,155,110,.22); bottom: -40px; inset-inline-start: -60px; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =========================================================
   Verse ribbon
   ========================================================= */
.verse-ribbon { background: var(--green-800); color: #f4ecdd; padding: 22px 0; margin-top: 30px; position: relative; overflow: hidden; }
.verse-ribbon::before, .verse-ribbon::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(60px);
}
.verse-ribbon::before { background: rgba(194,160,103,.25); top: -120px; inset-inline-start: 10%; }
.verse-ribbon::after { background: rgba(199,148,140,.2); bottom: -140px; inset-inline-end: 8%; }
.verse-ribbon p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  text-align: center; position: relative; color: var(--gold-soft);
}

/* =========================================================
   Sections shared
   ========================================================= */
.section { padding: 92px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--green-900); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* About */
.about { background:
  linear-gradient(180deg, transparent, rgba(255,250,243,.6) 30%, rgba(255,250,243,.6) 70%, transparent); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.about-head .eyebrow { margin-bottom: 16px; }
.about-head .section-title { text-align: start; }
.about-body p { font-size: 1.18rem; color: #3c4a40; }
.about-body p + p { margin-top: 18px; }
.about-body strong { color: var(--green-700); font-weight: 800; }
.about-soft { color: var(--muted) !important; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--green-700); }
.stat-label { color: var(--muted); font-size: .98rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; fill: currentColor; }
.feature-card:nth-child(3n+2) .feature-icon { background: rgba(199,148,140,.18); color: #a9655c; }
.feature-card:nth-child(3n) .feature-icon { background: rgba(194,160,103,.2); color: #9a7b3c; }
.feature-card h3 { font-size: 1.3rem; color: var(--green-900); margin-bottom: 8px; }
.feature-card p { color: var(--muted); }

/* Showcase */
.showcase { background: var(--green-900); color: #eef3ec; overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.showcase .eyebrow { background: rgba(255,255,255,.08); color: var(--gold-soft); }
.showcase .eyebrow-rose { background: rgba(199,148,140,.2); color: var(--rose-soft); }
.showcase .section-title { color: #fff; text-align: start; }
.showcase-text > p { margin-top: 18px; color: #c6d3c7; font-size: 1.12rem; max-width: 44ch; }
.check-list { margin: 26px 0 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-inline-start: 34px; color: #d7e2d8; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--green-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.showcase .btn { background: #fff; color: var(--green-800); }
.showcase .btn:hover { background: var(--cream); }
.showcase-visual { display: flex; justify-content: center; }
.showcase .phone { box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); }

/* How it works */
.how { background: linear-gradient(180deg, transparent, rgba(255,250,243,.7), transparent); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; position: relative; box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--green-700), var(--green-500));
  margin-bottom: 18px; box-shadow: 0 10px 20px -8px rgba(23,58,36,.5);
}
.step h3 { font-size: 1.22rem; color: var(--green-900); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .98rem; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.accordion { display: grid; gap: 14px; }
.acc-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 4px 24px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s;
}
.acc-item[open] { border-color: var(--gold-soft); box-shadow: var(--shadow-md); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.12rem;
  color: var(--green-900); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.6rem; color: var(--gold);
  transition: transform .3s ease; line-height: 1;
}
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-body { overflow: hidden; }
.acc-body p { color: var(--muted); padding-bottom: 22px; }

/* Download CTA */
.download { padding-bottom: 110px; }
.download-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(140deg, var(--green-800), var(--green-900));
  color: #fff; border-radius: var(--radius-lg); padding: 70px 30px;
  box-shadow: var(--shadow-lg);
}
.download-blob { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(60px); background: rgba(194,160,103,.22); top: -160px; inset-inline-end: -120px; }
.download-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.7rem); position: relative; }
.download-card > p { margin-top: 14px; color: #d3ddd2; font-size: 1.12rem; position: relative; }
.download-card .store-buttons { justify-content: center; margin-top: 34px; position: relative; }

/* =========================================================
   Legal / Privacy page
   ========================================================= */
.legal-hero { position: relative; overflow: hidden; padding: 70px 0 24px; text-align: center; }
.legal-hero .hero-blob-rose { top: -120px; inset-inline-end: 50%; transform: translateX(50%); }
.legal-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--green-900); }
.legal-updated { margin-top: 12px; color: var(--muted); font-size: .98rem; }

.legal { padding-top: 40px; }
.legal-wrap {
  max-width: 800px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 60px); box-shadow: var(--shadow-md);
}
.legal-lead { font-size: 1.15rem; color: #3c4a40; }
.legal-lead strong { color: var(--green-700); font-weight: 800; }
.legal-wrap h2 {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--green-900);
  margin: 38px 0 12px; padding-top: 8px;
}
.legal-wrap p { color: var(--muted); }
.legal-wrap ul { display: grid; gap: 10px; margin: 8px 0; }
.legal-wrap li { position: relative; padding-inline-start: 24px; color: var(--muted); }
.legal-wrap li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.legal-wrap strong { color: var(--green-800); font-weight: 700; }
.legal-wrap a:not(.btn) { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap .btn.legal-back {
  display: inline-flex; color: #fff; text-decoration: none;
  margin-top: 40px;
}
.legal-wrap .btn.legal-back:hover { color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--green-900); color: #c6d3c7; padding: 60px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 340px; }
.footer-brand p { color: #9fb0a1; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 26px; align-content: center; }
.footer-nav a { color: #c6d3c7; transition: color .2s; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .9rem; color: #8fa191; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .showcase-grid { grid-template-columns: 1fr; }
  .about-head .section-title, .showcase .section-title { text-align: center; }
  .about-head { text-align: center; }
  .about-head .eyebrow { display: inline-flex; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .store-buttons { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .showcase-text { text-align: center; }
  .showcase-text > p { margin-inline: auto; }
  .check-list { max-width: 420px; margin-inline: auto; text-align: start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .store-btn { flex: 1; }
}
