@font-face { font-family: "Geist"; src: url("/fonts/brand.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/brand-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --font: "Geist"; --mono: "Geist Mono";
  --encre: #0A0F1C;
  --nuit: #121A2B;
  --trame: #232D42;
  --craie: #F4F6F9;
  --grid: #1A2335;
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0A0F1C;
  --ink-rgb: 10,15,28;
  --soft: #5B6577;
  --line: #DDE2EA;
  --dots: #A3ABBA;
  --accent: #3D6BFF;
  --accent-deep: #2A55E0;
  --accent-text: #2A55E0;
  --signal: #FFB020;
  --signal-text: #9A6200;
  --ok: #12A383;
  --ok-text: #0B7D64;
  --error-text: #C9302C;
  --on-dark-soft: #97A1B3;
  --on-dark-lead: #B9C1CF;
  --on-dark-accent: #7D9BFF;
  --trame-line: #2A3550;
  --seq-3: #7D9BFF;
  --seq-5: #1C3BB3;
  --top: 72px;
}
/* Baromètre — site styles, after brand/brand-book.html v2. build.py prepends the brand block (@font-face and the :root
   tokens): Encre and Craie carry the page, Électrique (--accent) is the main action, Ambre (--signal) marks the one
   value to remember, Validé (--ok) marks validated menus and points. Geist for words, Geist Mono for figures and labels.
   The masthead (top bar and hero) is always dark, like the brand book's. */
/* Motion tokens (brand-book.html §05 Mouvement). Only transform, opacity and stroke move. */
:root { --t-ui: 240ms; --t-reveal: 400ms; --t-range: 600ms; --t-draw: 900ms; --stagger: 90ms; --ease: cubic-bezier(.2, 0, 0, 1); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font), system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden;
}
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 620; letter-spacing: -.03em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(32px, 5.4vw, 52px); }
h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.kicker { font-family: var(--mono), monospace; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--signal); flex: none; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--soft); max-width: 44ch; margin-top: 18px; }
.mail { font-family: var(--mono), monospace; font-size: .92em; user-select: all; -webkit-user-select: all; }

/* masthead: always dark, with the brand book's 40px grid */
.mast { background: var(--encre); color: var(--craie); position: relative; overflow: hidden; }
.mast::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; }
.mast > * { position: relative; }
/* faint data points on the grid: they sit on intersections and drift one cell, slowly */
.mast > .drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drift i { position: absolute; left: calc(var(--x) * 40px - 2.5px); top: calc(var(--y) * 40px - 2.5px); width: 5px; height: 5px;
  border-radius: 1.5px; background: var(--on-dark-soft); opacity: .22; }
.top { display: flex; justify-content: space-between; align-items: center; height: var(--top); }
.brand { display: block; width: 168px; }
.brand svg { width: 100%; height: auto; }
.switch { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  background: var(--nuit); border: 1px solid var(--trame-line); color: var(--craie); }
.switch:hover { border-color: var(--on-dark-soft); }

/* buttons: Électrique with white text is the main action */
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0; background: var(--accent); color: #FFFFFF; font: inherit; font-size: 18px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: default; }
.note { font-family: var(--mono), monospace; font-size: 13px; color: var(--on-dark-soft); margin-top: 16px; }
.link { font-weight: 500; color: var(--on-dark-accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--craie); }

/* hero: sized by width and by height, so it fits whole in the first screen */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  min-height: calc(100svh - var(--top)); padding-top: 8px; padding-bottom: 32px; }
.hero .kicker { color: var(--on-dark-soft); }
.hero h1 { font-size: clamp(42px, min(6.6vw, 10.5vh), 96px); letter-spacing: -.045em; max-width: 14ch; }
.hero .lead { color: var(--on-dark-lead); max-width: 40ch; }
.hero-visual { display: flex; justify-content: center; }

/* phone mock: everything inside scales with the phone (container query units) */
.device { container-type: size; margin: 0; height: min(calc(100svh - var(--top) - 56px), 660px); aspect-ratio: 9 / 19;
  padding: 1.6%; background: var(--trame); border-radius: 13% / 6.2%; border: 1px solid var(--trame-line); }
.screen { container-type: size; width: 100%; height: 100%; background: var(--paper); color: var(--ink); border-radius: 11.5% / 5.4%;
  overflow: hidden; display: flex; flex-direction: column; padding: 0 6.2cqw; }
.m-status { display: flex; justify-content: space-between; align-items: center; height: 7.5cqh; font-family: var(--mono), monospace;
  font-size: 2.1cqh; font-weight: 500; padding: 0 3cqw; }
.m-island { width: 30cqw; height: 3.6cqh; background: var(--encre); border-radius: 99px; }
.m-sig { display: flex; gap: .5cqh; align-items: flex-end; }
.m-sig i { display: block; width: .7cqh; background: var(--ink); border-radius: 1px; }
.m-sig i:nth-child(1) { height: 1cqh; } .m-sig i:nth-child(2) { height: 1.5cqh; } .m-sig i:nth-child(3) { height: 2cqh; }
.m-head { margin-top: 3cqh; display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: .6cqh; }
.m-head small { grid-column: 1 / -1; font-family: var(--mono), monospace; font-size: 1.6cqh; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--soft); }
.m-head b { font-size: 4.2cqh; font-weight: 620; letter-spacing: -.035em; line-height: 1.05; }
.m-head span { font-family: var(--mono), monospace; font-size: 1.8cqh; color: var(--soft); }
.m-card { position: relative; margin-top: 2.4cqh; background: var(--surface); border: 1px solid var(--line); border-radius: 3.6cqw;
  padding: 1.2cqh 4.5cqw 1.6cqh; }
.m-sec { font-family: var(--mono), monospace; font-size: 1.5cqh; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--soft); margin: 1.5cqh 0 .3cqh; }
.m-ln { display: flex; align-items: baseline; gap: 1.6cqw; font-size: 2.2cqh; padding: .7cqh 0; line-height: 1.2; }
.m-ln b { font-weight: 600; white-space: nowrap; }
.m-ln i { font-style: normal; font-family: var(--mono), monospace; color: var(--soft); font-size: 1.75cqh; white-space: nowrap; }
.m-ln .dots { flex: 1; min-width: 2cqw; border-bottom: .3cqh dotted var(--dots); transform: translateY(-.6cqh); }
.m-ln .p { font-family: var(--mono), monospace; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-ok { flex: none; width: 2.1cqh; height: 2.1cqh; color: var(--ok-text); align-self: center; stroke-width: 3; }
.m-by { margin-top: 1.8cqh; display: flex; align-items: center; gap: 1.6cqw; font-family: var(--mono), monospace; font-size: 1.7cqh;
  color: var(--accent-text); }
.m-by svg { width: 2.2cqh; height: 2.2cqh; }
.m-toast { margin-top: auto; margin-bottom: 4.5cqh; display: flex; align-items: center; gap: 2.4cqw; background: var(--ok);
  color: #FFFFFF; border-radius: 99px; padding: 1.7cqh 5cqw; font-size: 2.1cqh; font-weight: 600; }
.m-tick { flex: none; width: 2.6cqh; height: 2.6cqh; stroke-width: 3; }
/* the reading line (motion.js): it sweeps the card, each line it passes resolves from a skeleton */
.m-ln { position: relative; }
.m-ln::before, .m-ln::after { content: ""; position: absolute; top: 50%; height: 1.3cqh; margin-top: -.65cqh; border-radius: 99px;
  background: var(--line); opacity: 0; }
.m-ln::before { left: calc(2.1cqh + 1.6cqw); width: 44%; }
.m-ln:nth-child(odd)::before { width: 34%; }
.m-ln::after { right: 0; width: 15%; }
.m-scan { position: absolute; left: -3.5cqw; right: -3.5cqw; top: 0; height: .65cqh; margin-top: -.325cqh; border-radius: 99px;
  background: var(--signal); opacity: 0; pointer-events: none; will-change: transform; }

/* sections */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
main > .band:first-child { border-top: 0; }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.step .head { display: flex; justify-content: space-between; align-items: center; }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--encre); color: var(--craie);
  display: flex; align-items: center; justify-content: center; }
.tile .ic { width: 22px; height: 22px; }
.step .n { font-family: var(--mono), monospace; font-size: 13px; color: var(--soft); }
.step h3 { margin-top: 18px; }
.step p { color: var(--soft); margin-top: 8px; }
.rule { margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.rule div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.rule div:first-child { border-top: 0; }
.rule .v { font-family: var(--mono), monospace; font-weight: 500; font-size: 17px; white-space: nowrap; }
.rule .v.g { color: var(--ok-text); } .rule .v.z { color: var(--soft); }
.guard { margin-top: 18px; font-size: 15px; color: var(--soft); max-width: 72ch; }

.b2b { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: v; display: grid; gap: 16px; }
@media (min-width: 820px) { .b2b { grid-template-columns: repeat(3, 1fr); } }
.b2b li { counter-increment: v; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  font-size: 18px; font-weight: 500; line-height: 1.4; min-width: 0; }
.b2b li::before { content: counter(v, decimal-leading-zero); display: block; font-family: var(--mono), monospace; font-weight: 500;
  font-size: 13px; color: var(--accent-text); margin-bottom: 14px; }
/* brewers: the dashboard preview (example data, labelled) */
.dash { margin: 16px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.dash-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ex { font-family: var(--mono), monospace; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--signal-text); border: 1px dashed var(--signal-text); border-radius: 999px; padding: 4px 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis div { min-width: 0; }
.kpis dt { font-family: var(--mono), monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.kpis dd { margin: 6px 0 0; font-family: var(--mono), monospace; font-size: clamp(22px, 5.6vw, 38px); font-weight: 500;
  letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.charts { display: grid; gap: 28px; margin-top: 22px; }
@media (min-width: 820px) { .charts { grid-template-columns: 1fr 1fr; gap: 40px; } }
.cbox { min-width: 0; }
.cbox h3 { font-size: 17px; }
.cbox .q { font-size: 14px; color: var(--soft); margin-top: 4px; }
.cbox svg { width: 100%; height: auto; margin-top: 14px; }
.cbox svg text { font-family: var(--mono), monospace; }
.cbox svg text.nm { font-family: var(--font), sans-serif; }
.ckey { display: flex; gap: 16px; margin-top: 10px; font-family: var(--mono), monospace; font-size: 12px; color: var(--soft); }
.ckey span { display: inline-flex; align-items: center; gap: 6px; }
.ckey i { width: 12px; height: 12px; border-radius: 3px; }
.ckey .k-rng { background: var(--soft); } .ckey .k-avg { background: var(--signal); }
.cbox .ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.proof { margin-top: 24px; color: var(--soft); max-width: 70ch; }
.contact { margin-top: 20px; font-size: 18px; font-weight: 500; }
.contact .mail { color: var(--accent-text); }

.city { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .city { grid-template-columns: 1fr 1fr; gap: 64px; } }
.plan { background: var(--encre); border-radius: 20px; padding: 22px; color: var(--craie); }
.plan .cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.plan .cells span { position: relative; aspect-ratio: 1; border-radius: 6px; background: var(--nuit); border: 1px solid var(--trame-line); }
.plan .cells span[data-l]::after, .plan .cells span.new::after { content: ""; position: absolute; inset: -1px; border-radius: 6px; background: var(--lv); }
.plan .cells [data-l="1"] { --lv: var(--seq-5); } .plan .cells [data-l="2"] { --lv: var(--accent); }
.plan .cells [data-l="3"] { --lv: var(--seq-3); } .plan .cells .new { --lv: var(--signal); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.plan li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--trame-line); flex: none; }
.plan .key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--on-dark-lead); }
.plan .key span { display: inline-flex; align-items: center; gap: 4px; }
.plan .key i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.plan .key i:last-of-type { margin-right: 6px; }
.plan .key .l1 { background: var(--seq-5); } .plan .key .l2 { background: var(--accent); } .plan .key .l3 { background: var(--seq-3); }
.plan .key .ln { background: var(--signal); }
.plan .legend { margin-top: 16px; font-family: var(--mono), monospace; font-size: 12.5px; color: var(--on-dark-soft); }
.btn.ghost { background: transparent; color: var(--accent-text); border: 1.5px solid var(--accent-text); }
.btn.ghost:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: clamp(18px, 2vw, 20px);
  font-weight: 600; position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--soft); padding: 0 0 22px; max-width: 70ch; }

.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 48px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--soft); }
.foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { border-color: var(--soft); }

/* try and privacy: a short dark masthead, then the page on Craie */
.page { padding-top: 40px; padding-bottom: 56px; }
.page h1 { font-size: clamp(38px, 6.4vw, 64px); letter-spacing: -.04em; max-width: 16ch; }
.page .lead { color: var(--on-dark-lead); }
.try { padding-top: 40px; padding-bottom: 96px; }
.try form { display: grid; gap: 16px; max-width: 440px; }
.try label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.try input { font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); width: 100%; }
.try input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#code { font-family: var(--mono), monospace; text-transform: uppercase; letter-spacing: .2em; }
.try button { justify-self: start; }
.try .status { margin-top: 28px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--dots); color: var(--soft); max-width: 440px; }
.try-result { display: grid; gap: 14px; }
.try-result h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 4px; }
.try-result .lead { margin-top: 0; }
.try-result .error { color: var(--error-text); font-weight: 500; margin-top: 16px; }
.prose { padding-top: 40px; padding-bottom: 96px; }
.prose h2 { font-size: 22px; margin-top: 36px; letter-spacing: -.015em; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; color: var(--soft); max-width: 66ch; }
.updated { font-family: var(--mono), monospace; font-size: 13px; color: var(--on-dark-soft); margin-top: 14px; }

/* phone and narrow windows: text first, then the phone */
@media (max-width: 819px) {
  :root { --top: 64px; }
  .brand { width: 148px; }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 16px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 64px); }
  .hero .lead { margin-top: 14px; }
  .cta { margin-top: 24px; }
  .device { height: clamp(360px, 120vw, 560px); }
  .band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .btn, .faq summary::after { transition: none; } }

/* Motion. Every block is complete at rest: the HTML holds the final state. motion.js adds html.motion only when the
   reader has not asked for reduced motion, prepares a block with .pre while it is still off screen, and removes .pre
   when it enters (IntersectionObserver), so the transitions below run once, towards the final state. */
html.motion .drift i { animation: drift 14s var(--ease) var(--d) infinite alternate; }
html.motion .drift i.y { animation-name: drift-y; }
html.motion .mast.idle .drift i { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); opacity: .12; } to { transform: translateX(40px); opacity: .32; } }
@keyframes drift-y { from { transform: translateY(0); opacity: .12; } to { transform: translateY(40px); opacity: .32; } }

html.motion .m-ln > *, html.motion .m-ln::before, html.motion .m-ln::after { transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease); }
.m-ln.sk > * { opacity: 0; }
.m-ln.sk .m-ok { transform: scale(.4); }
.m-ln.sk::before, .m-ln.sk::after { opacity: 1; }
html.motion .m-scan { transition: opacity var(--t-ui) var(--ease); }
.m-scan.on { opacity: 1; }
html.motion .m-toast { transition: transform var(--t-reveal) var(--ease), opacity var(--t-reveal) var(--ease); }
.m-toast.away { transform: translateY(170%); opacity: 0; }

html.motion .cbox .ln { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset var(--t-draw) var(--ease); }
html.motion .cbox .end { transition: opacity var(--t-ui) var(--ease) var(--t-draw); }
.cbox.pre .ln { stroke-dashoffset: 1; }
.cbox.pre .end { opacity: 0; }
.cbox.ping .ring { animation: ping 1s var(--ease) 1; }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }
.cbox .rl { transform-box: fill-box; transform-origin: 0 50%; }
html.motion .cbox .rl, html.motion .cbox .mx, html.motion .cbox .av {
  transition: transform var(--t-range) var(--ease), opacity var(--t-ui) var(--ease);
  transition-delay: calc(var(--i) * var(--stagger)); }
html.motion .cbox .av { transition-delay: calc(var(--i) * var(--stagger) + var(--t-range) * .5); }
.cbox.pre .rl { transform: scaleX(0); }
.cbox.pre .mx { opacity: 0; }
.cbox.pre .av { transform: translateX(var(--dx)); opacity: 0; }

html.motion .plan .cells span::after { transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--i) * var(--stagger) * 1.8); }
.plan.pre .cells span::after { opacity: 0; transform: scale(.55); }
@media print { .pre *, .pre *::after, .sk > * { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; } }

/* ---- The live phone (scan.js): the home page's phone scans a menu for real. Units follow the screen (cqh, cqw). ---- */
.device.live .screen { position: relative; }
.device.live .m-toast { visibility: hidden; }
.device.drag { outline: 3px dashed var(--accent); outline-offset: 6px; }
.lv-dock { position: absolute; left: 0; right: 0; bottom: 3.6cqh; display: flex; flex-direction: column; align-items: center; gap: 1cqh;
  font-family: var(--mono), monospace; font-size: 1.7cqh; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.lv-scan { width: 15cqw; height: 15cqw; min-width: 44px; min-height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: #FFFFFF; box-shadow: 0 0 0 0 rgba(61,107,255,.45); animation: lv-ring 2.4s var(--ease) infinite; transition: transform .12s ease; }
.lv-scan svg { width: 46%; height: 46%; }
.lv-scan:active { transform: scale(.94); }
@keyframes lv-ring { 0% { box-shadow: 0 0 0 0 rgba(61,107,255,.45); } 70%, 100% { box-shadow: 0 0 0 4cqw rgba(61,107,255,0); } }
.device[data-state="sheet"] .lv-dock, .device[data-state="gate"] .lv-dock, .device[data-state="reading"] .lv-dock, .device[data-state="done"] .lv-dock, .device[data-state="error"] .lv-dock { display: none; }

.lv { position: absolute; inset: 7.5cqh 0 0; z-index: 2; pointer-events: none; }
.lv > * { pointer-events: auto; }
.lv:empty { display: none; }
.lv-dim { position: absolute; inset: -7.5cqh 0 0; background: rgba(10,15,28,.38); animation: lv-fade var(--t-ui) var(--ease); }
.lv-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 6cqw 6cqw 0 0; padding: 1.4cqh 5.5cqw 4cqh;
  display: flex; flex-direction: column; gap: 1.4cqh; box-shadow: 0 -2cqh 5cqh rgba(10,15,28,.18); animation: lv-up var(--t-reveal) var(--ease); }
.lv-grab { width: 11cqw; height: .6cqh; border-radius: 99px; background: var(--line); margin: 0 auto .6cqh; }
.lv-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.lv-sheet-head b { font-size: 2.6cqh; font-weight: 620; letter-spacing: -.02em; }
.lv-x { border: 0; background: var(--paper); color: var(--ink); width: 4.6cqh; height: 4.6cqh; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lv-x svg { width: 55%; height: 55%; }
.lv-btn { display: flex; align-items: center; justify-content: center; gap: 2.4cqw; min-height: 6.6cqh; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--accent); color: #FFFFFF; font: inherit; font-size: 2.15cqh; font-weight: 600; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.lv-btn:hover { background: var(--accent-deep); }
.lv-btn:active { transform: scale(.97); }
.lv-btn svg { width: 2.6cqh; height: 2.6cqh; flex: none; }
.lv-btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.lv-btn.ghost:hover { border-color: var(--soft); }
.lv-sample { display: flex; align-items: center; gap: 3cqw; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 3.6cqw;
  padding: 1.2cqh 3cqw; cursor: pointer; font: inherit; color: var(--ink); }
.lv-sample:hover { border-color: var(--accent); }
.lv-sample img { width: 8cqh; height: 10.4cqh; aspect-ratio: auto; object-fit: cover; border-radius: 1.6cqw; flex: none; box-shadow: 0 .4cqh 1.2cqh rgba(10,15,28,.18); }
.lv-sample b { display: block; font-size: 2cqh; font-weight: 600; }
.lv-sample small { display: block; font-size: 1.65cqh; color: var(--soft); line-height: 1.3; margin-top: .3cqh; }
.lv-hint { text-align: center; font-family: var(--mono), monospace; font-size: 1.6cqh; color: var(--soft); }

.lv-page { position: absolute; inset: 0; background: var(--paper); padding: 1.2cqh 6.2cqw 0; display: flex; flex-direction: column; gap: 1.4cqh; }
.lv-center { justify-content: center; align-items: stretch; text-align: center; padding-bottom: 8cqh; gap: 2.4cqh; }
.lv-photo { position: relative; height: 24cqh; flex: none; border-radius: 3.6cqw; overflow: hidden; background: var(--encre); }
.lv-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.lv-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,15,28,.35)); }
.lv-beam { position: absolute; left: 0; right: 0; top: 0; height: .7cqh; background: var(--signal); border-radius: 99px; z-index: 1;
  box-shadow: 0 0 2.2cqh .6cqh rgba(255,176,32,.55); animation: lv-beam 1.8s ease-in-out infinite alternate; }
@keyframes lv-beam { from { transform: translateY(0); } to { transform: translateY(23cqh); } }
.lv-pages { position: absolute; right: 2cqw; bottom: 1.2cqh; z-index: 1; font-family: var(--mono), monospace; font-size: 1.5cqh; color: #FFFFFF;
  background: rgba(10,15,28,.6); border-radius: 99px; padding: .4cqh 2cqw; }
.lv-status { display: flex; align-items: center; gap: 2cqw; font-size: 1.9cqh; font-weight: 600; color: var(--accent-text); }
.lv-dot { width: 1.2cqh; height: 1.2cqh; border-radius: 50%; background: var(--accent); animation: lv-pulse 1s ease-in-out infinite; flex: none; }
@keyframes lv-pulse { 50% { opacity: .25; transform: scale(.7); } }
.lv-clock { margin-left: auto; font-family: var(--mono), monospace; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
.lv-list { flex: 1; min-height: 0; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 3.6cqw 3.6cqw 0 0;
  border-bottom: 0; padding: .6cqh 3.6cqw 2cqh; overscroll-behavior: contain; scrollbar-width: none; }
.lv-list::-webkit-scrollbar { display: none; }
.lv-list.done { padding-bottom: 12cqh; }
.lv-sec { font-family: var(--mono), monospace; font-size: 1.45cqh; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--soft);
  margin-top: 1.4cqh; padding-bottom: .3cqh; animation: lv-in var(--t-ui) var(--ease); }
.lv-ln { display: flex; align-items: baseline; gap: 1.6cqw; font-size: 2.05cqh; padding: .65cqh 0; line-height: 1.2; animation: lv-in var(--t-reveal) var(--ease); }
.lv-ln.in { animation: none; }
.lv-ln b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-ln i { font-style: normal; font-family: var(--mono), monospace; color: var(--soft); font-size: 1.6cqh; white-space: nowrap; }
.lv-ln .dots { flex: 1; min-width: 2cqw; border-bottom: .3cqh dotted var(--dots); transform: translateY(-.6cqh); }
.lv-ln .p { font-family: var(--mono), monospace; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-ok { flex: none; width: 1.9cqh; height: 1.9cqh; color: var(--ok-text); align-self: center; stroke-width: 3; }
@keyframes lv-in { from { opacity: 0; transform: translateY(1.2cqh); } }
@keyframes lv-up { from { transform: translateY(100%); } }
@keyframes lv-fade { from { opacity: 0; } }
.lv-done-head { display: flex; align-items: center; gap: 3.2cqw; flex: none; }
.lv-done-head img { width: 9cqh; height: 9cqh; object-fit: cover; border-radius: 2.6cqw; flex: none; }
.lv-done-head small { display: block; font-family: var(--mono), monospace; font-size: 1.6cqh; color: var(--ok-text); font-weight: 500; letter-spacing: .04em; }
.lv-done-head b { display: block; font-family: var(--mono), monospace; font-size: 5.4cqh; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-top: .4cqh; }
.lv-done-head b span { font-family: var(--font), sans-serif; font-size: 2.2cqh; letter-spacing: -.01em; color: var(--soft); font-weight: 500; }
.lv-bar { position: absolute; left: 4cqw; right: 4cqw; bottom: 3cqh; display: flex; gap: 2cqw; padding: 1.2cqh; border-radius: 99px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--line); box-shadow: 0 1.4cqh 4cqh rgba(10,15,28,.16); animation: lv-up var(--t-reveal) var(--ease); }
.lv-bar .lv-btn { flex: 1; min-height: 6cqh; }
.lv-icon { flex: none; width: 6cqh; height: 6cqh; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
.lv-icon svg { width: 45%; height: 45%; }
.lv-icon:hover { border-color: var(--soft); }
.lv-toast { position: absolute; left: 50%; bottom: 12.5cqh; transform: translateX(-50%); background: var(--encre); color: var(--craie);
  font-size: 1.8cqh; font-weight: 600; padding: 1cqh 4cqw; border-radius: 99px; white-space: nowrap; animation: lv-in var(--t-ui) var(--ease); }
.lv-err { font-size: 2.3cqh; font-weight: 600; line-height: 1.35; }
.lv-link { font-size: 1.9cqh; color: var(--accent-text); font-weight: 500; }
.lv-empty { color: var(--soft); font-size: 2cqh; padding: 2cqh 0; }
.hero .note a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .lv-scan, .lv-beam, .lv-dot { animation: none; } .lv-ln, .lv-sec, .lv-sheet, .lv-dim, .lv-bar { animation: none; } }

/* download menu and the large view of the menu (scan.js) */
.lv-menu { position: absolute; left: 4cqw; right: 4cqw; bottom: 12.5cqh; background: var(--surface); border: 1px solid var(--line); border-radius: 4cqw;
  box-shadow: 0 1.4cqh 4cqh rgba(10,15,28,.2); padding: .8cqh; display: flex; flex-direction: column; animation: lv-in var(--t-ui) var(--ease); z-index: 3; }
.lv-menu a { display: flex; align-items: baseline; justify-content: space-between; padding: 1.5cqh 3.5cqw; border-radius: 2.6cqw; text-decoration: none; color: var(--ink); font-size: 2.1cqh; }
.lv-menu a:hover, .lv-menu a:focus-visible { background: var(--paper); outline: none; }
.lv-menu b { font-weight: 600; }
.lv-menu small { font-family: var(--mono), monospace; color: var(--soft); font-size: 1.6cqh; }
.lv-thumb { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; flex: none; border-radius: 2.6cqw; }
.lv-thumb img { display: block; }
.lv-thumb svg { position: absolute; right: .6cqh; bottom: .6cqh; width: 2.6cqh; height: 2.6cqh; padding: .4cqh; border-radius: 50%;
  background: rgba(10,15,28,.7); color: #FFFFFF; }
.lv-photo[data-zoom] { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(10,15,28,.92); display: grid; grid-template-columns: 1fr; grid-template-rows: 62svh 1fr;
  animation: lv-fade var(--t-ui) var(--ease); }
@media (min-width: 820px) { .lb { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); grid-template-rows: 100svh; } }
.lb-photo { overflow: auto; display: grid; place-items: center; padding: 16px; overscroll-behavior: contain; }
.lb-photo img { max-width: 100%; max-height: calc(100% - 0px); width: auto; height: auto; object-fit: contain; cursor: zoom-in; border-radius: 6px; }
@media (min-width: 820px) { .lb-photo { padding: 32px; } .lb-photo img { max-height: calc(100svh - 64px); } }
.lb-photo.zoomed { place-items: start; }
.lb-photo.zoomed img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.lb-lines { background: var(--paper); overflow: auto; padding: 20px 20px 40px; container-type: inline-size; }
.lb-title { font-family: var(--mono), monospace; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.lb-lines .lv-list { border-radius: 12px; border: 1px solid var(--line); padding: 8px 14px 14px; }
.lb-lines .lv-ln { font-size: 15px; padding: 6px 0; gap: 8px; }
.lb-lines .lv-ln i { font-size: 12.5px; }
.lb-lines .lv-sec { font-size: 11.5px; margin-top: 12px; }
.lb-lines .lv-ok { width: 14px; height: 14px; }
.lb-lines .lv-mask .sk { height: 10px; }
.lb-x { position: fixed; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #FFFFFF;
  display: grid; place-items: center; cursor: pointer; }
.lb-x svg { width: 22px; height: 22px; }

/* share page /r/<id> (worker/webtry.js) */
.r-head { padding-bottom: 48px; }
.r-head .kicker { color: var(--on-dark-soft); }
.r-head .cta .link { margin-left: 4px; }
.top .brand img { width: 100%; height: auto; display: block; }
.r-list { padding-top: 40px; padding-bottom: 80px; max-width: 760px; }
.r-sec { margin-top: 28px; }
.r-sec h2 { font-family: var(--mono), monospace; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.r-ln { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.r-ln b { font-weight: 600; }
.r-ln i { font-style: normal; font-family: var(--mono), monospace; font-size: 14px; color: var(--soft); }
.r-ln .dots { flex: 1; }
.r-ln .p { font-family: var(--mono), monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.btn .btn-ic { width: 20px; height: 20px; margin-right: 10px; flex: none; }

/* the email moment (scan.js gate): masked rows stay blurred bars; the card rises over the list */
.lv-mask .sk { display: block; height: 1.3cqh; border-radius: 99px; background: var(--line); filter: blur(.25cqh); flex: none; align-self: center; }
.lv-mask .sk.p { width: 12%; }
.lv-mask { animation: lv-in var(--t-reveal) var(--ease); }
.lv-gate { position: absolute; left: 3.5cqw; right: 3.5cqw; bottom: 3cqh; background: var(--surface); border: 1px solid var(--line); border-radius: 5cqw;
  padding: 2.2cqh 4.5cqw; display: flex; flex-direction: column; gap: 1.2cqh; box-shadow: 0 -1cqh 6cqh rgba(10,15,28,.22); animation: lv-up var(--t-reveal) var(--ease); }
.lv-gate::before { content: ""; position: absolute; left: -3.5cqw; right: -3.5cqw; bottom: 100%; height: 14cqh; pointer-events: none;
  background: linear-gradient(transparent, var(--paper)); }
.lv-gate b { font-size: 2.5cqh; font-weight: 620; letter-spacing: -.02em; }
.lv-gate p { font-size: 1.8cqh; color: var(--soft); line-height: 1.35; }
.lv-gate input { font: inherit; font-size: max(16px, 2.1cqh); min-height: 6cqh; border-radius: 99px; border: 1.5px solid var(--line); padding: 0 4cqw;
  background: var(--paper); color: var(--ink); outline: none; }
.lv-gate input:focus { border-color: var(--accent); box-shadow: 0 0 0 .5cqh rgba(61,107,255,.18); }
.lv-gate small { font-size: 1.5cqh; color: var(--soft); text-align: center; }
.lv-gate small.bad { color: var(--error-text); font-weight: 600; }
