/* Eyadaty landing — single stylesheet. Colours mirror EyadatyTokens. */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-arabic-arabic-400.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;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plex-arabic-arabic-700.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;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-arabic-latin-400.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: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plex-arabic-latin-700.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;
}

:root {
  --primary: #005A9C;        /* 7.1:1 on white */
  --primary-strong: #00467A;
  --primary-soft: #E6F0F8;
  --secondary: #0D9488;      /* decorative only (3.7:1) */
  --secondary-text: #0F766E; /* 5.5:1 on white */
  --secondary-soft: #E6F6F4;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --ink: #0F172A;
  --muted: #475569;          /* 7.6:1 on white */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body { line-height: 1.65; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px;
  background: var(--primary); color: #fff; padding: 12px 16px;
  border-radius: var(--radius-sm); z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 68px; flex-wrap: wrap;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  min-height: 48px;
}
.wordmark-mark svg { width: 36px; height: 36px; }
.wordmark-mark rect { fill: var(--primary); }
.wordmark-mark path { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.wordmark-text {
  font-size: 1.625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  color: var(--primary);
}
.wordmark-small .wordmark-mark svg { width: 30px; height: 30px; }
.wordmark-small .wordmark-text { font-size: 1.375rem; }

.site-nav { order: 2; margin-inline-start: auto; }
.lang-switch {
  order: 3;
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
}
.lang-switch a {
  display: inline-grid; place-items: center;
  min-width: 48px; min-height: 42px; padding-inline: 10px;
  border-radius: 999px; text-decoration: none;
  color: var(--muted); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }

.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 48px; padding-inline: 14px;
  border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.975rem;
}
.nav-list a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-list a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(40rem 24rem at 0% 110%, var(--secondary-soft), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 1.15fr 0.85fr; align-items: center;
  padding-block: clamp(40px, 8vw, 96px);
}
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--secondary-soft); color: var(--secondary-text);
  font-size: 0.9rem; font-weight: 700;
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 38em; }
.lead-sm { color: var(--muted); font-size: 1.0625rem; }
.note { color: var(--muted); font-size: 0.925rem; margin-top: 12px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 18px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  cursor: default; user-select: none;
}
.store-badge .icon { color: var(--primary); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge small { color: var(--muted); font-size: 0.8rem; }
.store-badge strong { font-size: 1rem; direction: ltr; text-align: start; }

.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.hero-card-title { font-size: 1.125rem; color: var(--primary); margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: step; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; position: relative;
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; inset-inline-start: 21px; top: 58px; bottom: -6px;
  border-inline-start: 2px dashed var(--border);
}
.steps strong { display: block; color: var(--ink); }
.steps li > span:last-child { color: var(--muted); font-size: 0.975rem; }
.step-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary);
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 40em; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--muted); }

.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--primary-soft); color: var(--primary);
  margin-bottom: 14px;
}
.feature:nth-child(even) .feature-icon { background: var(--secondary-soft); color: var(--secondary-text); }

.split {
  display: grid; gap: clamp(24px, 5vw, 64px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.check-list .icon { color: var(--secondary-text); margin-top: 3px; }

.privacy-band {
  display: flex; gap: 20px; align-items: flex-start;
}
.privacy-band > div {
  max-width: 44em;
}
.privacy-band p { color: var(--muted); }
.privacy-band .feature-icon { flex: none; background: var(--secondary-soft); color: var(--secondary-text); }

/* ── Buttons & links ────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding-inline: 22px;
  border-radius: 12px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.button-outline { background: transparent; color: var(--primary); }
.button-outline:hover { background: var(--primary-soft); color: var(--primary-strong); }
.text-link { font-weight: 700; display: inline-flex; min-height: 48px; align-items: center; }

/* ── Document pages ─────────────────────────────────────── */
.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc-inner { max-width: 760px; }
.doc-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.doc-head { margin-bottom: 28px; }
.doc-meta { color: var(--muted); font-size: 0.95rem; }
.doc-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.doc-body h2 { font-size: 1.3rem; margin-top: 1.5em; }
.doc-body h2:first-child, .doc-body section > h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.0625rem; color: var(--primary); margin: 1.25em 0 0.4em; }
.doc-body ul { margin: 0 0 1em; padding-inline-start: 1.4em; }
.doc-body li { margin-bottom: 0.4em; }
.doc-body li::marker { color: var(--secondary-text); }
.doc-body a { overflow-wrap: anywhere; }
.placeholder {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; color: var(--muted);
}
.placeholder p:last-child { margin-bottom: 0; }
.doc-contact { margin-top: 24px; color: var(--muted); }

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.contact-label { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; }
.contact-email {
  font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem); font-weight: 700; color: var(--ink);
  overflow-wrap: anywhere; text-align: start; unicode-bidi: isolate; margin-bottom: 18px;
}
.callout {
  margin-top: 20px; padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A;
}
.callout p { margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding-top: 40px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { color: var(--muted); margin: 8px 0 0; font-size: 0.975rem; }
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 32px;
}
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: 0.975rem;
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
.footer-legal p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { padding-block: 6px; row-gap: 2px; }
  .lang-switch { order: 2; margin-inline-start: auto; }
  .site-nav { order: 3; width: 100%; margin-inline-start: 0; }
}
@media (max-width: 560px) {
  .nav-list { width: 100%; justify-content: space-between; }
  .nav-list a { padding-inline: 10px; font-size: 0.925rem; }
  .store-badge { flex: 1 1 100%; }
  .privacy-band { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
}
