/* Zanga Money website: same dark "Aurora" look and Élan colours as the app (mobile/src/theme.ts). */
:root {
  --bg: #04070a;
  --fg: #eaf2ee;
  --muted: #93a39b;
  --green: #5db075;
  --yellow: #e9c543;
  --blue: #7f8ff5;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* The three aurora lights behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 30vmax at 15% 10%, rgba(63, 154, 92, 0.32), transparent 70%),
    radial-gradient(38vmax 28vmax at 90% 20%, rgba(59, 76, 209, 0.30), transparent 70%),
    radial-gradient(30vmax 22vmax at 55% 95%, rgba(233, 197, 67, 0.16), transparent 70%);
  pointer-events: none;
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #a8e0b8; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 26px; letter-spacing: -1px; }
.brand svg { width: 34px; height: 34px; }
.brand:hover { color: var(--fg); }
nav.links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--fg); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 12px var(--font); padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--glass); color: var(--fg); }

/* Language switching: only the chosen language's blocks show. */
html[lang="fr"] [data-lang="en"], html[lang="en"] [data-lang="fr"] { display: none !important; }

/* Hero */
.hero { padding: 56px 0 40px; display: grid; gap: 40px; grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 .g { color: var(--green); } .hero h1 .y { color: var(--yellow); } .hero h1 .b { color: var(--blue); }
.lead { color: #c9d4ce; font-size: 1.12rem; max-width: 36em; margin: 0 0 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--glass); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero-mark { justify-self: center; width: min(280px, 70vw); filter: drop-shadow(0 30px 60px rgba(93, 176, 117, 0.25)); }

/* Feature cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 20px 0 56px; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; }
.dot.g { background: rgba(93, 176, 117, 0.16); color: var(--green); }
.dot.y { background: rgba(233, 197, 67, 0.14); color: var(--yellow); }
.dot.b { background: rgba(127, 143, 245, 0.16); color: var(--blue); }

.note { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); padding: 18px 0 0; margin: 0 0 40px; }

/* Text pages (privacy, support) */
.doc { padding: 24px 0 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 6px; }
.doc .updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 32px; }
.doc h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.doc p, .doc li { color: #d3ddd8; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.panel { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px; margin: 18px 0; }
.panel h2 { margin-top: 0; }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }
.reveal { filter: blur(4px); cursor: pointer; transition: filter 0.25s; outline: none; }
.reveal:hover, .reveal:focus { filter: none; }

footer.bottom { border-top: 1px solid var(--border); padding: 26px 0 40px; color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer.bottom a { color: var(--muted); }
footer.bottom a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-mark { display: none; }
  nav.links .hide-sm { display: none; }
}
