/* ── Day1T1 — الأنماط المشتركة بين الصفحة الرئيسية وصفحة المزايا ───────────
   ملفٌّ واحد كي لا تتباعد الصفحتان في الألوان والمسافات مع كل تعديل.
   الألوان مختارة لتباينٍ لا يقل عن 4.5:1 للنص العادي (WCAG AA) في الوضعين.
   بلا خطوطٍ ولا سكربتاتٍ من طرفٍ ثالث. */
:root{
  --brand:#00BFA5;          /* للزخرفة فقط — لا نصَّ أبيض عليه */
  --brand-strong:#00796B;   /* خلفية الأزرار: أبيض عليه 5.3:1 */
  --brand-deep:#00594F;
  --ink-accent:#00695C;     /* نصّ ملوّن وروابط: 6.6:1 على الأبيض */
  --ink:#132032; --muted:#4F5E70; --bg:#F5F9FB; --card:#FFFFFF; --line:#DCE4EC;
  --soft:#E6F5F2; --shadow:0 10px 30px rgba(15,35,55,.08);
  --pro-bg:#FBEFD9; --pro-ink:#7A4E0B;
  --plus-bg:#E7EAF6; --plus-ink:#3B4775;
  --warn-bg:#FDF4E6; --warn-line:#E0A458; --warn-ink:#6E5225;
  --radius:18px; --radius-sm:12px;
  --focus:#00695C;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{
    --ink:#EAF0F6; --muted:#A7B4C2; --bg:#0D151E; --card:#152030; --line:#26364A;
    --soft:#12302C; --ink-accent:#5FE0CD; --shadow:0 10px 30px rgba(0,0,0,.35);
    --pro-bg:#3A2C12; --pro-ink:#F3CB86; --plus-bg:#252C47; --plus-ink:#C3CBF0;
    --warn-bg:#2B2416; --warn-line:#8E6A33; --warn-ink:#EBCB98;
    --focus:#5FE0CD;
    color-scheme:dark;
  }
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *{transition:none!important} }
body{font-family:system-ui,-apple-system,'Segoe UI','Noto Sans Arabic','Noto Sans',Tahoma,Arial,sans-serif;
     background:var(--bg);color:var(--ink);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
:lang(ar) body, html[lang="ar"] body{line-height:1.85}
a{color:var(--ink-accent)}
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
@media (min-width:600px){ .wrap{padding:0 24px} }
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;inset-inline-start:12px;top:-60px;z-index:50;background:var(--brand-strong);color:#fff;
      padding:10px 16px;border-radius:10px;font-weight:700;text-decoration:none}
.skip:focus{top:10px}

/* ── الرأس ─────────────────────────────────────────────────────────── */
header.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 90%,transparent);
       backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:10px;min-height:60px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.12rem;text-decoration:none;color:var(--ink);min-width:0}
.logo img{width:38px;height:38px;border-radius:10px;display:block;flex:none}
.logo small{font-weight:600;color:var(--muted);font-size:.8rem;white-space:nowrap}
.menu{display:flex;gap:20px;font-size:.92rem;font-weight:600}
.menu a{text-decoration:none;color:var(--muted);padding:6px 2px}
.menu a:hover{color:var(--ink-accent)}
.langs{display:flex;gap:4px;flex:none}
.langs button{background:none;border:1px solid var(--line);color:var(--muted);border-radius:999px;
              min-height:34px;padding:4px 11px;cursor:pointer;font-size:.82rem;font-family:inherit;line-height:1}
.langs button[aria-pressed="true"]{background:var(--brand-strong);border-color:var(--brand-strong);color:#fff;font-weight:700}
/* على الشاشات الضيقة يصير التنقّل سطرًا ثانيًا يُمرَّر أفقيًّا داخل نفسه، فلا يضيع. */
@media (max-width:900px){
  .nav{flex-wrap:wrap;row-gap:4px;padding-block:8px 4px}

  .menu{order:3;width:100%;overflow-x:auto;gap:14px;font-size:.86rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .menu::-webkit-scrollbar{display:none}
  .menu a{white-space:nowrap;padding:4px 0 6px}
  section[id]{scroll-margin-top:110px}
}
@media (max-width:640px){ .logo small{display:none} }

/* ── الأزرار ───────────────────────────────────────────────────────── */
.ctas{display:flex;gap:12px;flex-wrap:wrap}
.cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--brand-strong);
     color:#fff;text-decoration:none;font-weight:800;padding:13px 22px;border-radius:14px;font-size:1rem;min-height:48px;
     box-shadow:0 8px 20px rgba(0,121,107,.25);transition:transform .15s,background .15s}
.cta:hover{transform:translateY(-2px);background:var(--brand-deep)}
.cta svg{flex:none}
.cta-ios{background:#1B2531;box-shadow:0 8px 20px rgba(11,17,23,.25)}
.cta-ios:hover{background:#0B1117}
@media (prefers-color-scheme: dark){ .cta-ios{background:#EAF0F6;color:#0B1117} .cta-ios:hover{background:#fff} }
.more{display:inline-block;margin-top:16px;font-weight:700;text-decoration:none}
.more:hover{text-decoration:underline}

/* ── الشارات ───────────────────────────────────────────────────────── */
.pill{display:inline-block;font-size:.72rem;font-weight:800;border-radius:999px;padding:2px 9px;line-height:1.6;
      vertical-align:middle;margin-inline-start:6px;white-space:nowrap;border:1px solid transparent}
.pill.free{background:var(--soft);color:var(--ink-accent)}
.pill.pro{background:var(--pro-bg);color:var(--pro-ink)}
.pill.plus{background:var(--plus-bg);color:var(--plus-ink)}
.pill.plat{background:transparent;color:var(--muted);border-color:var(--line);font-weight:700}

/* ── الأقسام ───────────────────────────────────────────────────────── */
section{padding:40px 0}
section[id]{scroll-margin-top:76px}
.sec-head{text-align:center;max-width:680px;margin:0 auto 26px}
.sec-head h2{font-size:clamp(1.4rem,2.6vw,1.95rem);font-weight:900;line-height:1.35;margin-bottom:8px}
.sec-head p{color:var(--muted)}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.cards.two{grid-template-columns:repeat(2,1fr)}
.cards.four{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){ .cards,.cards.four{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ .cards,.cards.two,.cards.four{grid-template-columns:1fr} }
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;
      transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:var(--shadow)}
.card .ico{width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--ink-accent);
           display:grid;place-items:center;margin-bottom:10px}
.card h3{font-size:1.02rem;font-weight:800;margin-bottom:6px;line-height:1.5}
.card p{color:var(--muted);font-size:.93rem}

.group{margin-bottom:30px}
.group-head{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;margin-bottom:14px}
.group-head h3{font-size:1.2rem;font-weight:900}
.group-head p{color:var(--muted);font-size:.93rem;flex-basis:100%}
.note{color:var(--muted);font-size:.88rem;margin-top:10px}

/* ── التنبيه الطبي ─────────────────────────────────────────────────── */
.medical{border:1px solid var(--warn-line);background:var(--warn-bg);color:var(--warn-ink);border-radius:14px;
         padding:16px 18px;font-size:.92rem;margin:12px 0 26px}
.medical strong{display:block;margin-bottom:2px}

/* ── التذييل ───────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line);padding:28px 0 40px;color:var(--muted);font-size:.9rem;text-align:center}
footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin-bottom:10px}
footer a{color:var(--ink-accent);text-decoration:none;padding:6px 0;display:inline-block}
footer a:hover{text-decoration:underline}
