/* coffer landing page. Story-led, one idea per screen.
   Neutral surfaces, ink text, marigold used rarely. SF Pro only. */
:root {
  --bg: #fafafa; --surface: #ffffff; --sunk: #f3f4f5;
  --ink: #0c0d0e; --ink-soft: #4a4d52; --muted: #6b6e74; --faint: #7f838a; --line: #e4e5e8;
  --good: #12915a; --good-soft: #12915a1f; --warn: #d9780f; --warn-soft: #d9780f1f; --bad: #d6382a; --bad-soft: #d6382a1a;
  --accent: #f5a524; --accent-ink: #a86400; --accent-soft: #f5a5242b;
  --brand: #e8392a;
  --glow: 38 92% 56%;
  --lift: 0 1px 2px rgb(12 13 14 / .06), 0 2px 8px rgb(12 13 14 / .05);
  --lift2: 0 2px 4px rgb(12 13 14 / .06), 0 12px 28px rgb(12 13 14 / .09);
  --shadow: 0 30px 80px -20px rgb(12 13 14 / .28), 0 8px 24px rgb(12 13 14 / .08);
  --a-page: #fff8ec; --a-cell: #ffffff; --a-label: #1f1a14; --a-sec: #7a6e60; --a-line: #f1e6d3; --a-fill: #f3e9d8;
  --font: ui-sans-serif, -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --out: cubic-bezier(.2, .7, .2, 1); --pop: cubic-bezier(.3, 1.5, .5, 1); --move: cubic-bezier(.5, 0, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0d; --surface: #141516; --sunk: #1a1b1d;
    --ink: #f2f3f4; --ink-soft: #b4b7bc; --muted: #8d9197; --faint: #7b7f85; --line: #26282b;
    --good: #3ddc97; --good-soft: #3ddc971f; --warn: #ffa04a; --warn-soft: #ffa04a1f; --bad: #ff6b5a; --bad-soft: #ff6b5a1f;
    --accent: #ffb547; --accent-ink: #ffc266; --accent-soft: #ffb54733;
    --brand: #ff6a52;
    --lift: 0 1px 2px rgb(0 0 0 / .4); --lift2: 0 12px 28px rgb(0 0 0 / .45); --shadow: 0 30px 80px -20px rgb(0 0 0 / .7);
    --a-page: #15110b; --a-cell: #211b12; --a-label: #fbf4e8; --a-sec: #b9aa95; --a-line: #3a3022; --a-fill: #2c2418;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0d; --surface: #141516; --sunk: #1a1b1d;
  --ink: #f2f3f4; --ink-soft: #b4b7bc; --muted: #8d9197; --faint: #7b7f85; --line: #26282b;
  --good: #3ddc97; --good-soft: #3ddc971f; --warn: #ffa04a; --warn-soft: #ffa04a1f; --bad: #ff6b5a; --bad-soft: #ff6b5a1f;
  --accent: #ffb547; --accent-ink: #ffc266; --accent-soft: #ffb54733;
  --brand: #ff6a52;
  --lift: 0 1px 2px rgb(0 0 0 / .4); --lift2: 0 12px 28px rgb(0 0 0 / .45); --shadow: 0 30px 80px -20px rgb(0 0 0 / .7);
  --a-page: #15110b; --a-cell: #211b12; --a-label: #fbf4e8; --a-sec: #b9aa95; --a-line: #3a3022; --a-fill: #2c2418;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(960px, 100% - 48px); margin-inline: auto; }

/* Type */
h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.05em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
h1 span, h2 span { display: block; color: var(--faint); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 42ch; margin: 20px auto 0; text-wrap: balance; }
.label { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { margin: 0 0 18px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50; transition: transform .4s var(--out);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 -1px 0 var(--line);
}
.hdr.hide { transform: translateY(-110%); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--lift); }
.brand svg { height: 20px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-soft); padding: 10px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); }

/* Buttons and tags */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: -.01em;
  border: 0; cursor: pointer; transition: transform .2s var(--out), box-shadow .2s var(--out);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--lift2); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--out); }
.btn:hover svg { transform: translateX(3px); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line);
}
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag.good { color: var(--good); background: var(--good-soft); }
.tag.soon { color: var(--warn); background: var(--warn-soft); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Reveal. Only when scripting runs, so no-JS visitors see everything. */
@media (scripting: enabled) {
  .rv { opacity: 0; filter: blur(14px); transform: translateY(22px); transition: opacity .9s ease, filter .9s ease, transform .9s var(--out); transition-delay: calc(var(--d, 0) * 1ms); }
  .rv.in { opacity: 1; filter: none; transform: none; }
}

/* Glows, used scarcely */
.glow-host { position: relative; isolation: isolate; }
.glow-host::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -8% -14%;
  background: radial-gradient(closest-side, hsl(var(--glow)), transparent); filter: blur(80px); opacity: var(--gl, .26);
}
:root[data-theme="dark"] .glow-host::before { opacity: calc(var(--gl, .26) * .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow-host::before { opacity: calc(var(--gl, .26) * .7); } }
.glow-hero::before { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-2.5%, 0); } to { transform: translate(2.5%, 2%); } }

/* Sections */
section { padding: 200px 0 0; text-align: center; }
.hero { padding: 72px 0 0; }
.hero h1 { margin-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; }
.hero-shot { margin: 72px auto 0; width: min(100%, 340px); }

/* Phone and app mock (the product, drawn live) */
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 18.4; border-radius: 46px; background: var(--a-page);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow); padding: 14px 14px 0; overflow: hidden; text-align: left; color: var(--a-label);
}
.phone .notch { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #0c0d0e; }
.a-title { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 44px 8px 10px; }
.a-month { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 12px; font-size: 14px; font-weight: 600; }
.a-month i { width: 26px; height: 26px; border-radius: 50%; background: var(--a-fill); }
.a-card { background: var(--a-cell); border-radius: 22px; padding: 16px; box-shadow: inset 0 0 0 1px var(--a-line); }
.a-card small { display: block; color: var(--a-sec); font-size: 12.5px; font-weight: 600; }
.a-total { font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.a-total em { font-style: normal; font-size: 22px; color: var(--a-sec); }
.a-note { color: var(--a-sec); font-size: 12px; }
.a-meter { height: 8px; border-radius: 999px; background: var(--a-fill); margin: 12px 0 8px; overflow: hidden; }
.a-meter b { display: block; height: 100%; width: 4%; border-radius: 999px; background: var(--accent); transform-origin: left; }
.a-row2 { display: flex; justify-content: space-between; font-size: 12px; color: var(--a-sec); }
.a-row2 strong { color: var(--a-label); font-size: 13px; }
.a-list { margin-top: 12px; background: var(--a-cell); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--a-line); overflow: hidden; }
.a-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.a-row + .a-row { box-shadow: inset 0 1px 0 var(--a-line); }
.a-ic { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.a-ic svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-row b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.a-row span { display: block; font-size: 11.5px; color: var(--a-sec); }
.a-row .amt { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.c-food { background: #f0904a; } .c-groc { background: #b08968; } .c-auto { background: #3ba7f5; } .c-tea { background: #2bb673; }
.a-plus {
  position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: var(--brand);
  display: grid; place-items: center; box-shadow: 0 8px 20px rgb(232 57 42 / .35);
}
.a-plus svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.a-plus.press { animation: press .5s var(--pop); }
@keyframes press { 40% { transform: scale(.86); } }

/* Pinned story */
.pin { --n: 7; height: calc(100svh + (var(--n) - 1) * 55svh); padding: 0; }
.pin-in { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; align-content: center; justify-items: center; gap: 28px; padding: 76px 24px 40px; }
@media (scripting: enabled) { .pin:not(.ready) .pin-in > * { opacity: 0; } }
.pin-text { max-width: 640px; transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.pin-text.swap { opacity: 0; filter: blur(10px); transform: translateY(10px); }
.pin-text h2 { font-size: clamp(30px, 4.6vw, 52px); }
.pin-text p { margin: 14px auto 0; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 19px); max-width: 38ch; }
.pin-text .label { transition: color .3s ease; }
.pin[data-act="bad"] .pin-text .label { color: var(--bad); }
.pin[data-act="good"] .pin-text .label { color: var(--good); }
.stage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: min(860px, 100%); }
.pl {
  position: relative; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--lift); padding: 16px 12px 14px;
  transition: opacity .6s var(--out), transform .6s var(--out), filter .6s var(--out), box-shadow .5s ease;
}
@media (scripting: enabled) { .pl:not(.on) { opacity: .5; box-shadow: none; outline: 1.5px dashed var(--line); outline-offset: -1.5px; background: transparent; } .pl:not(.on) .name, .pl:not(.on) .amt { opacity: 0; } }
.pl .name, .pl .amt { transition: opacity .5s ease .15s; }
.pl.on { opacity: 1; transform: none; filter: none; }
.pl svg { width: 100%; height: 84px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pl .dr { stroke-dasharray: 1; transition: stroke-dashoffset 1.1s var(--out) calc(var(--i, 0) * 90ms); }
.pl .dr { stroke-dashoffset: 0; }
@media (scripting: enabled) { .pl:not(.on) .dr { stroke-dashoffset: 1; } }
.pl .soft { stroke: none; fill: var(--ink); opacity: .06; }
.pl .name { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.pl .amt { display: block; margin-top: 2px; font: 500 12px var(--mono); color: var(--muted); }
.pl .stamp { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--good); display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--pop); }
.pl .stamp svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pin[data-act="bad"] .pl.on { box-shadow: inset 0 0 0 1px var(--bad), var(--lift); }
.pin[data-act="bad"] .pl.on .amt::after { content: " ?"; color: var(--bad); }
.pin[data-act="good"] .pl.on { box-shadow: inset 0 0 0 1px var(--good), var(--lift); }
.pin[data-act="good"] .pl.on .stamp { transform: scale(1); }
.pin[data-act="good"] .pl.on svg { stroke: var(--good); }
.meter { width: min(360px, 100%); text-align: left; }
.meter .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.meter .val { font: 500 13px var(--mono); transition: color .4s ease; }
.pin[data-act="bad"] .meter .val { color: var(--bad); }
.pin[data-act="good"] .meter .val { color: var(--good); }
.bar { height: 6px; border-radius: 999px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar b { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--good); transition: transform 1.1s var(--move), background .4s ease; }
.pin::before { content: ""; position: absolute; }
.pin-glow { position: absolute; inset: auto 0 12% 0; height: 420px; z-index: -1; pointer-events: none; margin: auto; width: min(780px, 100%); border-radius: 50%; filter: blur(90px); opacity: .22; background: radial-gradient(closest-side, hsl(var(--g, 6 80% 58%)), transparent); transition: background .8s ease; }
.pin[data-act="good"] { --g: 150 70% 45%; }
.pin-in { isolation: isolate; }

/* How */
.how { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 56px; align-items: center; margin-top: 64px; text-align: left; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; padding: 18px 20px 18px 64px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s ease, transform .4s var(--out); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--mono); background: var(--sunk); color: var(--muted); transition: background .4s ease, color .4s ease; }
.steps li p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }
.steps li.on { box-shadow: inset 0 0 0 1px var(--ink), var(--lift); }
.steps li.on::before { background: var(--ink); color: var(--bg); }
.timer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.timer .label b { color: var(--ink); font-weight: 500; }
.demo-phone { position: relative; }
.demo-phone .phone { aspect-ratio: 9 / 16; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--a-cell); border-radius: 26px 26px 0 0; padding: 14px 18px 20px; box-shadow: 0 -10px 30px rgb(0 0 0 / .12), inset 0 0 0 1px var(--a-line); transform: translateY(105%); transition: transform .55s var(--out); }
.sheet.in { transform: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--a-line); margin: 0 auto 14px; }
.sheet .amount { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; min-height: 44px; font-variant-numeric: tabular-nums; }
.sheet .amount i { display: inline-block; width: 2px; height: .85em; background: var(--accent); margin-left: 2px; vertical-align: -.05em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cats { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.cat { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--a-fill); font-size: 13px; display: inline-flex; align-items: center; transition: background .3s ease, color .3s ease, transform .3s var(--pop); }
.cat.sel { background: var(--accent); color: #1f1a14; transform: scale(1.04); }
.save { display: block; text-align: center; height: 44px; line-height: 44px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; transition: transform .3s var(--pop); }
.save.press { transform: scale(.95); }
.a-row.new { animation: drop .7s var(--out); background: var(--accent-soft); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }

/* Insight */
.insight-card { margin: 56px auto 0; max-width: 640px; padding: 28px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--lift2); text-align: left; }
.insight-card .say { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -.03em; font-weight: 600; margin: 0 0 24px; text-wrap: balance; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.chart i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); height: var(--h); transform-origin: bottom; transition: transform .9s var(--out) calc(var(--i) * 55ms); }
.chart i.cur { background: var(--accent); box-shadow: none; }
@media (scripting: enabled) { .insight-card:not(.in) .chart i { transform: scaleY(0); } }
.axis { display: flex; gap: 10px; margin-top: 8px; }
.axis span { flex: 1; text-align: center; font: 500 10.5px var(--mono); color: var(--muted); }
.insight-card .src { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Keys */
.keys { margin: 56px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 820px; }
.node { padding: 22px 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--lift); text-align: center; }
.node svg { width: 56px; height: 56px; margin: 0 auto 10px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.node p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.node .bytes { margin-top: 10px; font: 500 11px/1.5 var(--mono); color: var(--faint); word-break: break-all; }
.lock { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: var(--lift2); }
.lock svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.words { margin: 40px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; max-width: 640px; }
.words span { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px var(--mono); color: var(--ink-soft); transition: opacity .4s ease, transform .5s var(--pop); transition-delay: calc(var(--i) * 60ms); }
.words span b { color: var(--muted); font-weight: 500; font-size: 11px; }
.keys-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
@media (scripting: enabled) { .words:not(.in) span { opacity: 0; transform: scale(.8); } }
.line-flow { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* Promises */
.promises { margin: 56px auto 0; max-width: 720px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--lift); overflow: hidden; text-align: left; }
.promises [role="row"] { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; }
.promises [role="row"] + [role="row"] { box-shadow: inset 0 1px 0 var(--line); }
.promises [role="rowheader"] { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.promises [role="rowheader"] small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.promises .asof { text-align: center; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* Close */
.close-card { position: relative; isolation: isolate; margin: 0 auto; padding: 88px 24px 80px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); text-align: center; overflow: hidden; }
.close-card::before { content: ""; position: absolute; z-index: -1; inset: -40% 10% auto; height: 80%; background: radial-gradient(closest-side, hsl(var(--glow)), transparent); filter: blur(80px); opacity: .22; }
.close-card .app-mark { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 28px; box-shadow: var(--lift2); }
.friction { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.soon-row { display: inline-flex; align-items: center; gap: 12px; }

/* Footer */
footer { margin-top: 160px; padding: 36px 0 56px; box-shadow: inset 0 1px 0 var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.foot a { text-decoration: none; padding: 10px 12px; border-radius: 999px; color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }
.foot .wm { height: 18px; width: auto; color: var(--brand); }

/* Phones */
@media (max-width: 760px) {
  section { padding-top: 130px; }
  .hero { padding-top: 48px; }
  .stage { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pl svg { height: 64px; }
  .pin-in { gap: 18px; padding-top: 72px; }
  .how { grid-template-columns: 1fr; gap: 36px; }
  .demo-phone { max-width: 280px; margin: 0 auto; }
  .keys { grid-template-columns: 1fr; }
  .lock { margin: 0 auto; }
  .nav a.opt { display: none; }
  .insight-card { padding: 20px; }
}
@media (pointer: coarse) { .btn, .nav a, .foot a { min-height: 44px; } }

/* Reduced motion: everything is simply there. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; filter: none !important; transform: none !important; }
  .pl { opacity: 1; transform: none; filter: none; }
  .pl .dr { stroke-dashoffset: 0; }
  .words span { opacity: 1 !important; transform: none; }
  .chart i { transform: none; }
}
html.fx .gs { will-change: transform, filter; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#closeFocus { display: inline-block; }
.a-meter b { transition: width .8s var(--out); animation: grow 1.2s var(--out) .6s both; }
@keyframes grow { from { transform: scaleX(0); } }
.wm { aspect-ratio: 4543 / 1451; }
.nav a.btn { color: var(--bg); padding: 0 16px; }
.nav a.btn:hover { color: var(--bg); }
.pin-text p.label { font-size: 10.5px; max-width: none; margin: 0 0 18px; color: var(--muted); }
.pin[data-act="good"] .pl.on .stamp svg { stroke: #fff; height: 12px; }
.pl .stamp svg { height: 12px; }
.brand svg.wm { height: 20px; width: 63px; }
.foot svg.wm { height: 18px; width: 56px; }
#closeFocus { color: var(--ink); }
#how { padding-top: 120px; }
.keys { align-items: stretch; }
.keys .line-flow { align-self: center; }

/* Header: the light and dark switch and the one main button. */
.nav { gap: 10px; }
.theme-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); transition: color .2s ease, box-shadow .2s ease; }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ic-moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .ic-sun { display: block; }
}
@media (pointer: coarse) { .theme-btn { width: 44px; height: 44px; } }
