/**
 * the look of the public landing page (lib/landing-page.js): the left panel, the moving meadow, the glass grant card,
 * & the phone layout. the fonts & images it names sit next to it in public/landing, which stays open w/o a password.
 *
 * - came from paul's page; the only additions are at the bottom (the password form, messages, & no-js), plus the
 *   route (from -> to) on the card, redrawn as a sunken channel the amount runs through from the funder's tile to the
 *   nonprofit's, & the sign-up, restyled as a serif "i'm a funder / nonprofit" line & the email on one rule w/ a
 *   round arrow (the password box gets the same look)
 *
 * last updated 2026-11-05
 * -kofi :)
 */
@font-face { font-family: "Geist"; src: url(/landing/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/landing/geist-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/landing/geist-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tiempos Headline"; src: url(/landing/tiempos-headline-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
:root {
  color-scheme: light;
  --page: #d9d4cb; --paper: #f7f6f2;
  --ink: #1b2725; --ink-2: #4c5955; --muted: #66706c; --faint: #9aa29e;
  --line: rgba(27, 39, 37, .12); --green: #2f4a43;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Tiempos Headline", Georgia, serif;
  --logo: url("/landing/logo.webp");
  --engraving: url("/landing/engraving.webp");
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--page); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow: hidden; font-feature-settings: "kern" 1, "liga" 1; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }

.frame { position: fixed; inset: 14px; border-radius: 12px; overflow: hidden; background: var(--paper);
  display: grid; grid-template-columns: minmax(460px, 44%) 1fr; box-shadow: 0 40px 80px -44px rgba(40, 50, 40, .4); }

/* ---------------- left: the page ---------------- */
.panel { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 50px) clamp(28px, 4vw, 60px) clamp(24px, 3vw, 40px); }
.top { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; width: clamp(104px, 8.6vw, 124px); aspect-ratio: 652 / 228; background: #1e3530;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.copy { margin: auto 0; padding: 5vh 0; container-type: inline-size; }
h1 { font-family: var(--serif); font-weight: 300; color: #212b28;
  font-size: min(calc(100cqi / 13.4), 6.2vh, 54px); line-height: 1.08; letter-spacing: -.022em; }
h1 span { display: block; white-space: nowrap; }
.lede { margin-top: 20px; max-width: 29em; font-size: clamp(14.5px, 1.05vw, 15.5px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.act { margin-top: clamp(24px, 3.6vh, 36px); max-width: 440px; }
/* the sign-up reads as a sentence in the headline's serif: "I'm a funder / nonprofit", then the email on a single
   rule w/ a round arrow to send it. the chosen word is ink & underlined; the underline draws in from the left */
.switch { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .26em; font-family: var(--serif); font-weight: 300;
  font-size: min(calc(100cqi / 19), 4vh, 30px); line-height: 1.2; letter-spacing: -.015em; color: #212b28; }
.switch button { position: relative; border: 0; background: none; padding: 0 0 .06em; font: inherit; letter-spacing: inherit; color: #a6aca9; cursor: pointer; transition: color .3s ease; }
.switch button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: 1.5px; border-radius: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.switch button[aria-pressed="true"] { color: #212b28; cursor: default; }
.switch button[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: left; }
.switch button[aria-pressed="false"]:hover { color: var(--muted); }
.switch button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 3px; }
.switch .sep { color: #c9ccc8; font-style: italic; }
form { margin-top: clamp(14px, 2.4vh, 22px); display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(27,39,37,.16); transition: border-color .25s ease; }
form:focus-within { border-color: rgba(27,39,37,.5); }
input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; padding: 0; font-family: var(--serif); font-weight: 300;
  font-size: min(calc(100cqi / 19), 4vh, 30px); letter-spacing: -.015em; color: #212b28; }
input::placeholder { color: #a6aca9; font-style: italic; }
/* no focus box on the email: the rule under it darkens instead (form:focus-within) */
input:focus-visible { outline: none; }
input:disabled { color: var(--muted); }
.cta { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--paper); background: var(--ink);
  box-shadow: 0 10px 22px -10px rgba(27,39,37,.55), 0 2px 5px rgba(27,39,37,.12); transition: background .2s, transform .2s cubic-bezier(.3,1.4,.6,1), box-shadow .2s; }
.cta svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s ease, transform .3s ease; }
.cta .ok { opacity: 0; transform: scale(.6); }
.cta.done .go { opacity: 0; transform: translateX(6px); }
.cta.done .ok { opacity: 1; transform: none; }
.cta:hover:not(:disabled) { background: #000; transform: translateX(2px); }
.cta:active:not(:disabled) { transform: scale(.96); }
.cta:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.cta:disabled { cursor: default; }
.cta.done { background: var(--green); }
.fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); min-height: 1.3em; }
.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12px; color: var(--faint); }
.foot b { font-weight: 500; color: var(--ink-2); }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------------- right: the light ---------------- */
.field { position: relative; overflow: hidden; background: #bcd9cf; isolation: isolate; }
.field::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,246,242,1) 0%, rgba(247,246,242,.8) 9%, rgba(247,246,242,.55) 20%, rgba(247,246,242,.32) 34%, rgba(247,246,242,.14) 52%, rgba(247,246,242,.04) 74%, rgba(247,246,242,0) 100%); }
.blobs { position: absolute; inset: -25%; filter: blur(70px) saturate(115%); }
.blob { position: absolute; border-radius: 50%; animation: drift 30s ease-in-out infinite alternate; will-change: transform; }
.b1 { width: 90%; height: 46%; left: 0;   top: -8%; background: #8fc6ea; }
.b2 { width: 50%; height: 36%; left: 52%; top: -2%; background: #e2eef2; animation-duration: 36s; }
.b3 { width: 42%; height: 24%; left: 30%; top: 24%; background: #f0e2aa; opacity: .75; animation-duration: 28s; }
.b4 { width: 30%; height: 22%; left: 68%; top: 26%; background: #efc3d6; opacity: .5; animation-duration: 41s; }
.b5 { width: 85%; height: 46%; left: -5%; top: 38%; background: #86bb55; animation-duration: 25s; }
.b6 { width: 60%; height: 50%; left: 48%; top: 44%; background: #4f8a43; animation-duration: 33s; }
.b7 { width: 60%; height: 36%; left: 12%; top: 68%; background: #2f6b3c; animation-duration: 29s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(5%,-4%,0) scale(1.1); } }
.grain { position: absolute; inset: 0; z-index: 2; opacity: .36; mix-blend-mode: overlay; pointer-events: none; background-image: var(--noise); }
.dots { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.3px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 40% at 62% 22%, #000 12%, transparent 75%); mask-image: radial-gradient(ellipse 60% 40% at 62% 22%, #000 12%, transparent 75%); }
.words { position: absolute; z-index: 2; left: 24%; top: clamp(96px, 13vh, 130px); margin: 0; pointer-events: none;
  font: 400 10px/1.95 var(--mono); letter-spacing: .04em; color: rgba(255,255,255,.78); white-space: pre;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 30% 20%, #000 12%, transparent 72%); mask-image: radial-gradient(ellipse 80% 85% at 30% 20%, #000 12%, transparent 72%); }
.glow { position: absolute; z-index: 2; left: 10%; right: -10%; bottom: 26%; height: 28%; pointer-events: none; background: radial-gradient(ellipse at 60% 60%, rgba(255,246,214,.4), transparent 65%); }
/* the coast, etched into the meadow in white light */
.engraving { position: absolute; z-index: 3; left: -4%; right: -6%; bottom: -2px; aspect-ratio: 1600 / 683; background: #fff; opacity: 0; pointer-events: none;
  -webkit-mask: var(--engraving) left bottom / 100% 100% no-repeat, linear-gradient(90deg, transparent 4%, rgba(0,0,0,.4) 14%, #000 30%);
  -webkit-mask-composite: source-in;
  mask: var(--engraving) left bottom / 100% 100% no-repeat, linear-gradient(90deg, transparent 4%, rgba(0,0,0,.4) 14%, #000 30%);
  mask-composite: intersect; transform-origin: 20% 100%; animation: breathe 14s ease-in-out infinite alternate; transition: opacity 1.6s ease .4s; }
body.ready .engraving { opacity: .34; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.012); } }
/* hairlines framing the pane, running out to the edges */
.hl { position: absolute; z-index: 2; pointer-events: none; background: rgba(255,255,255,.55); opacity: 0; transition: opacity 1.4s ease 1s; }
.hl.h { left: 0; right: 0; height: 1px; }
.hl.v { top: 0; width: 1px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
body.ready .hl { opacity: 1; }

nav { position: absolute; z-index: 8; top: clamp(24px, 3.2vw, 44px); right: clamp(24px, 3.2vw, 44px); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.1)), rgba(24,58,40,.06);
  border: 1px solid rgba(255,255,255,.44);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.34) inset, 0 30px 60px -30px rgba(15,40,25,.42);
}
nav .pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--paper); background: var(--ink); text-decoration: none; font-weight: 500; }

/* the glass pane: one grant, moving */
.pane { position: absolute; z-index: 7; left: 54%; top: 55%; transform: translate(-50%, -50%); width: min(430px, 78%);
  border-radius: 16px; padding: 18px 20px 16px; color: #fff; text-shadow: 0 1px 14px rgba(15,45,28,.18); }
.p-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.p-id { font-size: 12px; opacity: .72; }
.p-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38); white-space: nowrap; transition: background .5s, color .5s, border-color .5s; }
.p-state { overflow: hidden; transition: width .45s cubic-bezier(.4,0,.2,1), background-color .5s ease, color .5s ease, border-color .5s ease; }
.p-state i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: breathe-dot 1.6s ease-in-out infinite; }
#pStateText { display: inline-block; transition: opacity .25s ease, transform .25s ease; }
.p-state.flip #pStateText { opacity: 0; transform: translateY(-4px); }
@keyframes breathe-dot { 50% { opacity: .35; } }
.p-state.done { background: #fff; color: var(--green); border-color: #fff; }
.p-state.done i { animation: none; background: #d6a62a; }
.p-amt-row { margin-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.p-fee { margin-bottom: 5px; font-size: 12px; opacity: .8; white-space: nowrap; }
.p-fee b { font-weight: 500; opacity: 1; }
/* the route: a sunken channel w/ the funder's tile at one end & the nonprofit's at the other. on "verified" the
   amount leaves as a chip & runs the channel, drawing the line behind it; when it lands the nonprofit's tile rings,
   gets a gold check, & the credit counts up. landing.js moves the chip; everything else here keys off .sent/.arrived */
.p-route { position: relative; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.p-chan { grid-column: 1 / -1; position: relative; height: 50px; border-radius: 14px; text-shadow: none;
  background: linear-gradient(180deg, rgba(28,58,20,.16), rgba(28,58,20,.07));
  box-shadow: inset 0 1px 2px rgba(20,45,15,.18), inset 0 0 0 1px rgba(255,255,255,.22), 0 1px 0 rgba(255,255,255,.35); }
.wire { position: absolute; top: 0; bottom: 0; left: 41px; right: 41px; overflow: hidden; }
.wire .dots { position: absolute; inset: 0; opacity: .2; background: radial-gradient(circle, #fff .55px, transparent .9px) 0 1px / 5.5px 5.5px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.lane { position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; margin-top: -1px; overflow: hidden; }
.lane i { position: absolute; left: 0; top: .5px; width: 100%; height: 1px; }
.lane .dash { background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 4px); animation: dash-drift .4s linear infinite; transition: opacity .25s ease; }
.lane .rail { background: rgba(255,255,255,.28); opacity: 0; transition: opacity .25s ease; }
.lane .solid { background: rgba(255,255,255,.9); transform-origin: left; transform: scaleX(0); }
.lane .trail { top: 0; height: 2px; left: 0; width: 0; border-radius: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); opacity: 0; }
.lane .shim { top: 0; height: 2px; left: -60px; width: 60px; border-radius: 1px; opacity: 0; background: linear-gradient(90deg, rgba(255,246,216,0), #fff6d8, rgba(255,246,216,0)); }
@keyframes dash-drift { to { background-position: 4px 0; } }
.port { position: absolute; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #bfe08c; box-shadow: 0 0 0 1px #fff; transition: background .2s; }
.port.a { left: 8px; } .port.b { left: calc(100% - 8px); }
.chip { position: absolute; left: 0; top: 50%; display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 6px; border-radius: 6px; white-space: nowrap;
  font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(180deg, #2c4f24, #1f3b19); transform: translate(-200px, -50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px rgba(15,35,10,.35), 0 6px 12px -6px rgba(10,30,5,.7); }
.chip > i { flex: none; width: 4.5px; height: 4.5px; border-radius: 1.5px; background: linear-gradient(180deg, #f0d27a, #c99d24); box-shadow: 0 0 5px rgba(240,210,122,.75); }
.tile { position: absolute; top: 9px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; }
.tile > span { position: relative; }
.tile.f { left: 9px; color: #f4f8ee; background: linear-gradient(180deg, #3b6531, #27461f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(15,35,10,.3), 0 5px 10px -5px rgba(10,30,5,.55); }
.tile.n { right: 9px; color: #2a4a22; background: linear-gradient(180deg, #fff, #f0f5ea);
  box-shadow: inset 0 -1px 0 rgba(30,60,20,.08), 0 0 0 1px rgba(20,45,15,.12), 0 5px 10px -5px rgba(20,50,15,.45); }
/* the glint is a diagonal band painted across the whole tile & swept by background-position, so it always runs the
   tile's full height (a tilted bar moved sideways only ever crossed part of it at a time) */
.tile .sheen { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 62%) 100% 0 / 300% 100% no-repeat; }
.tile .clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.tile .badge { position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(0); transition: transform .3s ease, opacity .3s ease;
  background: linear-gradient(180deg, #e6c55c, #c49a1f); box-shadow: 0 0 0 1.5px #fff, 0 2px 6px -2px rgba(120,90,10,.5); }
.tile .badge svg { width: 7px; height: 7px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.p-chan .ring { position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.p-route.sent .tile.f { animation: press .24s ease-in-out .3s; }
.p-route.sent .tile.f .sheen { animation: sheen .55s cubic-bezier(.45,0,.3,1) .3s; }
.p-route.sent .dash { opacity: 0; }
.p-route.sent .rail { opacity: 1; }
.p-route.arrived .port.b { background: #fff; }
.p-route.arrived .tile.n { animation: land .3s ease-in-out; }
.p-route.arrived .ring { animation: ring .62s cubic-bezier(.16,1,.3,1); }
.p-route.arrived .ring.r2 { animation: ring2 .62s cubic-bezier(.16,1,.3,1) .12s backwards; }
.p-route.arrived .badge { opacity: 1; transform: scale(1); transition: transform .32s cubic-bezier(.34,1.7,.64,1) .22s, opacity 0s .22s; }
.p-route.arrived .shim { animation: shim 3.2s linear 1.6s infinite; }
@keyframes press { 50% { transform: translateY(1.5px) scale(.96); } }
@keyframes land { 50% { transform: scale(1.045); } }
@keyframes sheen { from { opacity: 1; background-position: 100% 0; } to { opacity: 1; background-position: 0 0; } }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
@keyframes ring2 { from { opacity: .35; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
@keyframes shim { 0% { left: -60px; opacity: 0; } 22% { opacity: 1; } 45% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
.party { min-width: 0; margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; }
.party.to { align-items: flex-end; text-align: right; }
.p-role { font-size: 9.5px; line-height: 1; letter-spacing: .09em; text-transform: uppercase; opacity: .7; }
.party b { margin-top: 6px; max-width: 100%; font-size: 14px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.party.to b { opacity: .8; transition: opacity .6s ease; }
.p-route.arrived .party.to b { opacity: 1; }
.p-led { margin-top: 4px; font-size: 10.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.72); }
.p-led .v { color: #fff; }
.p-led.debit { opacity: 0; transition: opacity .25s ease; }
.p-route.sent .p-led.debit { opacity: 1; transition: opacity .3s cubic-bezier(.16,1,.3,1) .5s; }
.p-led.credit { display: grid; justify-items: end; }
.p-led.credit > span { grid-area: 1 / 1; transition: opacity .16s ease; }
.p-led.credit .got { opacity: 0; }
.p-route.arrived .p-led.credit .wait { opacity: 0; transition-duration: .11s; }
.p-route.arrived .p-led.credit .got { opacity: 1; transition-delay: .11s; }
/* b/w grants the channel stays put: the line, check & ledger ease back, & only the words change, w/ the same lift &
   fade the status pill uses */
.p-route .flip, .p-route .party .flip { transition: opacity .22s ease, transform .22s ease, filter .22s ease; }
.p-route .party .flip.out, .p-route .flip.out { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
.p-route .party .flip.in, .p-route .flip.in { opacity: 0; transform: translateY(4px); filter: blur(2px); transition: none; }
.p-detail { position: relative; height: 26px; margin-top: 12px; font-size: 12.5px; overflow: hidden; }
.p-detail > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; transition: opacity .35s ease, transform .35s ease; }
.p-detail .faces { display: inline-flex; padding-left: 4px; margin-right: 2px; }
.p-detail .faces i { width: 20px; height: 20px; margin-left: -5px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); display: grid; place-items: center; font-style: normal; font-size: 7.5px; font-weight: 500; color: #fff; }
.p-detail .faces i:nth-child(1) { background: #5f8a6a; } .p-detail .faces i:nth-child(2) { background: #b49a6a; } .p-detail .faces i:nth-child(3) { background: #7d8fa3; }
.p-detail .faces i.more { background: rgba(255,255,255,.9); color: var(--green); }
.doc, .key { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 6px; font-size: 11.5px; white-space: nowrap;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.doc .sect { font-family: var(--mono); font-size: 11px; opacity: .9; }
.doc .ext { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; opacity: .7; margin-left: 1px; }
.doc .thumb { display: inline-block; flex: none; width: 9px; height: 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 1.5px;
  background: repeating-linear-gradient(180deg, transparent 0 2.2px, rgba(255,255,255,.7) 2.2px 2.9px) 2px 3px / 4px 6px no-repeat; }
.key { background: #fff; color: var(--green); border-color: #fff; font-weight: 500; }
.key svg { width: 11px; height: 11px; }
.p-head svg { width: 15px; height: 15px; flex: none; }
.p-time { margin-left: auto; font-size: 12px; opacity: .9; }
.p-amt { font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-amt small { font-size: 20px; letter-spacing: -.01em; opacity: .68; }
.p-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.p-track i { position: relative; display: block; height: 2px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.p-track b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .55s cubic-bezier(.4,0,.2,1); }
.p-track i.on b { transform: scaleX(1); transition: transform .8s cubic-bezier(.55,0,.2,1); }
/* draining: the last bar empties first & the rest follow, like the progress running backwards */
.p-track i:nth-child(3) b, .p-steps span:nth-child(3) { transition-delay: .12s; }
.p-track i:nth-child(2) b, .p-steps span:nth-child(2) { transition-delay: .24s; }
.p-track i:nth-child(1) b, .p-steps span:nth-child(1) { transition-delay: .36s; }
.p-track i.on:nth-child(n) b, .p-steps span.on:nth-child(n) { transition-delay: 0s; }
.p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; font-size: 10.5px; }
.p-steps span { opacity: .5; transition: opacity .4s ease; }
.p-steps span.on { opacity: 1; }
.p-detail > span.out { opacity: 0; transform: translateY(-6px); }
.p-detail > span.in { opacity: 0; transform: translateY(6px); }
.pane .swap { transition: opacity .45s ease, filter .45s ease; }
.pane.swapping .swap { opacity: 0; filter: blur(4px); }
.pane .done-mark { display: none; }
.pane.complete .p-title-text::after { content: ""; }

.toast { position: absolute; z-index: 8; display: flex; align-items: center; gap: 11px; padding: 9px 15px 9px 9px; border-radius: 12px; color: #fff; font-size: 12.5px; line-height: 1.3;
  background: rgba(22,48,34,.42); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 22px 44px -22px rgba(10,30,20,.6);
  opacity: 0; translate: 0 8px; transition: opacity .5s ease, translate .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.toast.on { opacity: 1; translate: 0 0; }
.toast .ring { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.toast .ring svg { width: 13px; height: 13px; }
.toast em { display: block; font-style: normal; opacity: .7; }

/* drifting seeds */
.seeds { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.seed { position: absolute; left: 0; top: 0; width: 100px; height: 100px; will-change: transform, opacity, filter; }
.seed img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }

/* opening */
[data-in] { opacity: 0; translate: 0 14px; transition: opacity .9s ease calc(var(--d, 0) * 85ms + 120ms), translate 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0) * 85ms + 120ms); }
body.ready [data-in] { opacity: 1; translate: 0 0; }
.pane[data-in] { translate: 0 30px; transition-duration: 1.2s, 1.4s; }
body.ready .pane[data-in] { translate: 0 0; }
.blobs { opacity: 0; transition: opacity 1.8s ease .1s; }
body.ready .blobs { opacity: 1; }
body.quick [data-in] { transition-duration: .5s, .6s; transition-delay: calc(var(--d, 0) * 30ms); }

.m-only { display: none; }
@media (max-width: 900px) {
  body { overflow: auto; height: auto; padding: 10px; }
  .frame { position: relative; inset: auto; min-height: calc(100dvh - 20px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 560px; }
  .m-only { display: revert; }
  .panel { padding: 20px 22px 30px; }
  .copy { margin: 0; padding: 48px 0 8px; }
  h1 { font-size: calc(100cqi / 13.4); }
  .lede { font-size: 15.5px; }
  .act { max-width: none; }
  .switch, input { font-size: max(18px, calc(100cqi / 18)); }
  .panel > .foot { display: none; }
  .fine:empty { display: none; }
  nav, .words, .hl { display: none; }
  .field::before { inset: 0 0 auto 0; width: auto; height: 110px; background: linear-gradient(180deg, var(--paper), rgba(247,246,242,0)); }
  .engraving { left: -30%; right: -40%; }
  .pane { left: 50%; top: 46%; width: calc(100% - 36px); }
  .m-foot { position: absolute; z-index: 8; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.85); }
  .m-foot b { font-weight: 500; color: #fff; }
  .m-foot a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-in], .blobs, .engraving, .hl, .p-track b, .p-steps span, .p-detail span, .toast, .p-route * { transition: none !important; }
  .p-route *, .p-route.sent *, .p-route.arrived * { animation: none !important; }
  .chip, .lane .trail { display: none; }
  .blob, .engraving { animation: none; }
}

/* ---------------- added for the real site ---------------- */
.switch[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine a { color: var(--ink); }
.fine.bad { color: #9c3b2e; }
.cta[aria-busy="true"] { opacity: .6; }
.challenge:empty { display: none; }
.challenge { margin-top: 10px; }

/* the two ways in: one capsule, and a white plate that glides to whichever door you're on */
.login { display: inline-flex; align-items: center; height: 36px; padding: 0 3px 0 13px; gap: 8px; border-radius: 999px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.login > span { color: var(--muted); white-space: nowrap; }
.doors { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.doors::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: 999px; background: #fff; opacity: 0;
  box-shadow: 0 1px 2px rgba(27,39,37,.08), 0 4px 12px -4px rgba(27,39,37,.14); transition: transform .45s cubic-bezier(.7,0,.2,1), opacity .25s ease; }
.doors a { position: relative; display: flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.doors:has(a:hover)::before, .doors:has(a:focus-visible)::before { opacity: 1; }
.doors:has(a:last-child:hover)::before, .doors:has(a:last-child:focus-visible)::before { transform: translateX(100%); }
/* on phones the capsule sits beside the logo, on the panel's paper rather than over the meadow */
.m-doors { display: none; background: #ebece7; border-color: transparent; font-size: 12.5px; }
.m-doors .doors a { padding: 0 10px; }
@media (max-width: 900px) { .m-doors.m-only { display: inline-flex; } }
@media (max-width: 400px) { .m-doors { gap: 4px; padding-left: 10px; } .m-doors .doors a { padding: 0 8px; } }
@media (max-width: 350px) { .m-doors { padding-left: 3px; } .m-doors > span { display: none; } }
@media (prefers-reduced-motion: reduce) { .doors::before { transition: none; } }

@media (max-width: 480px) {
  .p-amt-row { flex-wrap: wrap; row-gap: 6px; }
  .p-fee { margin-bottom: 0; }
  .cta { width: 44px; height: 44px; }
}
