/* SafeCall site — same palette as the app (lib/core/ui/theme/color_schemes). */
:root {
  --primary: #1f4fd1;
  --primary-strong: #1434a0;
  --primary-soft: #dce3ff;
  --safe: #12805c;
  --danger: #c62828;
  --surface: #f8f9fe;
  --surface-raised: #ffffff;
  --on-surface: #181b24;
  --muted: #555a6e;
  --outline: #dfe1ea;
  --radius: 24px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #b5c4ff;
    --primary-soft: #1c2a5e;
    --safe: #6fdbae;
    --danger: #ffb4ab;
    --surface: #10131b;
    --surface-raised: #1c1f28;
    --on-surface: #e1e2eb;
    --muted: #b3b6c6;
    --outline: #32353e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Only the active language is shown; see lang.js. */
html[data-lang="en"] [lang="fr"],
html[data-lang="fr"] [lang="en"] { display: none !important; }

/* ── Header ─────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--on-surface); }
.lang { border: 1px solid var(--outline); background: var(--surface-raised); color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #3a74ff, #1434a0); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 14px 28px -10px rgba(31, 79, 209, .55); }
.cta.soon { cursor: default; }
.note { display: block; margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* Phone mock-up: the app's calls screen, drawn in CSS. */
.phone { justify-self: center; width: min(320px, 100%); background: var(--surface-raised); border: 1px solid var(--outline); border-radius: 40px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(20, 52, 160, .45); }
.shield-card { background: linear-gradient(135deg, #3a74ff, #1434a0); color: #fff; border-radius: 26px; padding: 18px; }
.shield-card strong { display: block; font-size: 1.1rem; }
.shield-card small { opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: rgba(255, 255, 255, .13); border-radius: 18px; padding: 12px 6px; margin-top: 14px; }
.stats b { display: block; font-size: 1.5rem; line-height: 1.2; }
.stats span { font-size: .75rem; opacity: .85; }
.day { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 16px 6px 8px; }
.calls { border: 1px solid var(--outline); border-radius: 18px; overflow: hidden; }
.call { display: flex; align-items: center; gap: 12px; padding: 11px 13px; font-size: .9rem; }
.call + .call { border-top: 1px solid var(--outline); }
.dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 1rem; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.dot.ok { background: color-mix(in srgb, var(--safe) 14%, transparent); color: var(--safe); }
.call b { display: block; }
.call small { color: var(--danger); }
.call small.ok-text { color: var(--muted); }
.call time { margin-left: auto; font-size: .78rem; color: var(--muted); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.01em; margin: 0 0 12px; }
section p.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface-raised); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; }
.band .card { background: var(--surface); }
.card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; background: var(--primary-soft); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--surface); font-weight: 700; margin-bottom: 14px; }
.band { background: var(--surface-raised); border-block: 1px solid var(--outline); }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 46em; }
.privacy-list li { padding-left: 34px; position: relative; }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: #12805c; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: inherit; }

/* ── Long-form (privacy policy) ─────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 16px 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--outline); }
.doc th { background: var(--surface-raised); }
.doc .callout { background: var(--primary-soft); border-radius: 18px; padding: 16px 20px; margin: 20px 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .top nav a { display: none; }
}
