/* BlueEden Mailbox, the sales page (/mailbox).
 *
 * Its own sheet, and since 2026-11-15 the app's own look (the app's « au calme »
 * redesign, docs/refonte-calme.md of blueeden-mailbox): cream paper, the app's
 * blue, the Apprentice's peach for what he says, Lexend for titles and buttons,
 * Atkinson Hyperlegible Next for reading — the face chosen for legibility, the
 * one the screenshots show. The readers are busy professionals, many of them
 * not at ease with computers: 19 px body, AAA contrast for text, 48 px targets,
 * one filled button per screen, NOTHING that moves on its own in a loop (W3C
 * COGA, NN/g: motion at the edge of the eye pulls attention away from the
 * text). Atkinson's zero is slashed, and has no alternate: the figures that
 * matter (prices, volumes) are set in Lexend, whose
 * zero is plain (`.mp-num`, and the rules that name --title). No colour is
 * written outside these tokens.
 *
 * The resets sit in :where() so that any class wins over them:
 * `.mp p { margin: 0 }` used to beat `.mp-lead { margin-top }`. */

/* The fonts are served from this site (public/fonts/), never from a third
 * party: loading them from Google sent every visitor's IP address there
 * (2026-11-13). Both are under the SIL Open Font License, whose text sits
 * beside the files. The same files as the app (latin subset, variable). */
@font-face {
  font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/static/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('/static/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/lexend-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* The app's tokens (apps/dashboard/css/variables.css of blueeden-mailbox),
 * under the names this sheet already used. */
:root {
  --ground: #faf7f1;
  --paper: #ffffff;
  --sand: #f2ede3;
  --sand-2: #e8e0d1;
  --ink: #1b2550;
  --ink-2: #414b75;
  --ink-3: #535d86;
  --accent: #2a56d4;
  --accent-rgb: 42, 86, 212;
  --accent-deep: #2148b8;
  --accent-soft: #e4ecff;
  --accent-soft-2: #d5e1ff;
  --accent-on: #ffffff;
  --voice: #ffe9d9;
  --voice-border: #f6cfb4;
  --warm: #c2410c;
  --warm-ink: #8a4b0b;
  --warm-soft: #fdeedf;
  --ok: #065f46;
  --ok-soft: #dcf3ea;
  --urgent: #b91c1c;
  --urgent-soft: #fde8e8;
  --night: #1b2550;
  --night-ink: #f4f6ff;
  --night-ink-2: #c8cfef;
  --border: rgba(27, 37, 80, .12);
  --shadow-sm: 0 1px 0 rgba(27, 37, 80, .06);
  --shadow: 0 1px 0 rgba(27, 37, 80, .06), 0 8px 24px rgba(27, 37, 80, .07);
  --shadow-lg: 0 12px 36px rgba(27, 37, 80, .16);
  --radius: 22px;
  --radius-sm: 14px;
  --title: 'Lexend', 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: var(--title);
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.mp {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 640px) { body.mp { font-size: 18px; } }

.mp img { max-width: 100%; height: auto; display: block; }
.mp a { color: var(--accent); }
:where(.mp) :where(h1, h2, h3, h4) { margin: 0; color: var(--ink); }
:where(.mp) :where(p, blockquote, figure) { margin: 0; }
:where(.mp) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.mp h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(29px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.mp h3 { font-family: var(--title); font-weight: 600; font-size: 21px; line-height: 1.3; }
.mp :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mp-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .mp-wrap { padding: 0 16px; } }

.mp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: 8px; }
.mp-skip:focus { left: 16px; }
.mp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons and the call to action ──────────────────────── */
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 14px; border: 0;
  background: var(--accent); color: var(--accent-on) !important;
  font: 600 18px/1 var(--title); text-decoration: none; cursor: pointer;
  box-shadow: none;
  transition: background .2s, transform .2s;
}
.mp-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.mp-btn svg { flex: none; transition: transform .2s; }
.mp-btn:hover svg { transform: translateX(3px); }
.mp-btn-lg { min-height: 60px; padding: 0 32px; font-size: 19px; }
.mp-btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; box-shadow: none; white-space: nowrap; }
.mp-btn-soft { background: var(--accent-soft); color: var(--accent-deep) !important; box-shadow: none; }
.mp-btn-soft:hover { background: var(--accent-soft-2); }
.mp-btn-invert { background: var(--paper); color: var(--accent-deep) !important; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.mp-btn-invert:hover { background: var(--accent-soft); }
.mp-btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 700; color: var(--ink) !important; text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), .4); text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.mp-btn-ghost:hover { text-decoration-color: var(--accent); }

/* The button, then the three facts that answer the worry of the click. */
.mp-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mp-micro { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 15px; }
.mp-micro li { display: inline-flex; align-items: center; gap: 7px; }
.mp-micro svg { color: var(--ok); flex: none; }
.mp-cta-center { align-items: center; margin-top: 44px; }
.mp-cta-center .mp-micro { justify-content: center; }
.mp-cta-invert .mp-btn { background: var(--paper); color: var(--accent-deep) !important; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.mp-cta-invert .mp-btn:hover { background: var(--accent-soft); }
.mp-cta-invert .mp-micro { color: var(--night-ink-2); }
.mp-cta-invert .mp-micro svg { color: #a7f0cf; }
@media (max-width: 560px) { .mp-cta .mp-btn { width: 100%; } .mp-cta { align-items: stretch; } }

/* ── Nav ─────────────────────────────────────────────────── */
.mp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.mp-nav.is-scrolled { border-bottom-color: var(--border); }
.mp-nav-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.mp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; font-size: 19px; white-space: nowrap; }
.mp-brand b { color: var(--accent); }
.mp-links { display: flex; gap: 28px; margin-left: 12px; }
.mp-links a { color: var(--ink-2); text-decoration: none; font-size: 17px; padding: 10px 0; }
.mp-links a:hover { color: var(--accent); }
.mp-nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.mp-lang, .mp-login { color: var(--ink-2) !important; text-decoration: none; font-size: 16px; padding: 10px 2px; }
.mp-lang { font-weight: 700; letter-spacing: .04em; }
@media (max-width: 900px) { .mp-links { display: none; } }
@media (max-width: 560px) {
  .mp-login { display: none; }
  .mp-nav-inner { gap: 12px; min-height: 64px; }
  .mp-brand { font-size: 17px; }
  .mp-nav-actions { gap: 12px; }
}
@media (max-width: 400px) {
  .mp-nav .mp-btn-sm { padding: 0 14px; font-size: 15px; }
  .mp-brand img { width: 26px; height: 26px; }
}

/* ── Hero ────────────────────────────────────────────────── */
/* The promise, one paragraph, one button, one quiet screen. Nothing else
 * competes with the title (2026-11-20: the busy mail card, the badge, the
 * second link and the strip of providers left the hero). */
.mp-hero { padding: 64px 0 88px; }
.mp-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 72px; align-items: center; }
.mp h1 {
  font-family: var(--title); font-weight: 600;
  font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.mp h1 em { display: block; margin-top: 6px; font-style: normal; color: var(--accent); }
.mp-lead { margin-top: 28px; font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.mp-hero .mp-cta { margin-top: 34px; }
.mp-hero-ai { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--ink-3); max-width: 34em; }

.mp-hero-visual { max-width: 340px; width: 100%; justify-self: center; }
.mp-shot {
  position: relative; border-radius: var(--radius); background: var(--paper);
  box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.mp-shot-hero { border-radius: 28px; padding: 8px; }
.mp-shot-hero img { border-radius: 20px; }
.mp-caption { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }

@media (max-width: 900px) {
  .mp-hero { padding: 32px 0 64px; }
  .mp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mp-hero-visual { max-width: 300px; }
}
@media (max-width: 560px) {
  .mp-lead { font-size: 19px; margin-top: 20px; }
  .mp-hero .mp-cta { margin-top: 26px; }
}

/* ── Sections ────────────────────────────────────────────── */
.mp-section { padding: 96px 0; }
@media (max-width: 640px) { .mp-section { padding: 64px 0; } }
.mp-head { max-width: 780px; margin-bottom: 48px; }
.mp-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.mp-body { margin-top: 18px; color: var(--ink-2); max-width: 40em; }
.mp-head-center .mp-body { margin-left: auto; margin-right: auto; }
.mp-fine { margin-top: 18px; font-size: 15px; color: var(--ink-3); max-width: 52em; }
.mp-fine-center { text-align: center; margin-left: auto; margin-right: auto; }

/* The three things to know: text only, on white. */
.mp-points { padding: 80px 0; background: var(--paper); border-block: 1px solid var(--border); }
.mp-points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.mp-points h3 { font-size: 22px; margin-bottom: 10px; }
.mp-points p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 860px) { .mp-points { padding: 56px 0; } .mp-points-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Replies: the text, and the one chat screen. */
.mp-replies-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.mp-replies .mp-shot { padding: 8px; }
.mp-replies .mp-shot img { border-radius: 16px; }
@media (max-width: 860px) { .mp-replies-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Pricing */
.mp-pricing { background: var(--sand); }
.mp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.mp-plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--border);
}
.mp-plan.is-reco { border: 2px solid var(--accent); }
.mp-plan-badge { position: absolute; top: -15px; left: 26px; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: 14px; font-weight: 700; }
.mp-plan h3 { font-size: 26px; }
.mp-plan-for { margin-top: 6px; color: var(--ink-2); font-size: 16px; min-height: 3em; }
.mp-price-main { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.mp-price-main span { font-family: var(--title); font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.mp-price-main small { font-size: 16px; color: var(--ink-2); }
.mp-price-sub { margin-top: 6px; font-family: var(--title); font-size: 15px; color: var(--ink-3); }
.mp-plan-mails { margin: 20px 0 26px; font-size: 17px; color: var(--ink-2); }
.mp-plan-mails strong { font-family: var(--title); font-weight: 600; color: var(--ink); }
.mp-plan-mails span { display: block; font-family: var(--title); color: var(--ink-3); font-size: 15px; }
.mp-plan .mp-btn { margin-top: auto; width: 100%; }
@media (max-width: 900px) {
  .mp-plans { grid-template-columns: 1fr; max-width: 480px; gap: 28px; }
  .mp-plan.is-reco { order: -1; }
  .mp-plan-for { min-height: 0; }
}

/* The details: closed by default, everything the cards leave out. */
.mp-details { max-width: 860px; margin: 28px auto 0; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--border); }
.mp-details > summary {
  position: relative; list-style: none; cursor: pointer; padding: 16px 52px 16px 22px; min-height: 48px;
  font: 600 17px var(--title); color: var(--accent-deep); text-align: center;
}
.mp-details-body { padding: 0 22px 24px; }
.mp-details-body h3 { margin-top: 28px; font-size: 18px; }
.mp-table-wrap { overflow-x: auto; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--ink-2); }
.mp-table th, .mp-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.mp-table thead th { font-size: 14px; color: var(--ink-3); font-weight: 700; }
.mp-table tbody th { font-family: var(--title); font-size: 17px; color: var(--ink); }
.mp-table b, .mp-table span { display: block; font-family: var(--title); font-weight: 400; }
.mp-table b { font-weight: 600; color: var(--ink); }
.mp-table .mp-save { color: var(--ok); font-weight: 600; }
/* On a phone each plan becomes a block, its three cells labelled. */
@media (max-width: 640px) {
  .mp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mp-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .mp-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .mp-table td { padding: 0; border: 0; }
  .mp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
  .mp-table td:last-child { grid-column: 1 / -1; }
}
.mp-plan-list { display: grid; gap: 10px; margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.mp-plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.mp-plan-list svg { flex: none; color: var(--ok); margin-top: 2px; }
.mp-footnotes { margin-top: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.mp-footnotes li { padding-left: 16px; position: relative; }
.mp-footnotes li::before { content: '·'; position: absolute; left: 2px; font-weight: 700; }

/* FAQ */
.mp-faq-inner { max-width: 820px; }
.mp-faq h2 { margin-bottom: 28px; }
.mp-faq-list { display: grid; gap: 10px; }
.mp-faq details { border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--border); }
.mp-faq summary, .mp-details > summary { list-style: none; }
.mp-faq summary {
  position: relative; cursor: pointer; padding: 18px 56px 18px 22px;
  font-weight: 700; font-size: 18px; min-height: 48px;
}
.mp-faq summary::-webkit-details-marker, .mp-details > summary::-webkit-details-marker { display: none; }
.mp-faq summary::after, .mp-details > summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
.mp-faq details[open] summary::after, .mp-details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.mp-faq details p { padding: 0 22px 20px; color: var(--ink-2); }
.mp-ask { margin-top: 28px; color: var(--ink-2); }
.mp-ask a, .mp-trust-line a { color: var(--accent-deep); font-weight: 600; text-underline-offset: 3px; }
.mp-trust-line { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 16px; color: var(--ink-3); }

/* Final CTA */
.mp-final { padding: 88px 0 96px; background: var(--accent); color: var(--accent-on); text-align: center; }
.mp-final-inner { display: flex; flex-direction: column; align-items: center; }
.mp-final h2 { color: var(--accent-on); max-width: 18em; }
.mp-final-inner > p { margin: 16px 0 0; color: var(--accent-soft); font-size: 19px; }
.mp-final .mp-cta { margin-top: 30px; }
@media (max-width: 640px) { .mp-final { padding: 64px 0 72px; } }

/* Footer */
.mp-footer { padding: 64px 0 120px; background: var(--ground); color: var(--ink-2); font-size: 16px; }
.mp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.mp-footer h4 { margin: 0 0 12px; font-size: 15px; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.mp-footer a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.mp-footer a:hover { color: var(--accent); }
.mp-footer .mp-brand { display: inline-flex; margin-bottom: 12px; }
.mp-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; color: var(--ink-3); }
@media (max-width: 860px) { .mp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 761px) { .mp-footer { padding-bottom: 64px; } }

/* Sticky CTA, phones only, hidden while a CTA is already in view */
.mp-sticky {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  border-radius: 999px; background: var(--accent); color: var(--accent-on) !important;
  font-weight: 700; font-size: 18px; text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(var(--accent-rgb), .8);
  transform: translateY(140%); transition: transform .3s;
}
.mp-sticky.is-on { transform: none; }
@media (max-width: 760px) { .mp-sticky { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  .mp-btn, .mp-btn svg, .mp-sticky, .mp-faq summary::after, .mp-details > summary::after { transition: none; }
}

/* ── The consent banner (shown only when switched on in /admin) ────────────
   A question, two answers of the same weight, nothing that hides the page:
   it sits at the bottom, above the phone's fixed button. */
.mp-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(24, 20, 60, .16);
  font-size: 16px; color: var(--ink-2);
}
.mp-consent[hidden] { display: none; }
.mp-consent p { flex: 1 1 320px; }
.mp-consent a { color: var(--accent-deep); text-decoration: underline; }
.mp-consent-actions { display: flex; gap: 10px; }
.mp-consent-actions .mp-btn { min-width: 110px; }
@media (max-width: 760px) { .mp-consent { bottom: 84px; } .mp-consent-actions { width: 100%; } .mp-consent-actions .mp-btn { flex: 1; } }

/* ── /mesure-audience ─────────────────────────────────────────────────── */
.mp-measure { max-width: 760px; padding-top: 140px; padding-bottom: 96px; }
.mp-measure h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin-bottom: 20px; }
.mp-measure-box { margin: 36px 0 44px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 14px; justify-items: start; }
.mp-measure-state { font-weight: 700; color: var(--ink); }
.mp-measure-link { width: 100%; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 12px; justify-items: start; }
.mp-measure-block { margin-top: 32px; }
.mp-measure-block h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.mp-measure-block p { color: var(--ink-2); }
.mp-measure-foot { margin-top: 48px; font-size: 16px; color: var(--ink-3); }
.mp-measure-foot a { color: var(--accent-deep); text-decoration: underline; }
.mp-measure [hidden] { display: none !important; }
