/* Pages publiques des lettres RGNR : désinscription, confirmation, accueil.
   Charte RGNR (teal, orange, Poppins et Sora). Décor en profondeur piloté par scene.js.
   Polices hébergées ici, aucun appel à un service tiers. Tout mouvement passe par transform et opacity. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/public/static/fonts/poppins-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/public/static/fonts/poppins-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/public/static/fonts/sora-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/public/static/fonts/sora-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('/public/static/fonts/sora-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('/public/static/fonts/sora-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0a1917; --teal: #1a3a36; --teal-2: #2c6961; --teal-3: #3e7d6c;
  --orange: #fea376; --orange-2: #f97316;
  --ink: #2a3a36; --muted: #62736e; --paper: #fbfdfc;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --title: Poppins, system-ui, sans-serif; --text: Sora, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; min-height: 100dvh; background: var(--night); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── Le décor : un ciel teal, des lueurs, l'étoile du logo en constellation ── */
.scene { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1f4640 0%, #14302c 42%, var(--night) 100%); }
.layer { position: absolute; inset: -6%; will-change: transform; }
.orb { position: absolute; border-radius: 50%; }
.orb-a { width: 78vmax; height: 78vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(62, 125, 108, 0.62), rgba(62, 125, 108, 0.18) 55%, transparent 72%); animation: drift-a 26s var(--spring) infinite alternate; }
.orb-b { width: 64vmax; height: 64vmax; right: -20vmax; bottom: -26vmax; background: radial-gradient(closest-side, rgba(249, 115, 22, 0.42), rgba(254, 163, 118, 0.14) 52%, transparent 72%); animation: drift-b 31s var(--spring) infinite alternate; }
.orb-c { width: 46vmax; height: 46vmax; left: 38%; top: 46%; background: radial-gradient(closest-side, rgba(44, 105, 97, 0.5), transparent 70%); animation: drift-a 37s var(--spring) infinite alternate-reverse; }
.bigstar { position: absolute; left: 50%; top: 50%; width: 118vmin; height: 118vmin; margin: -59vmin 0 0 -59vmin; fill: none; stroke: rgba(254, 163, 118, 0.2); stroke-width: 0.22; stroke-linejoin: round; animation: turn 260s linear infinite; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.ring-a { width: 74vmin; height: 74vmin; margin: -37vmin 0 0 -37vmin; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 80px rgba(62, 125, 108, 0.16) inset; }
.ring-b { width: 104vmin; height: 104vmin; margin: -52vmin 0 0 -52vmin; box-shadow: 0 0 0 1px rgba(254, 163, 118, 0.09); }
.star { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); fill: #fff; opacity: var(--o); animation: twinkle var(--t) var(--spring) var(--d) infinite alternate; }
.layer:last-child .star { fill: var(--orange); }
/* Un grain très léger, pour que les dégradés ne fassent pas « écran ». */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vmax, 4vmax, 0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.04); } to { transform: translate3d(-6vmax, -3vmax, 0) scale(0.96); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes twinkle { from { opacity: calc(var(--o) * 0.35); transform: scale(0.82); } to { opacity: var(--o); transform: scale(1); } }

/* ── La scène : logo, carte, contact ── */
.stage { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 44px 16px 36px; perspective: 1400px; }
.logo { display: block; line-height: 0; }
.logo img { display: block; width: 158px; height: auto; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35)); }
.tilt { width: 100%; max-width: 540px; transform-style: preserve-3d; will-change: transform; }

/* Double enveloppe : un plateau de verre autour d'une feuille claire. */
.shell { position: relative; padding: 9px; border-radius: 34px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 46%, rgba(254, 163, 118, 0.1)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13), 0 60px 110px -50px rgba(0, 0, 0, 0.75), 0 26px 50px -30px rgba(5, 20, 18, 0.7); }
.shell::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.2), transparent 60%); opacity: 0.9; }
.core { position: relative; border-radius: 25px; background: linear-gradient(180deg, #ffffff 0%, var(--paper) 60%, #f1f7f4 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -22px 44px -30px rgba(44, 105, 97, 0.16); padding: 44px 44px 38px; text-align: center; }

.eyebrow { display: inline-block; margin: 0 0 16px; padding: 6px 13px; border-radius: 999px; background: rgba(44, 105, 97, 0.09); color: var(--teal-2); font-family: var(--text); font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.3; }
h1, h2 { margin: 0 0 16px; font-family: var(--title); font-weight: 700; font-size: clamp(30px, 6.4vw, 40px); line-height: 1.08; letter-spacing: -0.025em; color: var(--teal); }
h3 { margin: 18px 0 8px; font-family: var(--title); font-weight: 700; font-size: 17px; color: var(--teal); }
p { margin: 0 0 14px; }
.lead { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.message p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 40ch; margin-left: auto; margin-right: auto; }

/* Rappel de l'adresse : beaucoup de membres en ont plusieurs. */
.who { display: inline-flex; flex-direction: column; gap: 3px; max-width: 100%; margin: 2px 0 18px; padding: 12px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(44, 105, 97, 0.1), rgba(254, 163, 118, 0.14)); box-shadow: inset 0 0 0 1px rgba(44, 105, 97, 0.1); }
.who span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-2); }
.who strong { font-family: var(--text); font-weight: 800; font-size: 16px; color: var(--teal); overflow-wrap: anywhere; line-height: 1.35; }

form { margin: 24px 0 0; }
.actions { margin: 24px 0 0; }
.cta { display: inline-flex; align-items: center; gap: 14px; border: 0; cursor: pointer; text-decoration: none; padding: 9px 9px 9px 30px; border-radius: 999px; background: var(--orange-2); background: linear-gradient(135deg, #fea376 0%, #f97316 100%); color: var(--teal); font-family: var(--text); font-size: 15.5px; font-weight: 800; line-height: 1.2; box-shadow: 0 18px 34px -16px rgba(249, 115, 22, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--press, 1)); transition: transform 0.6s var(--spring), box-shadow 0.6s var(--spring); will-change: transform; }
.cta i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(26, 58, 54, 0.14); transition: transform 0.6s var(--spring), background-color 0.6s var(--spring); }
.cta:hover { box-shadow: 0 24px 44px -18px rgba(249, 115, 22, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.cta:hover i { transform: translateX(4px) scale(1.06); background: rgba(26, 58, 54, 0.2); }
.cta:active { --press: 0.98; }
.cta:focus-visible, a:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 4px; }
.button { display: inline-block; border: 0; cursor: pointer; text-decoration: none; padding: 16px 34px; border-radius: 999px; background: linear-gradient(135deg, #fea376 0%, #f97316 100%); color: var(--teal); font-family: var(--text); font-size: 15.5px; font-weight: 800; }

.alt { margin: 20px 0 0; font-size: 13.5px; }
.core a:not(.cta):not(.button) { color: var(--teal-2); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 0.4s var(--spring); }
.core a:not(.cta):not(.button):hover { color: var(--teal); }

/* Le sceau de la page de confirmation : un cercle et une coche qui se tracent. */
.seal { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, rgba(254, 163, 118, 0.22), rgba(44, 105, 97, 0.12)); display: flex; align-items: center; justify-content: center; }
.seal svg { width: 52px; height: 52px; stroke: var(--teal-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.seal circle { stroke: var(--orange-2); stroke-width: 1.6; stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw 1.1s var(--spring) 0.75s forwards; }
.seal path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.7s var(--spring) 1.35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.contact { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.62); text-align: center; }
.contact a { color: #fff; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Pages peu utilisées (confirmation d'inscription, formulaire) : mêmes couleurs, mise en forme simple. */
label { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 800; color: var(--teal); text-align: left; }
input[type="text"], input[type="email"] { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(44, 105, 97, 0.2); font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
ul { list-style: none; margin: 0 0 14px; padding: 0; }
li { margin: 0 0 6px; }

/* ── Entrée en scène : chaque élément monte et se met au point, l'un après l'autre ── */
.reveal { animation: rise 1s var(--spring) both; animation-delay: calc(0.12s + var(--i, 0) * 0.09s); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.logo.reveal { animation-name: rise-logo; }
@keyframes rise-logo { from { opacity: 0; transform: translate3d(0, -18px, 0) scale(0.94); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (max-width: 767px) {
  .stage { justify-content: flex-start; gap: 24px; padding: max(34px, env(safe-area-inset-top)) 16px 28px; }
  .logo img { width: 138px; }
  .shell { padding: 7px; border-radius: 28px; }
  .core { border-radius: 21px; padding: 34px 22px 30px; }
  .cta { width: 100%; justify-content: space-between; padding-left: 26px; }
  .who { padding: 11px 16px; }
  .bigstar { width: 150vmin; height: 150vmin; margin: -75vmin 0 0 -75vmin; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .bigstar, .star, .seal circle, .seal path { animation: none; }
  .seal circle, .seal path { stroke-dashoffset: 0; }
  .reveal { animation: fade 0.4s both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .cta, .cta i { transition: none; }
}

/* ── Page d'inscription : la promesse à gauche, le formulaire à droite ── */
.split { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vh, 96px) clamp(20px, 5vw, 64px); perspective: 1400px; }
.pitch { color: #fff; }
.pitch .logo { display: inline-block; margin-bottom: clamp(34px, 8vh, 84px); }
.pitch .logo img { width: 150px; }
.eyebrow.light { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pitch h1 { color: #fff; font-size: clamp(40px, 6.2vw, 78px); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 24px; text-wrap: balance; }
.pitch h1 em { font-style: normal; color: var(--orange); background: linear-gradient(135deg, #fea376, #f97316); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pitch .lead { color: rgba(255, 255, 255, 0.78); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; max-width: 44ch; margin: 0; }
.facts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 14.5px; line-height: 1.45; }
.facts svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.panel .tilt { max-width: 520px; margin-left: auto; }
.form { text-align: left; padding: 36px 34px 30px; }
.form h2 { margin: 0 0 22px; font-size: 25px; letter-spacing: -0.02em; }
.field { position: relative; margin: 0 0 14px; }
.field label, .topics legend { display: block; margin: 0 0 7px; padding: 0; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-2); text-align: left; }
.form input[type="text"], .form input[type="email"], .ask input[type="email"] { min-height: 52px; padding: 13px 18px; border-radius: 16px; background: #f4f8f6; box-shadow: inset 0 0 0 1px rgba(44, 105, 97, 0.14); transition: box-shadow 0.5s var(--spring), background-color 0.5s var(--spring); outline: none; }
.form input[type="text"]::placeholder, .form input[type="email"]::placeholder, .ask input[type="email"]::placeholder { color: #9aa8a3; }
.form input[type="text"]:focus, .form input[type="email"]:focus, .ask input[type="email"]:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--teal-2), 0 0 0 4px rgba(254, 163, 118, 0.4); }
.nonce { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.topics { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 15px 8px 8px; border-radius: 999px; background: #f4f8f6; box-shadow: inset 0 0 0 1px rgba(44, 105, 97, 0.14); cursor: pointer; font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.3; color: var(--muted); user-select: none; transition: background-color 0.5s var(--spring), box-shadow 0.5s var(--spring), color 0.5s var(--spring), transform 0.5s var(--spring); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip .box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(44, 105, 97, 0.3); color: transparent; transition: background-color 0.5s var(--spring), box-shadow 0.5s var(--spring), color 0.5s var(--spring), transform 0.5s var(--spring); }
.chip input:checked + .box { background: linear-gradient(135deg, #fea376, #f97316); box-shadow: none; color: var(--teal); transform: scale(1.04); }
.chip input:checked ~ .name { color: var(--teal); }
.chip:has(input:checked) { background: rgba(254, 163, 118, 0.2); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.4); }
.chip:has(input:focus-visible) { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.chip:active { transform: scale(0.97); }
.hint { margin: 10px 0 0; font-size: 13px; color: #b3541e; }

.captcha { margin: 18px 0 0; }
altcha-widget { display: block; font-family: var(--text); font-size: 14px; --altcha-max-width: 100%; --altcha-border-radius: 16px; --altcha-border-width: 1px; --altcha-color-border: rgba(44, 105, 97, 0.18); --altcha-color-base: #f4f8f6; --altcha-color-text: #2a3a36; --altcha-color-border-focus: #2c6961; --altcha-color-error-text: #b3541e; }
.cta.wide { width: 100%; justify-content: space-between; margin-top: 20px; }
.legal { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }

/* Page de confirmation de l'inscription : les thèmes choisis. */
.picked { list-style: none; margin: 4px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.picked li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(254, 163, 118, 0.2); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.3); font-size: 13.5px; color: var(--teal); }
.picked svg { color: var(--orange-2); }
.optin-form { margin: 0; }

@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; padding: max(30px, env(safe-area-inset-top)) 16px 28px; }
  .pitch { text-align: center; }
  .pitch .logo { margin-bottom: 26px; }
  .pitch .logo img { width: 132px; }
  .pitch h1 { font-size: clamp(34px, 10vw, 48px); margin-bottom: 16px; }
  .pitch .lead { margin: 0 auto; }
  .facts { display: none; }
  .panel .tilt { max-width: 540px; margin: 0 auto; }
  .form { padding: 28px 20px 24px; }
  .form h2 { font-size: 22px; }
}

/* ── Page « Vos lettres » : les thèmes un par un, un interrupteur chacun ── */
[hidden] { display: none !important; }
.lettres-on .lettres-fallback { display: none; }
.lettres-on .lettres.failed .lettres-fallback { display: block; }
h1[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.notice { margin: 4px 0 16px; padding: 12px 16px; border-radius: 16px; background: rgba(44, 105, 97, 0.08); color: var(--teal); font-size: 14px; line-height: 1.55; text-align: left; }
.notice.warn { background: rgba(254, 163, 118, 0.18); color: #7a3c12; box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25); }

.prefs { margin: 8px 0 0; text-align: left; }
.prefs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.prefs-legend { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-2); }
.prefs-all, .quiet { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 13.5px; color: var(--teal-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; transition: color 0.4s var(--spring); }
.prefs-all:hover, .quiet:hover { color: var(--teal); }
.prefs-all:focus-visible, .quiet:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }
.prefs-list { display: grid; gap: 8px; }
.pref { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 14px 14px 18px; border-radius: 18px; background: #f4f8f6; box-shadow: inset 0 0 0 1px rgba(44, 105, 97, 0.12); cursor: pointer; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--ink); text-align: left; user-select: none; transition: background-color 0.5s var(--spring), box-shadow 0.5s var(--spring), transform 0.5s var(--spring); }
.pref input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pref-name { flex: 1; min-width: 0; transition: color 0.5s var(--spring); }
.switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(44, 105, 97, 0.2); box-shadow: inset 0 1px 2px rgba(10, 25, 23, 0.12); transition: background-color 0.5s var(--spring); }
.knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px -1px rgba(10, 25, 23, 0.32); transition: transform 0.55s var(--spring); }
.pref input:checked ~ .switch { background: linear-gradient(135deg, #fea376, #f97316); }
.pref input:checked ~ .switch .knob { transform: translateX(18px); }
.pref input:checked ~ .pref-name { color: var(--teal); }
.pref:has(input:checked) { background: rgba(254, 163, 118, 0.16); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35); }
.pref:has(input:focus-visible) { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.pref:hover { box-shadow: inset 0 0 0 1px rgba(44, 105, 97, 0.28); }
.pref:has(input:checked):hover { box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.55); }
.pref:active { transform: scale(0.985); }
.prefs-foot { margin: 18px 0 0; }
.prefs-count { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.prefs-foot .cta.wide { margin-top: 12px; }
.cta:disabled { cursor: default; opacity: 0.45; box-shadow: none; filter: saturate(0.6); }
.cta.is-busy { cursor: progress; opacity: 0.75; }
.cta.is-busy i svg { animation: nudge 0.9s var(--spring) infinite alternate; }
@keyframes nudge { to { transform: translateX(4px); } }

.stopall { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(44, 105, 97, 0.12); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(44, 105, 97, 0.14); }
.or + .stopall { margin-top: 6px; padding-top: 0; border-top: 0; }
.confirm { padding: 20px 18px 12px; border-radius: 20px; background: #fff8f1; box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.3); text-align: center; animation: rise 0.7s var(--spring) both; }
.confirm-title { margin: 0 0 6px; font-family: var(--title); font-weight: 700; font-size: 18px; color: var(--teal); }
.confirm-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.confirm .cta.wide { margin-top: 16px; }
.confirm .quiet { margin-top: 8px; }
.cta.danger { background: linear-gradient(135deg, #2c6961 0%, #1a3a36 100%); color: #fff; box-shadow: 0 18px 34px -16px rgba(26, 58, 54, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.cta.danger i { background: rgba(255, 255, 255, 0.14); }
.cta.danger:hover { box-shadow: 0 24px 44px -18px rgba(26, 58, 54, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22); }

.ask { margin: 20px 0 0; text-align: left; }
.ask .cta.wide { margin-top: 6px; }
.lettres .lead + .who { margin-top: 4px; }
.lettres .picked { margin-bottom: 18px; }

.skeleton { display: grid; gap: 12px; justify-items: center; padding: 4px 0; }
.skeleton .bar { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(44, 105, 97, 0.07), rgba(44, 105, 97, 0.15), rgba(44, 105, 97, 0.07)); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
.skeleton .b0 { width: 34%; height: 22px; } .skeleton .b1 { width: 56%; height: 34px; } .skeleton .b2 { width: 78%; }
.skeleton .b3, .skeleton .b4 { width: 100%; height: 54px; border-radius: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 767px) {
  .pref { padding: 13px 12px 13px 16px; font-size: 14.5px; }
  .confirm { padding: 18px 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pref, .switch, .knob, .pref-name, .prefs-all, .quiet { transition: none; }
  .skeleton .bar, .cta.is-busy i svg, .confirm { animation: none; }
}
