/* ============================================================================
   HARF MEDIA — marketing site design system
   Mirrors the mobile app + HARF design-system foundations: warm orange CTA
   (#ee6f2f), brand green (#A4CD39), crisp 8px radii, soft shadows, and the brand
   faces — Geist (Latin) + IBM Plex Sans Arabic. Arabic-primary, RTL-first via
   logical properties (no [dir] overrides needed except icon mirroring).
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --c-primary: #ee6f2f;            /* brand accent (non-text / large text only) */
  --c-primary-press: #d45f20;
  --c-primary-deep: #b6531a;       /* accessible orange for text-on-white */
  --c-cta: #c2541b;                /* button/band fill — white label clears 4.5:1 AA */
  --c-cta-press: #a8481a;
  --c-green: #A4CD39;
  --c-green-deep: #5d7d14;
  --c-ink: #181311;
  --c-muted: #5f6672;              /* AA-compliant on white + tinted surfaces */
  --c-muted-2: #6b6b70;
  --c-surface: #f5f5f7;
  --c-surface-2: #f9fafb;
  --c-white: #ffffff;
  --c-border: #e5e5e7;
  --c-focus: #181311;

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-soft: 0 10px 30px rgba(24, 19, 17, .08);
  --sh-card: 0 6px 20px rgba(24, 19, 17, .06);
  --sh-btn: 0 8px 20px rgba(238, 111, 47, .32);

  --grad-cta: linear-gradient(150deg, #c2541b, #b04d18);
  --grad-hero:
    radial-gradient(1000px 460px at 92% -18%, rgba(238, 111, 47, .09), transparent 62%),
    radial-gradient(820px 420px at 6% 118%, rgba(163, 204, 68, .09), transparent 58%),
    var(--c-surface-2);
  --grad-tile: linear-gradient(135deg, rgba(163, 204, 68, .18), rgba(238, 111, 47, .12));

  --ff-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-en: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Reset / base --------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-ar);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--ff-en); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-sm); }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); }
.h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
.h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: var(--c-muted); line-height: 1.75; }
strong { font-weight: 700; }

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.section--surface { background: var(--c-surface); }
.section--soft { background: var(--c-surface-2); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section__head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head.start { margin-inline: 0; text-align: start; }
.section__head .lead { margin-top: 14px; }

.grid { display: grid; gap: clamp(20px, 3vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Bot honeypot: off-canvas (not just visually hidden) so it's unreachable by
   assistive tech too — real users, including screen-reader users, must never
   be able to focus or fill this in. */
.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 300;
  background: var(--c-white); color: var(--c-ink); padding: 12px 18px;
  border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-soft); font-weight: 700;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-primary-deep); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("assets/mark.png") center/contain no-repeat;
}

/* faint brand-mark watermark bleeding off a section edge */
.watermark {
  position: absolute; inset-block: 0; inset-inline-end: -60px; width: 420px;
  background: url("assets/mark.png") center/contain no-repeat;
  opacity: .05; pointer-events: none; z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(24, 19, 17, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo { flex: 0 0 auto; }
.nav__logo img { height: 26px; width: auto; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__link { color: var(--c-muted); font-weight: 600; font-size: .95rem; transition: color .18s; position: relative; }
.nav__link:hover { color: var(--c-ink); }
.nav__link[aria-current="page"] { color: var(--c-ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -22px; height: 2px;
  background: var(--c-green); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding-inline: 12px; border: none; background: transparent; color: var(--c-ink);
  font-weight: 600; font-size: .85rem; border-radius: var(--r-sm); transition: background .18s;
}
.lang-toggle:hover { background: var(--c-surface); }
.nav__toggle {
  display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: none; background: transparent; color: var(--c-ink); font-size: 1.6rem; border-radius: var(--r-sm);
}
.nav__toggle:hover { background: var(--c-surface); }
.nav__mobile { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .nav__cta-desktop { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile {
    display: block; max-height: 0; overflow: hidden;
    border-top: 1px solid rgba(24, 19, 17, .06); background: rgba(255, 255, 255, .97);
    transition: max-height .3s var(--ease);
  }
  .nav__mobile.open { max-height: 460px; }
  .nav__mobile-inner { padding: 8px clamp(20px, 5vw, 40px) 18px; }
  .nav__mobile-link { display: block; padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--c-border); }
  .nav__mobile-link:last-of-type { border-bottom: none; }
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--r); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; text-align: center;
  transition: transform .15s var(--ease), background .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--c-cta); color: #fff; box-shadow: var(--sh-btn); }
.btn--primary:hover { background: var(--c-cta-press); transform: translateY(-1px); }
.btn--ghost { background: var(--c-white); color: var(--c-primary-deep); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-cta); color: #fff; }
.btn--on-dark { background: var(--c-white); color: var(--c-primary-deep); }
.btn--on-dark:hover { background: #fff; color: var(--c-cta-press); transform: translateY(-1px); }
.btn--danger { background: #ef4444; color: #fff; }
.btn--danger:hover { background: #c62f2f; }
.btn--lg { min-height: 54px; padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn i { font-size: 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; margin-top: 26px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { background: var(--grad-hero); padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 72px)); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero__title { font-size: clamp(2.2rem, 1.2rem + 4vw, 3.7rem); }
.hero__lead { margin-top: 18px; max-width: 48ch; }
.hero__actions { margin-top: 32px; }
.hero__media { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { order: 2; }
}

/* phone device frame */
.phone {
  width: 100%; max-width: 250px; border: 10px solid #111; border-radius: 46px;
  background: #111; overflow: hidden;
  /* tight, symmetric shadow — a heavy offset shadow over the diagonal hero gradient
     made the upright device read as tilted */
  box-shadow: 0 14px 34px rgba(24, 19, 17, .14);
  outline: 1px solid rgba(0, 0, 0, .04);
}
.phone picture { display: block; }
.phone img { width: 100%; display: block; }
@media (max-width: 480px) { .phone { max-width: 220px; } .nav__logo img { height: 22px; } }
@media (max-width: 360px) { .nav__logo img { height: 20px; } .lang-toggle { padding-inline: 8px; } }

.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card); background: linear-gradient(135deg, rgba(238, 111, 47, .10), rgba(163, 204, 68, .10)), var(--c-surface); }
.media-frame picture { display: block; }
.media-frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

/* ---- Cards / features / steps / stats ------------------------------------- */
.card {
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-card); padding: clamp(22px, 3vw, 30px);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-soft); }

.feature__icon {
  width: 54px; height: 54px; border-radius: var(--r); background: var(--grad-tile);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary-deep); font-size: 1.5rem; margin-bottom: 18px;
}
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--c-muted); font-size: .98rem; }

.step { display: flex; flex-direction: column; }
.step__num {
  width: 44px; height: 44px; border-radius: var(--r-pill); background: rgba(238, 111, 47, .12);
  color: var(--c-primary-deep); font-weight: 800; display: inline-flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 1.05rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--c-muted); font-size: .96rem; margin-bottom: 18px; }
.step .media-frame { margin-top: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); font-weight: 800; color: var(--c-primary); }
.stat__label { color: var(--c-muted); font-size: .92rem; margin-top: 4px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* alternating image/text storytelling rows */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.split + .split { margin-top: clamp(40px, 6vw, 88px); }
.split:nth-child(even) .split__media { order: -1; }
.split h3 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); margin-bottom: 14px; }
.split p { color: var(--c-muted); }
.split__media .media-frame { max-width: 460px; margin-inline: auto; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split:nth-child(even) .split__media { order: 0; }
}

/* bullet list with green ticks */
.ticks { margin-top: 14px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--c-muted); }
.ticks li::before { content: "\2713"; color: var(--c-green-deep); font-weight: 800; flex: none; }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band {
  background: var(--grad-cta); color: #fff; text-align: center;
  border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  box-shadow: var(--sh-soft); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .95); max-width: 54ch; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-group__title { font-size: 1.05rem; font-weight: 800; color: var(--c-primary-deep); margin: 26px 0 6px; }
.faq-item { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r); box-shadow: var(--sh-card); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--c-primary); transition: transform .2s; font-weight: normal; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__a { padding: 0 22px 20px; color: var(--c-muted); }

/* ---- Legal prose + callouts ----------------------------------------------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal__updated { color: var(--c-muted-2); font-size: .9rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #3f3a37; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-inline-start: 22px; }
.legal ul li { list-style: disc; margin-bottom: 8px; }
.legal ol li { list-style: decimal; margin-bottom: 8px; }
.legal a { color: var(--c-primary-deep); text-decoration: underline; }

.callout { border-radius: var(--r); padding: 18px 22px; margin-bottom: 24px; border: 1px solid; }
.callout h3 { margin: 0 0 6px; font-size: 1rem; }
.callout p { margin: 0; }
.callout--info { background: rgba(163, 204, 68, .10); border-color: rgba(163, 204, 68, .45); }
.callout--warn { background: #fef6e7; border-color: #f6d488; }

/* ---- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 600; margin-bottom: 8px; }
.input, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--c-border);
  border-radius: var(--r); background: var(--c-white); color: var(--c-ink); font-size: 1rem;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(238, 111, 47, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--c-primary); }
.form-status { padding: 14px 18px; border-radius: var(--r); margin-top: 16px; display: none; }
.form-status.show { display: block; }
.form-status--ok { background: rgba(163, 204, 68, .14); color: var(--c-green-deep); }
.form-status--err { background: #fdeaea; color: #b3261e; }
.form-card { max-width: 560px; margin-inline: auto; }

/* ---- Footer --------------------------------------------------------------- */
.footer { background: var(--c-ink); color: rgba(255, 255, 255, .72); padding-block: clamp(48px, 7vw, 80px) 32px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer__brand img { height: 30px; width: auto; object-fit: contain; margin-bottom: 18px; }
.footer__brand p { max-width: 38ch; color: rgba(255, 255, 255, .6); }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__link { display: block; width: 100%; padding: 9px 0; color: rgba(255, 255, 255, .68); transition: color .18s; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.footer__link:last-child { border-bottom: 0; }
.footer__link:hover { color: var(--c-green); }

/* ---- App-store badges ----------------------------------------------------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 9px 18px;
  border-radius: var(--r); background: var(--c-ink); color: #fff;
  border: 1px solid rgba(0, 0, 0, .12); box-shadow: var(--sh-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24, 19, 17, .22); }
.store-badge i { font-size: 23px; line-height: 1; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-badge small { font-size: .62rem; opacity: .82; letter-spacing: .3px; }
.store-badge b { font-size: .98rem; font-weight: 700; letter-spacing: .2px; }
/* On the dark footer / warm CTA band the ink badge would blend — lift it with a translucent fill */
.footer .store-badge, .cta-band .store-badge { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.footer .store-badge:hover, .cta-band .store-badge:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.cta-band .store-badges { justify-content: center; }
@media (max-width: 420px) { .store-badge { flex: 1 1 100%; justify-content: center; } }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: rgba(255, 255, 255, .5); font-size: .85rem;
}
.footer .watermark { opacity: .06; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Live starting prices ------------------------------------------------- */
.price-board { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.price-table { width: 100%; border-collapse: collapse; background: var(--c-white); border: 1px solid var(--c-border); }
.price-table th, .price-table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--c-border); }
.price-table th { font-size: .85rem; color: var(--c-muted); font-weight: 600; background: var(--c-surface); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .price-from { font-weight: 800; color: var(--c-primary); white-space: nowrap; }
.price-table .price-city { color: var(--c-muted); }
.price-footnote { margin-top: 12px; color: var(--c-muted); font-size: .92rem; }
#live-prices[hidden] { display: none !important; }

/* ---- Motion preference ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; }
}
