/* Dayim marketing site. Colours match the app (lib/theme/app_theme.dart). */
:root {
  --ink: #0d1b3e;
  --muted: #5b6785;
  --primary: #1a3a8f;
  --primary-dark: #12296b;
  --accent: #2563eb;
  --teal: #0d9488;
  --teal-soft: #e6fff8;
  --soft: #eef2fb;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: rgba(26, 58, 143, 0.12);
  --good: #16a34a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(26, 58, 143, 0.10);
  --font: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Outfit", "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}
:lang(ar), :lang(ur) { --font: "Noto Sans Arabic", "Inter", system-ui, sans-serif; --font-head: "Noto Sans Arabic", "Outfit", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
svg.i { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke: currentColor; width: 20px; height: 20px; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
/* Pilot notice above the header; delete the <div class="pilot"> lines from the pages at launch. */
.pilot { background: #fff4e0; color: #7a4b00; border-bottom: 1px solid #f0d9a8; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 38px; height: 38px; display: block; }
.logo img { display: block; width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 6px 14px rgba(26, 58, 143, 0.25); }
.brand b { font-family: var(--font-head); font-size: 19px; line-height: 1; display: block; }
.brand small { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-top: 2px; }
nav.links { display: flex; gap: 22px; margin-inline-start: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
nav.links a { text-decoration: none; }
nav.links a:hover { color: var(--primary); }
.spacer { flex: 1; }
.lang { font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.lang:hover { background: var(--soft); }
/* Language drop-down: current language and a small arrow; opens a short list. */
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover, .langmenu[open] summary { background: var(--soft); }
.langmenu summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.langmenu[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.langmenu .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 140px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 27, 61, .14); padding: 6px; z-index: 30; }
.langmenu .menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.langmenu .menu a:hover { background: var(--soft); }
.langmenu .menu a[aria-current="true"] { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--font-head); padding: 13px 22px; border-radius: 14px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(26, 58, 143, 0.28); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn.teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; }
[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #dbe6ff 0, transparent 60%), radial-gradient(900px 400px at 0% 10%, #d9f7f0 0, transparent 55%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.pill svg { width: 15px; height: 15px; stroke: #f59e0b; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ticks span { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; stroke: var(--good); }

/* Phone mockup (a drawn illustration, not a screenshot) */
.phone { width: 290px; margin-inline: auto; background: #0d1b3e; border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px rgba(13, 27, 62, 0.28); position: relative; }
.screen { background: var(--bg); border-radius: 31px; padding: 18px 14px 20px; min-height: 520px; }
.screen .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.screen .head b { font-family: var(--font-head); font-size: 15px; }
.screen .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); }
.screen .search { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.tech { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 12px; color: #fff; display: grid; place-items: center; font: 700 14px var(--font-head); flex: none; }
.tech b { display: block; font-size: 13px; }
.tech small { font-size: 11.5px; color: var(--muted); }
.tech .go { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--soft); padding: 5px 9px; border-radius: 9px; }
.escrow { margin-top: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 11px 12px; font-size: 12px; color: #166534; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.escrow svg { width: 18px; height: 18px; stroke: #16a34a; flex: none; }
.caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 76px 0; }
section.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
:lang(ar) .eyebrow, :lang(ur) .eyebrow { letter-spacing: 0; }
.title { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 12px; max-width: 760px; }
.sub { color: var(--muted); font-size: 17px; max-width: 680px; }
.grid { display: grid; gap: 18px; margin-top: 38px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.icon.teal { background: var(--teal-soft); }
.icon.teal svg { stroke: var(--teal); }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 16px var(--font-head); display: grid; place-items: center; }
.service { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-weight: 700; font-family: var(--font-head); }
.service small { display: block; font: 500 13px var(--font); color: var(--muted); }
.soon { opacity: .75; border-style: dashed; }

/* Providers band */
.band { background: linear-gradient(120deg, #0b1b4d, #14307a); color: #fff; border-radius: 28px; padding: 46px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.band h2 { font-size: clamp(26px, 3.2vw, 36px); }
.band p { color: #d5e0ff; margin-top: 12px; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); padding: 13px 15px; border-radius: 14px; font-size: 15px; }
.band li svg { width: 20px; height: 20px; stroke: #5eead4; flex: none; margin-top: 3px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-top: 12px; }
summary { cursor: pointer; font: 700 17px var(--font-head); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding: 0 0 18px; }
.faq { max-width: 820px; margin-top: 30px; }

/* CTA + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
footer { background: #0b1b4d; color: #cfd9f7; padding: 44px 0 30px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer h4 { color: #fff; margin: 0 0 10px; font: 700 15px var(--font-head); }
footer a { text-decoration: none; display: block; margin: 6px 0; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #93a4d6; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  nav.links { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 52px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 30px 22px; }
  footer .cols { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  .bar .btn.small { display: none; }
  .lang { padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
