/* ============================================================
   /تطبيق-ذكر/ — dikr app landing page. Builds on style.css tokens (light + body.dark).
   ============================================================ */
.ap-body {
  --ap-card: #ffffff;
  --ap-ink: #16242f;
  --ap-muted: #5f6b76;
  --ap-line: rgba(15, 40, 60, .08);
  --ap-shadow: 0 1px 2px rgba(15, 40, 60, .04), 0 12px 32px rgba(15, 40, 60, .08);
  --ap-gold: #c99a3a;
  --ap-green: #0f9d76;
}
body.dark.ap-body {
  --ap-card: #1c1c1e;
  --ap-ink: #f2f2f7;
  --ap-muted: #a1a1a8;
  --ap-line: rgba(255, 255, 255, .08);
  --ap-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0,0,0,.4);
  --ap-gold: #e6bd62;
  --ap-green: #34d3a2;
}
.ap-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 64px; color: var(--ap-ink); }
.ap-wrap a { color: var(--blue-dark); }
body.dark .ap-wrap a { color: var(--blue); }
.ap-crumbs { display: flex; gap: 8px; margin: 18px 0 0; font-size: 14px; color: var(--ap-muted); }
.ap-crumbs a { text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.ap-hero {
  position: relative; overflow: hidden; margin: 14px 0 0; padding: 48px 44px 0; border-radius: 32px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center;
  background: radial-gradient(80% 110% at 0% 0%, rgba(255,255,255,.18), transparent 60%),
              linear-gradient(135deg, #4cc2ff 0%, #1d8fe0 55%, #1466c2 100%);
  color: #fff; box-shadow: 0 24px 60px rgba(20, 102, 194, .28);
}
.ap-hero::before {
  content: ''; 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 56 56'%3E%3Cpath d='M28 6l5 9 10-3-3 10 9 6-9 6 3 10-10-3-5 9-5-9-10 3 3-10-9-6 9-6-3-10 10 3z' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
}
.ap-hero-text { position: relative; padding-bottom: 48px; }
.ap-hero-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.ap-hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.2; margin: 14px 0 12px; }
.ap-hero h1 span { display: block; font-size: .62em; color: #ffe08a; margin-top: 6px; }
.ap-lead { font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.92); max-width: 520px; }
.ap-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.ap-stores.is-center { justify-content: center; }
.ap-store { display: inline-flex; border-radius: 12px; transition: transform .15s; }
.ap-store:hover { transform: translateY(-2px); }
.ap-store img { height: 50px; width: auto; display: block; }
.ap-store-ext {
  align-items: center; gap: 9px; height: 50px; padding: 0 16px; background: #000; color: #fff !important; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); font-family: -apple-system, 'Segoe UI', sans-serif; font-weight: 600; font-size: 18px;
}
.ap-store-ext i { font-size: 24px; }
.ap-store-ext span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; direction: ltr; }
.ap-store-ext small { font-size: 10px; font-weight: 400; opacity: .85; }
.ap-store.is-mine { outline: 3px solid #ffe08a; outline-offset: 3px; }
.ap-final .ap-store.is-mine { outline-color: var(--blue); }
.ap-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14.5px; color: rgba(255,255,255,.88); }
.ap-facts b { color: #fff; margin-inline-end: 4px; }

.ap-hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 520px; }
.ap-hero-phones .ap-phone { position: absolute; bottom: -60px; width: 220px; }
.ap-hero-phones .ap-phone:nth-child(1) { transform: translateX(-150px) rotate(-8deg); opacity: .95; }
.ap-hero-phones .ap-phone:nth-child(2) { width: 250px; bottom: -40px; z-index: 2; }
.ap-hero-phones .ap-phone:nth-child(3) { transform: translateX(150px) rotate(8deg); opacity: .95; }

/* Phone frame */
.ap-phone {
  position: relative; margin: 0; padding: 9px; border-radius: 44px; background: #0d0f14;
  box-shadow: 0 0 0 2px #2a2e37 inset, 0 24px 50px rgba(5, 20, 40, .35);
}
.ap-phone img { display: block; width: 100%; height: auto; border-radius: 36px; background: #fff; }
.ap-notch { position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 12px; background: #0d0f14; z-index: 1; }

/* ── Sections ──────────────────────────────────────────────── */
.ap-sec { margin-top: 64px; }
.ap-sec > h2, .ap-ext h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.35; text-align: center; }
.ap-sec-sub { text-align: center; color: var(--ap-muted); font-size: 17px; margin: 8px auto 26px; max-width: 620px; }

.ap-plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ap-plat {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: 22px; text-decoration: none;
  background: var(--ap-card); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); color: var(--ap-ink) !important;
  transition: transform .2s, border-color .2s;
}
.ap-plat:hover { transform: translateY(-3px); border-color: var(--blue-border); }
.ap-plat > i { font-size: 30px; color: var(--blue-dark); }
body.dark .ap-plat > i { color: var(--blue); }
.ap-plat h3 { font-size: 20px; }
.ap-plat p { color: var(--ap-muted); font-size: 15px; line-height: 1.8; flex: 1; }
.ap-plat-cta { font-weight: 700; color: var(--blue-dark); font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 14px; }
body.dark .ap-plat-cta { color: var(--blue); }
.ap-plat.is-mine { border: 2px solid var(--blue); }
.ap-plat.is-mine::before { content: 'جهازك'; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--blue); color: #fff; }

.ap-feats { display: flex; flex-direction: column; gap: 30px; }
.ap-feat {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: 34px 48px; border-radius: 30px;
  background: var(--ap-card); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); overflow: hidden;
}
.ap-feat.is-flip { grid-template-columns: 1fr 300px; }
.ap-feat.is-flip .ap-feat-vis { order: 2; }
.ap-feat-vis { display: flex; justify-content: center; }
.ap-feat-vis .ap-phone { width: 250px; }
.ap-feat-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--blue-bg); color: var(--blue-dark); }
body.dark .ap-feat-tag { color: var(--blue); }
.ap-feat h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; margin: 12px 0 14px; }
.ap-feat ul, .ap-ext ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ap-feat li, .ap-ext li { position: relative; padding-inline-start: 28px; font-size: 17.5px; line-height: 1.8; }
.ap-feat li::before, .ap-ext li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ap-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Extension */
.ap-ext {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 44px 48px; border-radius: 32px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(70,191,255,.18), transparent 60%), var(--ap-card);
  border: 1px solid var(--blue-border); box-shadow: var(--ap-shadow);
}
.ap-ext h2 { text-align: start; margin: 12px 0 8px; }
.ap-ext-text > p { color: var(--ap-muted); font-size: 17px; line-height: 1.9; margin-bottom: 16px; }
.ap-ext li { font-size: 16px; }
.ap-ext-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ap-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 14px; font-weight: 700; text-decoration: none;
  background: var(--sys-bg); color: var(--ap-ink) !important; border: 1px solid var(--ap-line);
}
.ap-btn-main { background: linear-gradient(135deg, var(--blue), var(--blue-darker)); color: #fff !important; border: 0; box-shadow: 0 8px 22px rgba(13,136,196,.3); }
.ap-browser { border-radius: 16px; overflow: hidden; background: var(--sys-bg2); box-shadow: 0 24px 50px rgba(5,20,40,.22); border: 1px solid var(--ap-line); }
.ap-browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--sys-bg); direction: ltr; }
.ap-browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ap-browser-bar span:nth-child(2) { background: #febc2e; }
.ap-browser-bar span:nth-child(3) { background: #28c840; }
.ap-browser-bar b { margin-left: 10px; font: 600 13px -apple-system, 'Segoe UI', sans-serif; color: var(--ap-muted); }
.ap-browser-pop { padding: 16px 24px 0; display: flex; justify-content: flex-end; background: linear-gradient(180deg, var(--sys-bg2), var(--sys-bg)); }
.ap-browser-pop img { width: 300px; max-width: 100%; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,.18); }

/* Compare table */
.ap-table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--ap-line); background: var(--ap-card); box-shadow: var(--ap-shadow); margin-top: 22px; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ap-table th, .ap-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--ap-line); font-size: 16px; }
.ap-table thead th { font-family: -apple-system, 'Segoe UI', 'Amiri', sans-serif; font-size: 14.5px; color: var(--ap-muted); background: var(--sys-bg); }
.ap-table tbody th { text-align: start; font-weight: 600; }
.ap-table tbody tr:last-child > * { border-bottom: 0; }
.ap-table .fa-check { color: var(--ap-green); }
.ap-table td span { color: var(--ap-muted); }

/* Trust, FAQ, final */
.ap-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ap-trust > div { padding: 22px; border-radius: 22px; background: var(--ap-card); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.ap-trust i { font-size: 22px; color: var(--ap-gold); }
.ap-trust h3 { font-size: 19px; margin: 10px 0 6px; }
.ap-trust p { color: var(--ap-muted); line-height: 1.8; font-size: 15.5px; }
.ap-faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.ap-faq h2 { margin-bottom: 20px; }
.ap-faq details { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.ap-faq summary { cursor: pointer; font-weight: 700; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; }
.ap-faq details[open] summary::after { content: '−'; }
.ap-faq details p { margin-top: 10px; color: var(--ap-muted); line-height: 1.9; font-size: 16.5px; }
.ap-final { margin-top: 64px; text-align: center; padding: 44px 24px; border-radius: 30px; background: var(--ap-card); border: 1px solid var(--blue-border); box-shadow: var(--ap-shadow); }
.ap-final img { border-radius: 16px; }
.ap-final h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 12px 0 8px; }
.ap-final p { color: var(--ap-muted); font-size: 17px; line-height: 1.8; margin-bottom: 18px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ap-hero { grid-template-columns: 1fr; padding: 36px 24px 0; text-align: center; }
  .ap-hero-text { padding-bottom: 0; }
  .ap-lead { margin: 0 auto; }
  .ap-stores, .ap-facts { justify-content: center; }
  .ap-hero-phones { height: 430px; margin-top: 10px; }
  .ap-hero-phones .ap-phone { width: 180px; bottom: -70px; }
  .ap-hero-phones .ap-phone:nth-child(2) { width: 210px; bottom: -50px; }
  .ap-hero-phones .ap-phone:nth-child(1) { transform: translateX(-120px) rotate(-8deg); }
  .ap-hero-phones .ap-phone:nth-child(3) { transform: translateX(120px) rotate(8deg); }
  .ap-plats { grid-template-columns: 1fr 1fr; }
  .ap-feat, .ap-feat.is-flip { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px 0; }
  .ap-feat.is-flip .ap-feat-vis, .ap-feat .ap-feat-vis { order: 2; }
  .ap-feat-vis { height: 360px; overflow: hidden; align-items: flex-start; }
  .ap-feat-vis .ap-phone { width: 230px; }
  .ap-ext { grid-template-columns: 1fr; padding: 32px 22px; }
  .ap-trust { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ap-wrap { padding: 0 16px 48px; }
  .ap-hero { border-radius: 24px; padding: 28px 18px 0; }
  .ap-hero-phones { height: 330px; }
  .ap-hero-phones .ap-phone { width: 140px; border-radius: 30px; padding: 6px; }
  .ap-hero-phones .ap-phone img { border-radius: 25px; }
  .ap-hero-phones .ap-phone:nth-child(2) { width: 165px; }
  .ap-hero-phones .ap-phone:nth-child(1) { transform: translateX(-92px) rotate(-8deg); }
  .ap-hero-phones .ap-phone:nth-child(3) { transform: translateX(92px) rotate(8deg); }
  .ap-store img, .ap-store-ext { height: 44px; }
  .ap-plats { grid-template-columns: 1fr; }
  .ap-sec { margin-top: 48px; }
  .ap-feat li { font-size: 16.5px; }
  .ap-feat-vis { height: 320px; }
  .ap-feat-vis .ap-phone { width: 210px; }
}
