/* ============================================
   STATUS SAVER — SHARED STYLESHEET
   Used by all 9 language pages
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f9f7;
  --bg-dark: #0a1f1a;
  --ink: #0a1f1a;
  --ink-soft: #3d4f48;
  --muted: #6b7a73;
  --line: #e5ebe7;
  --brand: #128c7e;
  --brand-dark: #0a5d54;
  --brand-light: #25d366;
  --brand-glow: rgba(37, 211, 102, 0.25);
  --coral: #ff6b6b;
  --gold: #ffd166;
  --shadow-sm: 0 2px 8px rgba(10, 31, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 31, 26, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* RTL support for Arabic */
body.rtl { direction: rtl; text-align: right; }
body.rtl .step { flex-direction: row-reverse; }
body.rtl .feature-num { margin-right: 0; margin-left: 12px; }

/* ============= HEADER ============= */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.lang-switcher {
  position: relative;
}
.lang-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.lang-toggle:hover { background: white; box-shadow: var(--shadow-sm); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 200px;
  display: none;
  z-index: 200;
}
body.rtl .lang-menu { right: auto; left: 0; }
.lang-menu.open { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}
.lang-menu a:hover { background: var(--bg-soft); color: var(--brand); }
.lang-menu a.active { background: var(--brand); color: white; font-weight: 600; }

/* ============= HERO ============= */
.hero {
  position: relative;
  padding: 64px 24px 48px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37, 211, 102, 0.08), transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(18, 140, 126, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.12);
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.05); }
}
h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
}
h1 .accent {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 540px;
}
@media (max-width: 880px) { .hero-lede { margin-left: auto; margin-right: auto; } }

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
@media (max-width: 880px) { .hero-stats { justify-content: center; } }
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

/* ============= DOWNLOAD BUTTON ============= */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: white;
  padding: 18px 36px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 30px var(--brand-glow), 0 4px 8px rgba(18, 140, 126, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.download-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.download-btn:hover::before { left: 100%; }
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--brand-glow), 0 8px 16px rgba(18, 140, 126, 0.2);
}
.download-btn:active { transform: translateY(0); }
.download-btn svg { width: 22px; height: 22px; }

/* ============= PHONE MOCKUP ============= */
.phone-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9/19;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.25),
    0 0 0 2px #2a2a2a,
    inset 0 0 0 2px #333;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s;
}
@media (max-width: 880px) { .phone-frame { transform: none; max-width: 260px; } }
.phone-frame:hover { transform: perspective(1000px) rotateY(-4deg) rotateX(1deg); }
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* ============= AD SLOT STYLES ============= */
.ad-slot {
  margin: 36px auto;
  text-align: center;
  max-width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ad-slot-inline {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ============= MAIN CONTENT ============= */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px;
}
.content {
  max-width: 780px;
  margin: 0 auto;
}
h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 64px 0 20px;
  line-height: 1.2;
  position: relative;
  padding-left: 18px;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  border-radius: 2px;
}
body.rtl h2 { padding-left: 0; padding-right: 18px; }
body.rtl h2::before { left: auto; right: 0; }

h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}
p { margin-bottom: 18px; color: var(--ink-soft); }
p strong { color: var(--ink); font-weight: 600; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0 0 22px 24px; }
li { margin-bottom: 8px; color: var(--ink-soft); }

/* ============= QUICK FACTS CARD ============= */
.quick-facts {
  background: linear-gradient(135deg, #ffffff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}
.quick-facts h3 { margin-top: 0; }
.quick-facts table { width: 100%; border-collapse: collapse; }
.quick-facts td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.quick-facts td:first-child { color: var(--muted); width: 45%; font-weight: 500; }
.quick-facts td:last-child { color: var(--ink); font-weight: 600; text-align: right; }
body.rtl .quick-facts td:last-child { text-align: left; }
.quick-facts tr:last-child td { border-bottom: none; }

/* ============= FEATURES GRID ============= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 36px;
}
.feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
  color: white;
  box-shadow: 0 6px 16px var(--brand-glow);
}
.feature h4 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature p { font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ============= SCREENSHOT GALLERY ============= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 28px 0 36px;
  max-width: 900px;
}
.shot {
  aspect-ratio: 9/16;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.shot:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-soft), white);
}

/* ============= STEPS ============= */
.steps { margin: 28px 0 36px; }
.step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  box-shadow: 0 6px 16px var(--brand-glow);
}
.step-body h4 { font-family: 'Fraunces', serif; font-size: 19px; margin-bottom: 6px; }
.step-body p { font-size: 15.5px; margin: 0; }

/* ============= COMPARISON TABLE ============= */
.comparison {
  overflow-x: auto;
  margin: 28px 0 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-sm);
}
.comparison table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 500px; }
.comparison th, .comparison td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
body.rtl .comparison th, body.rtl .comparison td { text-align: right; }
.comparison th {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  font-weight: 600;
  font-size: 14px;
}
.comparison td.yes { color: var(--brand); font-weight: 600; }
.comparison td.no { color: var(--coral); font-weight: 600; }
.comparison tr:last-child td { border-bottom: none; }

/* ============= CALLOUT ============= */
.callout {
  background: linear-gradient(135deg, #fff8e8, #fef0d4);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 28px 0;
}
body.rtl .callout { border-left: none; border-right: 4px solid var(--gold); }
.callout p:last-child { margin-bottom: 0; }

/* ============= FAQ ============= */
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: #d3dcd7; }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--brand);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ============= CTA BLOCK ============= */
.cta-block {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h3 { color: white; font-size: 28px; margin-bottom: 12px; font-family: 'Fraunces', serif; }
.cta-block p { color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }
.cta-block .download-btn {
  background: white;
  color: var(--brand-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.cta-block .download-btn:hover { background: var(--bg-soft); }

/* ============= MODAL ============= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s;
  text-align: center;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-radius: 18px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 32px var(--brand-glow);
}
.modal-icon svg { width: 32px; height: 32px; }
.modal h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}
.modal p { font-size: 15px; margin-bottom: 24px; color: var(--ink-soft); }
.modal-buttons { display: flex; gap: 12px; }
.modal-btn {
  flex: 1;
  padding: 13px 20px;
  border-radius: 100px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.modal-btn-yes {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: white;
  box-shadow: 0 6px 16px var(--brand-glow);
}
.modal-btn-yes:hover { transform: translateY(-1px); box-shadow: 0 10px 22px var(--brand-glow); }
.modal-btn-no {
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.modal-btn-no:hover { background: var(--line); }

/* ============= FOOTER ============= */
footer {
  background: var(--bg-dark);
  color: #c8d2cd;
  padding: 56px 24px 28px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
footer h4 {
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  margin-bottom: 14px;
}
footer ul { list-style: none; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #9aa6a1; text-decoration: none; font-size: 14.5px; }
footer a:hover { color: white; }
.footer-desc { color: #9aa6a1; font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.footer-bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: #6b7872;
}

/* ============= STICKY MOBILE BOTTOM BUTTON ============= */
.sticky-mobile {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 90;
}
@media (max-width: 720px) {
  .sticky-mobile { display: block; }
  .sticky-mobile .download-btn { width: 100%; justify-content: center; padding: 16px; }
}

/* TOC */
.toc {
  background: linear-gradient(135deg, white, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.toc h4 {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 30px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: 6px; font-size: 14.5px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--brand); }
