/* Barcode Info landing page.
   Everything the page needs is in this folder (this file, landing.js and
   img/), with relative URLs, so the folder can be served from any path or
   domain. Light by default, dark when the visitor's system is. No web fonts.

   Motion: only transform, opacity and clip-path move. What answers a tap is
   under 300ms; what tells the story (the hero's code, the receipt) may take
   longer. All of it stops under prefers-reduced-motion, at the foot. */

:root {
    color-scheme: light dark;
    --bg: #f3f7f6;
    --surface: #ffffff;
    --line: rgba(12, 40, 38, 0.13);
    --text: #0c1f1e;
    --muted: #47605d;
    --accent: #0b6b60;
    --accent-soft: rgba(11, 107, 96, 0.09);
    --btn-bg: #0b6b60;
    --btn-text: #ffffff;
    --create: #3a4da3;
    --create-soft: rgba(58, 77, 163, 0.08);
    --gold: #7d5a0b;
    --gold-soft: rgba(176, 132, 24, 0.09);
    --gold-line: rgba(140, 102, 14, 0.4);
    --good: #0b6b60;
    --bad: #a3271b;
    --shadow: 0 16px 40px rgba(12, 40, 38, 0.14);
    --shot-line: rgba(12, 40, 38, 0.16);
    --bar-bg: rgba(243, 247, 246, 0.88);
    --paper: #fffdf8;
    --cam: #0b1312;
    --caught: #34c759;
    --bg-rgb: 243 247 246;
    --ink: #141414;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #071113;
        --bg-rgb: 7 17 19;
        --surface: #0e1a1c;
        --line: rgba(255, 255, 255, 0.12);
        --text: #f3f7f6;
        --muted: #a9b8b6;
        --accent: #4fd1ba;
        --accent-soft: rgba(79, 209, 186, 0.12);
        --btn-bg: #4fd1ba;
        --btn-text: #04201c;
        --create: #a9b8ff;
        --create-soft: rgba(150, 168, 255, 0.12);
        --gold: #e3c16f;
        --gold-soft: rgba(227, 193, 111, 0.1);
        --gold-line: rgba(227, 193, 111, 0.35);
        --good: #4fd1ba;
        --bad: #ff9d8f;
        --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
        --shot-line: rgba(255, 255, 255, 0.14);
        --bar-bg: rgba(7, 17, 19, 0.86);
    }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; }
ul { padding: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 6px;
}

strong { font-weight: 700; }

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }

p { color: var(--muted); text-wrap: pretty; }

section[id] { scroll-margin-top: 20px; }
section.bn-features { scroll-margin-top: 0; }

.bn-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.bn-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 20;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--btn-bg);
    color: var(--btn-text);
}

.bn-skip:focus { top: 12px; }

/* ---------- Things that are pressed ----------
   A press goes down a little and comes back, like a key. */
.bn-btn,
.bn-stores a,
.bn-tries button,
.bn-shapes span,
.bn-inks span { transition: transform 140ms var(--ease-out); }

.bn-btn:active,
.bn-switch a:active,
.bn-stores a:active,
.bn-tries button:active,
.bn-shapes label:active span,
.bn-inks label:active span { transform: scale(0.97); }

/* ---------- Top bar ----------
   The top of the page is the camera's dark, in both themes; it fades into
   the page under the hero. */
.bn-bar { background: var(--cam); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.bn-bar .bn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 60px;
}

.bn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.bn-brand img { width: 34px; height: 34px; border-radius: 8px; }

.bn-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #4fd1ba;
    color: #04201c;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bn-bar a:focus-visible { outline-color: #6fe3cd; }

/* ---------- Hero: the viewfinder ---------- */
.bn-hero {
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.78);
    --accent: #6fe3cd;
    --create: #bcc8ff;
    --line: rgba(255, 255, 255, 0.22);
    position: relative;
    padding: 32px 0;
    background: radial-gradient(80% 70% at 74% 36%, #1c2a27 0%, var(--cam) 72%);
    color: #fff;
    overflow: hidden;
}

/* The camera's dark ends in a straight edge, with the sweep line resting on it. */
.bn-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(52, 199, 89, 0), rgba(52, 199, 89, 0.9) 30%, rgba(111, 227, 205, 0.9) 70%, rgba(111, 227, 205, 0));
    box-shadow: 0 0 18px 2px rgba(52, 199, 89, 0.35);
}

.bn-hero .bn-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.bn-hero-head { text-align: center; }
.bn-hero h1 { color: #fff; }

/* The half of the headline that is up keeps its colour. With no beat set,
   which is the still frame, both do. */
.bn-h1-scan { color: var(--accent); transition: color 600ms ease; }
.bn-h1-create { color: var(--create); transition: color 600ms ease; }
.bn-hero[data-beat="make"] .bn-h1-scan,
.bn-hero[data-beat="scan"] .bn-h1-create { color: #fff; }

.bn-lead {
    margin: 14px auto 0;
    max-width: 500px;
    font-size: 18px;
    line-height: 1.5;
}

.bn-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.bn-hero-head .bn-stores { justify-content: center; }

.bn-stores a {
    position: relative;
    display: inline-flex;
    border-radius: 9px;
    overflow: hidden;
}

.bn-stores img { display: block; height: 54px; width: auto; }
.bn-hero .bn-stores a { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.bn-hero a:focus-visible { outline-color: #6fe3cd; }

/* A scanner's line, waiting above the badge. */
.bn-stores a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: #2fe0c4;
    box-shadow: 0 0 10px 2px rgba(47, 224, 196, 0.7);
    opacity: 0;
    transform: translateY(-4px);
    transition: transform 520ms var(--ease-in-out), opacity 200ms ease;
    pointer-events: none;
}

.bn-note { margin-top: 16px; font-size: 14px; }

/* ---- The scanner card: one dark card, the camera edge to edge in a 9:14
   box, and everything over it in dark glass, as in the app. Its sizes are
   the app's own, in points. ---- */
.bn-cam {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 14;
    margin: 6px auto 0;
    border-radius: 32px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    isolation: isolate;
}

.bn-cam > * { position: absolute; }

/* What the camera sees: a pack, a little out of true, in front of a shelf
   that is out of focus. */
.bn-cam-scene { inset: 0; }

.bn-cam-bg {
    position: absolute;
    inset: -14%;
    background:
        radial-gradient(38% 26% at 20% 22%, #8d7248 0, transparent 72%),
        radial-gradient(44% 30% at 82% 16%, #3f5b4d 0, transparent 72%),
        radial-gradient(52% 28% at 66% 80%, #5c4b3a 0, transparent 72%),
        radial-gradient(40% 28% at 10% 84%, #2e3f46 0, transparent 72%),
        #191613;
    filter: blur(14px);
}

.bn-cam-pack {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 40.800%;
    height: 58%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(155deg, #e4d8bd 0%, #cfbf9d 46%, #b29f7b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -30px 40px -20px rgba(74, 58, 30, 0.35), 0 30px 44px -14px rgba(0, 0, 0, 0.7);
    transform: rotate(-1.500deg);
}

.bn-cam-band {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12%;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #0d5b51, #127a69);
}

.bn-cam-band::after {
    content: "";
    position: absolute;
    left: 8%;
    top: 50%;
    width: 26%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.bn-cam-label {
    position: relative;
    width: 60%;
    padding: 7px 7px 2px;
    border-radius: 4px;
    background: #fffdf8;
    box-shadow: 0 1px 2px rgba(60, 44, 20, 0.35);
}

.bn-ean { display: block; width: 100%; height: auto; }
.bn-ean-bars { fill: var(--ink); }
.bn-ean-digits { font-family: var(--mono); fill: #1b1b1b; }
.bn-ean-prefix,
.bn-ean-check { fill: #0b6b60; font-weight: 700; }

/* The window: 72 percent of the card across, in the room above the tiles.
   Outside it the picture is dimmed. */
.bn-cam-hole,
.bn-cam-corners,
.bn-cam-line,
.bn-cam-pulse {
    left: 14%;
    top: 40.800%;
    width: 72%;
    aspect-ratio: 1 / 0.720;
    translate: 0 -50%;
}

.bn-cam-hole { border-radius: 24px; box-shadow: 0 0 0 640px rgba(0, 0, 0, 0.42); }

.bn-cam-corners {
    height: auto;
    overflow: visible;
    fill: none;
    stroke: var(--caught);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke 160ms ease;
}

.bn-cam-line { opacity: 0; }

.bn-cam-line::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

.bn-cam-pulse { border: 2px solid var(--caught); border-radius: 24px; opacity: 0; }

.bn-cam-hint {
    left: 16px;
    right: 16px;
    top: calc(57.500% + 16px);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 200ms ease;
}

/* The app's dark glass: blurred where the browser can, darker where not. */
.bn-cam-glass {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.55);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .bn-cam-glass {
        background: rgba(0, 0, 0, 0.28);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
}

.bn-cam-round {
    top: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bn-cam-round svg { width: 20px; height: 20px; }
.bn-cam-torch { left: 12px; }
.bn-cam-close { right: 12px; }

.bn-cam-mode {
    top: 12px;
    left: 50%;
    translate: -50% 0;
    display: flex;
    padding: 3px;
    border-radius: 20px;
}

.bn-cam-mode b,
.bn-cam-mode span { padding: 7px 14px; border-radius: 16px; font-weight: 600; }
.bn-cam-mode b { background: #fff; color: rgba(0, 0, 0, 0.87); }

.bn-cam-tiles {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.bn-cam-tiles span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 22px;
    white-space: nowrap;
}

.bn-cam-tiles svg { width: 26px; height: 26px; }

/* The result sheet, as the app draws it, and the editor's dock it settles
   into. One surface: it rises whole, then lowers to the height of the dock
   while what is on it changes. */
.bn-cam-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    height: 198px;
    border-radius: 28px 28px 0 0;
    background: #f1f6f4;
    color: #191c1b;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 440ms cubic-bezier(0.32, 0.72, 0, 1);
}

.bn-cam-sheet::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 32px;
    height: 4px;
    margin-left: -16px;
    border-radius: 2px;
    background: rgba(25, 28, 27, 0.22);
}

.bn-cam-sheet p { margin: 0; color: inherit; }

.bn-cam-result { padding: 22px 20px 0; transition: opacity 220ms ease; }
.bn-cam-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bn-cam-flag { font-size: 34px; line-height: 1; }

.bn-cam-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.bn-cam-badge i { width: 7px; height: 7px; border-radius: 50%; background: #6be39a; }
.bn-cam-title { margin-top: 8px !important; font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.bn-cam-sub { margin-top: 2px !important; color: #6f7977 !important; font-size: 14px; font-weight: 400; }

.bn-cam-value {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px !important;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 500;
}

.bn-cam-value svg { width: 18px; height: 18px; color: #0b6b60; }
.bn-cam-value svg:first-of-type { margin-left: auto; }
.bn-cam-kind { margin-top: 2px !important; color: #6f7977 !important; font-size: 12px; font-weight: 400; }

.bn-cam-dock {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 88px;
    padding: 8px 14px 0;
    opacity: 0;
    transition: opacity 240ms ease;
}

.bn-cam-thumb {
    flex: none;
    width: 78px;
    padding: 5px 5px 1px;
    border: 1px solid rgba(25, 28, 27, 0.14);
    border-radius: 8px;
    background: #fffdf8;
}

.bn-cam-thumb .bn-ean-bars { fill: #33449a; }
.bn-cam-dock p { flex: 1; min-width: 0; font-size: 12.500px; font-weight: 400; line-height: 1.35; }
.bn-cam-dock b { display: block; color: #0b6b60; font-size: 15px; font-weight: 700; }
.bn-cam-share { flex: none; padding: 9px 15px; border-radius: 999px; background: #0b6b60; color: #fff; font-size: 15px; font-weight: 700; }

/* ---- Alive. landing.js adds is-live, then is-near, is-caught, is-sheet,
   is-dock and is-leaving in turn; without it the card stands as above. ---- */

/* Looking: the pack is out of frame and out of focus, the corners are white
   and breathe out by three points in time with the line. */
.bn-cam.is-live .bn-cam-pack {
    transform: translate(62%, 5%) rotate(7deg) scale(1.050);
    filter: blur(4px);
    transition: transform 1600ms var(--ease-out), filter 600ms ease 900ms, opacity 300ms ease;
}

.bn-cam.is-live .bn-cam-bg { transform: translateX(-4%); transition: transform 1800ms var(--ease-out); }
.bn-cam.is-live.is-near .bn-cam-pack { transform: rotate(-1.500deg); filter: blur(0); }
.bn-cam.is-live.is-near .bn-cam-bg { transform: none; }

.bn-cam.is-live:not(.is-caught) .bn-cam-corners {
    stroke: #fff;
    stroke-width: 4;
    animation: bn-cam-breathe 1800ms var(--ease-in-out) infinite alternate;
}

.bn-cam.is-live:not(.is-caught) .bn-cam-line {
    opacity: 1;
    animation: bn-cam-sweep 1800ms ease-in-out infinite alternate;
}

.bn-cam.is-live:not(.is-sheet) .bn-cam-hint,
.bn-cam.is-live:not(.is-sheet) .bn-cam-tiles { opacity: 1; }
.bn-cam.is-live.is-caught .bn-cam-hint { opacity: 0; }

/* Caught: one pulse, like the phone's tap. */
.bn-cam.is-live.is-caught .bn-cam-pulse { animation: bn-cam-pulse 460ms var(--ease-out) 1 both; }

/* The sheet waits under the foot, rises whole, and lowers to the dock. */
.bn-cam.is-live .bn-cam-sheet { transform: translateY(104%); }
.bn-cam.is-live.is-sheet .bn-cam-sheet { transform: none; }
.bn-cam.is-live.is-dock .bn-cam-sheet { transform: translateY(calc(100% - 88px)); }
.bn-cam.is-live.is-dock .bn-cam-result { opacity: 0; }
.bn-cam.is-live.is-dock .bn-cam-dock { opacity: 1; transition-delay: 160ms; }

/* Leaving: the dock goes down and the pack moves on. */
.bn-cam.is-live.is-leaving .bn-cam-sheet { transform: translateY(104%); transition-duration: 340ms; }
.bn-cam.is-live.is-leaving .bn-cam-pack { opacity: 0; transform: translate(-30%, 3%) rotate(-6deg); transition: transform 600ms var(--ease-in-out), opacity 400ms ease 150ms; }

.bn-cam.is-reset,
.bn-cam.is-reset * { transition: none !important; }

@keyframes bn-cam-breathe {
    from { transform: scale(1); }
    to { transform: scale(1.026); }
}

@keyframes bn-cam-sweep {
    from { transform: translateY(0); }
    to { transform: translateY(calc(100% - 30px)); }
}

@keyframes bn-cam-pulse {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 0; transform: scale(1.160); }
}

/* Wide screens: the words on the left, the scanner on the right, the two
   centred on each other. */
@media (min-width: 900px) {
    .bn-hero { padding: 48px 0; }

    .bn-hero .bn-wrap {
        grid-template-columns: minmax(0, 1fr) 348px;
        grid-template-areas: "head cam";
        column-gap: 72px;
    }

    .bn-hero-head { grid-area: head; align-self: center; text-align: left; }
    .bn-lead { margin-left: 0; }
    .bn-hero-head .bn-stores { justify-content: flex-start; }
    .bn-cam { grid-area: cam; align-self: center; max-width: 348px; margin: 0; }
}

/* ---------- The switch ---------- */
/* Room between the hero's edge and the switch. */
.bn-features { padding-top: 28px; }

.bn-switch-row {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px 0;
    background: var(--bar-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* Two sides, and the one that is up held in the scanner's corners, which
   slide across on a switch. */
.bn-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(12, 40, 38, 0.08);
}

html[data-side="create"] .bn-switch,
.bn-v--create {
    --accent: var(--create);
    --accent-soft: var(--create-soft);
}

.bn-switch a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 14px;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    transition: transform 140ms var(--ease-out), color 220ms ease;
}

.bn-switch svg { flex: none; width: 26px; height: 26px; }

.bn-side { display: grid; gap: 1px; text-align: left; }
.bn-side b { font-size: 17px; font-weight: 700; line-height: 1.2; }
.bn-side small { font-size: 13px; font-weight: 500; line-height: 1.3; opacity: 0.85; }

.bn-switch a:focus-visible { outline-offset: -3px; }

.bn-switch a[aria-selected="true"] { color: var(--accent); }
.bn-switch a[aria-selected="true"] .bn-side b { color: var(--text); }

/* The tile under the side that is up, and the corners around it. */
.js .bn-switch::before,
.js .bn-switch::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    border-radius: 16px;
    transition: transform 320ms var(--ease-in-out), background-color 220ms ease, border-color 220ms ease;
    pointer-events: none;
}

.js .bn-switch::before { background: var(--accent-soft); }

.js .bn-switch::after {
    border: 2.5px solid var(--accent);
    view-transition-name: bn-line;
    -webkit-mask:
        linear-gradient(#000 0 0) top left / 18px 18px no-repeat,
        linear-gradient(#000 0 0) top right / 18px 18px no-repeat,
        linear-gradient(#000 0 0) bottom left / 18px 18px no-repeat,
        linear-gradient(#000 0 0) bottom right / 18px 18px no-repeat;
    mask:
        linear-gradient(#000 0 0) top left / 18px 18px no-repeat,
        linear-gradient(#000 0 0) top right / 18px 18px no-repeat,
        linear-gradient(#000 0 0) bottom left / 18px 18px no-repeat,
        linear-gradient(#000 0 0) bottom right / 18px 18px no-repeat;
}

html[data-side="create"] .bn-switch::before,
html[data-side="create"] .bn-switch::after { transform: translateX(100%); }

@media (max-width: 640px) {
    .bn-switch { border-radius: 20px; }
    .bn-switch a { gap: 9px; min-height: 58px; padding: 8px 10px; }
    .bn-switch svg { width: 22px; height: 22px; }
    .bn-side b { font-size: 16px; }
    .bn-side small { font-size: 12px; }
}

@media (max-width: 360px) {
    .bn-switch a { flex-direction: column; gap: 4px; }
    .bn-side { text-align: center; }
}

/* Where the browser can, a switch made with a pointer morphs the two sides
   into each other: the line slides, each screenshot becomes its other. */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease-out); }
::view-transition-group(*) { animation-duration: 260ms; animation-timing-function: var(--ease-in-out); }

/* ---------- The pairs ---------- */
.bn-pair { padding: 52px 0; }
.bn-pair + .bn-pair { border-top: 1px solid var(--line); }

.bn-pair-title {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* One version of a pair: words beside a screenshot. */
.bn-v {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 72px;
    align-items: center;
}

.bn-pair--flip .bn-v { grid-template-columns: 240px minmax(0, 1fr); }
.bn-pair--flip .bn-v .bn-shot { order: -1; }
.bn-pair--text .bn-v,
.bn-pair--demo .bn-v { grid-template-columns: minmax(0, 1fr); }

.bn-v h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.18; letter-spacing: -0.02em; }

.bn-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Before landing.js has run, the version that is down is already out of the
   way. Without JavaScript both show, and the second stands apart. */
html.js[data-side="scan"] .bn-v--create,
html.js[data-side="create"] .bn-v--scan { display: none; }

html:not(.js) .bn-v + .bn-v { margin-top: 48px; }

/* The fade for browsers without view transitions. */
.bn-v.is-in { animation: bn-in 240ms var(--ease-out) both; }

@keyframes bn-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.bn-copy { max-width: 600px; }

.bn-copy h3 + p,
.bn-copy h3 + .bn-list { margin-top: 16px; }

.bn-copy p + p,
.bn-copy p + .bn-list,
.bn-copy .bn-list + p { margin-top: 14px; }

.bn-list { list-style: none; }

.bn-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
}

.bn-list li + li { margin-top: 9px; }

.bn-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

.bn-list strong { color: var(--text); }

.bn-plus {
    padding: 12px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    font-size: 15px;
}

.bn-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 9px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: 1px;
    white-space: nowrap;
}

.bn-both { margin-top: 28px; font-size: 15px; }

/* A screenshot, in a phone's dark rim. */
.bn-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 5px solid #0f1716;
    border-radius: 30px;
    box-shadow: 0 0 0 1px var(--shot-line), var(--shadow);
    background: var(--surface);
}

/* ---------- Try it here ---------- */
.bn-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 56px;
    align-items: center;
}

.bn-demo-controls { margin-top: 20px; }
html:not(.js) .bn-demo-controls { display: none; }

.bn-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.bn-input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bn-input--digits { font-family: var(--mono); font-size: 20px; letter-spacing: 0.06em; }

.bn-input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.bn-tries {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 10px;
    font-size: 14px;
}

.bn-tries button {
    min-height: 32px;
    padding: 3px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.bn-demo-out { margin-top: 18px; }
p.bn-demo-out { min-height: 26px; font-size: 15px; }
dl.bn-demo-out { display: grid; gap: 8px; min-height: 176px; align-content: start; }

.bn-fact {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.bn-fact dt { color: var(--muted); font-size: 14px; }
.bn-fact dd { color: var(--text); font-weight: 700; }
.bn-fact small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.bn-fact--good dd { color: var(--good); }
.bn-fact--bad dd { color: var(--bad); }
.bn-fact--quiet dd { color: var(--muted); font-weight: 400; }
.bn-flag { font-size: 20px; line-height: 1; vertical-align: -2px; }

.bn-demo-card {
    padding: 22px;
    border: 1px solid var(--shot-line);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

/* The art keeps its room whatever is drawn in it. */
.bn-demo-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    fill: var(--ink);
}

.bn-demo-art > svg { width: 100%; height: auto; transition: opacity 200ms ease; }
.bn-demo-art .bn-ean-prefix,
.bn-demo-art .bn-ean-check { fill: #0b6b60; }
.bn-demo-art.is-stale > svg { opacity: 0.16; }

.bn-demo-art.is-stale::after {
    content: attr(data-note);
    position: absolute;
    max-width: 80%;
    color: #47605d;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.bn-qr { display: block; }

.bn-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 14px;
}

.bn-opts legend {
    padding: 0;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.bn-opts label { position: relative; display: inline-flex; cursor: pointer; }
.bn-opts input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.bn-inks label + label { margin-left: 8px; }

.bn-inks span {
    display: block;
    width: 34px;
    height: 34px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: 0 0 0 1px var(--line);
}

.bn-inks i {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.bn-inks input:checked + span { box-shadow: 0 0 0 2px var(--accent); }

.bn-shapes label + label { margin-left: 6px; }

.bn-shapes span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
}

.bn-shapes input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.bn-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- The scan corners, echoed ----------
   The hero's corners, small, on the two live demos and on each screenshot:
   a ring with all but its four corners masked away. Green when there is a
   code in them, grey when there is not. */
.bn-demo-card,
.bn-shot { position: relative; }

.bn-demo-card::after,
.bn-shot::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 3px solid var(--caught);
    border-radius: 32px;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#000 0 0) top left / 36px 36px no-repeat,
        linear-gradient(#000 0 0) top right / 36px 36px no-repeat,
        linear-gradient(#000 0 0) bottom left / 36px 36px no-repeat,
        linear-gradient(#000 0 0) bottom right / 36px 36px no-repeat;
    mask:
        linear-gradient(#000 0 0) top left / 36px 36px no-repeat,
        linear-gradient(#000 0 0) top right / 36px 36px no-repeat,
        linear-gradient(#000 0 0) bottom left / 36px 36px no-repeat,
        linear-gradient(#000 0 0) bottom right / 36px 36px no-repeat;
    transition: opacity 160ms ease;
}

.bn-shot::after { inset: -9px; border-radius: 38px; }

/* Nothing drawn in the demo yet: the corners wait, faint. */
.bn-demo-card:has(.is-stale)::after { opacity: 0.25; }

/* ---------- Sections ---------- */
.bn-section { padding: 72px 0; }
.bn-section--tint { background: var(--surface); }
.bn-head { max-width: 640px; margin-bottom: 44px; }

/* ---------- Premium: the receipt ---------- */
.bn-premium { padding: 72px 0; }

.bn-premium-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 64px;
    align-items: center;
}

.bn-premium .bn-eyebrow { color: var(--gold); }
.bn-premium-say p { margin-top: 14px; }

.bn-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--text);
    font-size: 15px;
}

.bn-price strong { color: var(--gold); font-size: 24px; font-weight: 800; }
.bn-fine { font-size: 14px; }

/* The paper is paper in both themes. Its foot is torn in a zigzag. */
.bn-bill { filter: drop-shadow(0 14px 26px rgba(12, 40, 38, 0.2)); }

.bn-bill-paper {
    position: relative;
    padding: 26px 24px 34px;
    background: var(--paper);
    color: #1d1b16;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.45;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}

.bn-bill-paper ul { list-style: none; }
.bn-bill-paper p { color: inherit; }

.bn-bill-head {
    padding-bottom: 12px;
    border-bottom: 1px dashed #b9b2a0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.bn-bill-paper h3 {
    margin: 14px 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b6455;
}

.bn-bill-groups { display: flex; flex-direction: column; }

/* The side that is up leads. */
html[data-side="create"] .bn-premium-make { order: -1; }

li.bn-bill-line,
.bn-bill-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

li.bn-bill-line span:last-child { color: #6b6455; }

.bn-bill-total {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #b9b2a0;
    font-size: 17px;
    font-weight: 700;
}

.bn-bill-sub { font-size: 12.5px; }

/* Room between the total and the code, where the stamp lands. */
.bn-bill-code { margin-top: 58px; text-align: center; font-size: 12px; }
.bn-c128 { display: block; width: 100%; height: 44px; fill: #141414; }
.bn-bill-code span { display: block; margin-top: 4px; letter-spacing: 0.04em; }

.bn-stamp {
    position: absolute;
    right: 26px;
    bottom: 112px;
    padding: 2px 14px;
    border: 3px solid #a3271b;
    border-radius: 8px;
    color: #a3271b;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.86;
    transform: rotate(-12deg);
}

/* It prints when it comes into view: the paper feeds out at a steady pace,
   each line inks in behind it, and the stamp comes down last. landing.js
   sets is-waiting, then is-printed, so without it the receipt is simply
   there. */
.bn-bill.is-waiting .bn-bill-paper { clip-path: inset(0 0 100% 0); }
.bn-bill.is-waiting .bn-bill-line { opacity: 0; }
.bn-bill.is-waiting .bn-stamp { opacity: 0; transform: rotate(-5deg) scale(1.3); }

.bn-bill.is-printed .bn-bill-paper { clip-path: inset(0 0 0 0); transition: clip-path 1700ms linear; }
.bn-bill.is-printed .bn-bill-line { transition: opacity 220ms var(--ease-out); }
.bn-bill.is-printed .bn-stamp { transition: opacity 160ms ease 1950ms, transform 240ms var(--ease-out) 1950ms; }

/* ---------- Private ---------- */
.bn-private { max-width: 700px; }
.bn-private p { margin-top: 14px; }

/* ---------- Free and Premium, side by side ---------- */
.bn-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.bn-compare {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    overflow: hidden;
}

.bn-compare table { width: 100%; border-collapse: collapse; }

.bn-compare th,
.bn-compare td {
    padding: 13px 20px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.bn-compare tbody th { color: var(--text); font-size: 15px; font-weight: 500; }

.bn-compare td {
    width: 22%;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.bn-compare thead th {
    border-top: 0;
    padding-top: 18px;
    padding-bottom: 14px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.bn-compare thead th:first-child { text-align: left; }

/* The Premium column in the receipt's gold. */
.bn-compare .bn-compare-pro { background: var(--gold-soft); color: var(--gold); }
.bn-compare thead .bn-compare-pro { color: var(--gold); }

.bn-compare-group th {
    padding-top: 22px;
    padding-bottom: 8px;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bn-compare-group th { background: linear-gradient(90deg, transparent 78%, var(--gold-soft) 78%); }

.bn-yes { display: inline-block; vertical-align: middle; color: var(--good); }
.bn-compare-pro .bn-yes { color: var(--gold); }
.bn-no { display: inline-block; vertical-align: middle; color: var(--muted); opacity: 0.45; }

.bn-compare tfoot th,
.bn-compare tfoot td { padding-top: 18px; padding-bottom: 20px; font-size: 16px; }
.bn-compare tfoot th { color: var(--text); font-weight: 700; }
.bn-compare tfoot strong { display: block; color: var(--gold); font-size: 20px; }
.bn-compare tfoot small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.3; }

@media (max-width: 640px) {
    .bn-compare { border-radius: 18px; }
    .bn-compare th,
    .bn-compare td { padding: 11px 10px; }
    .bn-compare tbody th { padding-left: 14px; font-size: 14px; }
    .bn-compare td { width: 25%; font-size: 13px; }
    .bn-compare thead th { font-size: 15px; }
    .bn-compare-group th { padding-left: 14px; font-size: 12px !important; }
    .bn-compare-group th { background: linear-gradient(90deg, transparent 75%, var(--gold-soft) 75%); }
}

/* ---------- Questions ---------- */
.bn-faq { width: 100%; }

.bn-faq details { border-bottom: 1px solid var(--line); }
.bn-faq details:first-of-type { border-top: 1px solid var(--line); }

.bn-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.bn-faq summary::-webkit-details-marker { display: none; }

.bn-faq summary::after {
    content: "+";
    flex: none;
    color: var(--accent);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transition: transform 200ms var(--ease-out);
}

.bn-faq details[open] summary::after { transform: rotate(45deg); }
.bn-faq details p { padding: 0 0 20px; max-width: 720px; }

/* ---------- Closing ---------- */
.bn-close { padding: 88px 0; text-align: center; }
.bn-close img.bn-close-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 20px; }
.bn-close p { margin: 12px auto 0; max-width: 520px; font-size: 17px; }
.bn-close .bn-stores { justify-content: center; }
.bn-close .bn-note { margin-top: 20px; font-size: 14px; }

/* ---------- Footer ---------- */
.bn-foot {
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.bn-foot .bn-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 28px;
}

.bn-foot ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    list-style: none;
}

.bn-foot a { color: var(--muted); display: inline-block; padding: 4px 0; }
.bn-foot p { font-size: 14px; }

.bn-link-btn {
    display: inline-block;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- Cookie consent (analytics.js) ----------
   Hidden until <html> has .consent-pending. Accept and Reject look the same. */
.consent {
    display: none;
    position: fixed;
    z-index: 50;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 400px;
    margin-left: auto;
    padding: 18px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
}

.consent-pending .consent { display: block; }
.consent-title { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.consent-text { margin-bottom: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent-text a { color: var(--text); font-weight: 600; }
.consent-actions { display: flex; gap: 10px; }

.consent-btn {
    flex: 1;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--text);
    color: var(--surface);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 140ms var(--ease-out);
}

.consent-btn:active { transform: scale(0.97); }
.consent-btn:focus-visible,
.bn-link-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
    .bn-v,
    .bn-pair--flip .bn-v { grid-template-columns: 1fr; gap: 28px; }
    .bn-v .bn-shot,
    .bn-pair--flip .bn-v .bn-shot { order: 0; width: 190px; margin: 0 auto; }

    .bn-demo { grid-template-columns: 1fr; gap: 26px; }
    .bn-demo-card { width: 100%; max-width: 340px; margin: 0 auto; }

    .bn-premium-cols { grid-template-columns: 1fr; gap: 36px; }
    .bn-bill { width: 100%; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .bn-wrap { padding: 0 20px; }
    .bn-bar .bn-wrap { height: 56px; }
    .bn-hero { padding: 26px 0; }
    .bn-hero .bn-wrap { gap: 18px; }
    .bn-cam { max-width: 300px; }
    .bn-cam-sheet { height: 180px; }
    .bn-cam-result { padding: 20px 18px 0; }
    .bn-cam-flag { font-size: 30px; }
    .bn-cam-title { margin-top: 6px !important; font-size: 21px; }
    .bn-cam-sub { font-size: 13px; }
    .bn-cam-value { margin-top: 8px !important; font-size: 15px; }
    .bn-lead { font-size: 16px; margin-top: 12px; }
    .bn-stores { margin-top: 18px; gap: 10px; }
    .bn-stores img { height: 46px; }

    .bn-section,
    .bn-premium { padding: 48px 0; }
    .bn-head { margin-bottom: 28px; }
    .bn-pair { padding: 34px 0; }
    .bn-pair-title { margin-bottom: 16px; }
    html.js .bn-v .bn-eyebrow { display: none; }
    .bn-v .bn-shot,
    .bn-pair--flip .bn-v .bn-shot { width: 160px; }
    .bn-shot img { border-width: 4px; border-radius: 22px; }
    .bn-fact { grid-template-columns: 88px minmax(0, 1fr); padding: 9px 12px; }
    .bn-demo-card { padding: 16px; border-radius: 18px; }
    .bn-bill-paper { padding: 22px 18px 30px; font-size: 13px; }
    .bn-close { padding: 56px 0; }
    .bn-foot .bn-wrap { flex-direction: column; align-items: flex-start; }
}

/* The narrowest phones: both store badges still side by side. */
@media (max-width: 360px) {
    .bn-wrap { padding: 0 16px; }
    .bn-stores img { height: 42px; }
    .bn-input--digits { font-size: 18px; letter-spacing: 0.03em; }
    .bn-bill-paper { font-size: 12px; padding-left: 14px; padding-right: 14px; }
}

/* ---------- Hover, where there is a real pointer ---------- */
@media (hover: hover) and (pointer: fine) {
    .bn-btn:hover { filter: brightness(1.08); }
    .bn-switch a:hover { color: var(--text); }
    .bn-switch a[aria-selected="true"]:hover { color: var(--accent); }
    .bn-tries button:hover { border-color: var(--accent); }
    .bn-stores a:hover::after { opacity: 1; transform: translateY(54px); }
}

/* ---------- Motion tied to the scroll ----------
   Blocks rise a little as they come in. Each screenshot leans a couple of
   degrees one way and then the other as it passes, and the scan corners
   close on it as it arrives. */
@keyframes bn-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes bn-tilt {
    from { transform: rotate(2deg); }
    to { transform: rotate(-2deg); }
}

@keyframes bn-snap {
    from { opacity: 0; transform: scale(1.120); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .bn-reveal {
            animation: bn-rise linear both;
            animation-timeline: view();
            animation-range: entry 0px entry 220px;
        }

        .bn-shot {
            animation: bn-tilt linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }

        .bn-shot::after {
            animation: bn-snap linear both;
            animation-timeline: view();
            animation-range: entry 10% entry 90%;
        }
    }

    /* Where the browser cannot do that, landing.js marks the page and each
       block rises once, when it is first seen. */
    .no-sda .bn-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
    }

    .no-sda .bn-reveal.is-seen { opacity: 1; transform: none; }
}

/* ---------- Reduced motion: still, composed frames ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .bn-stores a::after { display: none; }

    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
}
