/* Xaddaari Money Exchange website. Colours match the Android app (ui/theme/Color.kt). */
:root {
  --blue: #1297E0; --blue-deep: #0A6FB3; --blue-soft: #E3F3FD; --blue-ring: #2BA6EC;
  --navy: #0B2540; --muted: #52667D; --line: #E1EAF3; --bg: #F4F8FC; --card: #FFFFFF;
  --green: #16A34A; --green-soft: #E9F8EF; --gold: #FFB020; --gold-soft: #FFF6E0;
  --radius: 22px; --shadow: 0 10px 30px rgba(11, 37, 64, .08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Language: <span lang="so"> / <span lang="en"> pairs; html[data-lang] shows one. */
html[data-lang="so"] [lang="en"]:not(html), html[data-lang="en"] [lang="so"]:not(html) { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 18px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; min-height: 34px; }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn-white { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:disabled { opacity: .55; cursor: not-allowed; }
.btn-red { background: #DC2626; color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -160px; top: -200px; background: var(--blue-ring); }
.hero::after { width: 380px; height: 380px; right: -40px; top: -60px; background: #48B4F0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; }
.hero p.lead { font-size: 18px; color: #E8F6FE; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.soon { font-size: 13px; color: #E8F6FE; margin-top: 12px; }

/* Live rate card in the hero */
.hero .wrap > *, .rewards > * { min-width: 0; }
.ratecard { background: #fff; color: var(--navy); border-radius: 28px; padding: 24px; box-shadow: 0 24px 60px rgba(4, 40, 80, .28); }
.ratecard .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ratecard .head b { font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rate { border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; }
.rate small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.rate strong { display: block; font-size: 26px; font-weight: 900; margin-top: 2px; }
.rate span { font-size: 12px; color: var(--muted); }
.calc { margin-top: 16px; background: var(--bg); border-radius: 18px; padding: 14px; }
.calc label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.calc .row { display: flex; gap: 8px; align-items: center; }
.calc input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 18px; font-weight: 800; color: var(--navy); background: #fff; }
.calc input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.calc .unit { font-weight: 900; color: var(--blue); }
.calc .out { margin-top: 10px; font-size: 14px; color: var(--muted); }
.calc .out b { color: var(--green); font-size: 20px; }
.updated { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; }
.section-title p { color: var(--muted); font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; font-weight: 800; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; margin-bottom: 14px; }

/* Providers */
.providers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.provider { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
/* Logos come in different shapes (ZAAD is wide), so fit them inside a fixed box without cropping. */
.provider img { width: 112px; height: 72px; flex: none; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 6px; }
.provider b { display: block; font-size: 18px; }
.provider span { color: var(--muted); font-size: 14px; }

/* Rewards band */
.rewards { background: linear-gradient(135deg, #0A6FB3, #1297E0); color: #fff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.rewards h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; }
.rewards p { color: #E8F6FE; }
.rewards ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rewards li { display: flex; gap: 10px; align-items: flex-start; }
.rewards li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #5A3300; font-weight: 900; display: grid; place-items: center; font-size: 13px; }
.trophy { background: var(--gold-soft); color: #7A3E00; border-radius: 26px; padding: 28px; text-align: center; }
.trophy .big { font-size: 64px; line-height: 1; }
.trophy b { display: block; font-size: 22px; margin-top: 10px; }

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

/* Footer */
footer { background: var(--navy); color: #C9DDF0; padding: 48px 0 32px; margin-top: 40px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer a { color: #C9DDF0; text-decoration: none; display: block; margin: 6px 0; }
footer a:hover { color: #fff; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: #93A4C3; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }
[data-wa][hidden] { display: none !important; }

/* Document pages (privacy, terms, delete account) */
.doc-hero { background: var(--blue); color: #fff; padding: 48px 0 40px; }
.doc-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.doc-hero p { color: #E8F6FE; margin: 0; }
.doc { max-width: 820px; margin: -24px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 36px; box-shadow: var(--shadow); position: relative; }
.doc h2 { font-size: 21px; font-weight: 800; margin-top: 30px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #2B3F55; }
.doc ul { padding-left: 20px; }
.doc .note { background: var(--blue-soft); border-radius: 16px; padding: 14px 16px; color: var(--blue-deep); font-weight: 600; }

/* Delete-account form */
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { font-weight: 700; font-size: 14px; }
.form input { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--navy); }
.form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form .phone { display: flex; align-items: center; gap: 8px; }
.form .phone span { font-weight: 800; color: var(--muted); }
.msg { border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.msg.err { background: #FEE2E2; color: #991B1B; }
.msg.ok { background: var(--green-soft); color: #14532D; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .rewards { grid-template-columns: minmax(0, 1fr); }
  .grid3, .providers { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  section { padding: 60px 0; }
  .rewards { padding: 32px 22px; border-radius: 26px; }
  .doc { padding: 24px 20px; margin: -20px 16px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .rates { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rate strong { font-size: 22px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
