/* BabCard home page (Arabic RTL + English LTR). Phone first. */

/* IBM Plex Sans Arabic, self-hosted (SIL Open Font License, see fonts/OFL.txt).
   The browser only downloads the subset a page actually uses. */
@font-face { font-family: "Plex 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+0898-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: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-arabic-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-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: "Plex 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+0898-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: "Plex 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-arabic-latin-600.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #FBF8F3;
  --sand: #F2EADC;
  --ink: #13201C;
  --green: #0B6E4F;
  --green-dark: #08543C;
  --mint: #E3F2EC;
  --muted: #4B5A55;
  --body: #33433E;
  --line: #E6DED0;
  --red: #B42318;
  --focus: #1A56DB;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.home {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; font-weight: 700; }
h3 { font-weight: 700; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[dir="ltr"] .i-fwd { transform: scaleX(-1); }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.sec { padding-block: 64px; }
.sec-tight { padding-block: 32px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; }
.sec-head p { font-size: 1.0625rem; color: var(--body); max-width: 560px; }
.sec-head.center { align-items: center; text-align: center; }

/* ---------- Nav ---------- */
.h-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 14px; position: relative; }
/* Light divider under the top bar, full screen width (same line as the footer). */
.h-nav::after { content: ""; position: absolute; inset-inline: calc(50% - 50vw); bottom: 0; height: 1px; background: var(--line); pointer-events: none; }
.h-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700; }
.h-brand:hover { color: var(--ink); }
.h-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; }
.h-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.h-link { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; }
.h-link:hover { color: var(--green); }
.h-pill { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 16px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.h-pill:hover { background: var(--green); color: #fff; }

.h-flash { margin-block: 4px 8px; padding: 12px 16px; border-radius: 12px; font-weight: 600; max-width: 1120px; width: calc(100% - 32px); background: var(--mint); color: var(--green-dark); }
.h-flash-error { background: #FDECEA; color: var(--red); }
.h-flash-warning { background: #FFF3D6; color: #6B4700; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 20px 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--mint); color: var(--green-dark); font-size: .9375rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
[dir="ltr"] .hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
.accent { color: var(--green); }
.hero-lead { max-width: 520px; font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--body); }
.hero-lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.btn-main, .btn-ghost, .btn-white {
  min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding-inline: 26px; border-radius: 16px; text-decoration: none; font-size: 1.125rem; font-weight: 700; }
.btn-main { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(11, 110, 79, .25); }
.btn-main:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--muted); font-size: .9375rem; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--green); }

/* Phone mock-up */
.hero-visual { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; overflow-x: clip; }
.phone-stage { position: relative; width: 320px; height: 600px; max-width: 100%; }
.phone-back { position: absolute; inset: 40px 0 0 0; border-radius: 48px; background: var(--sand); transform: rotate(-4deg); }
.phone { position: absolute; top: 0; inset-inline: 18px; height: 580px; border-radius: 44px; background: var(--ink);
  padding: 10px; box-shadow: 0 30px 60px rgba(19, 32, 28, .25); }
.phone-screen { height: 100%; border-radius: 35px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.m-top { display: flex; align-items: center; justify-content: space-between; padding: 30px 14px 10px; border-bottom: 1px solid #E1E7E4; }
.m-title { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; }
.m-title svg { color: var(--green); }
.m-lang { font-size: .6875rem; font-weight: 600; color: var(--muted); }
.m-door { display: block; width: 100%; height: auto; }
.m-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.m-loc { min-height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: flex;
  align-items: center; justify-content: center; gap: 8px; font-size: .9375rem; font-weight: 700; }
.m-addr { border: 1px solid #D5DDD9; border-radius: 12px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; }
.m-addr > span:first-child { display: flex; flex-direction: column; }
.m-small { display: block; font-size: .625rem; color: var(--muted); line-height: 1.4; }
.m-code { font-size: 1.125rem; font-weight: 700; letter-spacing: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.m-copy { font-size: .75rem; font-weight: 700; color: var(--green); border: 1.5px solid var(--green); border-radius: 8px; padding: 3px 9px; }
.m-note { border-radius: 12px; background: #F3F6F5; padding: 8px 10px; font-size: .8125rem; font-weight: 600; }
.m-trust { border-radius: 12px; background: #EEF8F3; border: 1px solid #B9DCCB; padding: 7px 10px;
  font-size: .6875rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.m-trust svg { color: var(--green); }
.float-thanks { position: absolute; bottom: 64px; inset-inline-start: -6px; background: #fff;
  border-radius: 18px; border-end-start-radius: 4px; padding: 10px 14px;
  box-shadow: 0 12px 28px rgba(19, 32, 28, .16); display: flex; align-items: center; gap: 10px; }
.float-ico { width: 32px; height: 32px; border-radius: 999px; background: #FCEFD6; color: #8A5300;
  display: inline-flex; align-items: center; justify-content: center; }
.float-txt { display: flex; flex-direction: column; line-height: 1.3; font-size: .875rem; }
.float-txt .m-small { font-size: .6875rem; }
.float-copied { position: absolute; top: 92px; inset-inline-end: -10px; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: .8125rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 12px 28px rgba(19, 32, 28, .25); }
.float-copied svg { color: #7FD8B0; }

/* ---------- Before / after ---------- */
.band-sand { background: var(--sand); padding-block: 64px; }
.ba { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.ba-card { flex: 1 1 320px; max-width: 520px; background: #fff; border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px; }
.ba-good { box-shadow: inset 0 0 0 3px var(--green); }
.tag { align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-size: .875rem; font-weight: 700; }
.tag-bad { background: #FDECEA; color: var(--red); }
.tag-good { background: var(--mint); color: var(--green-dark); }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; }
.bub-in { align-self: flex-start; background: #F3F6F5; border-end-start-radius: 4px; }
.bub-out { align-self: flex-end; background: #DCEFE6; border-radius: 16px; border-end-end-radius: 4px; }
.bub-link { width: 86%; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.bub-link p { padding-inline: 6px; font-size: .9375rem; }
.link-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; align-items: stretch; }
.link-card-ico { width: 60px; flex: none; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.link-card-txt { padding: 8px 12px; display: flex; flex-direction: column; line-height: 1.35; font-size: .8125rem; color: var(--muted); }
.link-card-txt b { font-size: .9375rem; color: var(--ink); }
.link-url { color: var(--green-dark); font-weight: 600; overflow-wrap: anywhere; }
.ba-foot { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: .9375rem; font-weight: 600; }
.ba-foot-bad { color: var(--red); }
.ba-foot-good { color: var(--green-dark); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-size: 3.25rem; line-height: 1; font-weight: 700; color: var(--green); }
.steps h3 { font-size: 1.375rem; }
.steps p { color: var(--muted); }
.code { font-weight: 700; color: var(--ink); }

/* ---------- Features ---------- */
.band-white { background: #fff; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.features li { border-radius: 20px; background: var(--cream); padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.feat-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; }
.feat-txt { display: flex; flex-direction: column; gap: 4px; }
.feat-txt h3 { font-size: 1.1875rem; }
.feat-txt p { color: var(--muted); }

/* ---------- Privacy ---------- */
.privacy { border-radius: 32px; background: var(--ink); color: #fff; padding: clamp(26px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.privacy-head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.privacy-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.25; }
.privacy-head p { font-size: 1.125rem; color: #C9D6D1; }
.privacy-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.privacy-list { flex: 1 1 340px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 1.0625rem; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; }
.privacy-list svg { color: #7FD8B0; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.faq details[open] { border-color: var(--green); }
.faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.faq-ico { color: var(--green); transition: transform .2s; }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--body); font-size: 1.0625rem; }

/* ---------- Final call to action ---------- */
.final-wrap { padding-block: 24px 72px; }
.final { border-radius: 32px; background: var(--green); color: #fff; text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
.final p { font-size: 1.1875rem; color: #DCEFE6; }
.btn-white { min-height: 60px; background: #fff; color: var(--green); border-radius: 18px; font-size: 1.1875rem; }
.btn-white:hover { background: var(--mint); color: var(--green-dark); }
.final .btn-white:focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.h-footer { border-top: 1px solid var(--line); padding: 22px 20px 30px; text-align: center; color: var(--muted); font-size: .875rem;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.h-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.h-footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 600; text-decoration: none; }
.h-footer-links a:hover { color: var(--green); text-decoration: underline; }

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .h-brand { font-size: 1.125rem; gap: 8px; }
  .h-logo { width: 36px; height: 36px; }
  .h-link { padding-inline: 8px; }
  .h-pill { padding-inline: 14px; }
  .hero { gap: 32px; }
  .cta-row a { flex: 1 1 100%; }
  .sec { padding-block: 52px; }
  .band-sand { padding-block: 52px; }
  .float-copied { inset-inline-end: 0; }
  .float-thanks { inset-inline-start: 0; }
}
@media (max-width: 360px) {
  .h-nav { flex-wrap: wrap; justify-content: center; }
}

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

/* ---------- Maintenance warning bar (admin only, while maintenance is on) ---------- */
.maint-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  padding: 10px 16px; background: #FFF3D6; color: #6B4700; border-bottom: 2px solid #B26B00;
  font-size: .9375rem; font-weight: 600; line-height: 1.5; text-align: center; }
.maint-bar a { color: #6B4700; font-weight: 700; text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; }
.maint-bar a:hover { color: #13201C; }
