/*
 * Gemeez pre-launch landing — one stylesheet, both locales, both directions.
 *
 * Brand law (branding/README.md): navy #0F172A is the ground, white #F1F5F9 the
 * wordmark, fig blush #B64B6E is the LEAF ONLY (never a button), action blue is
 * every CTA. Digits are WESTERN everywhere (the locked digit policy).
 *
 * Direction: logical properties only (margin-inline, padding-inline, inset-inline)
 * so the single sheet serves RTL and LTR with no per-direction overrides.
 */

/* Cairo is the locked brand font (branding/README.md + the app's own next/font pick).
   Self-hosted so the page makes ZERO third-party requests: better LCP, and nothing
   about a visitor leaks to a font CDN. Variable weight — one file per script covers
   400/700/800. `swap` so text paints immediately on a slow Egyptian mobile link. */
@font-face {
  font-family: Cairo;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/cairo-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;
}

@font-face {
  font-family: Cairo;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/cairo-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;
}

:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --ink: #020617;
  --paper: #ffffff;
  --paper-tint: #f8fafc;
  --line: #e2e8f0;
  --muted: #475569;
  --muted-on-navy: #94a3b8;
  --leaf: #b64b6e;
  --action: hsl(217 83% 45%);
  --action-hover: hsl(217 83% 38%);
  --radius: 14px;
  --shell: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Cairo,
    'Segoe UI',
    system-ui,
    -apple-system,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  background: var(--navy);
  padding-block: 18px;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.langswitch {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding: 6px 16px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.langswitch:hover,
.langswitch:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

/* ---------------------------------------------------------------- hero */

.hero {
  background: radial-gradient(120% 90% at 50% -10%, #1e293b 0%, var(--navy) 55%), var(--navy);
  color: #f1f5f9;
  padding-block: 64px 84px;
  text-align: center;
}

.hero__leaf {
  width: 68px;
  height: 68px;
  margin-inline: auto;
  display: block;
}

.hero__eyebrow {
  margin-block: 22px 0;
  color: var(--muted-on-navy);
  font-size: 15px;
  font-weight: 600;
}

.hero h1 {
  margin-block: 10px 0;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.25;
  font-weight: 800;
}

.hero__lead {
  margin-block: 18px 0;
  margin-inline: auto;
  max-width: 620px;
  color: #cbd5e1;
  font-size: clamp(17px, 2.2vw, 20px);
}

/* ---------------------------------------------------------------- capture */

.capture {
  margin-block: 36px 0;
  margin-inline: auto;
  max-width: 560px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: start;
}

.capture__label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-block-end: 12px;
}

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

.capture__row input[type='tel'] {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 96%);
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 15px;
  font: inherit;
  font-size: 17px;
  /* The value is Latin digits even in an Arabic page — keep the run LTR so a
     weak-ended number does not reorder inside the RTL context. */
  direction: ltr;
  text-align: start;
}

/* Keyboard focus is styled EXPLICITLY rather than left to the browser default: this page
   has two grounds (navy hero/footer and white body) and a default ring that reads well on
   one can vanish on the other. Ring colour is chosen per ground below. */
:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
  border-radius: 6px;
}

.topbar :where(a, button):focus-visible,
.hero :where(a, button, input, summary):focus-visible,
.footer :where(a, button):focus-visible {
  outline-color: #f1f5f9;
}

.capture__row input[type='tel']:focus-visible {
  outline-offset: 1px;
}

.btn {
  border: 0;
  border-radius: 10px;
  background: var(--action);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--action-hover);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 14px 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

.consent input {
  margin: 5px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--action);
  flex: 0 0 auto;
}

.capture__note {
  margin-block: 12px 0;
  color: var(--muted-on-navy);
  font-size: 14px;
}

.formstatus {
  margin-block: 14px 0;
  font-size: 15px;
  font-weight: 600;
  min-height: 1px;
}

.formstatus--ok {
  color: #86efac;
}

.formstatus--err {
  color: #fca5a5;
}

/* ---------------------------------------------------------------- sections */

section {
  padding-block: 60px;
}

.section-title {
  margin-block: 0 8px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
}

.section-sub {
  margin-block: 0 32px;
  color: var(--muted);
  font-size: 17px;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}

.card h3 {
  margin-block: 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--action) 12%, transparent);
  color: var(--action);
  display: grid;
  place-items: center;
  margin-block-end: 14px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------- sellers */

.sellers {
  background: var(--paper-tint);
  border-block: 1px solid var(--line);
}

.sellers__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sellers__text {
  max-width: 640px;
}

.sellers__text h2 {
  margin-block: 0 8px;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 800;
}

.sellers__text p {
  margin: 0;
  color: var(--muted);
}

.mailbtn {
  display: inline-block;
  background: var(--action);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 13px 24px;
  white-space: nowrap;
}

.mailbtn:hover,
.mailbtn:focus-visible {
  background: var(--action-hover);
}

/* ---------------------------------------------------------------- faq */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-block-end: 12px;
  background: var(--paper);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding-block: 18px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--action);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details > p {
  margin-block: 0 20px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding-block: 40px;
  font-size: 15px;
}

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

.footer a {
  color: #e2e8f0;
}

.footer__legal {
  color: var(--muted-on-navy);
  margin: 0;
}

/* A registration number is a weak-ended Latin run inside an Arabic line — isolate
   it so it cannot reorder visually (the bidi lesson, 2026-07). */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ---------------------------------------------------------------- narrow */

/* On a phone the input+button row wraps, and a wrapped button that keeps its
   content width reads as a stray chip. Stack them and let both fill the line —
   the CTA stays a full-width tap target (the phone is the primary surface here). */
@media (max-width: 470px) {
  .capture__row {
    flex-direction: column;
    align-items: stretch;
  }

  .capture__row .btn {
    width: 100%;
  }

  .sellers__box .mailbtn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Secondary demo links */
.demo {
  margin-block: 20px 0;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
  padding-inline: 18px;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.demo-link:hover {
  text-decoration: underline;
}

.demo__note {
  margin-block: 4px 0;
  color: var(--muted-on-navy);
  font-size: 14px;
}
