/* Shared styles for the public site (landing, join, area pages). Direction A tokens. */
/* Direction A tokens — same values as disha_core DishaTokens */
:root {
  --blue: #0A3A82; --blue-deep: #062A60; --yellow: #F5C21B; --yellow-soft: #FFF5D1;
  --bg: #F5F7FB; --surface: #FFFFFF; --alt: #EEF2F8; --border: #E3E8F0;
  --text: #14213D; --muted: #5F6B7A; --primary: #0A3A82;
  --success: #1C7C54; --success-soft: #E3F4EC; --on-soft: #7A5300;
  --shadow: 0 10px 30px rgba(10, 58, 130, .10);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1324; --surface: #121E36; --alt: #1A2846; --border: #2A3A5E;
    --text: #EAF0FA; --muted: #A3B0C6; --primary: #8DB2F7; --yellow-soft: #3A3214;
    --success: #57C98F; --success-soft: #133A2B; --on-soft: #F5D466;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Tajawal, system-ui, "Segoe UI", Tahoma, sans-serif; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 16px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .14s cubic-bezier(.2,0,0,1), box-shadow .2s;
}
.btn:active { transform: scale(.96); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-yellow { background: var(--yellow); color: var(--blue-deep); box-shadow: 0 10px 24px rgba(245, 194, 27, .35); }
.btn-yellow:hover { box-shadow: 0 14px 30px rgba(245, 194, 27, .5); }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 13px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(10, 58, 130, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 800; }
.brand .tile { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; }
.menu { display: flex; gap: 22px; margin-inline-start: auto; }
.menu a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: 15px; }
.menu a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; border-radius: 0 0 40px 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.3px, transparent 1.3px); background-size: 22px 22px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(245, 194, 27, .16); color: var(--yellow); font-weight: 800; font-size: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.hero h1 span { color: var(--yellow); }
.hero .lead { margin: 0 0 28px; font-size: 19px; color: rgba(255,255,255,.86); max-width: 33ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.92); }
.ticks svg { flex: none; }

.device { justify-self: center; position: relative; width: min(300px, 80vw); animation: rise .7s cubic-bezier(.05,.7,.1,1) both; }
.device .frame {
  border-radius: 42px; padding: 10px; background: #061f47;
  box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08);
}
.device img { border-radius: 33px; width: 100%; height: auto; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 16px 34px rgba(6,42,96,.28);
  font-weight: 800; font-size: 14px; white-space: nowrap; animation: bob 3.6s ease-in-out infinite;
}
.float small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.float .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); flex: none; }
.float-1 { top: 18%; inset-inline-end: -64px; }
.float-2 { bottom: 14%; inset-inline-start: -56px; animation-delay: -1.8s; }
@keyframes rise { from { transform: translateY(30px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---------- trust strip ---------- */
.strip { margin-top: -34px; position: relative; z-index: 2; }
.strip ul {
  list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.strip li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.strip b { display: block; font-size: 16px; }
.strip span { color: var(--muted); font-size: 14px; }
.ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ic-blue { background: #E6EEFB; } .ic-green { background: #E3F4EC; } .ic-yellow { background: #FFF5D1; } .ic-orange { background: #FDEBDD; } .ic-purple { background: #EDE9FB; }
@media (prefers-color-scheme: dark) {
  .ic-blue { background: #1B2D52; } .ic-green { background: #133A2B; } .ic-yellow { background: #3A3214; } .ic-orange { background: #3D2616; } .ic-purple { background: #2A2350; }
}

/* ---------- sections ---------- */
section.block { padding: 88px 0 0; }
.head { max-width: 640px; margin-bottom: 34px; }
.kicker { color: var(--primary); font-weight: 800; font-size: 15px; letter-spacing: .2px; }
h2 { margin: 6px 0 8px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; font-weight: 800; }
.head p { margin: 0; color: var(--muted); font-size: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px; position: relative; }
.steps .n {
  width: 48px; height: 48px; border-radius: 15px; background: var(--yellow); color: var(--blue-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 16px;
}
.steps h3 { margin: 0 0 6px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }

/* ways to order */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way { padding: 26px; }
.way h3 { margin: 16px 0 6px; font-size: 20px; }
.way p { margin: 0; color: var(--muted); }
.way .eg { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--alt); font-size: 15px; color: var(--text); }

/* feature split */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.split .shot { justify-self: center; width: min(290px, 78vw); }
.feat { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.feat li { display: flex; gap: 14px; align-items: flex-start; }
.feat b { display: block; font-size: 18px; margin-bottom: 2px; }
.feat span { color: var(--muted); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { padding: 22px 10px; text-align: center; font-weight: 800; }
.cat .ic { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px; }

/* area + privacy */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo .card { padding: 30px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 10px; background: var(--yellow-soft); color: var(--on-soft); font-weight: 800; font-size: 14px; }
.duo h3 { margin: 12px 0 8px; font-size: 24px; }
.duo p { margin: 0; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none; border-inline-start: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(-45deg); transition: transform .2s; margin-top: -6px;
}
.faq details[open] summary::after { transform: rotate(135deg); margin-top: 6px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* final cta */
.final {
  margin-top: 88px; border-radius: 32px; background: var(--blue); color: #fff; padding: 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.3px, transparent 1.3px); background-size: 22px 22px;
}
.final > * { position: relative; }
.final h2 { color: #fff; margin: 0 0 6px; }
.final p { margin: 0; color: rgba(255,255,255,.85); font-size: 18px; }

/* footer */
footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
footer h4 { margin: 0 0 12px; font-size: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--primary); }
footer p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.legal { border-top: 1px solid var(--border); padding: 16px 0 24px; color: var(--muted); font-size: 14px; }
.brand-dark { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 72px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta, .ticks { justify-content: center; }
  .device { margin-top: 12px; width: min(260px, 70vw); }
  .float-1 { inset-inline-end: -40px; } .float-2 { inset-inline-start: -40px; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .steps, .ways, .duo { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .shot { order: 2; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .final { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .about { grid-column: 1 / -1; }
  section.block { padding-top: 64px; }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .topbar .btn { margin-inline-start: auto; }
  .float { display: none; }
  .strip ul { grid-template-columns: 1fr; padding: 10px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cats .cat:last-child { grid-column: 1 / -1; }
  .btn { width: 100%; }
  .topbar .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Growth additions (2026-11-08): coverage check, bigger categories,
   join pages, area pages, WhatsApp support
   ===================================================================== */

/* ---------- «بنوصّل عندك؟» ---------- */
.check {
  margin-top: 26px; padding: 16px; border-radius: 20px; max-width: 520px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
}
.check label { display: block; font-weight: 800; margin-bottom: 10px; }
.check-row { display: flex; gap: 8px; }
.check input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 0;
  font: inherit; font-size: 16px; background: #fff; color: #14213D;
}
.check input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check .btn { min-height: 50px; }
.check-loc {
  margin-top: 10px; background: none; border: 0; padding: 4px 0; color: var(--yellow); font: inherit;
  font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.check-loc:hover { text-decoration: underline; }
.check-out { margin-top: 12px; min-height: 0; }
.check-out:empty { display: none; }
.res {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: #fff; color: #14213D; font-size: 15px; animation: rise .3s cubic-bezier(.05,.7,.1,1) both;
}
.res b { display: block; font-size: 17px; }
.res a { font-weight: 800; }
.res .mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 800; }
.res.ok .mark { background: #E3F4EC; color: #1C7C54; }
.res.maybe .mark { background: #FFF5D1; color: #8A5A00; }
.res.err .mark { background: #FDEBDD; color: #B4500C; }
.picks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.picks button {
  width: 100%; text-align: right; padding: 10px 12px; border-radius: 12px; border: 1px solid #E3E8F0;
  background: #F5F7FB; color: #14213D; font: inherit; font-size: 14px; cursor: pointer;
}
.picks button:hover { background: #EEF2F8; }
@media (max-width: 960px) { .check { margin-inline: auto; text-align: right; } }
@media (max-width: 640px) { .check-row { flex-direction: column; } }

/* ---------- categories as big link cards ---------- */
.cats2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat2 {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; color: var(--text);
  transition: transform .2s cubic-bezier(.2,0,0,1), box-shadow .2s;
}
.cat2:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10,58,130,.16); }
.cat2:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cat2 .ic { width: 60px; height: 60px; border-radius: 18px; }
.cat2 h3 { margin: 6px 0 0; font-size: 21px; }
.cat2 p { margin: 0; color: var(--muted); font-size: 15px; }
.cat2 .go { margin-top: auto; padding-top: 6px; color: var(--primary); font-weight: 800; font-size: 15px; }
.cat2.feature { grid-column: span 2; background: var(--success-soft); border-color: transparent; }
.cat2.feature .row { display: flex; gap: 18px; align-items: center; }
.cat2.feature h3 { font-size: 24px; }
.cat2 .tag { align-self: flex-start; padding: 3px 10px; border-radius: 8px; background: var(--surface); color: var(--success); font-weight: 800; font-size: 13px; }
@media (max-width: 960px) { .cats2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cats2 { grid-template-columns: 1fr; } .cat2.feature { grid-column: auto; } .cat2.feature .row { flex-direction: column; align-items: flex-start; } }

/* ---------- join promo on the landing ---------- */
.joins { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.join-card { padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.join-card h3 { margin: 8px 0 0; font-size: 24px; }
.join-card p { margin: 0; color: var(--muted); }
.join-card .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 960px) { .joins { grid-template-columns: 1fr; } }

/* ---------- inner pages (join, areas) ---------- */
.page-hero { background: var(--blue); color: #fff; border-radius: 0 0 40px 40px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.3px, transparent 1.3px); background-size: 22px 22px;
}
.page-hero .wrap { position: relative; padding-top: 44px; padding-bottom: 72px; }
.page-hero h1 { margin: 16px 0 10px; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.2; font-weight: 800; }
.page-hero h1 span { color: var(--yellow); }
.page-hero p { margin: 0; font-size: 19px; color: rgba(255,255,255,.86); max-width: 52ch; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }
.page-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; margin-top: -40px; position: relative; z-index: 2; align-items: start; }
.perks { padding: 28px; }
.perks h2 { font-size: 24px; margin: 0 0 14px; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks b { display: block; }
.perks span { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .page-body { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { padding: 28px; display: grid; gap: 16px; }
.form h2 { font-size: 24px; margin: 0; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,58,130,.15); }
.field .bad { color: #B42318; font-size: 14px; font-weight: 700; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.done { padding: 34px 28px; text-align: center; }
.done .mark { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--success-soft); display: grid; place-items: center; }
.done h2 { margin: 0 0 8px; font-size: 26px; }
.done p { margin: 0; color: var(--muted); }
.form-err { padding: 12px 14px; border-radius: 12px; background: #FDEBDD; color: #8A3A08; font-weight: 700; font-size: 15px; }
@media (prefers-color-scheme: dark) { .form-err { background: #3D2616; color: #F5C6A5; } }

/* ---------- WhatsApp support button ---------- */
.wa-help {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 14px; min-height: 52px; border-radius: 999px;
  background: #1C7C54; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 12px 28px rgba(28,124,84,.35);
}
.wa-help:hover { background: #17694A; }
.wa-help:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wa-help[hidden] { display: none; }
@media (max-width: 640px) { .wa-help span { display: none; } .wa-help { padding: 0; width: 52px; justify-content: center; } }
