/* Fraunces © The Fraunces Project Authors, SIL OFL 1.1 — fonts/OFL-Fraunces.txt
   IBM Plex Sans © IBM Corp., SIL OFL 1.1 — fonts/OFL-IBM-Plex.txt */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --card: #fbf8f2;
  --ink: #1c1916;
  --ink-soft: #3a342c;
  --muted: #5c5348;
  --line: #ddd4c4;
  --signal: #c43222;
  --signal-ink: #8d2218;
  --signal-soft: #f8e4df;
  --night: #1c1916;
  --night-text: #f6f1e8;
  --night-muted: #d2c8ba;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --header: 4.25rem;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--signal-ink);
}

a:hover {
  color: var(--signal);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0.75rem 1.25rem;
  background: rgba(243, 239, 230, 0.94);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 4px 0 var(--signal);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  min-height: 2.75rem;
}

.logo svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.logo-dot {
  transform-origin: center;
  animation: pulse 2.6s ease-in-out infinite;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.primary-nav {
  display: none;
}

.nav-details {
  position: relative;
}

section[id],
#stripe-checkout {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 12.5rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(28, 25, 22, 0.08);
}

.nav-details[open] .nav-panel {
  display: flex;
  flex-direction: column;
}

.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
}

.nav-panel a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.hero {
  padding: 1.5rem 0 3rem;
}

.hero-trace {
  width: min(100%, 36rem);
  height: 3.5rem;
  color: var(--signal);
  margin-bottom: 0.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--signal-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
.price,
.logo {
  font-family: var(--serif);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 20ch;
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  background: #a8281b;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-small {
  min-height: 2.75rem;
  padding-inline: 0.9rem;
  font-size: 0.95rem;
}

.header-cta {
  display: none;
}

.benefits {
  display: grid;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  border-left: 4px solid var(--signal);
}

.benefits strong {
  font-weight: 600;
}

.band {
  background: var(--paper-2);
  padding: 3.5rem 0;
}

.band-plain {
  padding: 3.5rem 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-lead {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.plans {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}

.plan h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.price span,
.plan-eq {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-eq {
  margin: 0;
}

.plan .btn {
  margin-top: auto;
}

.plan-year {
  background: var(--night);
  color: var(--night-text);
  border-color: var(--night);
}

.plan-year .price span,
.plan-year .plan-eq,
.plan-year h3 {
  color: var(--night-muted);
}

.plan-year .btn {
  background: var(--night-text);
  color: var(--night);
}

.plan-year .btn:hover {
  background: #fff;
  color: var(--night);
}

.pay-note {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.samples {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.sample {
  margin: 0;
  padding: 1.1rem 1.15rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.sample p {
  margin: 0 0 0.55rem;
}

.sample p:last-child {
  margin-bottom: 0;
}

.sample-flag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sample-kind {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.sample-kicker {
  font-weight: 600;
}

.sample-link {
  color: var(--muted);
  font-weight: 500;
}

.sample-digest {
  background: #f7f3ea;
}

.limits {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.limits li {
  padding-left: 1rem;
  border-left: 3px solid var(--ink);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--signal);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding: 2.5rem 0 2rem;
}

.site-footer a {
  color: var(--night-text);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: var(--night-text);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-footer address {
  font-style: normal;
  color: var(--night-muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin-top: 0.4rem;
}

.prose {
  width: min(100% - 2.5rem, 42rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.prose h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.status-card {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

#invite-link {
  font-weight: 600;
}

@keyframes pulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (min-width: 800px) {
  .site-header {
    padding-inline: 2rem;
  }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
  }

  .primary-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 0.75rem;
    border-radius: 0.7rem;
  }

  .primary-nav a:hover {
    background: var(--paper-2);
    color: var(--ink);
  }

  .nav-details {
    display: none;
  }

  .header-end {
    margin-left: 0.4rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: 2.5rem;
    align-items: end;
  }

  .benefits {
    margin-top: 0;
  }

  .plans,
  .samples {
    grid-template-columns: 1fr 1fr;
  }

  .sample-digest {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }

  .band,
  .band-plain,
  .hero {
    padding-top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-dot { animation: none; }
}

/* Lancement gratuit — formulaire d’inscription */
.launch-note {
  max-width: 46rem;
}

.plan-later {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.join {
  max-width: 40rem;
}

.join-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.join-form .field {
  display: grid;
  gap: 0.35rem;
}

.join-form label {
  font-weight: 500;
}

.join-form .optional {
  font-weight: 400;
  opacity: 0.7;
}

.join-form input[type="text"],
.join-form input[type="email"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

.join-form .field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
}

.join-form .field-check input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
}

.join-form .field-check label {
  font-weight: 400;
}

.join-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.join-closed {
  margin: 0;
  font-weight: 600;
}

.join-status {
  margin: 0;
  min-height: 1.5em;
}

.join-result {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  border-radius: 10px;
  background: var(--card);
}

.join-result[hidden] {
  display: none;
}

.btn-telegram {
  width: 100%;
  min-height: 3.5rem;
  font-size: 1.1rem;
  box-sizing: border-box;
}

.join-expiry,
.join-mock {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.join-mock {
  font-weight: 600;
  color: var(--signal-ink);
}

.join-qr {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

.join-qr-code svg {
  display: block;
  width: 12rem;
  height: 12rem;
  max-width: 100%;
}

.join-qr figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 18rem;
}

@media (min-width: 800px) {
  .join-result {
    grid-template-columns: 1fr auto;
    grid-template-areas: "mock mock" "btn qr" "exp qr";
    align-items: start;
    column-gap: 1.5rem;
  }
  .join-mock { grid-area: mock; }
  .btn-telegram { grid-area: btn; }
  .join-expiry { grid-area: exp; }
  .join-qr { grid-area: qr; }
}

.preview-banner {
  position: relative;
  z-index: 100;
  margin: 0;
  padding: 0.55rem 1rem;
  background: #1c1916;
  color: #ffd84d;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.preview-banner[hidden] {
  display: none;
}

.turnstile-slot {
  min-height: 65px;
  max-width: 100%;
  overflow: hidden;
}

.privacy-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
