/* Public landing and scan pages (SPOO-111), ported from screen LA of
   docs/maquettes/2026-11-19_revamp-v3.html. Fonts are self-hosted: no
   request to Google (GDPR). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("/static/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #faf9f7; --surface: #ffffff; --fg: #2c2c2c; --fg-muted: #5a5a5a; --border: #e8e3d9;
  --accent: #4a9be8; --accent-ink: #2f72b8; --on-accent: #ffffff;
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13C45 5 120 3 197 11' fill='none' stroke='%234a9be8' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --field: #e3effc; --field-warm: #fde7da; --field-calm: #ddf2e5; --field-quiet: #ebe6fb; --field-sun: #fbefcc;
  --copy: #c92a4a; --on-copy: #ffffff; --danger: #d9480f; --warn: #6b4fd8; --ok: #2f9e44;
  --shadow: 0 1px 0 rgba(44,44,44,.05), 0 14px 32px -16px rgba(44,44,44,.22);
  --radius: 28px; --radius-sm: 16px; --pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 72px;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Fraunces", Georgia, serif; --fw-display: 650; --tr-display: -.025em; --fvs-display: "SOFT" 100, "WONK" 1; --fx: 1;
  /* Illustrations: the real shop, an inert copy, the serious copy, a bubble's paper. */
  --il-real: var(--accent); --il-ghost: color-mix(in srgb, var(--fg-muted) 70%, var(--bg)); --il-copy: var(--copy); --il-paper: var(--surface); --il-mark: var(--on-accent);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181b; --surface: #1f2226; --fg: #f1eee8; --fg-muted: #aba69c; --border: #31353b;
    --accent: #5aa8f0; --accent-ink: #5aa8f0; --on-accent: #0f2236;
    --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13C45 5 120 3 197 11' fill='none' stroke='%235aa8f0' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --field: #1b2a3b; --field-warm: #35251d; --field-calm: #18302a; --field-quiet: #27223a; --field-sun: #302a17;
    --copy: #ff5c7a; --on-copy: #1b0a0f; --danger: #ff8a4c; --warn: #a493ff; --ok: #51cf66;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 32px -16px rgba(0,0,0,.7);
    --il-ghost: color-mix(in srgb, var(--fg-muted) 75%, var(--bg)); --il-mark: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15.5px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:is(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-ink); }
.disp { font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--tr-display); font-variation-settings: var(--fvs-display); overflow-wrap: break-word; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The logo motif */
.il { display: block; flex: none; overflow: visible; color: var(--fg); }
.il-dot { fill: none; stroke-dasharray: 1.25 .75; stroke-linecap: butt; }
@keyframes il-float { 50% { transform: translateY(-6px); } }
.il-fl { animation: il-float 5s ease-in-out infinite; }
.il-fl.b { animation-delay: -2.5s; animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .il-fl { animation: none; } }

/* Wordmark: the second o is a thick dotted ring */
.wm { display: block; height: 28px; width: auto; color: var(--fg); }
.wm text { font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: var(--fvs-display); font-size: 34px; fill: currentColor; }
.wm .ghost { fill: none; stroke: var(--accent); stroke-width: 4.6; stroke-dasharray: 1.25 .75; }
.mark { flex: none; width: 30px; height: 30px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

/* Pill buttons, levels, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: 44px; padding: 0 20px; border: 0; border-radius: var(--pill); font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--border); background: var(--surface); color: var(--fg); text-decoration: none; transition: transform .12s; }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--fg-muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent-ink); color: var(--on-accent); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent-ink) 55%, var(--fg)); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent-ink) 88%, var(--fg)); }
.btn.ink { background: var(--fg); color: var(--bg); box-shadow: none; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16.5px; }
.lvl { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: var(--pill); font-weight: 700; font-size: 13px; white-space: nowrap; }
.lvl i { width: 9px; height: 9px; flex: none; background: currentColor; }
.lvl.warn { color: var(--warn); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 60%, transparent); }
.lvl.warn i { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.lvl.danger { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: color-mix(in srgb, var(--danger) 78%, var(--fg)); }
.lvl.danger i { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 10px; }
.lvl.copy { background: var(--copy); color: var(--on-copy); }
.lvl.copy i { transform: rotate(45deg); border-radius: 1px; width: 8px; height: 8px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-sans); color: var(--fg-muted); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.input { height: 48px; padding: 0 20px; border-radius: var(--pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--fg); font: 400 15.5px var(--font-sans); width: 100%; }
.note { font-size: 14px; color: var(--fg-muted); }

/* Top bar */
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--sp-6); padding: 14px var(--sp-8); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lp-top .wm { height: 26px; }
.lp-top nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; font-size: 15px; font-weight: 500; }
.lp-top nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--pill); color: var(--fg-muted); text-decoration: none; white-space: nowrap; }
.lp-top nav a:hover { background: var(--field); color: var(--fg); }
.lp-top nav .login { color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--border); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-8); }

/* Hero */
.hero { padding: 56px 0 var(--sp-8); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp-8); align-items: center; }
.hello { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: var(--pill); background: var(--field); font-size: 14px; font-weight: 600; }
.hello b { display: grid; place-items: center; height: 24px; padding: 0 9px; border-radius: var(--pill); background: var(--accent-ink); color: var(--on-accent); font-size: 12px; }
.hero h1 { margin-top: var(--sp-6); font-size: calc(66px * var(--fx)); line-height: 1.02; text-wrap: balance; }
/* The underline is a background, not a box: it follows the words onto as
   many lines as the language needs, and the title never leaves its column. */
.hero h1 em { font-style: normal; color: var(--accent-ink); padding-bottom: .1em; background: var(--squiggle) 0 100% / 100% .3em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .sub { margin-top: var(--sp-6); font-size: 19px; line-height: 1.55; color: var(--fg-muted); max-width: 30em; }
.hero .sub b { color: var(--fg); font-weight: 600; }
.scene { position: relative; aspect-ratio: 1.05; border-radius: 44% 56% 48% 52% / 54% 46% 54% 46%; background: var(--field); display: grid; place-items: center; }
.scene .il.il-hero { position: absolute; width: 94%; left: 3%; top: 2%; }
.scene .bub { position: absolute; left: 2%; bottom: 6%; max-width: 14em; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.35; }
.scene .bub small { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--copy); }
.scene .bub small::before { content: ""; width: 8px; height: 8px; rotate: 45deg; background: var(--copy); }
.scene .bub b { color: var(--copy); }

/* Scan box and its result */
.scan { margin-top: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-8); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); position: relative; }
.scan h1, .scan h2 { font-size: calc(28px * var(--fx)); line-height: 1.1; padding-right: 80px; }
.scan p { font-size: 15px; color: var(--fg-muted); }
.scan form { display: flex; gap: var(--sp-2); padding: 6px; border-radius: var(--pill); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--border); }
.scan .input { flex: 1; min-width: 0; height: 52px; font: 500 16px var(--font-mono); background: transparent; border: 0; }
.scan .input:focus { outline: none; }
.scan form:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.scan form .btn { height: 52px; }
.scan .il.il-loupe { position: absolute; right: 28px; top: -34px; width: 78px; }
#scan-result { display: flex; flex-direction: column; gap: var(--sp-3); }
#scan-result:empty { display: none; }
.scan p.scan-count { color: var(--fg); font-size: 17px; }
.scan-count strong { font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: var(--fvs-display); font-size: 28px; color: var(--copy); }
.scan p.scan-err { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--field-warm); color: var(--fg); }
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.res li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--field-warm); font-size: 13px; min-width: 0; }
.res li .mono { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan .btn.lg { white-space: normal; text-align: center; height: auto; min-height: 54px; padding: 10px 28px; }

/* Figures */
.figs { margin-top: var(--sp-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.figs > div { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); border-radius: var(--radius); }
.figs > div:nth-of-type(1) { background: var(--field); }
.figs > div:nth-of-type(2) { background: var(--field-warm); }
.figs > div:nth-of-type(3) { background: var(--field-calm); }
.figs b { font-size: calc(44px * var(--fx)); line-height: 1; }
.figs span { font-size: 14.5px; line-height: 1.4; }

/* Sections, examples, steps */
.sec { padding: var(--sp-16) 0 0; scroll-margin-top: 72px; }
.sec > h2 { font-size: calc(46px * var(--fx)); line-height: 1.05; max-width: 16em; }
.sec > p.lead { margin-top: var(--sp-3); color: var(--fg-muted); font-size: 18px; max-width: 38em; }
.exs { margin-top: var(--sp-8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.ex { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-8) var(--sp-6) var(--sp-6); }
.ex:nth-child(odd) { rotate: -.6deg; }
.ex:nth-child(even) { rotate: .5deg; margin-top: var(--sp-4); }
.ex::before { content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--field-sun) 85%, transparent); border-radius: 3px; }
.ex header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.ex .dom { font: 600 19px/1.2 var(--font-mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ex .who { font-weight: 700; color: var(--fg); }
.ex p { color: var(--fg-muted); font-size: 15px; }
.ex q { color: var(--fg); }
.ex footer { display: flex; gap: var(--sp-2); flex-wrap: wrap; font-size: 13px; color: var(--fg-muted); }
.ex footer span { padding: 4px 10px; border-radius: var(--pill); background: var(--bg); }
.steps { margin-top: var(--sp-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--sp-6); }
.steps li { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.steps .pic { height: 120px; border-radius: var(--radius-sm); display: grid; place-items: center; }
.steps li:nth-child(1) .pic { background: var(--field-sun); }
.steps li:nth-child(2) .pic { background: var(--field); }
.steps li:nth-child(3) .pic { background: var(--field-warm); }
.steps .pic .il { height: 96px; width: auto; }
.steps b { font-size: calc(23px * var(--fx)); line-height: 1.15; }
.steps p { color: var(--fg-muted); font-size: 15px; }

/* Price: the page's one large blue area */
.price { margin-top: var(--sp-8); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); align-items: center; padding: var(--sp-12); border-radius: 40px; background: var(--accent-ink); color: var(--on-accent); }
.price .amt { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: var(--sp-2); font-size: calc(104px * var(--fx)); line-height: .9; }
.price .amt span { white-space: nowrap; }
.price .amt small { font-family: var(--font-sans); font-weight: 600; font-size: 24px; letter-spacing: 0; margin-left: var(--sp-3); font-variation-settings: normal; }
.price ul { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: 8px; font-size: 16.5px; }
.price li { display: flex; gap: 10px; align-items: center; }
.price li svg.i { width: 20px; height: 20px; stroke-width: 3; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.price .side { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 17rem; position: relative; z-index: 1; }
.price .btn { height: 54px; font-size: 16px; box-shadow: none; }
.price .btn.ink { background: var(--on-accent); color: var(--accent-ink); }
.price .btn.out { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-accent) 70%, transparent); }
.price .fine { font-size: 13px; opacity: .85; text-align: center; max-width: 17rem; }

/* Footer */
.lp-foot { margin-top: var(--sp-16); background: var(--field); border-radius: 40px 40px 0 0; padding: var(--sp-8) 0 var(--sp-12); }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8); font-size: 14.5px; color: var(--fg-muted); }
.lp-foot .wm { height: 22px; }
.lp-foot a { color: inherit; }
.lp-foot a:hover { color: var(--fg); }
.langs { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; padding: 4px; border-radius: 20px; background: var(--surface); }
.langs a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--pill); font: 600 13px/1 var(--font-sans); color: var(--fg-muted); text-decoration: none; }
.langs a[aria-current="page"] { background: var(--fg); color: var(--bg); }

/* The standalone scan page (no JS) */
.scan-page { max-width: 680px; padding-top: var(--sp-12); }
.scan-page .scan { margin-top: var(--sp-8); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: var(--sp-8); }
  .scene { max-width: 440px; width: 100%; justify-self: center; }
  .price { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-top { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
  .lp-top nav .opt { display: none; }
  .lp-top .wm { height: 22px; }
  .lp-wrap { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-4); gap: var(--sp-6); }
  .hero h1 { font-size: calc(42px * var(--fx)); }
  .hero .sub { font-size: 17px; }
  .scene { max-width: 320px; margin-bottom: 56px; }
  .scene .bub { left: auto; right: -4%; bottom: -48px; }
  .scan { padding: var(--sp-6) var(--sp-4) var(--sp-4); margin-top: var(--sp-6); }
  .scan .il.il-loupe { width: 58px; right: 16px; top: -26px; }
  .scan h1, .scan h2 { padding-right: 60px; }
  .scan form { flex-direction: column; border-radius: var(--radius-sm); }
  .scan .input { flex: none; }
  .res { grid-template-columns: 1fr; }
  .figs { gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); }
  .figs > div { padding: var(--sp-4); }
  .figs b { font-size: calc(30px * var(--fx)); }
  .figs span { font-size: 13px; }
  .sec { padding-top: var(--sp-12); }
  .sec > h2 { font-size: calc(32px * var(--fx)); }
  .exs, .steps { grid-template-columns: 1fr; }
  .ex:nth-child(even) { margin-top: 0; }
  .price { padding: var(--sp-8) var(--sp-6); gap: var(--sp-6); border-radius: var(--radius); }
  .price .amt { font-size: calc(72px * var(--fx)); }
  .price .side { min-width: 0; }
  .price .fine { max-width: none; }
  .langs { margin-left: 0; }
}
