/* MRcare — mrcareapp.com — تنسيق مشترك لكل الصفحات */
:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --text: #16243a;
  --muted: #5a6b82;
  --brand: #1e88e5;
  --brand-dark: #0d5fae;
  --brand-soft: #e3f1fd;
  --border: #dbe5f0;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 40, 80, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724;
    --surface: #172234;
    --text: #e8eef7;
    --muted: #9fb0c6;
    --brand: #4aa8f5;
    --brand-dark: #82c3fa;
    --brand-soft: #1b3350;
    --border: #26364d;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* الرأس */
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font-size: 20px; letter-spacing: .3px; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-dark); }

/* الواجهة */
.hero { padding: 48px 16px 32px; text-align: center; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
.hero h1 { font-size: 30px; line-height: 1.4; margin: 18px 0 6px; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.badge {
  display: inline-block; margin-top: 18px; padding: 8px 18px;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; font-weight: 600; font-size: 15px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 8px 0 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico { font-size: 26px; line-height: 1; }

/* صفحات النصوص (السياسة وحذف البيانات) */
.doc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px; margin: 28px 0 40px; box-shadow: var(--shadow);
}
.doc h1 { font-size: 26px; line-height: 1.4; margin: 0 0 4px; }
.doc .date { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.doc h2 { font-size: 19px; margin: 26px 0 6px; color: var(--brand-dark); }
.doc ul { padding-inline-start: 22px; margin: 6px 0; }
.doc li { margin: 4px 0; }
.note {
  background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin: 14px 0;
}
table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
table.data th, table.data td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; vertical-align: top; }
table.data th { background: var(--brand-soft); }
.table-scroll { overflow-x: auto; }

/* صفحة البيع */
.kicker { color: var(--brand-dark); font-weight: 700; font-size: 14.5px; margin: 0 0 4px; letter-spacing: .2px; }
.hero .kicker { margin-top: 16px; }
.hero h1 { font-size: 34px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700;
  background: var(--brand); color: #fff; text-decoration: none; border: 2px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand-dark); }
.btn.ghost:hover { background: var(--brand-soft); }
.small { font-size: 14.5px; color: var(--muted); margin-top: 12px !important; }

.section { padding: 44px 16px; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 44px 0; }
.section h2, .band h2 { font-size: 26px; line-height: 1.45; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.center { text-align: center; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.steps { padding-inline-start: 22px; margin: 0; }
.steps li { margin: 0 0 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pills span, .terms span {
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px;
  padding: 5px 13px; font-size: 14.5px; font-weight: 600;
}
.terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.terms span { font-size: 16px; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.7; border-inline-start: 3px solid var(--border); padding-inline-start: 10px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery img { display: block; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.gallery .caption { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15.5px; }
table.compare th, table.compare td { border: 1px solid var(--border); padding: 9px 12px; text-align: start; }
table.compare th { background: var(--brand-soft); }
table.compare td:nth-child(2) { text-align: center; font-weight: 700; }
table.compare td:nth-child(3) { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 auto 18px; display: inline-block; text-align: start; }
.checks li { margin: 6px 0; padding-inline-start: 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 2px; color: var(--muted); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .section h2, .band h2 { font-size: 22px; }
}

/* التذييل */
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 18px 0; font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 24px; }
  .doc { padding: 18px 14px; }
  .doc h1 { font-size: 22px; }
}

/* 2026-11-29: رابط التخطي + أهداف لمس أكبر */
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: #0b2a55; color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 10px; }
.foot a { display: inline-block; padding: 12px 4px; }
.nav a { display: inline-block; min-height: 44px; box-sizing: border-box; padding-block: 10px; }
