/* MAPO — home page styles (FR « / » and EN « /en »). Fonts are self-hosted: the CSP only allows 'self'. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/pjs-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/pjs-latin.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;
}

:root {
  --bg: #FAF7F2;
  --white: #FFFFFF;
  --ink: #16181A;
  --mute: #5A6169;
  --line: #EFEBE3;
  --line-2: #E6E1D6;
  --wine: #5E1B2D;
  --wine-dark: #4A1523;
  --wine-tint: #F3E6E9;
  --wine-soft: #F0DCE2;
  --cream-2: #F3EEE6;
  --cream-3: #EEE7DC;
  --green: #15693B;
  --green-tint: #E8F6EE;
  --focus: #1A5F73;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--wine); }
a:hover { color: #3D1120; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
.accent { color: var(--wine); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--wine); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--wine); color: #fff; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.btn:hover { background: var(--wine-dark); color: #fff; transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.input { flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid #D9D4C8; background: #fff; color: var(--ink); font-size: 16px; }
.input::placeholder { color: #7A7F86; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Type */
.h2 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.h2 .accent, .h1 .accent { color: var(--wine); }
/* Plus Jakarta Sans draws its full stop with a wide gap: pull it in, in big titles only. */
.h1 .pt, .h2 .pt { margin-left: -.07em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { margin: 0; font-size: 19px; line-height: 1.65; color: var(--mute); }

/* Wordmark — the app icon's « ma » light + « po » bold */
.wordmark { font-size: 26px; line-height: 1; letter-spacing: -.01em; color: var(--wine); text-decoration: none; }
.wordmark .l { font-weight: 400; }
.wordmark .b { font-weight: 800; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250,247,242,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 16px; padding-bottom: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; }
.nav a:hover { color: var(--wine); }
.top-end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; padding: 3px; font-size: 13px; line-height: 1; }
.lang a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--mute); text-decoration: none; font-weight: 600; }
.lang a[aria-current="page"] { background: var(--wine); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .ring { position: absolute; width: 620px; height: 620px; left: -330px; top: 60px; border-radius: 50%; border: 1px solid rgba(94,27,45,.08); box-shadow: 0 0 0 64px rgba(94,27,45,.018), 0 0 0 128px rgba(94,27,45,.012); pointer-events: none; }
.hero .glow { position: absolute; width: 600px; height: 600px; right: -220px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(243,230,233,.95), rgba(243,230,233,0) 68%); pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: 96px; padding-bottom: 112px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.h1 { margin: 0; max-width: 11em; font-size: clamp(44px, 7vw, 100px); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.hero .lead { max-width: 34em; font-size: 20px; line-height: 1.6; }
.signup { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 560px; }
.signup-title { margin: 0; font-size: 17px; font-weight: 600; }
.form { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; scroll-margin-top: 200px; }
.form-msg { min-height: 1.5em; margin: 0; font-size: 15px; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #9B1C1C; }
.consent { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mute); max-width: 32em; }
.reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 14px; color: var(--mute); }
.reassure span { display: inline-flex; align-items: center; gap: 8px; }

/* Sections */
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec { padding-top: 120px; padding-bottom: 120px; }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
[id] { scroll-margin-top: 84px; }

/* How it works */
.how { display: flex; flex-direction: column; gap: 52px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(40,22,26,.07); }
.step { display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 32px; border-radius: 28px; background: var(--bg); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.step-num { font-size: 30px; font-weight: 800; color: var(--wine); letter-spacing: -.02em; }
.ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--wine-tint); display: flex; align-items: center; justify-content: center; }
.step h3, .tile h3 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.015em; }
.step p, .tile p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mute); }
.note { display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: 20px; background: var(--bg); }
.note p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--mute); }
.note strong { color: var(--ink); }
.dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wine-tint); display: flex; align-items: center; justify-content: center; }

/* Curve */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.checks { display: flex; flex-direction: column; gap: 20px; margin: 12px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks strong { display: block; margin: 2px 0 4px; font-size: 17px; }
.checks span.t { display: block; font-size: 16px; line-height: 1.55; color: var(--mute); }
.chart { margin: 0; flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(40,22,26,.06); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.chart-label { margin: 0; font-size: 14px; color: var(--mute); }
.chart-score { margin: 6px 0 0; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gain { padding: 8px 14px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 14px; font-weight: 700; white-space: nowrap; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mute); }
.link { padding: 8px 0; border: 0; background: none; color: var(--mute); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* What makes MAPO different */
.diff { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 72px; }
.diff-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; }
.tiles { flex: 1.4 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 28px; border-radius: 26px; }
.tile .ico { margin-bottom: 22px; background: #fff; }
.tile h3 { font-size: 20px; letter-spacing: -.01em; }
.tile p { font-size: 16px; }
.t1 { background: var(--bg); }
.t2 { background: var(--cream-2); }
.t3 { background: var(--cream-3); }
.t4 { background: var(--wine); color: #fff; }
.t4 .ico { background: rgba(255,255,255,.14); }
.t4 p { color: var(--wine-soft); }

/* Before / after */
.compare { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.compare .sec-head { align-items: center; }
.ba { position: relative; width: 100%; max-width: 880px; aspect-ratio: 11 / 7; border-radius: 32px; overflow: hidden; background: #E2DDD2; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba .handle { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ba:focus-within .handle { outline: 2px solid var(--focus); outline-offset: 3px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tag { position: absolute; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 13px; font-weight: 600; pointer-events: none; }
.tag.l { left: 18px; bottom: 18px; }
.tag.r { right: 18px; bottom: 18px; }
.tag.c { left: 50%; top: 18px; transform: translateX(-50%); }
.compare .caption { margin: 0; max-width: 36em; font-size: 16px; line-height: 1.6; color: var(--mute); }

/* Trust */
.trust { background: var(--wine); color: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; padding-top: 104px; padding-bottom: 104px; }
.trust-mark { flex: none; width: 132px; height: 132px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 0 0 18px rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; }
.trust-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.trust .eyebrow { color: var(--wine-soft); }
.trust .h2 { color: #fff; }
.trust p.t { margin: 0; max-width: 40em; font-size: 18px; line-height: 1.65; color: var(--wine-soft); }
.trust p.f { margin: 0; font-size: 15px; font-weight: 700; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; }
.faq-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.faq-intro p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--mute); }
.faq-list { flex: 1.5 1 520px; min-width: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 19px; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--wine); }
.plus { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease; }
.faq-list details[open] .plus { transform: rotate(45deg); background: var(--wine-tint); }
.faq-list details p { margin: -6px 56px 26px 0; font-size: 17px; line-height: 1.65; color: var(--mute); }

/* Last call */
.last { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.last .glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -260px; margin-left: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,230,233,.9), rgba(243,230,233,0) 68%); pointer-events: none; }
.last .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.last .h2 { max-width: 12em; font-size: clamp(40px, 5.4vw, 68px); }
.last .signup-title { font-size: 18px; font-weight: 400; }

/* Footer */
.foot { border-top: 1px solid var(--line-2); font-size: 14px; }
.foot .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; padding-bottom: 40px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .wordmark { font-size: 20px; }
.foot .legal { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mute); }

/* Tablet */
@media (max-width: 960px) {
  .nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .diff-intro { position: static; }
}
/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .wordmark { font-size: 23px; }
  .top-end { gap: 8px; }
  .lang a { padding: 7px 9px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; gap: 22px; }
  .hero .lead { font-size: 17px; }
  .form .btn, .form .input { flex: 1 1 100%; width: 100%; }
  .sec { padding-top: 80px; padding-bottom: 80px; }
  .lead { font-size: 17px; }
  .step { min-height: 0; padding: 24px; }
  .step-top { margin-bottom: 18px; }
  .split { gap: 40px; }
  .chart { padding: 22px; border-radius: 24px; }
  .chart-score { font-size: 52px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 24px; }
  .ba { aspect-ratio: 4 / 5; border-radius: 24px; }
  .trust .wrap { padding-top: 72px; padding-bottom: 72px; }
  .trust-mark { width: 88px; height: 88px; }
  .trust-mark svg { width: 38px; height: 38px; }
  .faq-list summary { font-size: 17px; padding: 20px 0; }
  .faq-list details p { margin-right: 0; font-size: 16px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .plus, .btn { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}
