/* ───────────────────────────────────────────────────────────────
   TADALAL — marketing site.
   Layout, size and spacing come from the original Claude Design file;
   colours and type from the TADALAL brand kit (teal, gold, cream;
   Poppins + Cairo). The design's
   inline styles are expressed as classes here; hover states that the
   design wrote as style-hover="…" become :hover rules.
   ─────────────────────────────────────────────────────────────── */

:root {
  --ink: #073F37;        /* deep teal: text, dark sections */
  --paper: #F6F1E8;      /* brand cream: page */
  --accent: #0C6B5D;     /* brand teal: actions, links, emphasis (6.4:1 with white) */
  --gold: #F0A63C;       /* brand gold: the smile's dots — markers, underlines, never text on light */
  --accent-dark: #084940; /* pressed teal */
  --muted: #45524F;      /* body copy on light */
  --muted-2: #5B6764;    /* small labels */
  --line: #E6E0D4;
  --card-line: #E4DED2;
  --rule: #DCD5C7;
  --on-dark: #BCCFCA;    /* body copy on dark */
  --dark-line: #125F54;
  --accent-light: #F6C67E; /* gold text on dark */
  --display: Poppins, system-ui, sans-serif;
  --body: Poppins, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --arabic: Cairo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.ar { font-family: var(--arabic); }

@keyframes glPulse {
  0% { box-shadow: 0 0 0 0 rgba(240,166,60,.45); }
  70% { box-shadow: 0 0 0 12px rgba(240,166,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,166,60,0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none !important; }
}
.pulse { animation: glPulse 2s infinite; }

/* ── Shared type ── */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.h2 {
  font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1; letter-spacing: -.03em; margin: 0; text-wrap: balance;
}
.h2-sm { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }

/* ── Buttons ── */
.btn { display: inline-block; border-radius: 999px; font-weight: 700; transition: background-color .15s, color .15s; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ── Announcement ── */
.announce {
  background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.5; font-weight: 500;
  padding: 10px 24px; display: flex; justify-content: center; gap: 10px; text-align: center; position: relative; z-index: 21;
}
.announce b { color: #F6C67E; font-weight: 700; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(246,241,232,.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-row { padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.main-nav {
  display: flex; gap: clamp(14px, 2vw, 30px); font-size: 15px; font-weight: 600; white-space: nowrap;
  overflow-x: auto; min-width: 0; flex: 1; justify-content: safe center; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; flex-shrink: 0; font-size: 15px; font-weight: 600; }
.header-actions .lang { font-family: var(--arabic); }
[lang="ar"] .header-actions .lang { font-family: var(--body); }
.btn-nav { padding: 12px 20px; font-size: 15px; }

/* ── Hero ── */
.hero {
  padding-top: 88px; padding-bottom: 72px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 64px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted-2); }
.hero-kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero h1 {
  font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6.4vw, 88px); line-height: .96;
  letter-spacing: -.035em; margin: 0; text-wrap: balance;
}
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 540px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts {
  display: flex; gap: 28px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #E3DCCE;
  font-size: 14px; font-weight: 600; color: var(--muted);
}

/* Live order card */
.order-card-wrap { position: relative; }
.order-card { background: var(--ink); border-radius: 32px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(12,107,93,.55); }
.order-map { border-radius: 22px; overflow: hidden; height: 300px; background: #0A4F45; position: relative; }
.order-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-customer {
  position: absolute; top: 38%; left: 30%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid #FFFFFF; transform: translate(-50%, -50%);
}
.map-store {
  position: absolute; top: 22%; right: 22%; width: 14px; height: 14px; border-radius: 4px;
  background: #FFFFFF; transform: translate(50%, -50%); box-shadow: 0 0 0 4px rgba(255,255,255,.14);
}
.order-body { padding: 22px 12px 10px; display: flex; flex-direction: column; gap: 18px; color: var(--paper); }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-ref { font-family: var(--mono); font-size: 12px; color: #95A09D; }
.order-title { font-family: var(--display); font-size: 24px; font-weight: 800; margin-top: 6px; }
.order-eta { background: var(--accent); color: #FFFFFF; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.order-steps, .order-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.order-steps span { height: 5px; border-radius: 3px; background: #1F6B60; }
.order-steps span.on { background: #F0A63C; }
.order-labels { font-size: 12px; color: #B4C2BE; font-weight: 600; }
.toast {
  position: absolute; left: -28px; bottom: -30px; background: #FFFFFF; border-radius: 20px; padding: 16px 20px;
  box-shadow: 0 20px 40px -18px rgba(12,107,93,.35); display: flex; gap: 14px; align-items: center; border: 1px solid #EFE9DD;
}
[dir="rtl"] .toast { left: auto; right: -28px; }
.toast-icon {
  width: 40px; height: 40px; border-radius: 50%; background: #D3E6E1; display: flex; align-items: center;
  justify-content: center; font-family: var(--display); font-weight: 800; color: var(--accent); flex-shrink: 0;
}
.toast small { display: block; font-size: 13px; color: var(--muted-2); font-weight: 600; }
.toast strong { display: block; font-size: 15px; font-weight: 700; }

/* ── Three links ── */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-lg { padding-top: 112px; padding-bottom: 112px; }
.links-head { margin-bottom: 56px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.link-card {
  background: #FFFFFF; border: 1px solid var(--card-line); border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column; gap: 18px; min-height: 340px;
}
.link-card-top { display: flex; justify-content: space-between; align-items: center; }
.link-card-top .num { font-family: var(--mono); font-size: 13px; color: #7A8683; }
.link-card-top .app { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.link-card h3 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; margin: 0; }
.link-card p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #F1ECE2; color: #10544A; }

/* ── Merchants (dark) ── */
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--accent-light); margin-bottom: 20px; }
.dark .h2 { margin: 0 0 20px; max-width: 880px; }
.dark .intro { font-size: 18px; line-height: 1.6; color: var(--on-dark); margin: 0 0 64px; max-width: 640px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px;
  background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: 28px; overflow: hidden;
}
.feature { background: var(--ink); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; transition: background-color .15s; }
.feature:hover { background: #0B5248; }
.feature .bar { width: 28px; height: 4px; border-radius: 2px; background: #0C6B5D; }
.feature h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin: 0; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 0; }

/* ── Steps ── */
.steps-title { margin: 0 0 56px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); }
.step .n { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ── Restaurant vs retail ── */
.duo { padding-bottom: 112px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.duo-card { border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.duo-light { background: #FFFFFF; border: 1px solid var(--card-line); }
.duo-accent { background: var(--accent); color: #FFFFFF; }
.duo-card .eyebrow { letter-spacing: .12em; }
.duo-light .eyebrow { color: var(--accent); }
.duo-card h3 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.duo-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.duo-light p { color: var(--muted); }
.duo-list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-weight: 600; }

/* ── Themes ── */
.themes { background: #EFE9DD; }
.themes .eyebrow { color: var(--accent-dark); margin-bottom: 20px; }
.themes-head { margin-bottom: 56px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.theme { display: flex; flex-direction: column; gap: 14px; }
.theme-shot {
  aspect-ratio: 4 / 3; border-radius: 22px; border: 1px solid #D8D0C1; overflow: hidden; background: #E1DACC;
  box-shadow: 0 1px 0 rgba(12,107,93,.04); transition: transform .25s ease, box-shadow .25s ease;
}
.theme-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.theme:hover .theme-shot { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(12,107,93,.4); }
.theme-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.theme-meta b { font-family: var(--display); font-weight: 800; font-size: 22px; }
.theme-meta span { font-size: 14px; font-weight: 600; color: var(--muted-2); }

/* ── Drivers ── */
.drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; align-items: center; }
.driver-visual {
  aspect-ratio: 4 / 5; max-height: 620px; border-radius: 32px; border: 1px solid #DCD5C7;
  background: repeating-linear-gradient(135deg, #E4DED2 0 12px, #EFE9DD 12px 24px);
  display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
}
.phone {
  width: min(78%, 300px); aspect-ratio: 9 / 18.5; background: var(--ink); border-radius: 40px; padding: 10px;
  box-shadow: 0 40px 70px -30px rgba(12,107,93,.6);
}
.phone-screen { height: 100%; border-radius: 31px; overflow: hidden; background: #F6F1E8; display: flex; flex-direction: column; }
.phone-map { flex: 1; background: #0A4F45; position: relative; min-height: 0; }
.phone-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-status { display: flex; justify-content: space-between; padding: 12px 18px 0; font-size: 10px; font-weight: 700; color: #F6F1E8; position: relative; z-index: 1; }
.phone-online {
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%); background: #FFFFFF; color: var(--ink);
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 6px 12px; display: flex; gap: 6px; align-items: center; white-space: nowrap;
}
.phone-online i { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; display: block; }
.phone-sheet { background: #FFFFFF; border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.phone-sheet .tag { align-self: flex-start; background: #D3E6E1; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 9px; }
.phone-sheet .route { display: grid; grid-template-columns: 12px 1fr; gap: 4px 10px; font-size: 11.5px; line-height: 1.35; }
.phone-sheet .route i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); margin-top: 2px; display: block; }
.phone-sheet .route i.to { border-radius: 50%; background: var(--gold); }
.phone-sheet .route b { display: block; font-size: 12.5px; }
.phone-sheet .route span { color: var(--muted-2); }
.phone-sheet .fee { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #EFE9DD; padding-top: 10px; font-size: 11px; color: var(--muted-2); font-weight: 600; }
.phone-sheet .fee b { font-family: var(--display); font-size: 18px; color: var(--ink); }
.phone-sheet .accept { background: var(--accent); color: #FFFFFF; text-align: center; border-radius: 999px; padding: 11px; font-size: 13px; font-weight: 800; }
.drivers-copy { display: flex; flex-direction: column; gap: 24px; }
.drivers-copy .eyebrow { color: var(--accent); }
.points { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.point { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.point b { font-weight: 700; font-size: 16px; }
.point span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.driver-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-dark { background: var(--ink); color: #FFFFFF; padding: 16px 24px; font-size: 15px; }
.btn-dark:hover { background: #000000; color: #FFFFFF; }
.link-underline { padding: 16px 8px; font-size: 15px; font-weight: 700; border-bottom: 2px solid var(--gold); }

/* ── Developers ── */
.dev-wrap { padding-bottom: 112px; }
.dev {
  background: var(--ink); border-radius: 36px; padding: clamp(32px, 5vw, 72px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; color: var(--paper);
}
.dev-copy { display: flex; flex-direction: column; gap: 22px; }
.dev-copy .eyebrow { color: var(--accent-light); }
.dev-copy .h2-sm { font-size: clamp(32px, 3.8vw, 52px); }
.dev-copy p { font-size: 17px; line-height: 1.6; color: var(--on-dark); margin: 0; }
.dev-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; color: #E7E0D3; }
.dev-link { align-self: flex-start; color: #FFFFFF; font-weight: 700; font-size: 15px; border-bottom: 2px solid #0C6B5D; padding-bottom: 4px; }
.dev-link:hover { color: var(--accent-light); }
.code {
  background: #042E28; border: 1px solid var(--dark-line); border-radius: 22px; padding: 28px; font-family: var(--mono);
  font-size: 14px; line-height: 1.8; color: #D9D1C2; overflow-x: auto; direction: ltr; text-align: left;
}
.code .dots { display: flex; gap: 7px; margin-bottom: 18px; }
.code .dots i { width: 11px; height: 11px; border-radius: 50%; background: #45524F; display: block; }
.code .dots i:first-child { background: #0C6B5D; }
.code .k { color: var(--accent-light); }
.code .c { color: #87928F; }
.code .s { color: #F6C67E; }
.code .ok { color: #7FD3A0; margin-top: 14px; }
.code .in { padding-left: 20px; }
.code .gap { margin-top: 14px; }
.code div { white-space: nowrap; }

/* ── Coverage ── */
.coverage { padding-bottom: 112px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: start; }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gov { background: #FFFFFF; border: 1px solid var(--card-line); border-radius: 16px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gov b { font-weight: 700; font-size: 16px; }
.gov span { font-family: var(--arabic); font-size: 15px; color: var(--muted-2); }

/* ── FAQ ── */
.faq { padding-bottom: 112px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.faq .h2-sm { margin: 0 0 18px; }
.faq-intro { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.faq-intro a { font-weight: 700; border-bottom: 2px solid var(--gold); }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink);
}
.faq-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.faq-q .icon { font-size: 24px; font-weight: 500; color: var(--accent); flex-shrink: 0; width: 18px; text-align: center; }
.faq-a { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; max-width: 640px; }

/* ── CTA ── */
.cta-wrap { padding-bottom: 96px; }
.cta {
  background: var(--accent); border-radius: 36px; padding: clamp(40px, 6vw, 88px); color: #FFFFFF; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end;
}
.cta h2 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.cta-copy { display: flex; flex-direction: column; gap: 24px; }
.cta-copy p { font-size: 18px; line-height: 1.6; margin: 0; }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #FFFFFF; }
.btn-ghost { color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.btn-ghost:hover { background: var(--accent-dark); color: #FFFFFF; }

/* ── Contact page ── */
.main-nav a.current { color: var(--accent); }
.contact-hero { padding-top: 88px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.contact-hero .eyebrow { color: var(--accent); }
.contact-hero .h2 { font-size: clamp(44px, 5.6vw, 76px); max-width: 880px; }
.contact-hero .lead { max-width: 640px; }
.contact-grid {
  padding-bottom: 112px; display: grid; gap: 40px; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.contact-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 130px; }
.contact-aside h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0; }
.aside-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.aside-email { margin: 0; font-size: 15px; color: var(--muted); }
.aside-email a { font-weight: 700; border-bottom: 2px solid var(--gold); }
.contact-card { background: #FFFFFF; border: 1px solid var(--card-line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form h2, .contact-done h2 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.field label { font-size: 14px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted-2); font-size: 13px; }
.field input:not([type="checkbox"]), .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: #FFFFFF; }
.field [aria-invalid="true"] { border-color: var(--accent); background: #FFFFFF; }
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: 18px; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.hint { font-size: 13px; color: var(--muted-2); margin: 0; }
.err { font-size: 13px; font-weight: 600; color: var(--accent); margin: 0; }
.err:empty { display: none; }
.topic-hint { margin: 0; font-size: 14px; line-height: 1.5; background: #D3E6E1; color: #0D5A4F; border-radius: 12px; padding: 12px 14px; }
.topic-hint a { font-weight: 700; color: var(--accent-dark); border-bottom: 1.5px solid currentColor; }
.consent { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px !important; font-weight: 500 !important; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { font-weight: 700; border-bottom: 1.5px solid var(--gold); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { margin: 0; background: #FDECEA; color: #8A1410; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }
.contact-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 12px 0; }
.contact-done:focus { outline: none; }
.contact-done p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.done-icon { width: 52px; height: 52px; border-radius: 50%; background: #D3E6E1; color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.contact-done .again { background: none; border: 0; border-bottom: 2px solid var(--gold); padding: 8px 2px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
[lang="ar"] .contact-form h2, [lang="ar"] .contact-done h2, [lang="ar"] .contact-aside h2 { letter-spacing: 0; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; order: 2; }
}

/* ── Footer ── */
.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-inner { padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 56px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; grid-column: span 2; min-width: 0; }
.footer-logo { align-self: flex-start; }
.footer-logo img { height: 48px; width: auto; display: block; }
.footer-brand p { font-size: 15px; line-height: 1.6; margin: 0; max-width: 340px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col .head { color: #FFFFFF; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--on-dark); }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--dark-line); font-size: 14px; }

/* ── Arabic: the Arabic face for everything, no negative tracking ── */
[lang="ar"] body, [lang="ar"] .faq-q, [lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3,
[lang="ar"] .order-title, [lang="ar"] .step .n, [lang="ar"] .theme-meta b, [lang="ar"] .toast-icon {
  font-family: var(--arabic);
}
[lang="ar"] h1, [lang="ar"] .h2, [lang="ar"] .h2-sm, [lang="ar"] .cta h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
[lang="ar"] .eyebrow, [lang="ar"] .link-card-top .app { letter-spacing: 0; }
[lang="ar"] .code { font-family: var(--mono); }

/* ── Small screens ── */
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 8px 16px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; padding-bottom: 4px; }
  .header-actions .signin { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand img { height: 36px; }
  .btn-nav { padding: 10px 16px; font-size: 14px; }
  .hero { padding-top: 48px; gap: 72px; }
  .toast { left: 12px; right: 12px; bottom: -44px; }
  [dir="rtl"] .toast { left: 12px; right: 12px; }
  .link-card, .duo-card { padding: 28px; }
  .point { grid-template-columns: 1fr; gap: 6px; }
  .footer-brand { grid-column: span 1; }
  .section, .section-lg { padding-top: 72px; padding-bottom: 72px; }
}
