/* ==========================================================================
   Muslim Pal - muslimpal.io
   Single stylesheet: tokens, base, layout, sections, components, motion.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --green-500: #1fc98f;
  --green-600: #14b57f;
  --green-700: #0f8f66;
  --green-900: #0f3916;
  --teal-400: #10cebc;
  --teal-500: #0fced0;
  --mint-50: #f2fbf8;
  --mint-100: #e3f7f0;
  --mint-200: #c6efe1;
  --ink-900: #0e1f1a;
  --ink-700: #2f3f3a;
  --ink-500: #5a6b65;
  --ink-300: #9aa8a3;
  --line: #e2ece8;
  --white: #ffffff;
  --gold: #f4b93b;

  --grad-brand: linear-gradient(135deg, #2bd490 0%, #10cebc 100%);
  --grad-brand-soft: linear-gradient(135deg, #2bd490 0%, #14cfb4 60%, #0fced0 100%);

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", "Traditional Arabic", Tahoma, serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 26, 0.06), 0 2px 8px rgba(14, 31, 26, 0.05);
  --shadow: 0 6px 20px rgba(14, 31, 26, 0.08), 0 2px 6px rgba(14, 31, 26, 0.05);
  --shadow-lg: 0 24px 60px rgba(14, 31, 26, 0.16), 0 8px 20px rgba(14, 31, 26, 0.08);

  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-900); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(20, 181, 127, 0.55); outline-offset: 3px; border-radius: 6px; }
[dir="rtl"] { font-family: var(--font-arabic); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink-900); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tint { background: var(--mint-50); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { font-size: 1.08rem; color: var(--ink-500); margin: 14px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-brand); }
.text-center { text-align: center; }
.brand-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(20, 181, 127, 0.35); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(20, 181, 127, 0.45); }
.btn--ghost { background: #fff; color: var(--ink-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-500); color: var(--green-700); }
.btn--white { background: #fff; color: var(--green-700); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges a { display: inline-block; border-radius: 8px; transition: transform .18s ease, filter .18s ease; }
.store-badges a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.store-badges img { height: 52px; width: auto; }
.store-badges--sm img { height: 40px; }
.store-badges--lg img { height: 56px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(14, 31, 26, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--ink-700); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav__links a:hover { color: var(--green-700); text-decoration: none; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad-brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__mobile-cta { display: none; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; padding: 0;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(14,31,26,0.08);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__mobile-cta { display: block; color: var(--green-700) !important; font-weight: 600; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 0;
  background: radial-gradient(1200px 600px at 85% -10%, var(--mint-100) 0%, rgba(255,255,255,0) 60%),
              radial-gradient(800px 500px at -10% 110%, var(--mint-100) 0%, rgba(255,255,255,0) 60%),
              #fff;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: 560px; }
.hero__copy { position: relative; z-index: 2; padding-bottom: clamp(40px, 6vw, 80px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 0.82rem; font-weight: 500; color: var(--ink-700);
  margin-bottom: 22px;
}
.hero__badge img { width: 24px; height: 24px; border-radius: 6px; }
.hero__badge b { color: var(--green-700); font-weight: 600; }
.hero h1 { margin-bottom: 18px; }
.hero h1 b { font-weight: 700; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-500); max-width: 540px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; color: var(--ink-500); font-size: 0.9rem; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof strong { color: var(--ink-900); font-weight: 600; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

.hero__visual { position: relative; z-index: 1; height: 100%; min-height: 640px; }
.hero__blob {
  position: absolute; inset: auto; width: 640px; height: 640px; border-radius: 50%;
  background: var(--grad-brand-soft); opacity: 0.16; filter: blur(60px);
  left: 50%; top: 50%; transform: translate(-45%, -45%);
  animation: blobDrift 14s ease-in-out infinite alternate;
}
.phone {
  position: absolute; width: min(300px, 46vw); filter: drop-shadow(0 30px 40px rgba(14,31,26,0.28));
  will-change: transform;
}
.phone--a { left: 6%; top: 3%; width: min(280px, 44vw); z-index: 2; animation: floatA 7s ease-in-out infinite; }
.phone--b { right: 2%; top: 17%; width: min(250px, 40vw); z-index: 1; animation: floatB 8.5s ease-in-out infinite; }
.hero__ring {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1.5px dashed rgba(20,181,127,0.35);
  left: 50%; top: 50%; transform: translate(-50%, -48%); animation: spin 60s linear infinite;
}
.hero__ring::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-brand); top: -7px; left: calc(50% - 7px); box-shadow: 0 0 0 6px rgba(43,212,144,0.2); }
.hero__pill {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  font-size: 0.85rem; font-weight: 500; color: var(--ink-900); z-index: 3;
}
.hero__pill .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-100); color: var(--green-700); }
.hero__pill .ico svg { width: 18px; height: 18px; }
.hero__pill small { display: block; color: var(--ink-500); font-weight: 400; font-size: 0.75rem; }
.hero__pill--1 { left: -4%; bottom: 20%; animation: floatB 9s ease-in-out infinite; }
.hero__pill--2 { right: -2%; top: 8%; animation: floatA 8s ease-in-out infinite 1s; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero__copy { text-align: center; padding-bottom: 20px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero__visual { min-height: 480px; margin: 0 -10px; }
  .phone { width: min(260px, 44vw); }
  .phone--a { left: 8%; top: 4%; }
  .phone--b { right: 8%; top: 16%; width: min(230px, 40vw); }
  .hero__ring { width: 420px; height: 420px; }
  .hero__pill--1 { left: 2%; bottom: 8%; }
  .hero__pill--2 { right: 2%; top: 0; }
  .hero__blob { width: 480px; height: 480px; }
}
@media (max-width: 480px) {
  .hide-sm { display: none !important; }
  .hero__badge { font-size: 0.78rem; }
  .store-badges--lg img { height: 46px; }
  .hero__visual { min-height: 400px; }
  .phone { width: 46vw; }
  .phone--a { left: 3%; }
  .phone--b { right: 3%; width: 42vw; }
  .hero__ring { width: 340px; height: 340px; }
  .hero__pill { font-size: 0.78rem; padding: 8px 10px; }
  .hero__pill--1 { bottom: 4%; }
}

/* ---------- Sub-apps strip ---------- */
.apps-strip { padding: 22px 0 8px; }
.apps-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
.app-tile {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 0.92rem; color: var(--ink-900); transition: transform .18s ease, box-shadow .18s ease;
}
.app-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.app-tile .app-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.app-tile .app-ico svg { width: 22px; height: 22px; }
.app-ico--quran { background: linear-gradient(135deg, #2bd490, #17b0a3); }
.app-ico--dua { background: linear-gradient(135deg, #4aa8ff, #2f6fe4); }
.app-ico--names { background: linear-gradient(135deg, #f37c4a, #b04dbf); }
.app-ico--qibla { background: linear-gradient(135deg, #ffb340, #f28c1a); }
.app-ico--prayer { background: linear-gradient(135deg, #7ac1ff, #f2a03a); }
@media (max-width: 600px) {
  .apps-strip .container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-tile { padding: 8px 12px 8px 8px; font-size: 0.85rem; gap: 10px; border-radius: 14px; }
  .app-tile .app-ico { width: 34px; height: 34px; border-radius: 10px; }
  .app-tile .app-ico svg { width: 18px; height: 18px; }
  .app-tile:last-child { grid-column: span 2; justify-self: center; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: var(--grad-brand); margin-bottom: 18px; font-size: 1.05rem; box-shadow: 0 8px 18px rgba(20,181,127,0.35);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-500); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 26px; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-200); }
.feature__ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--mint-100); color: var(--green-700);
}
.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature p { color: var(--ink-500); margin: 0; font-size: 0.96rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Hafith planner (calculator) ---------- */
.planner {
  background: var(--ink-900); color: #fff; border-radius: 28px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
}
.planner::before {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -240px; top: -300px;
  background: var(--grad-brand); opacity: 0.35; filter: blur(80px);
}
.planner__copy { padding: clamp(32px, 5vw, 60px); position: relative; z-index: 1; }
.planner__copy h2 { color: #fff; margin-bottom: 14px; }
.planner__copy p { color: rgba(255,255,255,0.78); max-width: 480px; }
.planner__widget { padding: clamp(28px, 5vw, 60px); position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.planner__card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: 26px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.planner__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.planner__label output { font-size: 1.6rem; font-weight: 700; color: #fff; }
.planner input[type="range"] { width: 100%; accent-color: #2bd490; height: 6px; margin: 4px 0 6px; }
.planner__pace { display: flex; justify-content: space-between; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 2px 18px; }
.planner__result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.planner__stat { background: rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 14px; min-width: 0; overflow: hidden; }
.planner__stat b { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.planner__stat span { font-size: 0.78rem; line-height: 1.3; display: block; margin-top: 4px; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planner__stat--wide { grid-column: 1 / -1; padding: 16px 16px 14px; }
.planner__stat--wide span { margin: 0 0 8px; font-size: 0.85rem; color: rgba(255,255,255,0.78); }
.planner__stat--wide b { font-size: 1.8rem; }
.planner__label output { min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.planner__note { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 18px 0 0; }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } .planner__widget { padding-top: 0; } }

/* ---------- Screens gallery ---------- */
.gallery { position: relative; }
.gallery__track {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 30px;
  scrollbar-width: none; -ms-overflow-style: none; scroll-padding: 0;
}
.gallery__track::-webkit-scrollbar { display: none; }
/* 4 screens fill the container on desktop, 2 on tablets, 1 (+ a peek) on phones – screens 2+3 form a pair, so the gap stays minimal */
.gallery__item { flex: 0 0 calc((100% - 3 * 8px) / 4); scroll-snap-align: start; margin: 0; }
.gallery__item img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); transition: transform .3s ease; }
.gallery__item img:hover { transform: translateY(-4px); }
@media (max-width: 900px) { .gallery__item { flex-basis: calc((100% - 8px) / 2); } }
@media (max-width: 560px) { .gallery__item { flex-basis: 78%; scroll-snap-align: center; } .gallery__item img { border-radius: 16px; } }
.gallery__nav { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.gallery__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, color .18s ease; color: var(--ink-900);
}
.gallery__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--green-700); }
.gallery__btn svg { width: 20px; height: 20px; }
.gallery__dots { display: flex; gap: 6px; align-items: center; margin: 0 8px; }
.gallery__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-200); transition: width .2s ease, background .2s ease; }
.gallery__dots i.is-active { width: 20px; border-radius: 4px; background: var(--green-500); }

/* ---------- Testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; grid-auto-flow: dense; }
.review {
  background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review::before { content: "\201C"; position: absolute; right: 22px; top: 8px; font-size: 4.5rem; line-height: 1; color: var(--mint-200); font-family: Georgia, serif; }
.review .stars svg { width: 16px; height: 16px; }
.review h3 { font-size: 1.02rem; }
.review p { color: var(--ink-500); margin: 0; font-size: 0.95rem; flex: 1; }
.review footer { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-500); }
.review .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-brand); font-size: 0.85rem; }
.review--wide { grid-column: span 2; }
.review--cta { background: var(--mint-50); border-style: dashed; justify-content: center; text-align: center; align-items: center; }
.review--cta::before { display: none; }
.review--cta h3 { font-size: 1.05rem; }
.review--cta p { flex: 0; }
.review--cta .store-badges { justify-content: center; }
.review--rating {
  background: var(--grad-brand); color: #fff; justify-content: center; align-items: flex-start; border: 0;
}
.review--rating::before { display: none; }
.review--rating .big { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.review--rating .stars { color: #fff; }
.review--rating p { color: rgba(255,255,255,0.9); flex: 0; }
.review--rating a { color: #fff; font-weight: 600; text-decoration: underline; }
@media (max-width: 960px) { .reviews { grid-template-columns: repeat(2, 1fr); } .review--wide { grid-column: span 2; }
.review--cta { background: var(--mint-50); border-style: dashed; justify-content: center; text-align: center; align-items: center; }
.review--cta::before { display: none; }
.review--cta h3 { font-size: 1.05rem; }
.review--cta p { flex: 0; }
.review--cta .store-badges { justify-content: center; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } .review--wide { grid-column: auto; } }

/* ---------- Languages ---------- */
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.lang-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lang-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; color: var(--ink-900);
  display: flex; align-items: center; gap: 12px; text-align: left; font-size: 1rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.lang-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--mint-200); }
.lang-btn span:last-child:not(.flag) { font-size: 0.8rem; font-weight: 500; color: var(--ink-500); }
.lang-btn .flag { width: 34px; height: 34px; border-radius: 10px; background: var(--mint-100); color: var(--green-700); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; flex: none; transition: background .18s ease, color .18s ease; }
.lang-btn[aria-selected="true"] { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(31, 201, 143, 0.18); }
.lang-btn[aria-selected="true"] .flag { background: var(--grad-brand); color: #fff; }
.lang-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 30px 24px; box-shadow: var(--shadow-sm);
  font-size: 1rem; line-height: 1.75; color: var(--ink-700); min-height: 420px;
}
.lang-panel { animation: fadeIn .35s ease; }
.lang-panel[hidden] { display: none; }
.lang-panel h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--ink-900); }
.lang-panel ul { margin: 8px 0 12px; padding-left: 20px; list-style: "- "; }
.lang-panel li { padding-left: 6px; margin-bottom: 4px; }
.lang-panel p:last-child { margin-bottom: 0; }
.lang-panel[dir="rtl"] { font-family: var(--font-arabic); font-size: 1.05rem; line-height: 2; }
.lang-panel[dir="rtl"] h3 { font-family: var(--font-arabic); font-size: 1.5rem; }
.lang-panel[dir="rtl"] ul { padding-left: 0; padding-right: 20px; }
.lang-panel[dir="rtl"] li { padding-left: 0; padding-right: 6px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .langs { grid-template-columns: 1fr; } .lang-card { min-height: 0; } }
@media (max-width: 420px) { .lang-btn { padding: 12px; font-size: 0.95rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--ink-900); position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .faq__body { padding: 0 22px 20px; color: var(--ink-500); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--grad-brand-soft); color: #fff; text-align: center;
  padding: var(--section-y) 0;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12);
}
.cta::before { width: 480px; height: 480px; left: -160px; top: -200px; }
.cta::after { width: 380px; height: 380px; right: -120px; bottom: -200px; }
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; }
.cta .store-badges { justify-content: center; margin-bottom: 30px; }
.cta__icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-weight: 600; font-size: 0.92rem;
  transition: background .18s ease, transform .18s ease; text-decoration: none !important;
}
.social-btn:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn small { font-weight: 500; opacity: 0.85; }

.social-icons { display: inline-flex; gap: 10px; align-items: center; }
.social-icon {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.social-icon:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon svg[fill="none"] { fill: none; }
.social-icons--footer { margin-top: 18px; }
.social-icons--footer .social-icon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); width: 40px; height: 40px; }
.social-icons--footer .social-icon:hover { background: rgba(255,255,255,0.14); color: #fff; }
.social-icons--footer .social-icon svg { width: 18px; height: 18px; }

/* Share popover */
.share-wrap { position: relative; display: inline-block; }
.share-menu {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--ink-900); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; z-index: 20;
  display: none; text-align: left;
}
.share-menu.is-open { display: block; }
.share-menu a, .share-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--ink-900); font-weight: 500; font-size: 0.92rem; text-decoration: none !important; text-align: left;
}
.share-menu a:hover, .share-menu button:hover { background: var(--mint-50); }
.share-menu svg { width: 18px; height: 18px; fill: currentColor; color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1714; color: rgba(255,255,255,0.7); padding: 48px 0 28px; font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 360px; margin: 0; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Legal page ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-700); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .box { background: var(--mint-50); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.legal .lead { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Large screens (Full HD and up) ---------- */
@media (min-width: 1920px) {
  :root { --container: 1600px; --section-y: 128px; }
  body { font-size: 17px; }
  h1 { font-size: 4.2rem; }
  h2 { font-size: 2.8rem; }
  .section-head { max-width: 800px; }
  .section-head p { font-size: 1.15rem; }
  .hero__grid { min-height: 680px; }
  .hero__visual { min-height: 720px; }
  .hero__lead { max-width: 600px; }
  .phone--a { width: 330px; left: 10%; }
  .phone--b { width: 295px; right: 6%; }
  .hero__ring { width: 600px; height: 600px; }
  .hero__blob { width: 760px; height: 760px; }
  .steps, .features, .reviews { gap: 28px; }
  .feature, .step { padding: 34px 32px; }
  .planner__copy, .planner__widget { padding: 64px; }
  /* all six screenshots fit side by side, the 2+3 pair stays together */
  .gallery__item { flex-basis: calc((100% - 5 * 8px) / 6); }
  .lang-card { padding: 36px 40px 30px; }
}

/* ---------- Language switcher (nav) ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 0.88rem; color: var(--ink-700); transition: border-color .18s ease, color .18s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--green-500); color: var(--green-700); }
.lang-switch summary svg { width: 17px; height: 17px; }
.lang-switch ul {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200; min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; margin: 0;
}
.lang-switch li { list-style: none; }
.lang-switch ul a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink-900); font-weight: 500; font-size: 0.92rem; }
.lang-switch ul a:hover { background: var(--mint-50); text-decoration: none; color: var(--green-700); }
.lang-switch ul a[data-cur] { background: var(--mint-100); color: var(--green-700); font-weight: 600; }
@media (max-width: 860px) {
  .lang-switch summary { padding: 8px 11px; }
  .lang-switch ul { right: -54px; }
}

/* ---------- RTL (Arabic) ---------- */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-arabic); }
html[lang="ar"] h1 { line-height: 1.35; } html[lang="ar"] h2 { line-height: 1.4; }
[dir="rtl"] .lang-btn, [dir="rtl"] .share-menu a, [dir="rtl"] .share-menu button { text-align: right; }
[dir="rtl"] .review::before { right: auto; left: 22px; }
[dir="rtl"] .faq summary { padding: 18px 22px 18px 56px; }
[dir="rtl"] .faq summary::after { right: auto; left: 20px; }
[dir="rtl"] .gallery__track { direction: ltr; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
[dir="rtl"] .hero__pill--1 { left: auto; right: -4%; }
[dir="rtl"] .hero__pill--2 { right: auto; left: -2%; }
[dir="rtl"] .lang-panel:not([dir]) { direction: ltr; text-align: left; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes spin { to { transform: translate(-50%, -48%) rotate(360deg); } }
@keyframes blobDrift { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-40%, -42%) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__visual, .cta, .gallery__nav, .nav__toggle { display: none !important; }
  body { color: #000; }
}
