/* Hawpol website — mobile-first, logical properties (RTL-ready), light/dark via prefers-color-scheme. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('../fonts/noto-sans-arabic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}
/* Metric-matched fallback to avoid layout shift while Inter loads */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0b1a3f;
  --navy-2: #12285a;
  --navy-3: #1c3a7a;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --gold: #f5b800;
  --gold-hover: #ffc927;
  --on-gold: #0b1a3f;

  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --link: #1d4ed8;
  --icon-bg: #eaf0fe;
  --icon-fg: #1d4ed8;
  --focus: #2563eb;
  --success: #15803d;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --input-border: #64748b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(11 26 63 / 0.06);
  --shadow: 0 1px 2px rgb(11 26 63 / 0.05), 0 8px 24px rgb(11 26 63 / 0.07);
  --shadow-lg: 0 24px 60px rgb(4 10 30 / 0.35);

  --font: 'Inter', 'Inter Fallback', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060d22;
    --bg-soft: #0a1636;
    --surface: #0f1f47;
    --surface-2: #0c1a3d;
    --border: #22386e;
    --text: #e8edf7;
    --text-muted: #aebbd6;
    --link: #8ab4ff;
    --icon-bg: #17306a;
    --icon-fg: #f5b800;
    --focus: #f5b800;
    --success: #4ade80;
    --danger: #fca5a5;
    --danger-bg: #3b1020;
    --input-border: #7d8fb8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  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(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, :lang(ckb) body,
body:lang(ar), body:lang(ckb) {
  font-family: 'Noto Sans Arabic', 'Inter', 'Inter Fallback', system-ui, sans-serif;
  line-height: 1.8;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3), :lang(ckb) :is(h1, h2, h3) { line-height: 1.45; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
[dir='rtl'] .flip-rtl { transform: scaleX(-1); }
.icon { flex: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 820px; }
@media (min-width: 640px) { :root { --gutter: 24px; } }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 4px 14px rgb(245 184 0 / 0.25); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--blue); color: var(--link); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 26 63 / 0.94);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgb(11 26 63 / 0.82); backdrop-filter: saturate(160%) blur(14px); }
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand img { border-radius: 10px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: #dbe4f5;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 6px;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current='page'] { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.site-header :focus-visible { outline-color: var(--gold); }

/* Mobile nav (only collapsed when JS is available) */
@media (max-width: 959.98px) {
  .site-nav { order: 3; flex-basis: 100%; }
  .js .site-nav { display: none; }
  .header-inner { flex-wrap: wrap; }
  .js .nav-open .site-nav { display: block; padding-block: 8px 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 4px; font-size: 1.0625rem; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .nav-cta { display: block; margin-top: 16px; }
  .nav-cta .btn { width: 100%; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; }
}
@media (min-width: 960px) {
  .site-nav ul { display: flex; gap: 28px; align-items: center; }
  .site-nav { margin-inline-end: 16px; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #fff;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: rgb(255 255 255 / 0.45); }
.lang-switch .chev { transition: transform 0.15s; }
.lang-switch[open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lang-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  text-align: start;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a[aria-current='true'] { font-weight: 700; background: var(--icon-bg); }
@media (max-width: 380px) {
  .lang-switch summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Notices ---------- */
.review-notice { background: #fff7d6; color: #5b4300; font-size: 0.9375rem; }
.review-notice .container { display: flex; gap: 10px; align-items: flex-start; padding-block: 10px; }
.review-notice svg { margin-top: 4px; }
@media (prefers-color-scheme: dark) {
  .review-notice { background: #2b2205; color: #ffe08a; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(245 184 0 / 0.14);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% 10%, rgb(37 99 235 / 0.35), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgb(245 184 0 / 0.12), transparent 60%),
    var(--navy);
  color: #fff;
  padding-block: clamp(40px, 7vw, 96px) 0;
}
[dir='rtl'] .hero {
  background:
    radial-gradient(800px 400px at 15% 10%, rgb(37 99 235 / 0.35), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgb(245 184 0 / 0.12), transparent 60%),
    var(--navy);
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero-logo { border-radius: 22px; margin-bottom: 20px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
:lang(ar) .hero h1, :lang(ckb) .hero h1 { font-weight: 700; letter-spacing: 0; }
.hero .lead { color: #cdd8ee; max-width: 560px; margin-bottom: 28px; }
.hero .text-link { color: #fff; margin-top: 20px; }
.hero { padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-block; border-radius: 8px; line-height: 0; }
.store-badge img { height: 48px; width: auto; }
.store-badges-sm .store-badge img { height: 40px; }

/* ---------- App UI illustrations (hero + showcase) ---------- */
.ui-card, .ui-window {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgb(11 26 63 / 0.08), 0 18px 40px rgb(4 10 30 / 0.28);
}
.ui-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.ui-card p, .ui-window p { margin: 0; }
.ui-body { min-width: 0; flex: 1 1 auto; }
.ui-row { display: flex; align-items: center; gap: 12px; }
.ui-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.ui-icon.is-gold { background: #fff4cc; color: #8a6400; }
.ui-icon.is-blue { background: #e0eaff; color: #1d4ed8; }
.ui-icon.is-green { background: #dcfce7; color: #15803d; }
.ui-tag { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
:lang(ar) .ui-tag, :lang(ckb) .ui-tag { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.ui-title { font-weight: 700; font-size: 0.9375rem; line-height: 1.35; }
.ui-meta { font-size: 0.8125rem; color: #64748b; }
.ui-chip {
  display: inline-flex; align-items: center; flex: none; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: #f1f5f9; color: #334155;
}
.ui-chip.is-gold { background: #fff4cc; color: #7a5800; }
.ui-chip.is-green { background: #dcfce7; color: #166534; }
.ui-chip.is-blue { background: #e0eaff; color: #1e40af; }
.ui-chip.is-muted { background: #f1f5f9; color: #475569; }
.ui-chip.is-selected { background: #0b1a3f; color: #ffffff; }

/* Hero stack */
.hero-visual { position: relative; }
.demo-stack { display: grid; gap: 14px; max-width: 440px; margin-inline: auto; }
.demo-bus { flex-direction: column; align-items: stretch; gap: 14px; }
.demo-att { flex-direction: column; align-items: stretch; gap: 10px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; position: relative; }
.stepper li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 0.75rem; font-weight: 600; color: #64748b; position: relative; }
.stepper li::before { content: ''; position: absolute; top: 10px; inset-inline-start: -50%; width: 100%; height: 3px; background: #22c55e; z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff; }
.stepper .current { color: #166534; }
.stepper .current .dot { box-shadow: 0 0 0 5px rgb(34 197 94 / 0.22); }
.att-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.att-week li { display: grid; justify-items: center; gap: 6px; }
.att-day { font-size: 0.6875rem; color: #64748b; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-dot { display: inline-block; width: 26px; height: 26px; border-radius: 8px; background: #22c55e; }
.att-dot.is-late { background: #f5b800; }
.att-dot.is-absent { background: #ef4444; }
.att-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: #475569; }
.att-legend span { display: inline-flex; align-items: center; gap: 6px; }
.att-legend .att-dot { width: 10px; height: 10px; border-radius: 3px; }
@media (min-width: 560px) {
  .demo-stack { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .demo-ann, .demo-bus { grid-column: 1 / -1; }
  .demo-ann { margin-inline-end: 12%; }
  .demo-bus { margin-inline-start: 8%; }
  .demo-hw { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .demo-stack .ui-card { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .demo-stack .ui-card:nth-child(2) { animation-delay: 0.08s; }
  .demo-stack .ui-card:nth-child(3) { animation-delay: 0.16s; }
  .demo-stack .ui-card:nth-child(4) { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Showcase tabs */
.tablist {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 24px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  width: max-content; max-width: 100%;
}
.tablist::-webkit-scrollbar { display: none; }
.tablist [role='tab'] {
  flex: none; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tablist [role='tab']:hover { color: var(--text); }
.tablist [role='tab'][aria-selected='true'] { background: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
@media (prefers-color-scheme: dark) { .tablist [role='tab'][aria-selected='true'] { background: var(--gold); color: var(--on-gold); box-shadow: none; } }
@media (max-width: 639.98px) {
  .tablist { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
  .tablist [role='tab'] { white-space: normal; border-radius: 14px; padding: 8px 10px; line-height: 1.3; }
}
html:not(.js) .tablist { display: none; }
.js .showcase-panel:not(.is-active) { display: none; }
html:not(.js) .showcase-panel + .showcase-panel { margin-top: 32px; }
.showcase-panel {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 100% 0%, rgb(37 99 235 / 0.28), transparent 70%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.showcase-panel:focus-visible { outline-offset: 4px; }
@media (min-width: 860px) { .showcase-panel { grid-template-columns: 1fr 1fr; gap: 48px; min-height: 440px; } }
.showcase-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 20px; }
.checks { display: grid; gap: 14px; font-size: 1.0625rem; color: #dbe4f5; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--on-gold); }

.ui-window { padding: 18px; display: grid; gap: 14px; width: 100%; max-width: 440px; justify-self: center; }
.ui-window-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0b1a3f; }
.ui-window-head svg { color: #2563eb; }
.ui-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ui-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f4f6fb; font-size: 0.9375rem; }
.ui-score { font-weight: 800; color: #1d4ed8; }
.ui-note { padding: 12px 14px; border-radius: 12px; background: #fffbea; border-inline-start: 4px solid #f5b800; font-size: 0.9375rem; }
.ui-field { display: grid; gap: 6px; }
.ui-field-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f4f6fb; font-size: 0.9375rem; }
.ui-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: #64748b; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-input { padding: 11px 12px; border: 1.5px solid #2563eb; border-radius: 12px; font-weight: 600; font-size: 0.9375rem; }
.ui-button { display: block; padding: 11px; border-radius: 999px; background: #2563eb; color: #fff; text-align: center; font-weight: 700; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-stats div { display: grid; gap: 2px; padding: 12px 10px; border-radius: 12px; background: #0b1a3f; color: #fff; text-align: center; }
.ui-stats strong { font-size: 1.375rem; color: #f5b800; line-height: 1.2; }
.ui-stats span { font-size: 0.75rem; color: #cdd8ee; }
.ui-people li { justify-content: flex-start; }
.ui-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #0b1a3f; color: #f5b800; font-weight: 700; }
.ui-person { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.ui-person small { color: #64748b; font-size: 0.75rem; }
.ui-people .ui-chip { margin-inline-start: auto; }
.ui-actions { display: flex; gap: 6px; flex: none; }
.ui-mini { padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid #cbd5e1; color: #334155; }
.ui-mini.is-primary { background: #f5b800; border-color: #f5b800; color: #0b1a3f; }
@media (max-width: 420px) {
  .ui-schools .ui-people li { flex-wrap: wrap; }
  .ui-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}
.card h3, .feature h3 { font-size: 1.125rem; margin-bottom: 6px; }
.card p, .feature p { color: var(--text-muted); }
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--icon-fg);
  margin-bottom: 16px;
  flex: none;
}
.audience-card { transition: transform 0.2s, box-shadow 0.2s; }
.audience-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.features .feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.features .icon-badge { margin-bottom: 0; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.step h3 { font-size: 1.1875rem; }
.step p { color: var(--text-muted); }

/* CTA band */
.cta-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 240px at 100% 0%, rgb(245 184 0 / 0.18), transparent 70%),
    linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); }
.cta-band p { color: #cdd8ee; font-size: 1.125rem; max-width: 560px; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { transition: transform 0.2s; color: var(--text-muted); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-muted); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 20px; }
.form-note { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--text-muted); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[dir='rtl'] .field select { background-position: left 14px center; }
[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid='true'] { border-color: var(--danger); border-width: 2px; }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: 0.9375rem; font-weight: 500; }
.char-count { margin: 6px 0 0; color: var(--text-muted); font-size: 0.875rem; text-align: end; }
.char-count.low { color: var(--danger); }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue); }
.field-check label { font-weight: 500; margin: 0; }
.field-check .field-error { grid-column: 2; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-weight: 500; border: 1px solid currentColor; }
.contact-form .btn { justify-self: start; }
@media (max-width: 479.98px) { .contact-form .btn { justify-self: stretch; } }
.form-success { display: flex; gap: 14px; align-items: center; color: var(--success); font-weight: 600; font-size: 1.125rem; }
.form-success p { color: var(--text); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(600px 260px at 90% 0%, rgb(37 99 235 / 0.3), transparent 60%), var(--navy);
  color: #fff;
  padding-block: clamp(40px, 6vw, 72px);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.page-hero .lead { color: #cdd8ee; max-width: 680px; }
.page-hero-center { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.page-hero-center .lead { margin-inline: auto; }

.help-card { display: flex; gap: 16px; align-items: flex-start; }
.help-card .icon-badge { margin-bottom: 0; }
.help-card h2 { font-size: 1.125rem; margin-bottom: 6px; }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 32px; padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) {
  .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.toc h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
:lang(ar) .toc h2, :lang(ckb) .toc h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.toc ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 6px; font-size: 0.9375rem; }
.toc .toc-extra { list-style: none; margin-top: 6px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.prose { max-width: 75ch; }
.prose .intro { font-size: 1.125rem; }
.prose section { padding-top: 8px; margin-bottom: 36px; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); margin-top: 0.5em; }
.prose h2 .num { color: var(--text-muted); font-weight: 600; }
.prose h3 { font-size: 1.125rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--text-muted); }
.prose .card { margin-bottom: 24px; }
.prose .card h2 { margin-top: 0; }
.grid-flat { margin-block: 32px; }
ol.numbered { counter-reset: n; list-style: none; padding: 0; }
ol.numbered li { counter-increment: n; position: relative; padding-inline-start: 44px; margin-bottom: 14px; min-height: 32px; padding-top: 3px; }
ol.numbered li::before {
  content: counter(n);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}
@media (prefers-color-scheme: dark) { ol.numbered li::before, .step-num { background: #1c3a7a; } }

.callout {
  display: flex;
  gap: 14px;
  padding: 20px;
  margin-block: 24px 40px;
  border-radius: var(--radius);
  background: var(--icon-bg);
  border: 1px solid var(--border);
}
.callout svg { color: var(--icon-fg); margin-top: 2px; }
.callout-title { font-size: 1.0625rem !important; margin: 0 0 8px !important; }
.callout ul { margin: 0; }

.store-summary { padding: clamp(20px, 3vw, 28px); border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin-block: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 620px; }
th, td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-soft); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd8ee; padding-block: 56px 32px; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 380px; margin-bottom: 20px; }
.footer-col h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 14px; }
:lang(ar) .footer-col h2, :lang(ckb) .footer-col h2 { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding-block: 6px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.lang-list { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.lang-list ul { display: flex !important; flex-wrap: wrap; gap: 4px 14px !important; }
.lang-list a[aria-current='true'] { color: var(--gold); font-weight: 700; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); display: grid; gap: 8px; }
.trademarks { font-size: 0.8125rem; color: #aebbd6; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .toc, .review-notice { display: none; }
  .page-hero { background: none; color: #000; }
}
