/* Dawakom marketing site — brand-matched to the app (mobile/src/theme/colors.ts).
   Arabic-first / RTL. Senior-friendly: large type, high contrast. Plain CSS, no build. */

:root {
  --primary: #0A7B5C;
  --primary-dark: #075E46;
  --primary-light: #3E9E82;
  --accent: #D62828;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --border: #E0E0E0;
  --mint: #D5EBE3;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;            /* senior-friendly base */
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;  /* never let a long URL/email force horizontal scroll */
  overflow-x: hidden;
}
img { max-width: 100%; }       /* images never overflow their container */

a { color: var(--primary-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}
.nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #ffffff 0%, var(--mint) 100%);
  text-align: center;
  padding: 64px 20px 56px;
  border-bottom: 1px solid var(--border);
}
.hero img.hero-logo { height: 96px; width: auto; margin-bottom: 22px; }
.hero h1 {
  font-size: 40px;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 14px;
}
.hero p.tagline {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 12px;
}
.hero p.subtle { font-size: 16px; color: var(--text-secondary); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section h2 {
  text-align: center;
  font-size: 30px;
  color: var(--primary-dark);
  margin-bottom: 36px;
  font-weight: 800;
}
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature .check {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.feature p { font-size: 19px; color: var(--text); margin: 0; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shot {
  aspect-ratio: 9 / 19;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }

/* ---------- Download / get-the-app ---------- */
.get {
  text-align: center;
}
.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px;
  min-width: 220px;
  justify-content: center;
  position: relative;
  font-weight: 700;
  text-decoration: none;
}
.store-btn .store-glyph { font-size: 26px; line-height: 1; }
.store-btn .store-lines { text-align: start; line-height: 1.25; }
.store-btn .store-lines small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.store-btn .store-lines b { font-size: 18px; font-weight: 800; }
/* Coming-soon: visually present but NOT clickable */
.store-btn.coming-soon {
  background: #9aa0a6;
  pointer-events: none;
  cursor: default;
}
.store-btn .badge-soon {
  position: absolute;
  top: -10px;
  inset-inline-end: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 10px;
}
/* iOS beta (TestFlight) slot — enabled once we have the link */
.beta-box {
  margin-top: 28px;
  background: var(--mint);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 560px;
  margin-inline: auto;
}
.beta-box h3 { color: var(--primary-dark); font-size: 20px; margin-bottom: 8px; }
.beta-box p { color: var(--text-secondary); font-size: 16px; margin-bottom: 14px; }
.beta-btn {
  display: inline-block;
  background: #9aa0a6;
  color: #fff;
  border-radius: 12px;
  padding: 12px 26px;
  font-weight: 800;
  text-decoration: none;
  pointer-events: none;     /* becomes clickable when the TestFlight link is added */
}
.beta-btn.live { background: var(--primary); pointer-events: auto; }

/* ---------- Medical disclaimer strip ---------- */
.disclaimer {
  background: #FFF8E1;
  border: 1px solid #ED6C02;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--text);
  font-size: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.disclaimer b { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 36px 20px;
  text-align: center;
  margin-top: 8px;
}
.site-footer a { color: #fff; text-decoration: underline; margin: 0 10px; font-weight: 600; }
.site-footer p { opacity: .9; font-size: 15px; margin-top: 12px; }

/* ---------- Legal / content pages (privacy, support) ---------- */
.content {
  background: var(--surface);
  max-width: 860px;
  margin: 32px auto;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.content h1 { font-size: 30px; color: var(--primary-dark); margin-bottom: 8px; }
.content h2 { font-size: 22px; color: var(--primary-dark); margin: 28px 0 10px; }
.content h3 { font-size: 18px; margin: 18px 0 8px; }
.content p, .content li { font-size: 17px; margin-bottom: 10px; }
.content ul { padding-inline-start: 24px; margin-bottom: 12px; }
.content .updated { color: var(--text-secondary); font-size: 15px; }
.content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.lang-divider {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 2px;
  margin: 36px 0;
}
.back-link { display: inline-block; margin: 0 0 6px; font-weight: 700; text-decoration: none; }

/* ---------- LTR helper (for English blocks inside an RTL page) ---------- */
.ltr { direction: ltr; text-align: left; }

/* ---------- Responsive (mobile-friendly down to ~320px) ---------- */

/* Tablets / large phones */
@media (max-width: 860px) {
  .content { margin: 16px auto; padding: 26px 20px; }
}

/* Phones: stack the header (logo on top, nav centered below) */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header .container { flex-direction: column; gap: 10px; }
  .site-header img { height: 40px; }
  .nav { gap: 12px 18px; justify-content: center; width: 100%; }
  .nav a { font-size: 15px; }
  .hero { padding: 44px 16px 40px; }
  .hero img.hero-logo { height: 78px; }
  .hero h1 { font-size: 30px; }
  .hero p.tagline { font-size: 18px; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 25px; margin-bottom: 28px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 22px 18px; }
  .feature p { font-size: 18px; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .disclaimer { font-size: 15px; padding: 16px 18px; }
}

/* Small phones */
@media (max-width: 460px) {
  body { font-size: 16px; }
  .hero { padding: 36px 14px 32px; }
  .hero h1 { font-size: 26px; }
  .hero p.tagline { font-size: 17px; }
  .section { padding: 38px 0; }
  .section h2 { font-size: 23px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-btn { min-width: 0; width: 100%; }
  .beta-box { padding: 18px 16px; }
  .beta-btn, .store-btn b { font-size: 16px; }
  .content { padding: 22px 16px; }
  .content h1 { font-size: 25px; }
  .content h2 { font-size: 20px; }
}

/* Tiniest phones (e.g. iPhone SE 1st-gen / small Androids) */
@media (max-width: 360px) {
  .shots { grid-template-columns: 1fr; }   /* one phone mockup per row */
  .hero img.hero-logo { height: 64px; }
  .hero h1 { font-size: 24px; }
  .container { padding: 0 14px; }
}
