/* The public landing page. Plain CSS, no framework.
   Sections: tokens · base · top bar · hero · problem · flow · modules · screenshots · add-ons · bento · start · faq · finale · motion */

/* ---------- tokens ------------------------------------------------------------------------ */
:root {
    --bg: #d9dddc;
    --bg-2: #cdd1d0;
    --surface: #eceeed;
    --sunken: #c3c8c7;
    --ink: #06141b;
    --ink-2: #253745;
    --muted: #4a5c6a;
    --faint: #7b8a8e;
    --rule: #c2c8c8;
    --rule-2: #9ba8ab;
    --accent: #253745;
    --accent-soft: #c0c9ca;
    --on-accent: #eceeed;
    --ok: #4a5c6a;
    --ok-soft: #c0c9ca;
    --warn: #4a5c6a;
    --warn-soft: #c0c9ca;
    --dk-bg: #06141b;
    --dk-accent: #9ba8ab;
    --dk-ink: #ccd0cf;
    --dk-muted: #9ba8ab;
    --dk-rule: #253745;
    --sk-1: #c3c8c7;
    --sk-2: #d3d7d6;
    --shadow-1: 0 1px 2px rgb(6 20 27 / .07), 0 8px 24px -8px rgb(6 20 27 / .14);
    --shadow-2: 0 2px 4px rgb(6 20 27 / .06), 0 30px 60px -20px rgb(6 20 27 / .32);
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --gutter: 20px;
    --top: 64px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #06141b;
    --bg-2: #0a1a23;
    --surface: #11212d;
    --sunken: #182a37;
    --ink: #ccd0cf;
    --ink-2: #9ba8ab;
    --muted: #8a979c;
    --faint: #4a5c6a;
    --rule: #162734;
    --rule-2: #253745;
    --accent: #9ba8ab;
    --accent-soft: #1b2e3b;
    --on-accent: #06141b;
    --ok: #9ba8ab;
    --ok-soft: #1b2e3b;
    --warn: #9ba8ab;
    --warn-soft: #1b2e3b;
    --dk-bg: #0d1d27;
    --dk-accent: #9ba8ab;
    --dk-ink: #ccd0cf;
    --dk-muted: #8a979c;
    --dk-rule: #253745;
    --sk-1: #182a37;
    --sk-2: #22394a;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -8px rgb(0 0 0 / .5);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .4), 0 30px 60px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
}

/* ---------- base ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.5rem); line-height: 1.04; }
h2 em, h1 em, .finale h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent); font-size: 1.08em; }
.block--dark em, .finale em { color: var(--dk-accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 54ch; margin-top: 18px; text-wrap: pretty; }
.tag { display: inline-block; font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; vertical-align: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 99px;
    border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink);
    font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--ink); }
.btn .i { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; border-color: var(--ink); background: transparent; }
.btn--small:hover { background: var(--ink); color: var(--bg); }

.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--surface); border-color: var(--ink); }
:root[data-theme="dark"] .when-light, :root:not([data-theme="dark"]) .when-dark { display: none; }

/* ---------- top bar ----------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }
.top { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--top); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.top.is-stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--rule); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.logo-lockup { display: inline-flex; align-items: center; line-height: 0; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.logo-lockup img { height: 38px; width: auto; display: block; }
.logo:hover .logo-lockup { transform: translateY(-1px) scale(1.03); }
.foot .logo-lockup img { height: 30px; }
:root[data-theme="dark"] .logo-on-light, :root:not([data-theme="dark"]) .logo-on-dark { display: none; }
.top__links { display: flex; gap: 4px; }
.top__links a { text-decoration: none; padding: 8px 14px; border-radius: 99px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.top__links a:hover { background: var(--surface); color: var(--ink); }
.top__end { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }
.when-open { display: none; }
.burger[aria-expanded="true"] .when-open { display: block; }
.burger[aria-expanded="true"] .when-closed { display: none; }

@media (max-width: 899px) {
    .burger { display: grid; }
    .top__links {
        position: fixed; top: calc(var(--top) + 6px); left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px;
        background: var(--surface); border: 1px solid var(--rule-2); border-radius: 20px; box-shadow: var(--shadow-2);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: opacity .2s, transform .25s, visibility .2s;
    }
    .top__links.is-open { opacity: 1; visibility: visible; transform: none; }
    .top__links a { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
}
@media (max-width: 420px) { [data-theme-toggle] { display: none; } .btn--small { padding: 0 13px; } }
@media (max-width: 520px) {
    .hero .eyebrow { font-size: 10.5px; letter-spacing: .06em; gap: 0; white-space: nowrap; }
    .hero .eyebrow::before { display: none; }
    .hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .hero__cta .btn { width: 100%; }
}
@media (max-width: 359px) { .hero .eyebrow { font-size: 9.5px; letter-spacing: .03em; } }

/* ---------- hero ---------------------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--top) + clamp(28px, 6vw, 72px)); overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    /* ruled like a ledger page: the books, behind the bill */
    background: repeating-linear-gradient(to bottom, transparent 0 35px, color-mix(in srgb, var(--ink) 5%, transparent) 35px 36px);
    -webkit-mask-image: linear-gradient(#000 35%, transparent 92%);
    mask-image: linear-gradient(#000 35%, transparent 92%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; padding-bottom: clamp(48px, 7vw, 88px); }
.hero .eyebrow { margin-bottom: 0; color: var(--muted); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5rem); line-height: .98; letter-spacing: -.045em; margin: 24px 0 24px; max-width: 15ch; }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero__facts li::before { content: "—"; margin-right: 9px; color: var(--faint); }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * .1s + .05s) both; }

/* The counter: a bill printing, the order slip on its rail, and notes in the margin drawn like an annotated plan.
   The whole sequence is played by site.js (classes on .desk); without it the first bill simply sits there, finished. */
.hero__art { position: relative; container-type: inline-size; }
.desk { position: relative; height: 640px; max-width: 600px; margin-inline: auto; }
.printer { position: absolute; z-index: 2; left: 50%; top: 44px; width: 276px; margin-left: -138px; filter: drop-shadow(0 26px 24px rgb(6 20 27 / .18)); }
.printer__top { position: relative; z-index: 3; height: 26px; width: 316px; margin-left: -20px; border-radius: 14px; background: linear-gradient(#253745, #06141b); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.printer__led { position: absolute; right: 18px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #9ba8ab; box-shadow: 0 0 6px #9ba8ab; }
.desk:not(.is-static) .printer__led { animation: blink .7s steps(2) 0s 3 both; }
.printer__slot { overflow: hidden; margin-top: -4px; padding-bottom: 20px; }
.desk.is-tear .printer__slot { overflow: visible; }
.desk:not(.is-static) .receipt-wrap { animation: feed 1.1s cubic-bezier(.3,.7,.2,1) both; }
.desk.is-tear .receipt-wrap { animation: tear .9s cubic-bezier(.55,0,.85,.45) both; }
.desk.is-static .receipt-wrap { transform: none; animation: none; }
.receipt {
    position: relative; background: #eef0ef; color: #06141b; font: 500 12px/1.4 var(--mono); padding: 20px 18px 34px;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.receipt__head { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed #aab3b5; }
.receipt__head b { display: block; font: 600 15px var(--sans); letter-spacing: -.01em; }
.receipt__head span { color: #4a5c6a; font-size: 10.5px; }
.receipt__lines { padding: 12px 0; border-bottom: 1px dashed #aab3b5; display: grid; gap: 9px; }
.receipt__lines li { display: flex; justify-content: space-between; gap: 10px; }
.receipt__lines small { display: block; color: #4a5c6a; font-size: 10.5px; }
.receipt__tax { padding: 10px 0; display: grid; gap: 3px; color: #253745; }
.receipt__tax div { display: flex; justify-content: space-between; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-block: 1.5px solid #06141b; font-size: 13px; }
.receipt__total b { font: 600 20px var(--sans); letter-spacing: -.02em; }
.receipt__pay { display: flex; align-items: center; gap: 12px; padding-top: 14px; min-height: 72px; font-size: 10.5px; color: #253745; line-height: 1.35; }
.receipt__pay small { display: block; color: #7b8a8e; }
.receipt .qr { flex: none; width: 56px; height: 56px; padding: 4px; border: 1px solid #06141b; border-radius: 6px; color: #06141b; }
.receipt .qr[hidden] { display: none; }
.receipt__foot { text-align: center; margin-top: 14px; font-size: 10.5px; color: #4a5c6a; }
.stamp { position: absolute; right: 12px; bottom: 36px; padding: 5px 11px; border: 2.5px solid #253745; color: #253745; border-radius: 8px; font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-11deg); mix-blend-mode: multiply; white-space: nowrap; }
.desk:not(.is-static) .stamp { animation: stamp .4s cubic-bezier(.2,1.7,.4,1) 1.3s both; }
.desk.is-static .stamp { opacity: 1; animation: none; }

/* the order slip, hanging from its rail */
.rail { position: absolute; left: -14px; top: 6px; width: calc(50% - 150px); height: 3px; border-radius: 2px; background: var(--rule-2); }
.slip { position: absolute; z-index: 1; left: 2px; top: 6px; width: 120px; padding: 22px 10px 12px; white-space: nowrap; background: #aeb8ba; color: #11212d; border-radius: 2px 2px 3px 3px; box-shadow: 0 12px 20px -10px rgb(6 20 27 / .4); font: 500 10.5px/1.45 var(--mono); transform-origin: 50% 0; display: grid; }
.slip b { font: 700 14px var(--sans); margin-bottom: 4px; }
.slip small { color: #4a5c6a; margin-top: 3px; }
.slip__clip { position: absolute; top: -9px; left: 50%; margin-left: -10px; width: 20px; height: 15px; border-radius: 3px 3px 0 0; background: #06141b; }
.desk:not(.is-static) .slip { animation: slip-in .7s cubic-bezier(.2,.8,.2,1) both, swing 2.2s ease-out .7s forwards; }
.desk.is-tear .slip { animation: slip-out .5s ease-in both; }
.desk.is-static .slip { opacity: 1; animation: none; }

/* margin notes: a hairline from the words to the thing they mean, drawn as they appear */
.note { position: absolute; z-index: 1; width: calc(50% - 138px - 26px); font: 500 11px/1.4 var(--mono); color: var(--ink-2); }
.note--l { left: 0; text-align: right; }
.note--r { right: 0; text-align: left; }
.note span { display: block; }
.note--l { --sx: -8px; } .note--r { --sx: 8px; }
.note::after { content: ""; position: absolute; top: .45em; height: 5px; width: 36px; }
.note--l::after { left: calc(100% + 4px); transform-origin: left; background: linear-gradient(currentColor, currentColor) 0 50% / calc(100% - 3px) 1px no-repeat, radial-gradient(circle at calc(100% - 2.5px) 50%, currentColor 2.2px, transparent 2.7px); }
.note--r::after { right: calc(100% + 4px); transform-origin: right; background: linear-gradient(currentColor, currentColor) 100% 50% / calc(100% - 3px) 1px no-repeat, radial-gradient(circle at 2.5px 50%, currentColor 2.2px, transparent 2.7px); }
.note--price { top: 146px; } .note--stock { top: 204px; } .note--gst { top: 288px; } .note--profit { top: 360px; } .note--pay { top: 424px; }
.desk:not(.is-static) .note { animation: note-in .4s ease calc(1.5s + var(--n) * .3s) both; }
.desk:not(.is-static) .note span { animation: note-text .5s cubic-bezier(.2,.7,.2,1) calc(1.5s + var(--n) * .3s) both; }
.desk:not(.is-static) .note::after { animation: leader .5s cubic-bezier(.3,.7,.2,1) calc(1.5s + var(--n) * .3s) both; }
.desk.is-tear .note { animation: note-out .3s ease both; }
.desk.is-tear .note span, .desk.is-tear .note::after { animation: none; }
.desk__cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* Narrow screens: the same scene, rearranged. The bill moves to the right and gets a little narrower; the slip stays on its
   rail at the top left; every note moves to the left column, each still pointing at its line with a hairline. */
@container (max-width: 560px) {
    .desk { --bill: clamp(200px, 62cqw, 236px); height: 570px; }
    .printer { left: auto; right: 0; margin-left: 0; width: var(--bill); }
    .printer__top { width: calc(var(--bill) + 20px); margin-left: -10px; }
    .stamp { right: 6px; font-size: 11px; padding: 4px 8px; border-width: 2px; }
    .rail { left: -14px; width: calc(100% - var(--bill) - 22px); }
    .slip { width: min(108px, calc(100% - var(--bill) - 14px)); padding: 22px 8px 10px; font-size: 10px; }
    .note, .note--r { left: 0; right: auto; text-align: right; width: calc(100% - var(--bill) - 32px); font-size: 10.5px; }
    .note--r::after { right: auto; left: calc(100% + 4px); transform-origin: left; background: linear-gradient(currentColor, currentColor) 0 50% / calc(100% - 3px) 1px no-repeat, radial-gradient(circle at calc(100% - 2.5px) 50%, currentColor 2.2px, transparent 2.7px); }
    .note::after { width: 28px; }
    .receipt { padding-inline: 14px; }
}
/* The very smallest phones: no room beside the bill, so the notes list underneath it instead. */
@container (max-width: 300px) {
    .desk { height: auto; display: grid; gap: 7px; justify-items: center; padding: 18px 0 6px; }
    .printer { position: relative; left: auto; right: auto; top: auto; margin: 0 0 12px; }
    .rail, .slip, .note::after { display: none; }
    .note, .note--r { position: static; width: min(100%, var(--bill)); text-align: left; }
    .note span { display: inline; }
    .note::before { content: "— "; opacity: .55; }
    .desk__cap { position: static; order: 9; margin-top: 6px; }
}
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.marquee { overflow: hidden; border-block: 1px solid var(--rule); background: color-mix(in srgb, var(--bg-2) 70%, transparent); padding-block: 15px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: inline-flex; align-items: center; font: 500 13px var(--mono); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.marquee li::after { content: "✦"; margin-inline: 26px; color: var(--accent); font-size: 11px; }

/* ---------- section scaffolding --------------------------------------------------------------- */
.block { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.block--tint { background: var(--bg-2); border-block: 1px solid var(--rule); }
.head { max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .sub { margin-inline: auto; }
.split { display: grid; gap: 44px; }
.split__lead { align-self: start; }
@media (min-width: 960px) {
    .split { grid-template-columns: 5fr 7fr; gap: 72px; }
    .split__lead { position: sticky; top: calc(var(--top) + 36px); }
}

/* ---------- the problem ----------------------------------------------------------------------------- */
.problem { padding: 22px 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.problem:last-child { border-bottom: 1px solid var(--rule); }
.problem__before { color: var(--muted); font-size: 1rem; }
.problem__before span { background: linear-gradient(var(--accent), var(--accent)) 0 56% / 0% 2px no-repeat; transition: background-size .9s cubic-bezier(.6,0,.2,1) calc(var(--d, 0) * .09s + .5s); }
.is-in .problem__before span, .problem.is-in .problem__before span { background-size: 100% 2px; }
.problem__after { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; }
.problem__after .i { color: var(--accent); margin-top: 3px; }

/* ---------- how it fits (flow) ------------------------------------------------------------------------- */
.flow { position: relative; display: grid; gap: 34px; margin-top: 64px; counter-reset: none; }
.flow__rail { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--rule-2); }
.flow__rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); transition: transform 1.8s cubic-bezier(.5,0,.2,1) .2s; }
.flow.is-in .flow__rail i { transform: scaleY(1); }
.flow__step { position: relative; padding-left: 80px; opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d) * .22s + .1s); }
.flow.is-in .flow__step { opacity: 1; transform: none; }
:root:not(.js) .flow__step { opacity: 1; transform: none; }
.flow__ico { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--rule-2); color: var(--ink); box-shadow: var(--shadow-1); }
.flow__ico .i { width: 24px; height: 24px; }
.flow__n { position: absolute; left: 40px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 11px/22px var(--mono); text-align: center; }
.flow__step h3 { font-size: 1.15rem; letter-spacing: -.02em; padding-top: 4px; }
.flow__step p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
@media (min-width: 1000px) {
    .flow { grid-template-columns: repeat(6, 1fr); gap: 20px; }
    .flow__rail { left: 8%; right: 8%; top: 28px; bottom: auto; width: auto; height: 2px; }
    .flow__rail i { transform-origin: left; transform: scaleX(0); }
    .flow.is-in .flow__rail i { transform: scaleX(1); }
    .flow__step { padding: 72px 0 0; text-align: center; }
    .flow__ico { left: 50%; margin-left: -28px; }
    .flow__n { left: calc(50% + 12px); }
}

/* ---------- modules ----------------------------------------------------------------------------- */
.modnav { position: sticky; top: var(--top); z-index: 40; margin-top: 44px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--rule); }
.modnav__scroll { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.modnav__scroll::-webkit-scrollbar { display: none; }
.modnav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.modnav a .i { width: 16px; height: 16px; }
.modnav a:hover { color: var(--ink); background: var(--surface); }
.modnav a.is-on { background: var(--ink); color: var(--bg); }
.mods { display: grid; gap: clamp(88px, 11vw, 160px); padding-top: clamp(56px, 7vw, 96px); }
.mod { display: grid; gap: 36px; align-items: center; scroll-margin-top: calc(var(--top) + 70px); }
.mod__num { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.mod__num b { font: 400 3.4rem/.9 var(--serif); color: var(--accent); letter-spacing: -.02em; }
.mod__num span:not(.tag) { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mod h3 { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.7rem); line-height: 1.07; }
.mod__lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 52ch; text-wrap: pretty; }
.points { display: grid; gap: 13px; margin-top: 26px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.points b { color: var(--ink); font-weight: 600; }
.points__tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.points__tick .i { width: 13px; height: 13px; stroke-width: 2.4; }
.solves { display: flex; gap: 11px; align-items: flex-start; margin-top: 28px; padding: 13px 16px; border-left: 3px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 4px 12px 12px 4px; font-size: .95rem; color: var(--ink); max-width: 52ch; }
.solves .i { color: var(--accent); margin-top: 2px; width: 18px; height: 18px; }
.solves i { font-style: normal; font-weight: 600; margin-right: 4px; }
.mod__shot { min-width: 0; }
.mod--tabs { grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
.mod--tabs .mod__lead, .mod--tabs .solves { max-width: 60ch; }
@media (min-width: 960px) {
    .mod { grid-template-columns: 5fr 7fr; gap: 72px; }
    .mod--flip:not(.mod--tabs) { grid-template-columns: 7fr 5fr; }  /* the picture moves to the left, so it keeps the wide column */
    .mod--flip:not(.mod--tabs) .mod__text { order: 2; }
    .mod--tabs { grid-template-columns: minmax(0, 1fr); }
}

/* the journey strip at the top of Inventory */
.path { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-bottom: 40px; }
.path li { position: relative; padding: 9px 15px; border: 1px solid var(--rule-2); border-radius: 99px; font: 500 12.5px var(--mono); color: var(--ink-2); background: var(--surface); animation: lit 10s linear infinite; animation-delay: calc(var(--k, 0) * 2s); }
.path li:nth-child(2) { --k: 1; } .path li:nth-child(3) { --k: 2; } .path li:nth-child(4) { --k: 3; } .path li:nth-child(5) { --k: 4; }
.path li:not(:last-child) { margin-right: 18px; }
.path li:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-52%); color: var(--accent); font-size: 14px; }

/* Where there is not room for the whole chain in one line, it stands up as a vertical path instead of breaking mid-way. */
@media (max-width: 899px) {
    .path { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0; margin: 0 0 36px 7px; padding-left: 22px; border-left: 1.5px solid var(--rule-2); }
    .path li { margin: 0 0 12px; }
    .path li:last-child { margin-bottom: 0; }
    .path li:not(:last-child) { margin-right: 0; }
    .path li:not(:last-child)::after { display: none; }
    .path li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--rule-2); animation: dot 10s linear infinite; animation-delay: calc(var(--k, 0) * 2s); }
}
.tabs__bar { position: relative; display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--rule-2); scrollbar-width: none; }
.tabs__bar::-webkit-scrollbar { display: none; }
.tabs__bar button { flex: none; padding: 14px 18px; border: 0; background: none; color: var(--muted); font-weight: 500; font-size: .98rem; cursor: pointer; white-space: nowrap; transition: color .2s; }
.tabs__bar button:hover, .tabs__bar button[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w, 60px); background: var(--accent); transform: translateX(var(--x, 0px)); transition: transform .35s cubic-bezier(.3,.8,.3,1), width .35s cubic-bezier(.3,.8,.3,1); }
.panel { display: grid; gap: 32px; padding-top: 36px; }
.panel:not([hidden]) { animation: panel-in .55s cubic-bezier(.2,.7,.2,1) both; }
.panel[hidden] { display: none; }
.panel h4 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.025em; font-weight: 500; line-height: 1.15; }
.panel__text > p { margin-top: 12px; color: var(--muted); max-width: 48ch; }
.panel__shot { min-width: 0; }
@media (min-width: 960px) { .panel { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }

/* ---------- screenshots -------------------------------------------------------------------------- */
.shot { position: relative; transform: translateY(var(--py, 0px)) perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
/* Just the picture: no browser bar, no address. A soft edge and shadow lift it off the page. */
.shot__body { position: relative; overflow: hidden; border: 1px solid var(--rule-2); border-radius: 16px; background: var(--sunken); box-shadow: var(--shadow-2); }
.shot:not(.has-img) .shot__body { aspect-ratio: 16 / 10; }
.shot__zoom { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
:root[data-theme="dark"] .shot-on-light, :root:not([data-theme="dark"]) .shot-on-dark { display: none; }  /* a dark page shows the light screenshot, a light page the dark one */
.shot__zoom img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot__zoom:hover img { transform: scale(1.015); }
.shot__expand { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.shot__zoom:hover .shot__expand, .shot__zoom:focus-visible .shot__expand { opacity: 1; transform: none; }
.shot__phone { position: absolute; right: -12px; bottom: -26px; width: clamp(84px, 20%, 150px); padding: 0; border: 5px solid #06141b; border-radius: 22px; overflow: hidden; background: #06141b; box-shadow: var(--shadow-2); cursor: zoom-in; transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.shot__phone:hover { transform: translateY(-6px) rotate(-1.5deg); }
.shot__phone img { width: 100%; height: auto; }
@media (max-width: 640px) { .shot__phone { right: -6px; bottom: -18px; } }

/* How the pictures move (site.js adds .is-shown when one scrolls into view, and tilts it toward the pointer):
   the frame rises in, the screen "switches on" top to bottom while settling from slightly zoomed, a soft light
   passes over it once, then the phone slides up and floats. Without JavaScript they are simply there. */
.js .shot:not(.is-shown) .shot__body, .js .shot:not(.is-shown) .shot__phone { opacity: 0; }
.js .shot.is-shown .shot__body { animation: shot-rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.js .shot.is-shown .shot__zoom img { animation: shot-on 1.1s cubic-bezier(.65, 0, .2, 1) .1s backwards; }
.shot__body::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%); background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .3) 50%, transparent 62%); }
.js .shot.is-shown .shot__body::after { animation: shot-shine 1.5s ease 1s 1 forwards; }
.js .shot.is-shown .shot__phone { animation: shot-phone-in .9s cubic-bezier(.2, .8, .2, 1) .8s backwards, shot-float 7s ease-in-out 1.9s infinite; }
.shot.is-tilting { transition: transform .18s ease-out; }
.shot.is-settling { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes shot-rise { from { opacity: 0; transform: translateY(34px) scale(.975); } }
@keyframes shot-on { from { clip-path: inset(0 0 100% 0); transform: scale(1.07); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes shot-shine { to { transform: translateX(130%); } }
@keyframes shot-phone-in { from { opacity: 0; transform: translateY(46px) rotate(4deg); } }
@keyframes shot-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.skel { position: absolute; inset: 0; display: grid; grid-template-columns: 21% 1fr; }
.skel__side { padding: 16px 14px; background: var(--surface); border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 11px; }
.skel__side b { height: 16px; width: 64%; border-radius: 5px; margin-bottom: 8px; }
.skel__side i { height: 10px; border-radius: 4px; }
.skel__side i:nth-child(2) { width: 90%; } .skel__side i:nth-child(3) { width: 72%; } .skel__side i:nth-child(4) { width: 82%; } .skel__side i:nth-child(5) { width: 60%; } .skel__side i:nth-child(6) { width: 76%; }
.skel__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.skel__head { display: flex; justify-content: space-between; align-items: center; }
.skel__head b { height: 20px; width: 30%; border-radius: 6px; }
.skel__head u { height: 24px; width: 15%; border-radius: 99px; text-decoration: none; background: var(--accent-soft); }
.skel__rows { display: grid; gap: 9px; }
.skel__rows i { height: 30px; border-radius: 9px; }
.skel__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.skel__tiles i { height: clamp(64px, 11vw, 112px); border-radius: 12px; }
.skel__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.skel__stats i { height: 56px; border-radius: 11px; }
.skel__chart { width: 100%; flex: 1; min-height: 70px; }
.skel__chart path { fill: var(--accent-soft); }
.skel__chart .line { fill: none; stroke: var(--accent); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 3.6s ease-in-out infinite; }
.skel i, .skel b { background: linear-gradient(100deg, var(--sk-1) 35%, var(--sk-2) 50%, var(--sk-1) 65%) 120% 0 / 300% 100%; animation: shimmer 2.8s linear infinite; }
.skel__side i, .skel__side b { background-color: var(--sk-1); }
.shot__tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--rule-2); box-shadow: var(--shadow-1); font-weight: 500; font-size: 14px; white-space: nowrap; }
.shot__tag .i { width: 17px; height: 17px; color: var(--accent); }
.shot__tag code { font: 500 11.5px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--sunken); color: var(--muted); }

/* ---------- add-ons ---------------------------------------------------------------------------- */
.block--dark { background: var(--dk-bg); color: var(--dk-ink); border-block: 1px solid var(--dk-rule); overflow: clip; }
.block--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, var(--dk-accent) 14%, transparent), transparent 70%); }
.block--dark .sub { color: var(--dk-muted); }
.block--dark .eyebrow { color: #9ba8ab; }
.block--dark h2 { color: var(--dk-ink); }
.addons { position: relative; display: grid; gap: 48px; align-items: center; }
.core { margin-top: 28px; display: grid; gap: 10px; color: var(--dk-ink); }
.core li { display: flex; gap: 10px; align-items: center; font-size: .98rem; }
.core .i { color: #9ba8ab; width: 18px; height: 18px; stroke-width: 2.2; }
.switchrow { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--dk-rule); border-radius: 18px; background: rgb(255 255 255 / .035); transition: border-color .6s, background .6s; transition-delay: calc(var(--d) * .35s + .3s); }
.switches.is-in .switchrow { border-color: color-mix(in srgb, var(--dk-accent) 45%, var(--dk-rule)); background: rgb(255 255 255 / .06); }
.switchrow__ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgb(255 255 255 / .07); color: #ccd0cf; }
.switchrow__text { flex: 1; min-width: 0; }
.switchrow__text b { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; }
.switchrow__text small { display: block; color: var(--dk-muted); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.switch { flex: none; position: relative; width: 52px; height: 30px; border-radius: 99px; background: #253745; transition: background .4s; transition-delay: calc(var(--d) * .35s + .5s); }
.switch i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); transition: transform .5s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--d) * .35s + .5s); }
.switches.is-in .switch { background: var(--dk-accent); }
.switches.is-in .switch i { transform: translateX(22px); }
.switches__note { color: var(--dk-muted); font: 500 12.5px var(--mono); margin-top: 16px; padding-left: 6px; }
@media (min-width: 960px) { .addons { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- small things (bento) -------------------------------------------------------------------- */
.bento { display: grid; gap: 16px; margin-top: 56px; }
.cell { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--rule); border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--rule-2); }
.cell h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.cell p { margin-top: 8px; color: var(--muted); font-size: .96rem; max-width: 44ch; }
.cell__art { flex: 1; display: grid; place-items: center; margin-bottom: 22px; min-height: 110px; }
.cell__art--paper { justify-items: start; align-content: center; gap: 8px; }
.cell__art--paper span { display: grid; align-items: center; padding-left: 14px; width: var(--w); height: 34px; border-radius: 6px 6px 0 0; background: var(--sunken); border: 1px solid var(--rule-2); font: 500 12px var(--mono); color: var(--ink-2); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.cell__art--phone .i { width: 76px; height: 76px; stroke-width: 1.1; color: var(--ink); }
.cell__art--phone { position: relative; }
.cell__art--phone::before, .cell__art--phone::after { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: ring 3s ease-out infinite; }
.cell__art--phone::after { animation-delay: 1.5s; }
.cell__art--gst { grid-auto-flow: column; gap: 8px; place-content: center; }
.cell__art--gst b { padding: 9px 13px; border-radius: 10px; font: 600 13px var(--mono); background: var(--accent-soft); color: var(--accent); animation: gst 6s ease-in-out infinite; }
.cell__art--gst b.alt { background: var(--sunken); color: var(--ink); animation-name: gst-alt; }
.cell__art--live { gap: 8px; align-content: center; width: 100%; }
.cell__art--live i { display: block; height: 28px; width: 100%; border-radius: 9px; background: var(--sunken); border-left: 4px solid var(--accent); animation: slide-row 4.5s ease-in-out infinite; }
.cell__art--live i:nth-child(2) { animation-delay: .5s; border-color: var(--ok); } .cell__art--live i:nth-child(3) { animation-delay: 1s; border-color: var(--warn); }
.cell__art--theme { position: relative; }
.cell__art--theme span { position: absolute; width: 74px; height: 74px; border-radius: 50%; }
.cell__art--theme span:first-child { background: #ccd0cf; border: 1px solid var(--rule-2); transform: translateX(-26px); }
.cell__art--theme span:last-child { background: #06141b; border: 1px solid #253745; transform: translateX(26px); mix-blend-mode: normal; }
.cell__art--theme { animation: spin 14s linear infinite; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell--wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
    .bento { grid-template-columns: repeat(12, 1fr); }
    .cell { grid-column: span 4; min-height: 320px; }
    .cell--wide { grid-column: span 7; }
    .cell:nth-child(2) { grid-column: span 5; }
}

/* ---------- getting started -------------------------------------------------------------------------- */
.types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.types li { padding: 8px 15px; border: 1px solid var(--rule-2); border-radius: 99px; font-size: 14px; font-weight: 500; background: var(--surface); }
@media (max-width: 640px) {
    /* the shop types sit in a tidy two-column grid instead of ragged rows of pills */
    .types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .types li { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.3; text-align: center; }
    .types li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: flex; gap: 22px; padding: 28px 0; border-top: 1px solid var(--rule-2); }
.step:last-child { border-bottom: 1px solid var(--rule-2); }
.step__n { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 400 1.5rem/1 var(--serif); }
.step h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.step p { color: var(--muted); margin-top: 6px; max-width: 50ch; }

/* ---------- questions ---------------------------------------------------------------------------------- */
.faq { display: grid; }
.faq details { border-top: 1px solid var(--rule-2); interpolate-size: allow-keywords; }
.faq details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; transition: transform .35s cubic-bezier(.3,1.4,.5,1), background .2s, color .2s; }
.faq summary i .i { width: 16px; height: 16px; }
.faq summary:hover i { background: var(--ink); color: var(--bg); }
.faq details[open] summary i { transform: rotate(135deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s cubic-bezier(.2,.7,.2,1), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- finale and footer ------------------------------------------------------------------------- */
.finale { padding: 0 0 clamp(72px, 9vw, 120px); }
.finale__card { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 8vw, 104px) clamp(22px, 5vw, 64px); border-radius: clamp(24px, 4vw, 40px); background: var(--dk-bg); color: var(--dk-ink); border: 1px solid var(--dk-rule); }
.finale__glow { position: absolute; left: 50%; top: -40%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--dk-accent) 22%, transparent), transparent); filter: blur(30px); animation: glow 7s ease-in-out infinite; pointer-events: none; }
.finale h2 { position: relative; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); line-height: 1; letter-spacing: -.04em; max-width: 16ch; margin-inline: auto; }
.finale p { position: relative; margin: 20px auto 0; max-width: 44ch; color: var(--dk-muted); font-size: 1.1rem; }
/* The demo video card: a poster that drifts slowly, a play button that ripples, and a thin control bar that fades with use.
   States are on .demo as data-state: idle -> loading -> playing / paused -> ended (site.js). */
.finale__card--video { padding: clamp(14px, 2.6vw, 32px); }
.finale .finale__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* the heading stays for screen readers and search */
.finale__card--video .finale__glow { transition: opacity .9s ease; }
.finale__card--video:has(.demo[data-state="playing"]) .finale__glow { animation-play-state: paused; opacity: .45; }
.demo { position: relative; isolation: isolate; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2vw, 24px); overflow: hidden; background: #0b151b; border: 1px solid var(--dk-rule); color: #fff; box-shadow: 0 40px 90px -36px rgb(0 0 0 / .7); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.js .finale__card--video .demo { opacity: 0; transform: translateY(26px) scale(.965); transition: opacity .9s ease .12s, transform 1s cubic-bezier(.2, .7, .2, 1) .12s; }
.js .finale__card--video.is-in .demo { opacity: 1; transform: none; }
.js .finale__card--video .finale__cta { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .55s, transform .7s cubic-bezier(.2, .7, .2, 1) .55s; }
.js .finale__card--video.is-in .finale__cta { opacity: 1; transform: none; }
.finale__card--video .finale__cta { margin-top: clamp(20px, 3vw, 32px); }
.demo.is-idle[data-state="playing"] { cursor: none; }

.demo__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* the poster and its play button */
.demo__cover { position: absolute; inset: 0; z-index: 1; cursor: pointer; transition: opacity .6s ease, visibility 0s linear .6s; }
.demo__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 38%; animation: demo-drift 20s ease-in-out infinite alternate; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.demo__cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 35%, rgb(6 20 27 / .55)), linear-gradient(to top, rgb(6 20 27 / .8), transparent 45%); }
.demo__cover::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .2) 50%, transparent 62%); transform: translateX(-130%); }
.finale__card--video.is-in .demo__cover::before { animation: demo-shine 1.7s ease 1s 1 forwards; }
.demo:hover .demo__cover img { filter: brightness(1.08); }
.demo:is([data-state="playing"], [data-state="paused"]) .demo__cover { opacity: 0; visibility: hidden; pointer-events: none; }
.demo:is([data-state="playing"], [data-state="paused"]) .demo__cover img { animation-play-state: paused; transform: scale(1.06); }

.demo__start { position: absolute; z-index: 3; left: 50%; top: 47%; width: clamp(62px, 9vw, 96px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; color: #06141b; cursor: pointer; transform: translate(-50%, -50%); display: grid; place-items: center; }
.demo__disc { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; background: rgb(255 255 255 / .95); display: grid; place-items: center; box-shadow: 0 14px 44px rgb(0 0 0 / .5); transition: transform .4s cubic-bezier(.2, 1.3, .4, 1), background .3s ease; }
.demo__disc svg { width: 36%; margin-left: 7%; fill: currentColor; transition: transform .3s ease; }
.demo__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .75); opacity: 0; animation: demo-ring 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.demo__ring--b { animation-delay: 1.4s; }
.demo__start:hover .demo__disc { transform: scale(1.1); }
.demo__start:hover .demo__disc svg { transform: scale(1.12); }
.demo__start:active .demo__disc { transform: scale(.95); }
.demo__start:focus-visible { outline: 3px solid var(--dk-accent); outline-offset: 6px; }
.demo__start::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; opacity: 0; transition: opacity .25s ease; }
.demo[data-state="loading"] .demo__start::after { opacity: 1; animation: demo-spin .85s linear infinite; }
.demo[data-state="loading"] .demo__ring { animation: none; }
.demo[data-state="loading"] .demo__disc { transform: scale(.88); }
.demo__meta { position: absolute; z-index: 3; left: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); bottom: clamp(12px, 2.6vw, 24px); display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
.demo__len { padding: 5px 11px; border-radius: 99px; background: rgb(255 255 255 / .16); backdrop-filter: blur(8px); letter-spacing: .08em; text-shadow: none; }

/* a spinner while it waits for more, and the mark that flashes on play / pause */
.demo__spin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .25); border-top-color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.demo[data-busy="1"]:is([data-state="playing"], [data-state="paused"]) .demo__spin { opacity: 1; animation: demo-spin .85s linear infinite; }
.demo__flash { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; aspect-ratio: 1; margin: -38px 0 0 -38px; border-radius: 50%; background: rgb(6 20 27 / .55); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.demo__flash svg { grid-area: 1 / 1; width: 32%; fill: #fff; }
.demo__flash[data-kind="play"] .demo__flash-pause, .demo__flash[data-kind="pause"] .demo__flash-play { display: none; }
.demo__flash.is-on { animation: demo-flash .65s ease-out; }

/* the control bar */
.demo__bar { position: absolute; z-index: 3; left: clamp(10px, 1.8vw, 20px); right: clamp(10px, 1.8vw, 20px); bottom: clamp(10px, 1.8vw, 20px); display: flex; align-items: center; gap: clamp(6px, 1.2vw, 12px); padding: 4px clamp(8px, 1.2vw, 14px) 4px 6px; border-radius: 18px; background: rgb(6 20 27 / .74); border: 1px solid rgb(255 255 255 / .09); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 30px rgb(0 0 0 / .35); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transition: opacity .35s ease, transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s; }
.demo:is([data-state="playing"], [data-state="paused"]) .demo__bar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.demo.is-idle[data-state="playing"] .demo__bar { opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; }
.demo__btn { position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.demo__btn:hover { background: rgb(255 255 255 / .16); }
.demo__btn:active { transform: scale(.92); }
.demo__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.demo__btn svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s ease, transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.demo__btn .i-play, .demo__btn .i-pause { fill: currentColor; stroke: none; }
.demo__btn .i-pause, .demo__btn .i-muted { opacity: 0; transform: scale(.4) rotate(-45deg); }
.demo[data-state="playing"] .demo__btn .i-play { opacity: 0; transform: scale(.4) rotate(45deg); }
.demo[data-state="playing"] .demo__btn .i-pause { opacity: 1; transform: none; }
.demo[data-muted="1"] .demo__btn .i-sound { opacity: 0; transform: scale(.4) rotate(45deg); }
.demo[data-muted="1"] .demo__btn .i-muted { opacity: 1; transform: none; }
.demo__time { flex: none; font: 500 12px var(--mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: .9; }
.demo__time span { opacity: .6; }
.demo__track { position: relative; flex: 1; min-width: 0; height: 28px; cursor: pointer; touch-action: none; }
.demo__track:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.demo__track i { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; transform-origin: left center; transition: height .2s ease, margin .2s ease; }
.demo__rail { width: 100%; background: rgb(255 255 255 / .25); }
.demo__buf { width: var(--buf, 0%); background: rgb(255 255 255 / .35); transition: width .4s ease, height .2s ease, margin .2s ease; }
.demo__fill { width: var(--pos, 0%); background: #fff; transition: width .25s linear, height .2s ease, margin .2s ease; box-shadow: 0 0 12px rgb(255 255 255 / .5); }
.demo__knob { position: absolute; top: 50%; left: var(--pos, 0%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .5); transform: scale(0); transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), left .25s linear; }
.demo__track:hover i, .demo.is-seeking .demo__track i { height: 6px; margin-top: -3px; }
.demo__track:hover .demo__knob, .demo.is-seeking .demo__knob, .demo__track:focus-visible .demo__knob { transform: scale(1); }
.demo.is-seeking .demo__fill, .demo.is-seeking .demo__knob { transition: none; }
.demo__plain { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: #fff; background: rgb(6 20 27 / .7); text-decoration: underline; }

.demo:fullscreen { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
.demo:-webkit-full-screen { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
@media (max-width: 560px) { .demo__time span, .demo__btn--mute { display: none; } .demo__btn { width: 36px; height: 36px; } }

@keyframes demo-drift { to { transform: scale(1.08) translate(-1.2%, -.8%); } }
@keyframes demo-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.95); opacity: 0; } }
@keyframes demo-shine { to { transform: translateX(130%); } }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-flash { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) {
    .demo__cover img, .demo__ring, .finale__card--video.is-in .demo__cover::before { animation: none; }
    .js .finale__card--video .demo, .js .finale__card--video .finale__cta { opacity: 1; transform: none; transition: none; }
    .demo__cover, .demo__bar, .demo__disc, .demo__btn svg, .demo__knob { transition: none; }
}
.finale__cta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.finale .btn { background: transparent; color: var(--dk-ink); border-color: #4a5c6a; }
.finale .btn:hover { border-color: var(--dk-ink); }
.finale .btn--primary { background: var(--dk-ink); color: #06141b; border-color: var(--dk-ink); }
.finale .btn--primary:hover { background: var(--dk-accent); border-color: var(--dk-accent); color: #06141b; }
.foot { border-top: 1px solid var(--rule); padding-block: clamp(40px, 6vw, 64px) 26px; }
.foot__top { display: grid; gap: 36px 48px; }
.foot__brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.foot__brand p { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.foot__social { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border: 1px solid var(--rule-2); border-radius: 99px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s, color .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.foot__social .i { width: 19px; height: 19px; }
.foot__social:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h3 { margin-bottom: 4px; color: var(--faint, var(--muted)); font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.foot__col a { width: fit-content; color: var(--ink-2); text-decoration: none; font-size: .95rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s ease; }
.foot__col a:hover { color: var(--accent); background-size: 100% 1px; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--rule); }
.foot__base p { color: var(--muted); font-size: .88rem; }
.foot__top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .2s; }
.foot__top-link .i { width: 15px; height: 15px; transform: rotate(-90deg); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.foot__top-link:hover { color: var(--accent); }
.foot__top-link:hover .i { transform: rotate(-90deg) translateX(3px); }
@media (min-width: 720px) { .foot__top { grid-template-columns: 1.4fr 1fr 1fr; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(6 20 27 / .8); backdrop-filter: blur(6px); }
.lightbox[open] { animation: panel-in .3s cubic-bezier(.2,.7,.2,1); }
.lightbox img { max-width: min(1400px, 94vw); max-height: 90vh; width: auto; height: auto; border-radius: 14px; box-shadow: var(--shadow-2); background: var(--surface); }
.lightbox__close { position: absolute; right: 10px; top: 10px; z-index: 2; box-shadow: var(--shadow-1); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #06141b; display: grid; place-items: center; cursor: pointer; }

/* ---------- reveal on scroll ---------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * .09s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- motion ------------------------------------------------------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes feed { from { transform: translateY(-101%); } }
@keyframes note-in { from { opacity: 0; } }
@keyframes note-text { from { transform: translateX(var(--sx)); } }
@keyframes leader { from { transform: scaleX(0); } }
@keyframes note-out { to { opacity: 0; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-11deg) scale(2.3); } }
@keyframes tear { 0% { transform: none; opacity: 1; } 20% { transform: translateY(8px) rotate(-1deg); } 100% { transform: translateY(70%) rotate(4deg); opacity: 0; } }
@keyframes slip-in { from { opacity: 0; transform: translateY(-36px) rotate(-8deg); } }
@keyframes swing { 0% { transform: rotate(-5deg); } 20% { transform: rotate(3.5deg); } 40% { transform: rotate(-2.2deg); } 60% { transform: rotate(1.2deg); } 80% { transform: rotate(-.5deg); } 100% { transform: none; } }
@keyframes slip-out { to { opacity: 0; transform: translateX(-26px) rotate(-9deg); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes lit { 0%, 18% { background: var(--ink); color: var(--bg); border-color: var(--ink); } 22%, 100% { background: var(--surface); color: var(--ink-2); border-color: var(--rule-2); } }
@keyframes dot { 0%, 18% { background: var(--accent); border-color: var(--accent); } 22%, 100% { background: var(--bg); border-color: var(--rule-2); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes shimmer { to { background-position: -180% 0; } }
@keyframes draw { 0% { stroke-dashoffset: 700; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -700; } }
@keyframes ring { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes gst { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: .25; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes gst-alt { 0%, 42% { opacity: .25; transform: scale(.92); } 50%, 92% { opacity: 1; transform: none; background: var(--accent); color: var(--on-accent); } 100% { opacity: .25; transform: scale(.92); } }
@keyframes slide-row { 0% { transform: translateX(-24px); opacity: 0; } 14%, 76% { transform: none; opacity: 1; } 100% { transform: translateX(24px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal], .flow__step, .rise { opacity: 1; transform: none; }
    .js .shot .shot__body, .js .shot .shot__phone { opacity: 1; }
    .shot { transform: translateY(var(--py, 0px)); }
    .shot__body::after { display: none; }
    .flow__rail i { transform: none; }
    .problem__before span { background-size: 100% 2px; }
    .switches .switch { background: var(--dk-accent); }
    .switches .switch i { transform: translateX(22px); }
}
