@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500;600;700;800&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --ink: #201519;
  --ink-soft: #4a3d3f;
  --muted: #8a7a72;
  --paper: #fff8f2;
  --paper-deep: #fbeee1;
  --line: #ecdfd2;
  --primary: #e8175d;
  --primary-deep: #a80f45;
  --note-yellow: #ffd34d;
  --note-mint: #bfe9d0;
  --note-blue: #cfe3f7;
  --white: #ffffff;
  --shadow: 0 18px 40px -20px rgba(32, 21, 25, 0.35);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo Bhaijaan 2', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  position: relative;
  flex: none;
  transform: rotate(-6deg);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 5px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--ink);
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-top: 1px solid var(--line);
  }
  nav.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.main-nav a {
    width: 100%;
    padding: 12px 4px;
    font-size: 17px;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-free {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  max-width: 15ch;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 20px 0 30px;
  line-height: 1.8;
}

.store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.store-btn span.glyph {
  font-size: 18px;
}

/* pinboard visual */
.pinboard {
  position: relative;
  height: 420px;
}

.note {
  position: absolute;
  width: 190px;
  padding: 18px 16px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}

.note::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 50%;
  transform: translateX(50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b7b7b7 70%, #8c8c8c);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

.note strong {
  display: block;
  font-family: 'Baloo Bhaijaan 2', sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
}

.note-1 { background: var(--note-yellow); top: 0; right: 8%; transform: rotate(-7deg); }
.note-2 { background: var(--white); top: 120px; right: 42%; transform: rotate(5deg); z-index: 2; }
.note-3 { background: var(--note-mint); top: 210px; right: 2%; transform: rotate(4deg); }
.note-4 { background: var(--note-blue); top: 40px; right: 60%; transform: rotate(-4deg); }
.note-5 { background: var(--white); top: 300px; right: 34%; transform: rotate(-3deg); }

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .pinboard {
    height: 300px;
  }
  .note {
    width: 150px;
    font-size: 13.5px;
    padding: 14px 12px 16px;
  }
}

/* ---------- Feature strip ---------- */
.features {
  padding: 30px 0 70px;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: var(--paper-deep);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

@media (max-width: 780px) {
  .features .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Support / legal hub ---------- */
.support {
  padding: 20px 0 90px;
}

.support-head {
  max-width: 60ch;
  margin-bottom: 34px;
}

.support-head h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.support-head p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0;
}

.support .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.support-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.support-card .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.support-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.support-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .support .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

footer.site-footer .foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
}

footer.site-footer a:hover {
  color: var(--primary);
}

footer .copyright {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Inner / legal pages ---------- */
.page-hero {
  padding: 56px 0 20px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.page-hero .updated {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

.legal-body {
  padding: 20px 0 90px;
}

.legal-body .wrap {
  max-width: 760px;
}

.legal-body p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.legal-body h2 {
  font-size: 20px;
  margin: 36px 0 14px;
  color: var(--ink);
}

.legal-body strong {
  color: var(--ink);
}

.legal-body .contact-box {
  margin-top: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-size: 15px;
  line-height: 2;
}

.legal-body .contact-box a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Forms (delete-account / report) ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.field .hint {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-pill span {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-soft);
}

.radio-pill input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 15px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.submit-btn:hover {
  background: var(--primary-deep);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.8;
}

.info-strip {
  display: flex;
  gap: 14px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 30px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.info-strip .icon {
  flex: none;
  font-size: 20px;
}

.steps {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-right: 46px;
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Baloo Bhaijaan 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
