:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #3d4450;
  --line: #dce4e1;
  --accent: #0f5c4d;
  --accent-hover: #0b4a3e;
  --accent-soft: #e7f0ec;
  --danger: #a23b2a;
  --radius: 14px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { margin: 0; line-height: 1.4; font-family: var(--display); }
p { margin: 0; }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand {
  font-family: "Noto Kufi Arabic", var(--display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  white-space: pre;
}
.brand-b { color: var(--accent); }
/* Tight tracking for the Latin wordmark only; it would break Arabic letter joins. */
[lang="en"] .brand { letter-spacing: -0.03em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 7px 18px;
  text-decoration: none;
}
.header-cta:hover { background: var(--accent-hover); }
.lang-toggle {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--ink); }

/* Hero */
.hero { padding-block: 24px 72px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 16px;
  border-radius: 999px;
  margin-block-end: 20px;
}
h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.35;
  margin-block-end: 20px;
}
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 32em;
  margin-block-end: 24px;
}
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.ticks li::before { content: "✓"; flex: none; font-weight: 800; color: var(--accent); }

/* Signup block: form, "or", WhatsApp */
.signup { max-width: 540px; display: grid; gap: 14px; }
.offer {
  justify-self: start;
  font-size: 15px;
  font-weight: 700;
  color: #7a4b00;
  background: #fff1d6;
  border: 1px solid #f2d39a;
  border-radius: 999px;
  padding: 6px 16px;
}
.btn:active { transform: scale(0.98); }

/* Form */
.waitlist { display: grid; gap: 14px; position: relative; }
.row { display: grid; gap: 14px; }
@media (min-width: 560px) {
  .row { grid-template-columns: 1fr 1.4fr; }
}
.field { display: grid; gap: 6px; }
.field span { font-size: 15px; font-weight: 600; color: var(--ink); }
.waitlist input {
  font: inherit;
  font-size: 18px;
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid #c5d0cc;
  border-radius: 12px;
}
.waitlist input::placeholder { color: #8f949c; }
/* Phone: country code + number, always left-to-right like a written number. */
.tel { display: flex; gap: 8px; }
.tel input { flex: 1; min-width: 0; }
.waitlist select {
  flex: none;
  font: inherit;
  font-size: 17px;
  padding: 13px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid #c5d0cc;
  border-radius: 12px;
  cursor: pointer;
}
.btn {
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  padding: 15px 22px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: progress; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* The status line stays in the layout even when empty so screen readers track it as a live region. */
.form-status { font-size: 16px; font-weight: 600; }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="success"] {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  outline: none;
}
.waitlist [hidden] { display: none; }
.form-note { font-size: 15px; color: var(--muted); }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero demo: a dashed frame with a "Demo" tab and a caption, so the card reads as an example, not part of the site. */
.demo {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 18px 16px;
  border: 1.5px dashed #b9c7c2;
  border-radius: 32px;
}
.demo-badge {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  width: fit-content;
  margin-inline: auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
}
.demo-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fd3a6;
}
.demo-caption {
  margin-block-start: 14px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}

/* Mock notification */
.mock {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 92, 77, 0.12);
  pointer-events: none;
  user-select: none;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-block-end: 14px;
}
.mock-app { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.mock-icon { width: 22px; height: 22px; border-radius: 6px; background: url(img/logo.svg) center / cover; }
.mock-title { font-size: 18px; font-weight: 700; }
.mock-meta { font-size: 15px; color: var(--muted); margin-block-end: 16px; }
.mock-matches { font-size: 13px; font-weight: 600; color: var(--accent); margin-block-end: 6px; }
.mock-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mock-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  border-block-end: 1px solid var(--line);
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}
.mock-list li:nth-child(2) .avatar { color: #7a4b00; background: #fff1d6; }
.mock-list li:nth-child(3) .avatar { color: #6b3a8c; background: #f1e8f7; }
.mock-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-block-end: 14px;
  border-radius: 14px;
}
.mock-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.mock-wish { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.mock-cta {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
}

/* Sections */
section:not(.hero) { padding-block: 64px; border-block-start: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-block-end: 12px; }
.section-sub { font-size: 19px; color: var(--muted); margin-block-end: 28px; }
h3 { font-size: 19px; font-weight: 700; margin-block-end: 6px; }

.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.cards li {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cards li { font-weight: 600; }
.cards p { font-size: 17px; font-weight: 500; color: var(--muted); }
@media (min-width: 800px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-block-end: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
[dir="rtl"] .steps li::before { content: counter(step, arabic-indic); }


/* Money line */
.math {
  margin-block-start: 24px;
  padding: 18px 22px;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

/* "Also" list */
.more-title { margin-block: 40px 12px; }
.more { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.more li::marker { color: var(--accent); }

/* Who it's for */
.who { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.who li { padding-block: 18px; border-block-end: 1px solid var(--line); }
.who li:first-child { border-block-start: 1px solid var(--line); }
.who p { color: var(--muted); }
@media (min-width: 800px) {
  .who li { display: grid; grid-template-columns: 16em 1fr; gap: 24px; align-items: baseline; }
}

/* FAQ */
.narrow { max-width: 760px; }
.faq { margin-block-start: 20px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-block-end: 18px; color: var(--muted); }

/* Final call to action */
.cta { text-align: center; background: var(--surface); }
.cta .signup { margin-inline: auto; text-align: start; }

/* Sticky bar on phones */
.sticky-bar { display: none; }
@media (max-width: 720px) {
  body { padding-block-end: 84px; }
  .header-cta { display: none; }
  .sticky-bar {
    display: grid;
    gap: 10px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 10;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243, 246, 245, 0.96);
    border-block-start: 1px solid var(--line);
  }
  .sticky-bar .btn { padding-block: 12px; font-size: 17px; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Footer */
.site-footer { border-block-start: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; font-size: 15px; color: var(--muted); }

h1, h2 { text-wrap: balance; }
@media (max-width: 560px) {
  .hero { padding-block-start: 8px; }
  h1 { font-size: 30px; margin-block-end: 14px; }
  .eyebrow { margin-block-end: 14px; }
  .lede { font-size: 18px; line-height: 1.75; margin-block-end: 18px; }
  .ticks { margin-block-end: 22px; gap: 4px; }
  .ticks li { font-size: 17px; }
}
