/* Wispit — page vitrine.
   Aucune ressource externe : pas de police distante, pas de CDN, pas de script
   tiers. C'est cohérent avec le produit — une page qui promet la vie privée ne
   doit pas commencer par exposer ses visiteurs à un tiers — et cela supprime
   du même coup la question du consentement aux cookies. */

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --border: #e3e3e6;
  --text: #16161a;
  --muted: #62626b;
  --accent: #3a3aff;
  --accent-text: #ffffff;
  --yes-bg: #e8f5ec;
  --yes-text: #17603a;
  --no-bg: #fdf0e6;
  --no-text: #8a4b12;
  --radius: 12px;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --surface: #17171c;
    --border: #2a2a32;
    --text: #f2f2f5;
    --muted: #a0a0ac;
    --accent: #8f8fff;
    --accent-text: #0e0e11;
    --yes-bg: #12301f;
    --yes-text: #7fd6a2;
    --no-bg: #33210f;
    --no-text: #f0b27a;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main, header, footer {
  max-width: 1040px;
  margin-inline: auto;
  /* Propriétés logiques plutôt que left/right : si l'arabe arrive un jour,
     la mise en page suit sans réécriture. */
  padding-inline: 24px;
}

/* --- en-tête ---------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 28px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* --- hero ------------------------------------------------------------- */

.hero { padding-block: 64px 72px; }

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 32px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
}

.button:hover { opacity: 0.9; }

/* --- régimes de confidentialité --------------------------------------- */

h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 24ch;
}

.regimes, .ephemeral, .waitlist {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.intro, .ephemeral p, .waitlist > p {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 16px;
}

.cards {
  display: grid;
  /* auto-fit + minmax : trois colonnes en large, une seule sur mobile, sans
     media query. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge.yes { background: var(--yes-bg); color: var(--yes-text); }
.badge.no  { background: var(--no-bg);  color: var(--no-text); }

.caveat {
  border-inline-start: 3px solid var(--border);
  padding-inline-start: 16px;
  font-size: 0.95rem;
}

/* --- liste d'attente --------------------------------------------------- */

form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 12px;
  max-width: 520px;
}

input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

input[type="email"]:focus-visible,
button:focus-visible,
.button:focus-visible,
.langs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: default; }

.feedback { min-height: 1.6em; margin: 0 0 8px; font-size: 0.95rem; }
.feedback.good { color: var(--yes-text); }
.feedback.bad  { color: var(--no-text); }

.privacy { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Le piège à miel doit être invisible ET hors du parcours clavier, sans
   `display:none` — que certains bots détectent et contournent. */
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- pied de page ------------------------------------------------------ */

footer {
  border-top: 1px solid var(--border);
  padding-block: 36px 56px;
  font-size: 0.9rem;
  color: var(--muted);
}

.swiss { margin: 0 0 14px; font-weight: 600; color: var(--text); }

.langs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--text); text-decoration: underline; }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; }

.note { margin: 0; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
