/* =========================================================================
   منقذ — Design system (public site)
   One source of truth: tokens → base → layout → components → sections → pages.
   Spacing follows a 4px grid. Touch targets ≥ 44px. RTL-first (logical props).
   ========================================================================= */

/* ---------- 1. Tokens: see tokens.css (shared with admin) ---------- */

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.35; margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; }
a { color: var(--red); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--red-100); }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.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; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-md);
  font-weight: 600; text-decoration: none; transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Buttons ---------- */
.btn {
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible { box-shadow: var(--focus); border-radius: var(--r-md); }

.btn.primary { background: var(--red); color: #fff; box-shadow: 0 1px 2px rgba(10, 34, 71, .2), 0 8px 18px -10px rgba(196, 6, 10, .6); }
.btn.primary:hover { background: var(--red-600); }
.btn.secondary { background: var(--navy); color: #fff; }
.btn.secondary:hover { background: #12305e; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn.text { background: transparent; color: var(--ink-2); min-height: 40px; padding: 8px 12px; }
.btn.text:hover { color: var(--ink); background: var(--surface-2); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: var(--fs-sm); }
.btn.big { min-height: 52px; padding: 14px 24px; font-size: var(--fs-md); border-radius: var(--r-md); }
.btn.block { width: 100%; }

/* ---------- 4. Forms ---------- */
select, input, textarea {
  font: inherit; font-size: var(--fs-md); /* 16px prevents iOS zoom */
  color: var(--ink); background: var(--surface);
  width: 100%; min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #8a97a8; }
select, option { unicode-bidi: plaintext; }
select {
  text-align: right; appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344546b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 14px;
}
/* iOS Safari draws date inputs wider than their box and blank when empty */
input[type="date"] {
  appearance: none; -webkit-appearance: none; display: block; min-width: 0; max-width: 100%;
  text-align: right; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344546b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 18px;
}
input[type="date"]::-webkit-date-and-time-value { text-align: right; min-height: 1.5em; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; }
select:disabled { background-color: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
select:hover:not(:disabled), input:not([type="checkbox"]):not([type="radio"]):hover, textarea:hover { border-color: var(--ink-3); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--red); box-shadow: none; }

.field, .grid2 label, .stack, .filters label { display: grid; gap: 6px; align-content: start; }
.field > span, .grid2 label > span, .stack > span, .filters label > span {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.grid2 { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.stack { margin-bottom: var(--s4); }
.check {
  display: flex; align-items: flex-start; gap: var(--s3);
  margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; line-height: 1.6;
}
.check input { margin-top: 2px; }
.hint { color: var(--ink-2); font-size: var(--fs-sm); margin: 0 0 var(--s4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.result {
  margin-top: var(--s4); padding: var(--s3) var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  font-size: var(--fs-sm);
}
.result a { color: var(--red); font-weight: 700; }
.linkbox {
  background: var(--amber-50); border: 1px solid var(--amber-100); border-radius: var(--r-md);
  padding: var(--s3) var(--s4); word-break: break-all; font-size: var(--fs-sm); text-align: left; margin: 0;
}

/* push alerts card (push.js) */
.push-card {
  margin: var(--s6) 0 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2);
}
.push-card h3 { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); font-size: 1rem; }
.push-card .hint { margin-bottom: var(--s3); }
.push-card .actions { margin-top: var(--s3); }
.push-on { margin: 0 0 var(--s3); font-weight: 700; color: var(--green); }
.push-warn { color: var(--red); }
.push-steps { margin: 0; padding-inline-start: var(--s6); font-size: var(--fs-sm); line-height: 1.9; }

/* ---------- 5. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; border-radius: var(--r-sm); }
.brand img.logo { height: 40px; width: auto; display: block; }
.nav { display: none; gap: var(--s1); margin-inline-start: var(--s4); }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  padding: 10px 12px; border-radius: var(--r-sm); transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--red); }
.top-actions { display: flex; align-items: center; gap: var(--s2); margin-inline-start: auto; }
/* "كن متبرع" (added by donor.js) lives in the mobile action bar on small screens */
.top-actions #donorBtn { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .brand img.logo { height: 44px; }
  .top-actions #donorBtn { display: inline-flex; }
}

/* mobile bottom action bar */
.mbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 15;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(10, 34, 71, .3);
}
.mbar .btn { min-height: 48px; }
body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .mbar { display: none; } body.has-mbar { padding-bottom: 0; } }

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--s12); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: var(--s2); margin-bottom: var(--s6); max-width: 68ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2); width: fit-content;
  font-size: var(--fs-xs); font-weight: 700; color: var(--red);
  background: var(--red-50); border-radius: var(--r-pill); padding: 4px 12px;
}
.sec-head h2, .compat h2, .faq h2, .gov-links h2 { font-size: var(--fs-2xl); }
.sec-lead { color: var(--ink-2); font-size: var(--fs-md); max-width: 62ch; }
.sec-note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--ink-2); }
.sec-note a { font-weight: 600; text-decoration: none; }
.sec-note a:hover { text-decoration: underline; }
@media (min-width: 720px) { .section { padding-block: var(--s16); } }

/* ---------- 7. Hero ---------- */
.intro { padding-block: var(--s10) var(--s10); }
.intro-grid { display: grid; gap: var(--s8); align-items: center; }
.hero-text { display: grid; gap: var(--s4); }
.intro h1 { font-size: var(--fs-3xl); line-height: 1.3; letter-spacing: -.01em; }
.intro h1 em { font-style: normal; color: var(--red); }
.intro .lead { color: var(--ink-2); font-size: var(--fs-lg); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.trust { list-style: none; padding: 0; margin: var(--s2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-sm); color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: var(--s2); }
.trust li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317704a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--green-100);
}

/* hero side card: quick paths */
.paths { display: grid; gap: var(--s3); }
.path {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); text-decoration: none; color: var(--ink); box-shadow: var(--sh-1);
  transition: border-color .15s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.path:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }
.path-ic { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.path-ic.alt { background: var(--green-50); color: var(--green); }
.path-ic.navy { background: var(--surface-2); color: var(--navy); }
.path-ic svg { width: 24px; height: 24px; }
.path b { display: block; font-size: var(--fs-md); }
.path span { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.path .arrow { width: 20px; height: 20px; color: var(--ink-3); transition: transform .15s var(--ease); }
.path:hover .arrow { transform: translateX(-3px); color: var(--red); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) 0; }
.hstat { text-align: center; padding: 0 var(--s3); }
.hstat + .hstat { border-inline-start: 1px solid var(--line); }
.hstat b { display: block; font-size: 1.75rem; font-weight: 700; color: var(--red); line-height: 1.15; font-variant-numeric: tabular-nums; }
.hstat span { display: block; margin-top: var(--s1); font-size: var(--fs-xs); color: var(--ink-2); }

@media (min-width: 900px) {
  .intro { padding-block: var(--s16) var(--s12); }
  .intro-grid { grid-template-columns: 1.25fr 1fr; gap: var(--s12); }
  .hstat b { font-size: 2.25rem; }
}
@media (max-width: 559px) {
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- 8. Requests: toolbar + cards ---------- */
.requests-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.requests-head .sec-head { margin-bottom: 0; }
.filters {
  display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--sh-1);
}
.filters .search { grid-column: 1 / -1; }
.filters label > span { font-size: var(--fs-xs); color: var(--ink-2); }
.count { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr 1fr 1.4fr; align-items: end; }
  .filters .search { grid-column: auto; }
}

.list { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 720px) { .list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .list { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  display: flex; flex-direction: column; gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--sh-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card.is-urgent { border-color: var(--red-100); box-shadow: inset -4px 0 0 var(--red), var(--sh-1); }
@media (hover: hover) { .card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); } .card.is-urgent:hover { box-shadow: inset -4px 0 0 var(--red), var(--sh-2); } }
.card-head { display: flex; align-items: flex-start; gap: var(--s3); }
.card-title { flex: 1; min-width: 0; }
.card h3 { font-size: var(--fs-md); line-height: 1.5; overflow-wrap: anywhere; }
.card-sub { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; }
.badge {
  direction: ltr; unicode-bidi: isolate; flex: none;
  display: grid; place-items: center; min-width: 56px; height: 48px; padding: 0 var(--s2);
  font-weight: 700; font-size: var(--fs-lg); color: var(--red);
  background: var(--red-50); border: 1px solid var(--red-100); border-radius: var(--r-md);
}
.urgent {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; color: #fff; background: var(--red);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.urgent::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .urgent::before { animation: blink 1.4s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .3; } }
.card p { color: var(--ink-2); font-size: var(--fs-sm); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: var(--fs-xs); color: var(--ink-2); }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.badge-demo, .badge-unv, .badge-ver {
  font-size: var(--fs-xs); font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface-2);
}
.badge-ver { color: var(--green); border-color: var(--green-100); background: var(--green-50); }
.badge-demo { color: var(--amber-ink); border-color: var(--amber-100); background: var(--amber-50); }
.donors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: var(--s3); border-top: 1px dashed var(--line); }
.donors > span { font-size: var(--fs-xs); color: var(--ink-2); margin-inline-end: 2px; }
.chip {
  direction: ltr; unicode-bidi: isolate;
  font-size: var(--fs-xs); font-weight: 700; color: var(--green);
  background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r-sm); padding: 1px 8px;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: var(--s1); }
.pledges { font-size: var(--fs-xs); color: var(--green); font-weight: 600; }
.card-acts { display: inline-flex; align-items: center; gap: var(--s1); margin-inline-start: auto; }
.btn-report {
  font: inherit; font-size: var(--fs-xs); color: var(--ink-3); background: none;
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px;
  border: 1px solid transparent; border-radius: var(--r-pill); padding: 6px 10px; cursor: pointer;
}
.btn-report svg { width: 14px; height: 14px; }
.btn-report:hover { color: var(--red); background: var(--red-50); }
.btn-report:focus-visible { box-shadow: var(--focus); }

.empty {
  text-align: center; color: var(--ink-2); padding: var(--s10) var(--s4);
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); margin-top: var(--s5);
}
.list-more { display: flex; justify-content: center; margin-top: var(--s6); }

/* skeleton while requests load */
.skel { height: 210px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .skel { animation: shimmer 1.3s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.mine { padding-block: var(--s10) 0; }
.mine h2 { font-size: var(--fs-xl); margin-bottom: var(--s4); }
.mine .card + .card { margin-top: var(--s3); }
.mine h2 + .card { margin-top: 0; }
.mine .card + h2 { margin-top: var(--s8); }
.resp-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding-block: var(--s2); }
.resp-row + .resp-row { border-top: 1px solid var(--line); }

/* ---------- 9. How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6); padding-top: var(--s10); counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; top: var(--s5); inset-inline-start: var(--s6);
  font-size: var(--fs-xs); font-weight: 700; color: var(--red);
}
.step-ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--red-50); color: var(--red); margin-bottom: var(--s4); }
.step-ic svg { width: 22px; height: 22px; }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.step p { color: var(--ink-2); font-size: var(--fs-sm); }
.tabs-two { display: grid; gap: var(--s6); }
.tabs-two h3.track { font-size: var(--fs-md); color: var(--ink-2); margin-bottom: var(--s3); display: flex; align-items: center; gap: var(--s2); }
.tabs-two h3.track::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.tabs-two .donor-track h3.track::before { background: var(--green); }
.donor-track .step-ic { background: var(--green-50); color: var(--green); }
.donor-track .step::before { color: var(--green); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 10. Journey (scroll scene) ---------- */
.journey { height: 220vh; margin: 0; position: relative; }
.journey-head { text-align: center; margin-inline: auto; padding-top: var(--s12); }
.j-stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 440px; max-height: 820px;
  overflow: hidden; background: transparent;
}
.j-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.j-caps { position: absolute; inset-inline: var(--s6); top: var(--s6); height: 104px; pointer-events: none; text-align: center; color: var(--ink); }
.j-cap { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.j-cap.on { opacity: 1; transform: none; }
.j-cap b { display: block; font-size: var(--fs-xl); line-height: 1.4; margin-bottom: var(--s2); }
.j-cap span { display: block; font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); }
.j-dots { position: absolute; inset-inline: 0; bottom: 72px; display: flex; justify-content: center; gap: var(--s2); }
.j-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: rgba(10, 34, 71, .16); transition: background .3s ease, width .3s ease; }
.j-dot.on { background: var(--red); width: 24px; }
.j-skip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--s5); z-index: 2; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 18px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.j-skip:hover { background: var(--red-50); color: var(--red); }
.j-skip:focus-visible { border-radius: var(--r-pill); }
.is-static.journey { height: auto; }
.is-static .j-stage { position: relative; top: 0; height: 440px; }
@media (min-width: 720px) {
  .j-cap b { font-size: 1.875rem; }
  .j-cap span { font-size: var(--fs-lg); }
}
@media (max-width: 719px) { .journey { height: 180vh; } .j-dots { bottom: 68px; } }

/* ---------- 11. Compatibility ---------- */
.compat-grid { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.compat-row { display: flex; align-items: center; gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); min-height: 56px; }
.compat-row [dir="ltr"] { unicode-bidi: isolate; direction: ltr; }
.compat-row b { flex: none; min-width: 52px; text-align: center; font-size: var(--fs-md); color: var(--red); background: var(--red-50); border: 1px solid var(--red-100); border-radius: var(--r-sm); padding: 2px 8px; }
.compat-row span { font-size: var(--fs-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .compat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 12. FAQ ---------- */
.faq-list { display: grid; gap: var(--s3); max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s4) var(--s5); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 56px;
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4060a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 var(--s5) var(--s5); color: var(--ink-2); font-size: var(--fs-md); }

/* ---------- 13. Governorate links / chips ---------- */
.gov-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.gov-links-grid a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--s2) var(--s3);
  text-align: center; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  transition: border-color .15s, color .15s, background-color .15s;
}
.gov-links-grid a:hover { border-color: var(--red); color: var(--red); background: var(--red-50); }
@media (min-width: 560px) { .gov-links-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gov-links-grid { grid-template-columns: repeat(5, 1fr); } }

.gov-page h2 { margin-top: var(--s10); }
.gov-live { background: var(--red-50); border: 1px solid var(--red-100); color: var(--red); font-weight: 700; border-radius: var(--r-md); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.city-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.city-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.city-chip:hover { border-color: var(--red); color: var(--red); }
.city-chip.all { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  display: grid; gap: var(--s5); align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: var(--s8) var(--s6);
}
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-band p { color: #c9d4e4; margin-top: var(--s2); }
.cta-band .hero-cta { margin: 0; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: var(--s10) var(--s12); } }

/* ---------- 15. Dialogs ---------- */
.sheet {
  border: none; padding: 0; color: var(--ink); background: var(--surface);
  width: min(100% - 24px, 600px); max-height: min(92vh, 880px);
  border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(10, 34, 71, .55); }
.sheet form, .sheet > div { padding: var(--s6); }
.sheet h2 { font-size: var(--fs-xl); margin: 0 0 var(--s2); padding-inline-end: var(--s10); }
.sheet-x {
  position: sticky; top: 0; float: left; margin: var(--s3); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2);
}
.sheet-x:hover { background: var(--line); color: var(--ink); }
.sheet-x svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .24s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } }
}
@media (max-width: 559px) {
  /* bottom sheet on phones */
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
  .sheet form, .sheet > div { padding: var(--s5) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom)); }
  .sheet .actions .btn { flex: 1 1 auto; }
}
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .wide { grid-column: 1 / -1; } }

.reasons { display: grid; gap: var(--s2); margin: var(--s4) 0; }
.reason {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 52px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm);
}
.reason:has(input:checked) { border-color: var(--red); background: var(--red-50); }
.reason span { flex: 1; color: var(--ink); }

/* ---------- 16. Toast ---------- */
.toast {
  position: fixed; inset-inline: 0; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 60;
  margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--navy); color: #fff; padding: var(--s3) var(--s5);
  border-radius: var(--r-md); font-size: var(--fs-sm); box-shadow: var(--sh-3);
}
@media (min-width: 900px) { .toast { bottom: var(--s6); } }

/* ---------- 17. Footer ---------- */
.foot2 { margin-top: var(--s16); background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.foot2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8) var(--s6); padding-block: var(--s12) var(--s10); align-items: start; }
.foot-brand, .foot-contact { grid-column: 1 / -1; }
.foot-logo { display: inline-block; border-radius: var(--r-sm); }
.foot-logo .logo { width: 140px; height: auto; display: block; }
.foot-tag { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--ink-2); max-width: 34ch; }
.foot-col h3 { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin: 0 0 var(--s4); }
.foot-col a, .foot-col .flink {
  display: block; width: fit-content; padding: 6px 0; margin: 0 0 var(--s1);
  background: none; border: 0; font: inherit; font-size: var(--fs-sm);
  color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color .15s;
}
.foot-col a:hover, .foot-col .flink:hover { color: var(--red); }
.foot-contact { display: grid; gap: var(--s5); align-content: start; }
.foot-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot-tips li { position: relative; padding-inline-start: var(--s5); line-height: 1.8; color: var(--ink-2); font-size: var(--fs-sm); }
.foot-tips li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.social { display: flex; flex-wrap: wrap; gap: var(--s2); }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; margin: 0;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--navy);
  transition: background-color .15s, color .15s, border-color .15s;
}
.social a:hover { background: var(--red-50); border-color: var(--red-100); color: var(--red); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-contact .foot-cta {
  display: inline-flex; align-items: center; gap: var(--s2); width: fit-content; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: var(--ink); font-size: var(--fs-sm); font-weight: 600; padding: 10px 18px; text-decoration: none;
}
.foot-contact .foot-cta:hover { border-color: var(--red); color: var(--red); }
.foot-contact .foot-cta svg { width: 16px; height: 16px; fill: currentColor; }
.foot-base { border-top: 1px solid var(--line); }
.foot-base-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s3); padding-block: var(--s5); font-size: var(--fs-xs); color: var(--ink-2); }
.dev-credit b { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .foot2-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .foot-brand, .foot-contact { grid-column: auto; }
}
@media (max-width: 559px) { .foot-base-in { justify-content: center; text-align: center; } }

/* ---------- 18. Content pages ---------- */
.doc { padding-block: var(--s8) var(--s12); }
.doc-body { max-width: 760px; margin: 0 auto; }
.crumbs, .doc-kicker { font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 var(--s3); }
.doc-kicker a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.doc-kicker a:hover { color: var(--red); text-decoration: underline; }
.doc-body h1 { font-size: var(--fs-3xl); line-height: 1.3; margin: 0 0 var(--s4); }
.doc-lead { font-size: var(--fs-lg); line-height: 1.85; color: var(--ink-2); margin: 0 0 var(--s8); }
.doc-body h2 { font-size: var(--fs-xl); margin: var(--s10) 0 var(--s3); }
.doc-body h3 { font-size: var(--fs-lg); margin: var(--s6) 0 var(--s2); }
.doc-body p, .doc-body li { line-height: 1.95; color: #1f3350; }
.doc-body p + p { margin-top: var(--s3); }
.doc-body ul { padding-inline-start: var(--s6); margin: 0 0 var(--s2); }
.doc-body li { margin-bottom: var(--s2); }
.doc-body li::marker { color: var(--red); }
.doc-body > p > .btn { margin-top: var(--s4); }
.doc-sources li { word-break: break-word; }
.doc-note { background: var(--amber-50); border: 1px solid var(--amber-100); border-radius: var(--r-md); padding: var(--s4); color: var(--amber-ink); margin-top: var(--s6); }

.fb-form { display: flex; flex-direction: column; gap: var(--s5); margin-top: var(--s5); }
.fb-field { display: flex; flex-direction: column; gap: 6px; }
.fb-field span { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.fb-field span b { color: var(--red); }
.fb-actions { display: flex; align-items: center; gap: var(--s4); }
.fb-done { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r-lg); padding: var(--s6); margin-top: var(--s5); }
.fb-done h2 { margin-top: 0; }

/* ---------- 19. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 20. Header: account button, menu button, mobile drawer ---------- */
.top { transition: box-shadow .2s var(--ease); }
.top.scrolled { box-shadow: 0 6px 20px -14px rgba(10, 34, 71, .35); }
.top-actions .btn.primary span { display: inline; }

/* «دخول» / «حسابي»: an account chip (icon in a navy disc + bold label), same height and corners as the menu button */
.btn.auth-btn {
  min-height: 44px; gap: 8px;
  padding-block: 5px; padding-inline: 5px 14px;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-sm);
  box-shadow: 0 1px 2px rgba(10, 34, 71, .06);
}
.btn.auth-btn svg {
  width: 32px; height: 32px; padding: 7px; box-sizing: border-box;
  border-radius: 9px; background: var(--navy); color: #fff;
  transition: background-color .15s var(--ease);
}
.btn.auth-btn:hover { border-color: var(--navy); background: var(--surface); }
.btn.auth-btn:hover svg { background: var(--red); }
.btn.auth-btn.is-in svg { background: var(--red-50); color: var(--red); }

.menu-btn {
  width: 44px; min-height: 44px; padding: 0;
  background: var(--surface-2); color: var(--navy); border: 1px solid var(--line);
}
.menu-btn:hover { background: var(--line); }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .top-inner { gap: var(--s2); }
  .hide-sm, .top-actions #adminLink { display: none; }
  .top-actions .btn.primary { display: none; } /* the bottom bar carries "اطلب دم" on phones */
}
@media (min-width: 900px) { .menu-btn, .drawer { display: none !important; } }

/* side drawer (RTL: slides in from the right, the reading-start edge) */
.drawer {
  position: fixed; inset: 0 0 0 auto; inset-inline-start: 0; inset-inline-end: auto;
  margin: 0; padding: 0; border: 0;
  width: min(88vw, 380px); max-width: none; height: 100%; max-height: none; height: 100dvh;
  background: var(--surface); color: var(--ink);
  box-shadow: -24px 0 48px -24px rgba(10, 34, 71, .45);
  overflow: hidden;
}
.drawer::backdrop { background: rgba(10, 34, 71, .5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.drawer[open] { display: block; animation: drawer-in .28s var(--ease); }
.drawer[open]::backdrop { animation: drawer-fade .28s var(--ease); }
.drawer.closing { animation: drawer-out .22s var(--ease) forwards; }
.drawer.closing::backdrop { animation: drawer-fade .22s var(--ease) reverse forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
[dir="ltr"] .drawer { box-shadow: 24px 0 48px -24px rgba(10, 34, 71, .45); }

.drawer-in {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--s4);
  padding: calc(var(--s3) + env(safe-area-inset-top)) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom));
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.drawer-head h2 { margin: 0; font-size: var(--fs-lg); }
.drawer-x {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); color: var(--navy); border: 0; border-radius: var(--r-md);
}
.drawer-x svg { width: 20px; height: 20px; }
.drawer-x:hover { background: var(--line); }
.drawer-x:focus-visible { box-shadow: var(--focus); }

.drawer-acct {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s3);
  padding: var(--s4); border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line);
}
.drawer-av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--navy); border: 1px solid var(--line-2);
}
.drawer-av svg { width: 22px; height: 22px; }
.drawer-acct.is-in .drawer-av { background: var(--red-50); color: var(--red); border-color: var(--red-100); }
.drawer-who { display: grid; gap: 2px; min-width: 0; }
.drawer-who b { font-size: var(--fs-md); }
.drawer-who small { color: var(--ink-2); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; }
.drawer-acct .btn { grid-column: 1 / -1; min-height: 48px; }

.drawer-nav { display: grid; }
.drawer-nav a {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: var(--s2) var(--s2);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-md);
  border-radius: var(--r-md);
}
.drawer-nav a + a { border-top: 1px solid var(--surface-2); }
.drawer-nav a:hover, .drawer-nav a:active { background: var(--surface-2); }
.drawer-nav a[aria-current] { color: var(--red); }
.drawer-nav .di {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--red-50); color: var(--red);
}
.drawer-nav .di svg { width: 19px; height: 19px; }
.drawer-nav .dl { flex: 1; }
.drawer-nav .chev { width: 18px; height: 18px; color: var(--ink-3); }
[dir="ltr"] .drawer-nav .chev { transform: scaleX(-1); }

.drawer-cta { display: grid; gap: var(--s2); margin-top: auto; padding-top: var(--s2); }
.drawer-cta .btn { min-height: 50px; font-size: var(--fs-md); }
.drawer-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s4);
  padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm);
}
.drawer-foot a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.drawer-foot a:hover { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .drawer[open], .drawer.closing, .drawer[open]::backdrop, .drawer.closing::backdrop { animation: none; }
}
html.dlg-open { overflow: hidden; }

/* ---------- 21. Hero finder ---------- */
.finder {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s6); box-shadow: var(--sh-2);
}
.finder-title { font-size: var(--fs-xl); }
.finder-sub { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--s1); }
.finder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s5); direction: ltr; }
.finder-grid button {
  font: inherit; font-weight: 700; font-size: var(--fs-lg); color: var(--red);
  min-height: 56px; border-radius: var(--r-md); cursor: pointer;
  background: var(--red-50); border: 1px solid var(--red-100);
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.finder-grid button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.finder-grid button:active { transform: scale(.97); }
.finder-grid button:focus-visible { box-shadow: var(--focus); border-radius: var(--r-md); }
.finder-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s3); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.finder-all:hover { text-decoration: underline; }
.finder .hero-stats { margin-top: var(--s4); background: var(--surface-2); border: 0; }

/* ---------- 22. Section bits ---------- */
.requests { border-top: 0; }
.how { background: var(--surface); }
.how .step { background: var(--bg); border-color: transparent; }
.journey-head { padding-top: var(--s12); }
.journey-head .eyebrow { margin-inline: auto; }
.journey-title { font-size: var(--fs-2xl); margin-top: var(--s2); }
.gov-links { border-top: 1px solid var(--line); }
.sec-head h2 { margin: 0; }
.foot-h { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin: 0 0 var(--s3); }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--s4); }
.foot-legal a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.foot-legal a:hover { color: var(--red); }
.foot-brand .social { margin-top: var(--s5); }
@media (min-width: 900px) { .tabs-two { gap: var(--s10); } }

/* حسابي */
.account-links { display: grid; gap: var(--s3); margin-top: var(--s4); }
.account-links .btn { justify-content: center; width: 100%; }

/* ---------- 23. Install the app (install.js) ---------- */
html.pwa-app [data-install], html.pwa-app [data-install-hide] { display: none !important; }
.inst-top { display: none; }
@media (min-width: 900px) { html.pwa-can .inst-top { display: inline-flex; } }
.inst-top svg { width: 18px; height: 18px; }

/* bottom banner: sits above the phone action bar, a corner card on desktop */
.inst-bar {
  position: fixed; z-index: 30; inset-inline: var(--s3); bottom: calc(80px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s3);
  padding: var(--s3); padding-inline-end: var(--s2);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(12px); transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.inst-bar.on { opacity: 1; transform: none; }
.inst-bar img { border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.inst-bar-t { display: grid; gap: 2px; min-width: 0; }
.inst-bar-t b { font-size: var(--fs-sm); }
.inst-bar-t span { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.45; }
.inst-bar .btn { white-space: nowrap; }
.inst-x {
  width: 36px; height: 36px; display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 50%; background: transparent; color: var(--ink-3);
}
.inst-x:hover { background: var(--surface-2); color: var(--ink); }
.inst-x svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .inst-bar { inset-inline: auto var(--s6); bottom: var(--s6); width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .inst-bar { transition: none; } }

/* how-to sheet */
.inst-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.inst-head img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.inst-head h2 { margin: 0; }
.inst-head .hint { margin: 2px 0 0; }
.inst-perks { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s2); }
.inst-perks li {
  display: grid; gap: 2px; padding: var(--s3) var(--s4); padding-inline-start: calc(var(--s4) + 22px);
  background: var(--surface-2); border-radius: var(--r-md); position: relative;
}
.inst-perks li::before {
  content: ""; position: absolute; inset-inline-start: var(--s4); top: calc(var(--s3) + 5px);
  width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red);
}
.inst-perks b { font-size: var(--fs-sm); }
.inst-perks span { font-size: var(--fs-xs); color: var(--ink-2); }
.inst-h { font-size: var(--fs-md); margin: 0 0 var(--s3); }
.inst-steps { margin: 0 0 var(--s3); padding: 0; list-style: none; counter-reset: st; display: grid; gap: var(--s3); }
.inst-steps li {
  counter-increment: st; position: relative; padding-inline-start: 40px; min-height: 28px;
  font-size: var(--fs-sm); line-height: 1.7;
}
.inst-steps li::before {
  content: counter(st); position: absolute; inset-inline-start: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: var(--fs-xs);
}
.inst-steps small { display: block; color: var(--ink-3); }
.ios-ic { width: 22px; height: 22px; vertical-align: -5px; color: #0a84ff; margin-inline: 2px; }
.inst-note { font-size: var(--fs-xs); }
.inst-sheet .actions { margin-top: var(--s4); }

/* drawer card */
.drawer-app {
  display: flex; align-items: center; gap: var(--s3); width: 100%; cursor: pointer; text-align: start;
  padding: var(--s3) var(--s4); border-radius: var(--r-lg); font: inherit; color: var(--ink);
  background: linear-gradient(135deg, var(--red-50), #fff 70%); border: 1px solid var(--red-100);
}
.drawer-app img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.drawer-app span { display: grid; gap: 1px; flex: 1; }
.drawer-app b { font-size: var(--fs-md); }
.drawer-app small { font-size: var(--fs-xs); color: var(--ink-2); }
.drawer-app .dl-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; }
.drawer-app .dl-ic svg { width: 18px; height: 18px; }

/* home section */
.app-sec { background: var(--navy); color: #fff; overflow: hidden; }
.section + .app-sec, .app-sec + .section { border-top: 0; }
.app-grid { display: grid; gap: var(--s8); align-items: center; }
.app-sec .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.app-sec h2 { color: #fff; margin: var(--s2) 0 0; font-size: var(--fs-2xl); }
.app-sec .sec-lead { color: rgba(255, 255, 255, .8); }
.app-points { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); }
.app-points li { display: flex; gap: var(--s3); align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: var(--fs-sm); }
.app-points svg { width: 20px; height: 20px; flex: none; color: #ff6b6e; margin-top: 2px; }
.app-points b { color: #fff; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.app-cta small { color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); }
.app-cta .ios-only { display: none; }
html.pwa-ios .app-cta .ios-only { display: inline; }
html.pwa-ios .app-cta .not-ios { display: none; }
.phone {
  justify-self: center; width: 240px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 10px;
  background: #0d1b33; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .6);
  position: relative;
}
.phone-screen {
  height: 100%; border-radius: 28px; overflow: hidden; position: relative;
  background: radial-gradient(120% 80% at 80% 0%, #c4060a 0%, #5b0b20 45%, #0a2247 100%);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 18px 12px; padding: 72px 16px 16px;
}
.phone-screen i { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.phone-screen .ph-app { display: grid; justify-items: center; gap: 4px; font-style: normal; background: none; aspect-ratio: auto; font-size: 10px; color: #fff; }
.phone-screen .ph-app img { width: 100%; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5); }
.ph-note {
  position: absolute; inset-inline: 10px; top: 14px; display: flex; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 10.5px; line-height: 1.4; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}
.ph-note img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.ph-note b { display: block; font-size: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .app-sec.seen .ph-note { animation: ph-drop .7s var(--ease) .3s both; }
  @keyframes ph-drop { from { transform: translateY(-24px); opacity: 0; } }
}
@media (min-width: 900px) { .app-grid { grid-template-columns: 1.2fr 1fr; } .phone { width: 260px; } }
