/* Wasla website. No third-party requests: fonts are served from this site. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --signal: #2457F5;
  --signal-ink: #1F3FB8;
  --signal-tint: #E6ECFF;
  --mint: #14B88A;
  --mint-deep: #0A6B50;
  --mint-tint: #E3F7EF;
  --amber-tint: #FFF4E5;
  --amber-ink: #7A3B00;
  --ink: #0B1220;
  --slate: #4A5468;
  --muted: #5B6478;
  --line: #E3E7F0;
  --ground: #F5F7FB;
  --surface: #FFFFFF;
  --shadow: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px rgba(11,18,32,.06);
  --radius: 22px;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --signal: #6E8FFF;
    --signal-ink: #A9BCFF;
    --signal-tint: #18234A;
    --mint: #3DD6A6;
    --mint-deep: #7CF0C6;
    --mint-tint: #0F2E25;
    --amber-tint: #33240F;
    --amber-ink: #FFD08A;
    --ink: #F4F6FA;
    --slate: #C3CADA;
    --muted: #A3ACBF;
    --line: #232C40;
    --ground: #0B1220;
    --surface: #131B2C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --signal: #6E8FFF;
  --signal-ink: #A9BCFF;
  --signal-tint: #18234A;
  --mint: #3DD6A6;
  --mint-deep: #7CF0C6;
  --mint-tint: #0F2E25;
  --amber-tint: #33240F;
  --amber-ink: #FFD08A;
  --ink: #F4F6FA;
  --slate: #C3CADA;
  --muted: #A3ACBF;
  --line: #232C40;
  --ground: #0B1220;
  --surface: #131B2C;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
@media (max-width: 720px) {
  .nav { width: 100%; margin: 0 0 10px; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  /* The language switch sits beside the logo, not at the end of a nav that scrolls out of view. */
  .nav .lang { position: absolute; top: 14px; inset-inline-end: 20px; margin: 0; }
}

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 21px; letter-spacing: -.2px; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--slate); max-width: 46ch; }
.proof { font-size: 14.5px; color: var(--muted); max-width: 52ch; margin: 18px 0 0; line-height: 1.55; }
.proof a { font-weight: 700; }
/* Feature groups: a small heading over each run of cards */
.group-title { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; }
.group-title:first-of-type { margin-top: 28px; }
/* Help: the questions people come for most, before the list */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.quick a:hover { color: var(--signal-ink); }
details:target { outline: 2px solid var(--signal); outline-offset: 2px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

/* Sections */
section { padding: 72px 0; }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 26px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--ink); }

.phone-card { background: var(--surface); border-radius: 32px; padding: 22px; box-shadow: var(--shadow); max-width: 360px; margin: 0 auto; }
.bubble { padding: 10px 14px; border-radius: 18px; margin: 8px 0; max-width: 85%; font-size: 15px; line-height: 1.45; }
.bubble.in { background: var(--ground); }
.bubble.out { background: var(--signal); color: #fff; margin-left: auto; }
.lock-line { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--mint-deep); background: var(--mint-tint); border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; font-weight: 700; }

/* Cards & grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--slate); margin: 0; font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--signal-tint); color: var(--signal); margin-bottom: 14px; }
.icon.mint { background: var(--mint-tint); color: var(--mint-deep); }
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 18px; background: var(--signal); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--slate); margin: 0; }

.band { background: var(--surface); }
.analogy { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.analogy:last-child { border-bottom: 0; }
.analogy .icon { margin: 0; width: 56px; height: 56px; }
.callout { background: var(--mint-tint); color: var(--mint-deep); border-radius: 18px; padding: 18px 20px; font-weight: 600; }
.callout.amber { background: var(--amber-tint); color: var(--amber-ink); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; background: var(--ground); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--mint-deep); font-weight: 800; }
.no { color: var(--muted); font-weight: 700; }

/* Legal pages */
.doc { background: var(--surface); border-radius: 28px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); margin: 40px auto 72px; }
.doc h2 { font-size: 26px; margin-top: 1.8em; }
.doc h3 { font-size: 19px; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .summary { background: var(--signal-tint); border-radius: 18px; padding: 18px 20px; margin: 18px 0 8px; }
.doc .summary li { margin-bottom: .25em; }
.updated { color: var(--muted); font-size: 15px; }
.toc { columns: 2; column-gap: 32px; padding-left: 1.2em; }
@media (max-width: 600px) { .toc { columns: 1; } }

details { background: var(--surface); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; font-size: 17px; }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.footer-grid { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--slate); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }

/* Details the owner still has to fill in before publishing. */
.todo { background: #FFE8A3; color: #4A3200; border-radius: 6px; padding: 0 4px; font-weight: 700; }

/* App screenshots in a phone frame */
.device { margin: 0; padding: 10px; background: #05080F; border-radius: 44px; box-shadow: var(--shadow), 0 24px 48px rgba(11,18,32,.18), inset 0 0 0 2px rgba(255,255,255,.12); }
.device img { width: 100%; height: auto; border-radius: 34px; }
.hero-device { max-width: 330px; width: 100%; margin: 0 auto; transform: rotate(2deg); }
@media (prefers-reduced-motion: no-preference) { .hero-device { transition: transform .4s ease; } .hero-device:hover { transform: rotate(0deg); } }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gallery figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.gallery figcaption { color: var(--slate); font-size: 15px; line-height: 1.5; }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery figure { scroll-snap-align: start; }
}

/* Reassurance checklist */
.checks { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 32px; font-weight: 700; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 11px; background: var(--mint-tint); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2.5px solid var(--mint-deep); border-bottom: 2.5px solid var(--mint-deep); transform: rotate(-45deg); }

/* Technical footnote under a plain-language explanation */
.expert { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.expert strong { color: var(--slate); }

/* ─── November 2026 refresh ─────────────────────────────────────────────── */
/* Skip link for keyboard and screen-reader users. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--signal); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* A quiet gradient behind the hero, in both themes. */
.hero { background: radial-gradient(900px 420px at 15% 0%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%), radial-gradient(600px 360px at 95% 100%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 70%); }

/* Store badges */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px 0 14px; border-radius: 16px; background: var(--ink); color: var(--ground); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, filter .2s ease; }
.store:hover { color: var(--ground); transform: translateY(-1px); filter: brightness(1.08); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.store small { font-family: var(--body); font-weight: 600; font-size: 11.5px; opacity: .8; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store { background: var(--surface); color: var(--ink); border: 1px solid var(--line); } :root:not([data-theme="light"]) .store:hover { color: var(--ink); } }
:root[data-theme="dark"] .store { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme="dark"] .store:hover { color: var(--ink); }

/* The "at a glance" strip under the hero */
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li { position: relative; padding: 7px 12px 7px 30px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; color: var(--slate); }
.trust li::before { content: ""; position: absolute; left: 10px; top: 10px; width: 14px; height: 14px; border-radius: 7px; background: var(--mint-tint); }
.trust li::after { content: ""; position: absolute; left: 14px; top: 13px; width: 6px; height: 3.5px; border-left: 2px solid var(--mint-deep); border-bottom: 2px solid var(--mint-deep); transform: rotate(-45deg); }

/* Cards lift a little; "New" pill */
.card { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 14px 32px rgba(11,18,32,.08); }
.card.new { border: 1px solid color-mix(in srgb, var(--signal) 28%, transparent); }
.pill { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); background: var(--signal-tint); padding: 4px 9px; border-radius: 999px; }
.whatsnew { background: linear-gradient(180deg, color-mix(in srgb, var(--signal) 7%, var(--ground)), var(--ground)); }
.whatsnew-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 48px; align-items: end; }
.whatsnew-head .lead { margin: 0; }
@media (max-width: 860px) { .whatsnew-head { grid-template-columns: 1fr; align-items: start; } }

/* Nav: the current page is marked; on phones it scrolls without a bar */
.nav { scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

/* FAQ: a chevron that turns */
summary { list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

/* Legal pages: a sticky "updated" line reads better as a badge */
.updated { display: inline-block; background: var(--ground); border-radius: 999px; padding: 4px 12px; }

@media (prefers-reduced-motion: reduce) { .card, .store, summary::after, .hero-device { transition: none; } html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .cta-row, .store-row, .skip { display: none; } body { background: #fff; color: #000; } .card, .doc { box-shadow: none; border: 1px solid #ccc; } }

/* ─── Arabic (pages under /ar/, dir="rtl") ──────────────────────────────── */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
[dir="rtl"] { --display: "IBM Plex Sans Arabic", "Bricolage Grotesque", system-ui, sans-serif; --body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
[dir="rtl"] h1 { font-size: clamp(32px, 5.4vw, 54px); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-weight: 700; }
[dir="rtl"] .group-title { letter-spacing: 0; text-transform: none; font-size: 14px; }
[dir="rtl"] .brand { letter-spacing: 0; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .hero-device { transform: rotate(-2deg); }
[dir="rtl"] .store span { text-align: right; }
[dir="rtl"] .trust li { padding: 7px 30px 7px 12px; }
[dir="rtl"] .trust li::before { left: auto; right: 10px; }
[dir="rtl"] .trust li::after { left: auto; right: 14px; }
[dir="rtl"] .pill { right: auto; left: 18px; }
[dir="rtl"] .checks li { padding-left: 0; padding-right: 32px; }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
[dir="rtl"] .checks li::after { left: auto; right: 7px; transform: rotate(-45deg); }
[dir="rtl"] summary { padding-right: 0; padding-left: 28px; }
[dir="rtl"] summary::after { right: auto; left: 6px; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .doc ul, [dir="rtl"] .doc ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .toc { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .bubble.out { margin-left: 0; margin-right: auto; }
[dir="rtl"] .expert, [dir="rtl"] .muted { letter-spacing: 0; }
/* Latin terms inside Arabic text (Ed25519, X25519, URLs) keep their direction. */
[dir="rtl"] .ltr, [dir="rtl"] code, [dir="rtl"] .mono { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* The language switch in the header */
.lang { margin-left: 8px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lang:hover { background: var(--surface); color: var(--ink); }
[dir="rtl"] .lang { margin-left: 0; margin-right: 8px; font-family: var(--display); }
