@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cairo-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cairo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cairo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cairo-600-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cairo-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cairo-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cairo-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cairo-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cairo-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Iyas — site stylesheet (shared by EN + AR pages)
   Mobile-first, dark-friendly, no build step.
   ========================================================================== */

:root {
  --accent: #0e9d84;          /* teal/green brand */
  --accent-strong: #0b7d6a;
  --accent-soft: #e2f5f0;
  --bg: #fbfdfc;
  --surface: #ffffff;
  --text: #14201c;
  --text-muted: #51635d;
  --border: #dde7e3;
  --badge-bg: #101513;
  --badge-text: #ffffff;
  --max-width: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2fc4a8;
    --accent-strong: #5adcc2;
    --accent-soft: #11261f;
    --bg: #0b110f;
    --surface: #121a17;
    --text: #e7efec;
    --text-muted: #9bafa8;
    --border: #233029;
    --badge-bg: #1c2521;
    --badge-text: #f2f7f5;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Cairo is self-hosted (see @font-face above) and used on ALL pages. */
html[lang="ar"] body {
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.85;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.logo {
  height: 2.1rem;
  width: auto;
  flex: none;
  display: block;
}

/* Mirror the mark in RTL so the brain faces into the reading flow,
   matching the app's IyasMark behavior. */
[dir="rtl"] .logo { transform: scaleX(-1); }

.brand .brand-ar {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-inline-start: auto;
  font-size: 0.95rem;
}

.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--accent); }

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  color: var(--text) !important;
  background: var(--surface);
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(60rem 24rem at 50% -8rem,
      color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}

.hero .logo {
  height: 4.5rem;
  width: auto;
  margin: 0 auto 1.25rem;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 0 auto 0.9rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  max-width: 36rem;
}

.hero .sub {
  margin: 0 auto 1.8rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- App Store badge (placeholder) --------------------------------------- */

.appstore-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.55rem 1.4rem;
  line-height: 1.25;
  text-align: start;
}

.appstore-badge:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.appstore-badge .small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.appstore-badge .big {
  font-size: 1.15rem;
  font-weight: 700;
}

/* --- Sections ------------------------------------------------------------ */

section {
  padding: 2.75rem 0;
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.4rem;
  letter-spacing: -0.01em;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.1rem;
}

.section-alt .feature-card { background: var(--bg); }

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Small "Pro" pill for Pro-only feature cards */
.pro-tag {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 0.45rem;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Privacy bullets */

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.privacy-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem 1.1rem;
}

.privacy-list li strong { color: var(--accent-strong); }

.privacy-note {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Legal / prose pages -------------------------------------------------- */

.prose {
  padding: 2.5rem 0 3.5rem;
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.prose .effective {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.6rem;
}

.prose p, .prose li {
  color: var(--text);
}

.prose ul { padding-inline-start: 1.4rem; }

.prose .lead {
  font-size: 1.1rem;
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 1rem;
  background: var(--accent-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  padding-inline-end: 1rem;
}

html[dir="rtl"] .prose .lead {
  border-radius: 0.5rem 0 0 0.5rem;
}

/* FAQ */

.faq details {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  margin-bottom: 0.8rem;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  list-style-position: inside;
}

.faq summary:hover { color: var(--accent); }

.faq details > div {
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
}

.faq details > div p { margin-top: 0; }

/* Contact card */

.contact-card {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.25rem 1.25rem;
}

.contact-card h2 { margin-top: 0; }

.contact-card .email {
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.name-story {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 36rem;
  margin: 0 0 0.85rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

@media (min-width: 600px) {
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
