/* bocal.me : mêmes couleurs que l'app (src/theme.ts) */
:root {
  --night: #0E1A17; --bg: #15251F; --shelf: #1E322C; --line: #2A3F39;
  --ink: #EEF1E8; --ink2: #C9D4CE; --muted: #9EB2A9; --faint: #7F948C;
  --amber: #F2A541; --empty: #4A5E57; --on-amber: #1A140A; --mint: #8FD0A8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink2);
  font: 17px/1.6 "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
}
a { color: var(--amber); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 800; font-size: 1.5rem; margin-top: 2em; }
h3 { font-weight: 600; font-size: 1.1rem; margin-top: 1.6em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* En-tête */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 26px; height: 32px; }
nav { display: flex; gap: 18px; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); }

/* Accueil : les écrans de l'onboarding, animés par app.js */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 72px 0 64px; }
.hero .jars { display: flex; align-items: flex-end; gap: 10px; }
.wordmark { font-weight: 800; font-size: 64px; letter-spacing: -.04em; line-height: 1; color: var(--ink); margin-top: 8px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; letter-spacing: -.02em; }
.hero p { font-size: 1.15rem; max-width: 26em; margin: 0; }
.badge { display: inline-block; margin-top: 10px; padding: 12px 22px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-weight: 600; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature.alt .mock { order: 2; }
.mock { width: 100%; max-width: 380px; justify-self: center; }
.copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 14px; }
.copy p { font-size: 1.1rem; margin: 0; max-width: 28em; }
.ai { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 600; font-size: .8rem; letter-spacing: .08em; }
.spark { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; }

/* Contenants (Jar.tsx) */
.jar { display: inline-flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.jar i { display: block; }
.jar .cap { background: var(--empty, #4A5E57); }
.jar .eggs { display: flex; align-items: center; justify-content: center; border-style: solid; }
.jar .eggs > i { display: flex; flex-wrap: wrap; }
.jar .eggs > i > i { border-radius: 50%; border: 1.5px solid #4A5E57; transition: background .2s, border-color .2s; }
.jar .eggs > i > i.on { background: var(--amber); border-color: var(--amber); }
.shelf { display: flex; justify-content: space-around; align-items: flex-end; }
.shelf figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shelf figcaption { font-size: 11px; color: var(--muted); }

.mcard { background: var(--shelf); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.mcard.hot { border: 1px solid var(--amber); }
.mcard b { color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1.25; }
.mcard small { font-size: 12px; color: var(--amber); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--line); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.pill.mint { background: var(--mint); color: var(--night); }
.pill.amber { background: var(--amber); color: var(--on-amber); }
.arrow { display: flex; justify-content: center; padding: 8px 0; }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.receipt { background: var(--ink); color: var(--night); border-radius: 6px; padding: 16px; width: 82%; margin: 0 auto; transform: rotate(-2deg); font-size: 13px; display: flex; flex-direction: column; gap: 7px; }
.receipt .row { display: flex; justify-content: space-between; }
.receipt .row span:last-child { font-weight: 600; }
.receipt .head { text-align: center; font-weight: 800; letter-spacing: 2px; }
.receipt .total { border-top: 1px dashed var(--night); padding-top: 6px; margin-top: 2px; font-weight: 800; }

.insta { display: flex; align-items: center; gap: 10px; }
.insta svg { width: 30px; height: 30px; fill: none; stroke: #F07A5E; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.insta div { flex: 1; line-height: 1.3; }
.insta strong { color: var(--ink); font-size: 14px; font-weight: 600; display: block; }
.insta span { font-size: 12px; color: var(--muted); }
.video { height: 70px; border-radius: 12px; overflow: hidden; background: var(--line); display: flex; align-items: center; justify-content: center; }
.video svg { width: 28px; height: 28px; fill: var(--ink2); }
.video svg.reel { width: 100%; height: 100%; display: block; }
.note { font-size: 13px; color: var(--ink2); }

.shop .top { display: flex; justify-content: space-between; align-items: center; }
.shop .top strong { color: var(--ink); display: flex; align-items: center; gap: 6px; }
.shop .top span { font-size: 13px; color: var(--muted); }
.shop .item { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.shop .item .jar { width: 44px; }
.shop .item div { line-height: 1.3; }
.shop .item strong { color: var(--ink); font-weight: 600; font-size: 15px; display: block; }
.shop .item span { font-size: 12px; color: var(--amber); }
.shop .item span.out { color: #F07A5E; }

/* Apparitions : le FadeIn de l'onboarding (fondu + 18 px vers la gauche) */
[data-reveal] { opacity: 0; transform: translateX(18px); transition: opacity .28s ease-out, transform .28s ease-out; }
[data-reveal].shown { opacity: 1; transform: none; }

/* « On prépare ton bocal » */
.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.prep .ringbox { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ring { position: relative; width: 170px; height: 170px; display: flex; align-items: center; justify-content: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--line); }
.ring .ring-fill { stroke: var(--amber); stroke-linecap: round; }
.pct { font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.prep ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.prep li { display: flex; align-items: center; gap: 10px; opacity: .35; transition: opacity .2s; color: var(--ink); }
.prep li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--line) center / 13px no-repeat; flex: none; }
.prep li.on { opacity: 1; }
.prep li.on::before { background-color: var(--mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' stroke='%230E1A17' stroke-width='3.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 56px 0 72px; border-top: 1px solid var(--line); }
.card { background: var(--shelf); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { margin-top: 0; font-size: 1.3rem; font-weight: 800; }
.card p { margin: 0; }
.plans .card.pro { border-color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Pages de texte */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.doc .date { color: var(--faint); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .3em 0; }
.doc strong { color: var(--ink); }
details { background: var(--shelf); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { color: var(--ink); font-weight: 600; cursor: pointer; }
details p { margin: .6em 0 0; }

footer { border-top: 1px solid var(--line); color: var(--faint); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .wordmark { font-size: 52px; }
  .feature, .prep, .plans { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.alt .mock { order: 0; }
  nav { gap: 14px; font-size: .9rem; }
}
