:root {
  --plaster: #f2f4f1;
  --white: #ffffff;
  --palm: #1f5a46;
  --palm-deep: #12372a;
  --saffron: #e0a526;
  --stone: #5c6964;
  --rule: #d5dbd6;
  --wrap: 1120px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4.6vw, 3.4rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--palm-deep);
  font-family: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.65; }
html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] { display: none !important; }

a { color: var(--palm); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--palm-deep); margin-inline-end: auto; }
.brand-mark {
  width: 30px; height: 36px; flex: none;
  background: var(--palm);
  border-radius: 15px 15px 3px 3px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px 8px 0 8px;
  background: var(--white); border-radius: 7px 7px 0 0;
}
.brand-name { font-weight: 600; font-size: 1.15rem; }
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--stone); font-weight: 400; font-size: 0.98rem;
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--palm-deep); }
.site-nav a[aria-current="page"] { color: var(--palm-deep); border-bottom-color: var(--saffron); }
.lang-btn {
  font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  background: var(--white); color: var(--palm-deep);
  border: 1px solid var(--rule); border-radius: 8px; padding: 6px 14px;
}
.lang-btn:hover { border-color: var(--palm); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px; border: 1.5px solid var(--palm);
}
.btn-solid { background: var(--palm); color: var(--white); }
.btn-solid:hover { background: var(--palm-deep); border-color: var(--palm-deep); }
.btn-line { background: transparent; color: var(--palm); }
.btn-line:hover { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-block: 64px 0;
}
.hero-copy { padding-bottom: 64px; }
.hero-copy h1 { max-width: 13em; }
.hero-copy .lead { font-size: var(--step-1); color: var(--stone); max-width: 30em; margin-block: 22px 30px; line-height: 1.7; }
.hero-note { margin-top: 22px; font-size: var(--step--1); color: var(--stone); }
.arch { position: relative; align-self: end; max-width: 460px; width: 100%; margin-inline: auto; }
.arch::before {
  content: ""; position: absolute; inset: -14px -14px 0 -14px;
  border: 2px solid var(--saffron); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.arch img {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: 42% 50%;
  border-radius: 999px 999px 0 0; background: var(--plaster);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 0; }
  .hero-copy { padding-bottom: 0; }
  .arch { max-width: 300px; }
}

/* ---------- page head (inner pages) ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-block: 56px 48px; }
.page-head p { font-size: var(--step-1); color: var(--stone); max-width: 34em; margin-top: 16px; line-height: 1.7; }

/* ---------- sections ---------- */
.band { padding-block: 72px; }
.band + .band { border-top: 1px solid var(--rule); }
.band-white { background: var(--white); }
.band > .wrap > h2 { max-width: 20em; }
.band > .wrap > .intro { color: var(--stone); max-width: 36em; margin-top: 12px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.trio > div { border-top: 3px solid var(--palm); padding-top: 18px; }
.trio p { color: var(--stone); margin-top: 8px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 28px; } }

/* sequence of steps: a real ordered process, so it is numbered */
.steps { list-style: none; padding: 0; margin: 44px 0 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-end: 32px; padding-top: 58px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; inset-inline-start: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--palm); color: var(--white); font-weight: 600; z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 19px; inset-inline: 40px 0; height: 2px; background: var(--rule);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--stone); margin-top: 8px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps li { padding-top: 0; padding-inline: 58px 0; }
  .steps li::after { display: none; }
}

/* ---------- tappable example ---------- */
.demo { margin-top: 40px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.demo-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--plaster); line-height: 0; }
.demo-stage img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0;
  border-radius: 50%; border: 2px solid var(--white); background: rgba(18, 55, 42, 0.78);
  cursor: pointer; box-shadow: 0 1px 6px rgba(18, 55, 42, 0.35);
}
.pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--white); }
.pin[aria-pressed="true"] { background: var(--saffron); }
.pin[aria-pressed="true"]::after { background: var(--palm-deep); }
.demo-card { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; }
.demo-card h3 { margin-bottom: 14px; }
.demo-card dl { margin: 0; }
.demo-card dt { font-size: var(--step--1); color: var(--stone); }
.demo-card dd { margin: 0 0 14px; font-weight: 400; }
.demo-card dd:last-child { margin-bottom: 0; }
.demo-foot { grid-column: 1 / -1; font-size: var(--step--1); color: var(--stone); }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }

/* ---------- two plain columns ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.pair h3 { padding-bottom: 12px; border-bottom: 3px solid var(--palm); }
.pair ul { list-style: none; margin: 0; padding: 0; }
.pair li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; max-width: 46em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 18px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--palm); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--stone); padding-bottom: 20px; max-width: 40em; }

/* ---------- prose (about) ---------- */
.prose { max-width: 40em; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; color: var(--stone); }
.prose p strong { color: var(--palm-deep); font-weight: 500; }

/* ---------- call band ---------- */
.call { background: var(--palm-deep); color: var(--white); }
.call .wrap { padding-block: 64px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.call h2 { max-width: 18em; }
.call p { color: #c9d6cf; margin-top: 10px; max-width: 34em; }
.call .btn { background: var(--saffron); border-color: var(--saffron); color: var(--palm-deep); }
.call .btn:hover { background: #f0b83a; border-color: #f0b83a; }

/* ---------- footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--stone); }
.site-footer .wrap { padding-block: 36px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--stone); text-decoration: none; }
.site-footer a:hover { color: var(--palm-deep); text-decoration: underline; }
.site-footer .legal { max-width: 38em; margin-top: 12px; }
.site-footer .foot-brand { font-weight: 600; color: var(--palm-deep); font-size: 1rem; }
.site-footer .contact-line { margin-top: 12px; }
.site-footer .contact-line a { color: var(--palm); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
