/* Wanasa · ونسة — playwanasa.com
   The app's own look: the night ground, cream sticker cards with an ink outline and a hard ink drop,
   saffron for the one action. Logical properties throughout, so the Arabic pages mirror by themselves. */

@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("/assets/fonts/BalooBhaijaan2-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("/assets/fonts/ReadexPro-Variable.ttf") format("truetype");
  font-weight: 160 700;
  font-display: swap;
}

:root {
  --night: #06292c;
  --night-raised: #0b3a3d;
  --night-line: #2b6a6d;
  --on-night: #fff4dc;
  --on-night-muted: #d6eae5;
  --link: #2fb5a8;
  --cream: #fffaf0;
  --cream-card: #fff4dc;
  --sand: #fbf1de;
  --line: #e6d5b4;
  --ink: #1f2d2e;
  --muted: #55645f;
  --teal: #0e4b4f;
  --teal-mid: #1b7f79;
  --accent: #ffb531;
  --accent-edge: #b97a10;
  --terracotta: #d8573c;
  --soft-gold: #ffd278;
  --radius: 26px;
  --radius-sm: 18px;
  --drop: 6px;
  --gutter: 20px;
  --display: "Baloo Bhaijaan 2", ui-rounded, system-ui, sans-serif;
  --body: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; background: var(--accent); color: var(--ink); padding: 8px 12px; z-index: 10; }

/* ---------- Top bar ---------- */

.topbar { padding-block: 18px; }
.topbar .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; margin-inline-end: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--on-night-muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--on-night); background: var(--night-raised); }
.nav a[aria-current="page"] { color: var(--on-night); }
.nav .lang {
  color: var(--on-night); border: 1.5px solid var(--night-line); background: var(--night-raised);
  font-family: var(--display); font-weight: 700;
}
@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-block: 28px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  background: var(--night-raised); border: 1.5px solid var(--night-line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--on-night-muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; color: var(--on-night); }
h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--on-night-muted); margin: 18px 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.store-badge img { height: 56px; width: auto; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li {
  font-size: 14px; font-weight: 500; color: var(--on-night);
  border: 1.5px solid var(--night-line); border-radius: 999px; padding: 6px 14px;
}

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-block: 8px 30px; }
.collage .tile:nth-child(even) { transform: translateY(30px) rotate(2.5deg); }
.collage .tile:nth-child(odd) { transform: rotate(-2.5deg); }
[dir="rtl"] .collage .tile:nth-child(even) { transform: translateY(30px) rotate(-2.5deg); }
[dir="rtl"] .collage .tile:nth-child(odd) { transform: rotate(2.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .collage .tile { transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
  .collage .tile:hover { transform: translateY(-4px) rotate(0deg); }
  .collage .tile:nth-child(even):hover { transform: translateY(24px) rotate(0deg); }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .lede { max-width: none; }
  .collage { max-width: 520px; width: 100%; margin-inline: auto; }
  .section-head { max-width: none; }
}

/* ---------- Stickers ---------- */

.sticker {
  background: var(--cream-card); color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 var(--drop) 0 var(--ink);
  overflow: hidden;
}
.tile .art { aspect-ratio: 1.12; display: grid; place-items: center; padding: 14px 16px 6px; }
.tile .art img { max-height: 100%; width: auto; }
.tile .label {
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.4vw, 24px);
  text-align: center; padding: 2px 10px 12px; color: var(--ink);
}
.bg-terracotta { background: var(--terracotta); }
.bg-gold { background: var(--soft-gold); }
.bg-sand { background: var(--sand); }
.bg-teal { background: var(--teal); }
.bg-terracotta .label, .bg-teal .label { color: var(--cream); text-shadow: 0 2px 0 var(--ink); }

/* ---------- Sections ---------- */

section.block { padding-block: 56px; }
.section-head { margin-bottom: 26px; max-width: 60ch; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--on-night-muted); margin: 8px 0 0; }

.contexts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.context .art { aspect-ratio: 1.1; display: grid; place-items: center; padding: 16px 16px 4px; border-bottom: 3px solid var(--ink); }
.context .art img { max-height: 100%; width: auto; }
.context .text { padding: 14px 16px 18px; }
.context h3 { color: var(--ink); font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.context .chip {
  font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; white-space: nowrap;
}
.context p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .contexts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .contexts { gap: 14px; } .context h3 { font-size: 19px; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: flex; flex-direction: column; }
.feature .art { padding: 18px 18px 6px; display: flex; justify-content: center; align-items: flex-end; gap: 6px; min-height: 170px; }
.feature .art img { width: 31%; max-width: 104px; }
.feature .art.wide img { width: 47%; max-width: 150px; }
.feature .text { padding: 8px 20px 22px; }
.feature .kicker { font-size: 13px; font-weight: 600; color: var(--teal-mid); text-transform: uppercase; letter-spacing: .06em; }
[lang="ar"] .feature .kicker { text-transform: none; letter-spacing: 0; }
.feature h3 { color: var(--ink); font-size: 26px; font-weight: 800; margin-top: 2px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feature li { font-size: 15px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.feature li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--ink); transform: translateY(-1px); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .feature .art { min-height: 0; } }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.promise li {
  background: var(--night-raised); border: 1.5px solid var(--night-line); border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
}
.promise strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--on-night); }
.promise span { color: var(--on-night-muted); font-size: 15px; }
.promise svg { width: 28px; height: 28px; margin-bottom: 8px; color: var(--accent); }
@media (max-width: 720px) { .promise { grid-template-columns: 1fr; } }

.closing { text-align: center; padding-block: 64px 72px; }
.closing .sticker { padding: 36px 24px 34px; max-width: 760px; margin-inline: auto; }
.closing img.icon { width: 96px; height: 96px; border-radius: 24px; border: 3px solid var(--ink); margin: 0 auto 14px; }
.closing h2 { color: var(--ink); font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.closing p { color: var(--muted); margin: 8px auto 22px; max-width: 40ch; }

/* ---------- Text pages (privacy, support) ---------- */

.page { padding-block: 24px 64px; }
.page .sticker { padding: clamp(22px, 4vw, 44px); max-width: 860px; margin-inline: auto; }
.page h1 { color: var(--ink); font-size: clamp(34px, 5vw, 48px); }
.page .updated { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.page h2 { color: var(--ink); font-size: 24px; font-weight: 800; margin: 30px 0 8px; }
.page h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin: 22px 0 6px; }
.page p, .page li { color: #2c3b3c; font-size: 16px; }
.page ul { padding-inline-start: 22px; }
.page li { margin-bottom: 6px; }
.page a { color: var(--teal-mid); font-weight: 500; }
.page .summary { background: var(--sand); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 6px 20px; }
.page .summary li { margin-bottom: 4px; }
.page .note { color: var(--muted); font-size: 14px; border-top: 2px dashed var(--line); padding-top: 14px; margin-top: 30px; }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: space-between;
  background: var(--sand); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 4px 0 8px;
}
.contact-card strong { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); }
.contact-card span { color: var(--muted); font-size: 15px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--teal); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 0 var(--accent-edge);
}
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-edge); }
.button.quiet { background: var(--cream); color: var(--ink); box-shadow: none; border: 2px solid var(--ink); }

details.faq { border-bottom: 2px solid var(--line); padding: 4px 0; }
details.faq summary {
  cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink);
  padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--teal-mid); flex: none; }
details.faq[open] summary::after { content: "−"; }
details.faq p, details.faq ul { margin-top: 0; }

/* ---------- Footer ---------- */

.footer { border-top: 1.5px solid var(--night-line); padding-block: 26px 40px; color: var(--on-night-muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-inline-start: auto; }
.footer a { color: var(--on-night-muted); text-decoration: none; }
.footer a:hover { color: var(--on-night); text-decoration: underline; }
.footer button.linklike { background: none; border: 0; padding: 0; color: var(--on-night-muted); font: inherit; cursor: pointer; }
.footer button.linklike:hover { color: var(--on-night); text-decoration: underline; }

/* ---------- Consent bar ---------- */

.consent {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 20; max-width: 720px; margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  background: var(--cream-card); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 5px 0 var(--ink); padding: 14px 16px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 280px; font-size: 14.5px; line-height: 1.5; }
.consent a { color: var(--teal-mid); }
.consent .actions { display: flex; gap: 10px; }
.consent .button { min-height: 44px; font-size: 16px; padding: 0 18px; }

/* ---------- 404 ---------- */

.lost { text-align: center; padding-block: 40px 80px; }
.lost img { width: 220px; margin: 0 auto 10px; }
.lost h1 { font-size: clamp(34px, 6vw, 52px); }
.lost p { color: var(--on-night-muted); }
