/* مذكرات بنات — صفحات قانونية | CONPLY */
:root {
  --pink: #E91E63;
  --pink-deep: #C2185B;
  --purple: #A855F7;
  --purple-deep: #7C3AED;
  --link: #2563EB;
  --ink: #2D2040;
  --ink-soft: #4B5563;
  --ink-faint: #9CA3AF;
  --bg1: #FFF1F5;
  --bg2: #FCE9F3;
  --card: #FFFFFF;
  --line: #F3E8EE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 55%, #ffffff 100%);
  background-attachment: fixed;
  line-height: 1.9;
  min-height: 100vh;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 64px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
  color: #fff;
  border-radius: 0 0 34px 34px;
  padding: 54px 24px 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.28);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hero::before { width: 190px; height: 190px; top: -60px; left: -40px; }
.hero::after { width: 130px; height: 130px; bottom: -50px; right: -20px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 7px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero h1 { font-size: 30px; font-weight: 800; position: relative; }
.hero p { font-size: 15px; opacity: 0.95; margin-top: 8px; position: relative; }
.hero .updated {
  margin-top: 18px; font-size: 12px; opacity: 0.9;
  background: rgba(0, 0, 0, 0.12); display: inline-block;
  padding: 5px 14px; border-radius: 50px;
}

/* ── App logo mark ── */
.logo {
  width: 78px; height: 78px; border-radius: 22px; margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.95); color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; line-height: 1.25; text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); position: relative;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 26px 26px 24px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(120, 40, 90, 0.07);
}
.card h2 {
  font-size: 19px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.card h2::before {
  content: ""; width: 6px; height: 22px; border-radius: 4px;
  background: linear-gradient(var(--pink), var(--purple));
}
.card h3 {
  font-size: 15.5px; font-weight: 700; color: var(--pink-deep);
  margin: 16px 0 6px;
}
.card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.card ul { list-style: none; margin: 8px 0 12px; }
.card li {
  font-size: 14.5px; color: var(--ink-soft);
  padding-right: 24px; position: relative; margin-bottom: 8px;
}
.card li::before {
  content: "✦"; color: var(--purple); position: absolute; right: 0; top: 1px;
  font-size: 13px;
}

/* ── Links ── */
a { color: var(--link); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

/* ── Highlight / note boxes ── */
.note {
  border-radius: 16px; padding: 16px 18px; margin: 14px 0; font-size: 14px;
}
.note.pink { background: #FDF2F8; color: var(--pink-deep); }
.note.warn { background: #FFFBEB; color: #B45309; }
.note.good { background: #F0FDF4; color: #15803D; }
.note strong { font-weight: 800; }

/* ── Steps ── */
.steps { counter-reset: s; margin: 12px 0; }
.step {
  position: relative; padding: 12px 56px 12px 16px;
  background: #FBF5F9; border-radius: 14px; margin-bottom: 10px;
  font-size: 14.5px; color: var(--ink-soft);
}
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Nav grid (index) ── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.tile {
  background: var(--card); border-radius: 20px; padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(120, 40, 90, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block; color: inherit; font-weight: inherit;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(120, 40, 90, 0.12); text-decoration: none; }
.tile .ico { font-size: 30px; display: block; margin-bottom: 10px; }
.tile b { font-size: 16px; color: var(--ink); display: block; }
.tile span { font-size: 12.5px; color: var(--ink-faint); font-weight: 500; }

/* ── Contact pill ── */
.contact {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff; padding: 12px 22px; border-radius: 50px;
  font-weight: 700; font-size: 15px; margin-top: 6px;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.28);
}
.contact:hover { text-decoration: none; color: #fff; opacity: 0.94; }

/* ── Back link ── */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 22px 0 0; font-size: 14px; color: var(--purple-deep);
}

/* ── Footer ── */
footer {
  text-align: center; margin-top: 34px; padding-top: 22px;
  font-size: 13px; color: var(--ink-faint);
}
footer .row { margin-bottom: 6px; }
footer a { color: var(--purple-deep); }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
  .card { padding: 22px 18px; }
}
