/* Unpay layer on top of the reference layout's CSS: colour + motion tokens, font, slots, our cards.
   One theme (30 Sep): the Ballpoint look, its orange accent now a soft indigo-blue. */

@font-face {
  font-family: "Geist";
  src: url("/_unpay/fonts/geist-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- colour: every colour on the page comes from these tokens (site/PLAN.md v2).
   Mix 1 "Ballpoint" is the default; ?mix=2 and ?mix=3 set html[data-mix] (inline script in <head>).
   Accent (30 Sep): soft indigo-blue. --u-accent for lines, rings and art; --u-accent-deep for fills with white
   text (white on #4f53d6 = 5.9:1) and accent text on light grounds; --u-accent-tint for soft fills (deep text on it
   = 4.9:1). Amber stays "can still be undone", green stays "final". */
:root {
  --u-ground: #f3f0e9;
  --u-ink: #1e2b55;
  --u-wash: #d6deef;
  --u-accent: #6f74f0;
  --u-accent-deep: #4f53d6;
  --u-accent-deeper: #4246c2;                            /* hover / pressed on the deep fill */
  --u-accent-tint: #e6e7fd;
  --u-on-accent: #ffffff;
  --u-logo-a: #4f46e5;                                   /* the client's mark gradient, top */
  --u-logo-b: #9ea1f6;                                   /* ...and bottom: white vanished on paper (1.1:1) */
  --u-pending: #f2a516;
  --u-final: #1e9e5a;
  --u-dark: #101a33;
  --u-on-dark: var(--u-ground);
  --u-raised: color-mix(in oklab, var(--u-ground) 30%, #fff);
  --u-state-ink: #000;                                   /* mixed into state colours for text on light */

  /* derived */
  --u-muted: color-mix(in oklab, var(--u-ink) 70%, var(--u-ground));   /* >= 4.8:1 on ground + surface, every mix */
  --u-line: color-mix(in oklab, var(--u-ink) 13%, var(--u-ground));
  --u-surface: color-mix(in oklab, var(--u-ink) 5%, var(--u-ground));
  --u-on-dark-muted: color-mix(in oklab, var(--u-on-dark) 62%, var(--u-dark));
  --u-pending-ink: color-mix(in oklab, var(--u-pending) 58%, var(--u-state-ink));   /* >= 4.5:1 on the pending fills */
  --u-pending-bg: color-mix(in oklab, var(--u-pending) 18%, var(--u-raised));
  --u-final-ink: color-mix(in oklab, var(--u-final) 72%, var(--u-state-ink));
  --u-final-bg: color-mix(in oklab, var(--u-final) 14%, var(--u-raised));

  /* the reference layout's own variables, pointed at the tokens */
  --_colors---primary--dark: var(--u-ink);
  --_colors---primary--white: var(--u-ground);
  --_colors---primary--light: var(--u-ground);
  --black: var(--u-ink);
  --white-smoke: var(--u-surface);
  --_theme---text--tertiary: color-mix(in oklab, var(--u-ink) 38%, transparent);
  /* the reference's secondary text (60 % ink = 3.8:1) becomes the muted token (AA) */
  --_colors---primary--dark-60: var(--u-muted);
}
html[data-mix="2"] {                                     /* Tomato & butter (the tomato is indigo now too) */
  --u-ground: #faf7f0;
  --u-ink: #161616;
  --u-wash: color-mix(in oklab, #161616 9%, #faf7f0);
  --u-accent: #6f74f0;
  --u-pending: #f2cf63;
  --u-final: #6fa387;
  --u-dark: #17181a;
  --u-state-ink: #3a2c00;
}
html[data-mix="3"] {                                     /* Night: a lighter indigo reads on the dark ground */
  --u-ground: #0e1320;
  --u-ink: #ece9e2;
  --u-wash: color-mix(in oklab, #ece9e2 12%, #0e1320);
  --u-accent: #8a8ef5;
  --u-accent-tint: #252a55;
  --u-logo-a: #8a8ef5;
  --u-logo-b: #ffffff;
  --u-pending: #f5b53a;
  --u-final: #39b37a;
  --u-dark: #151b2b;
  --u-on-dark: var(--u-ink);
  --u-raised: color-mix(in oklab, var(--u-ink) 9%, var(--u-ground));
  --u-state-ink: #fff;
  --u-surface: color-mix(in oklab, var(--u-ink) 6%, var(--u-ground));
  --u-muted: color-mix(in oklab, var(--u-ink) 76%, var(--u-ground));
  color-scheme: dark;
}
html[data-mix="2"] { --u-pending-ink: color-mix(in oklab, var(--u-pending) 36%, var(--u-state-ink)); --u-final-ink: color-mix(in oklab, var(--u-final) 55%, var(--u-state-ink)); }

/* ---------- motion: one system for the whole page (reveals, hover, tabs, accordion, demos, scroll-linked).
   settle = ease-out quint (things arriving / changing state); sway = ease-in-out (things that go and come back:
   loops, glides). unpay.js mirrors these as window.UnpayMotion for the GSAP / rAF code. */
:root {
  --u-ease: cubic-bezier(.22, 1, .36, 1);                /* settle; GSAP "power4.out" */
  --u-ease-sway: cubic-bezier(.65, 0, .35, 1);           /* sway; GSAP "power3.inOut" */
  --u-t1: .2s;                                           /* hover, press, focus, small colour changes */
  --u-t2: .45s;                                          /* state changes: tabs, accordion, demo states, menu */
  --u-t3: .8s;                                           /* reveals and entrances */
  --u-stagger: 80ms;                                     /* between siblings in a reveal */
  --u-rise: 24px;                                        /* reveal travel */
}

body { font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background-color: var(--u-ground); color: var(--u-ink); }
picture { display: contents; }
.unpay-ico { display: block; width: 100%; height: 100%; }
::selection { background: var(--u-accent-tint); color: var(--u-accent-deep); }
html[data-mix="3"] ::selection { background: var(--u-accent-deep); color: #fff; }

/* reference components, recoloured. Every "Open app" is the one primary action: the deep indigo pill. */
.btn {
  background-color: var(--u-accent-deep); color: var(--u-on-accent);
  transition: background-color var(--u-t1) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.btn:hover { background-color: var(--u-accent-deeper); box-shadow: none; transform: scale(1.025); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 3px; }
.btn-highlight { display: none; }                         /* the reference's cursor glow on buttons: cut */
.u-bg-invert { background-color: var(--u-dark); }
.u-color-invert { color: var(--u-on-dark); }
.u-theme-dark {
  --_theme---background--primary: var(--u-dark);
  --_theme---text--primary: var(--u-on-dark);
  --_theme---text--secondary: var(--u-on-dark-muted);
  --_theme---background--invert: var(--u-on-dark);
  --_theme---button-primary--text: var(--u-dark);
}

/* ---------- live dot (hero, in place of the rating stars) */
.unpay-live { display: inline-grid; place-items: center; width: .875rem; height: .875rem; }
.unpay-live-dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--u-final);
  box-shadow: 0 0 0 .1875rem color-mix(in oklab, var(--u-final) 18%, transparent);
}

/* ---------- logo + works-with row (mono logos in the ink colour) */
.logo .unpay-logo { display: block; height: 100%; width: auto; }
.unpay-logo-mask {
  display: block; flex: none; height: 1.5rem; background-color: var(--u-ink);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}

/* ---------- sketch-art slots: a soft card naming the slot until the art lands */
.art-slot { position: relative; }
.art-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  box-sizing: border-box; width: 100%; height: 100%; padding: 1.5rem; text-align: center;
  border-radius: 1.5rem;
  background: color-mix(in oklab, var(--u-ink) 4%, transparent); color: var(--u-ink);
}
.art-card-kicker { font-size: .75rem; font-weight: 500; color: var(--u-muted); letter-spacing: .01em; }
.art-card-title { font-size: 1rem; font-weight: 600; line-height: 1.3; max-width: 20rem; letter-spacing: -.01em; }
.art-live .art-ph { display: none; }

/* live sketch scenes: the kit stage adds a transparent canvas and .is-live; the poster stays until then
   (and for good without a GPU) */
.art-slot > canvas, .art-slot > .sk-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sk-poster { pointer-events: none; background: center / contain no-repeat; }      /* image: build.py poster_css */
.art-slot.is-live > .sk-poster { visibility: hidden; }

/* ---------- rows 3-10 (1 Oct): the colour rhythm below the hero. Paper -> lavender -> deep indigo -> paper (the tabs,
   on a reversed-banner plate) -> ink -> paper -> the flipped banner -> indigo footer: never two paper rows in a row.
   Cards are white with one soft shadow (no borders); amber = can still be undone, green = final. */
:root {
  --u-card: #ffffff;
  --u-card-shadow: none;   /* 1 Oct client: "no shade or borders": cards are flat, set apart by colour only */
  --u-band-deep: #4f53d6;          /* the client's deep indigo */
  --u-band-ink: #1e2b55;           /* brand ink */
  --u-band-indigo: #5d55e8;        /* banner foot */
  --u-band-violet: #7c76ee;
  --u-band-lilac: #a4a1f2;
  --u-band-mist: #edecfc;
}
html[data-mix="3"] { --u-card: var(--u-raised); --u-card-shadow: none; }

/* rows 3 + 4: three cards each, the reference's feature-card design with an art slot */
.feature_card.unpay-card {
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  background-color: var(--u-card); background-image: none; border-radius: 1.5rem; overflow: hidden;
  box-shadow: var(--u-card-shadow);
}
.unpay-card .feature_card-top { flex: none; }
.unpay-card .feature_card-content { align-items: stretch; margin-top: auto; padding: 0 1.5rem 1.5rem; box-sizing: border-box; }
.unpay-card .feature_card-content.art-slot { aspect-ratio: 437 / 330; }
/* >= 1024 (1 Oct QA #7): the drawing filled ~55 % of the card under a ~150 px empty band. The scenes fit their slot's
   height, so a taller slot draws them bigger (~75 % of the card width), and it tucks up under the words */
@media screen and (min-width: 1024px) {
  .unpay-card .feature_card-top { padding-bottom: .25rem; }
  .unpay-card .feature_card-content.art-slot { aspect-ratio: 1 / .94; }
}
/* QA 1 Oct #6: the three problem titles wrap evenly and take the same height, so the three lines under them start level */
.unpay-problem .unpay-card h3 { text-wrap: balance; }
@media screen and (min-width: 1024px) and (max-width: 1199px) { .unpay-problem .unpay-card h3 { min-height: 3lh; } }
@media screen and (min-width: 1200px) and (max-width: 1535px) { .unpay-problem .unpay-card h3 { min-height: 2lh; } }
/* row 3: the mistakes are inked in the deep indigo */
html:not([data-mix="3"]) .unpay-problem .art-slot { --u-accent: var(--u-band-deep); }
/* phones + tablets (< 1024): the three problems are one swipe row (the next card peeks), not three screens of
   scrolling or three cramped columns; 768-1023 shows two cards and the peek of the third */
@media screen and (max-width: 1023px) {
  .unpay-swipe {
    display: flex; flex-wrap: nowrap; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--u-gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--u-gutter)); padding: .25rem var(--u-gutter) 1.75rem;
  }
  .unpay-swipe::-webkit-scrollbar { display: none; }
  .unpay-swipe > .col { flex: 0 0 82%; max-width: 82%; margin: 0; padding: 0; scroll-snap-align: start; }
  .unpay-swipe .feature_card-content.art-slot { aspect-ratio: 356 / 250; }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .unpay-swipe { gap: 1rem; }
  .unpay-swipe > .col { flex-basis: 46%; max-width: 46%; }
}
@media screen and (max-width: 767px) {
  .unpay-card .feature_card-top { padding: 1.5rem 1.375rem 1rem; }
  .unpay-card .feature_card-content { padding: 0 1rem 1rem; }
}

/* row 4: the deep indigo card (white type, white cards). Each card carries its step (1 -> 2 -> 3) and a bar that fills in its third of the shared
   8 s loop (unpay-demos.js): Send in the deep indigo, Window in amber (can still be undone), Final in green. */
.unpay-how { background-color: var(--u-band-deep); color: #fff; }
.unpay-how .row-center-horizontal .h2 { color: #fff; }
.unpay-how .row-center-horizontal .p-md { color: rgb(255 255 255 / .88); }
.unpay-how .unpay-card { color: var(--u-ink); }
.unpay-how ::selection { background: #fff; color: var(--u-band-deep); }
/* the lit step is shown by its colour (number + bar + title), never lifted: a raised card read as misaligned (QA #21) */
.unpay-how .unpay-card h3 { transition: color var(--u-t2) var(--u-ease); }
.unpay-how .unpay-card.is-now h3 { color: var(--u-accent-deep); }
.unpay-how [data-step="0"] { --step: var(--u-band-deep); --step-on: #fff; }
.unpay-how [data-step="1"] { --step: var(--u-pending); --step-on: var(--u-band-ink); }
.unpay-how [data-step="2"] { --step: var(--u-final-ink); --step-on: #fff; }
.unpay-step { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.unpay-step-n {
  display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  font-size: 15px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--u-accent-tint); color: var(--u-accent-deep);
  transition: background-color var(--u-t2) var(--u-ease), color var(--u-t2) var(--u-ease);
}
.unpay-card.is-on .unpay-step-n { background: var(--step); color: var(--step-on); }
.unpay-step-bar { flex: 1; height: 4px; border-radius: 999px; overflow: hidden; background: color-mix(in oklab, var(--u-ink) 9%, transparent); }
.unpay-step-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--step); transform: scaleX(0); transform-origin: left center; }
@media screen and (max-width: 767px) {
  /* phones: each step is one row, words left and its scene right */
  .unpay-how .unpay-card { flex-direction: row; align-items: center; }
  .unpay-how .unpay-card .feature_card-top { flex: 1 1 0; min-width: 0; padding-right: 0; }
  .unpay-how .unpay-card .feature_card-content.art-slot { flex: 0 0 40%; aspect-ratio: 1; margin: 0; padding: 0 .75rem 0 0; }
}
@media screen and (min-width: 768px) and (max-width: 1099px) {
  /* tablets and small laptops (QA 1 Oct #7: at 1024 three narrow columns left a ~150 px hole under 4-line text):
     the same rows as phones (all three steps stay in view for the 1 -> 2 -> 3 progress), not three narrow columns */
  .unpay-how .row.u-vgap > .col { flex: 0 0 100%; max-width: 100%; }
  .unpay-how .row.u-vgap { row-gap: 1rem; }
  .unpay-how .unpay-card { flex-direction: row; align-items: center; }
  .unpay-how .unpay-card .feature_card-top { flex: 1 1 0; min-width: 0; padding-right: 0; }
  .unpay-how .unpay-card .feature_card-content.art-slot { flex: 0 0 38%; aspect-ratio: 437 / 330; margin: 0; padding: 1rem 1.5rem 1rem 0; }
  .unpay-how .unpay-card .feature_card-top { padding-bottom: clamp(2.5rem, .714vw + 2.357rem, 3rem); }   /* = its top (the >= 1024 tuck-up is for columns) */
}

/* row 5: "Both sides" on one white card, two rows. Each row = the words beside one composition: the sketch and the
   live demo side by side (no empty middle). Sender: words | sketch | demo; recipient mirrored: demo | sketch | words.
   768-1099: words on top, sketch + demo side by side under them; phones: words, sketch, demo stacked. */
.unpay-sides { background-color: var(--u-card); color: var(--u-ink); }
.u-sides-head { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 46rem; margin: 0 auto; text-align: center; }
.u-sides-head .h2, .u-sides-head .p-md { margin: 0; }
.u-sides-h-top { color: var(--u-accent-deep); }
.u-sides-head .p-md { color: var(--u-muted); text-wrap: balance; }
.u-sides-rows { display: flex; flex-direction: column; gap: clamp(2rem, 2.5vw + .5rem, 3.5rem); margin-top: clamp(3rem, 4vw + 1rem, 5.5rem); }
.unpay-side { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-content: center; gap: 2rem; }
.u-side-copy { display: flex; flex-direction: column; gap: .5rem; max-width: 30rem; }
.u-side-copy .h3 { margin: 0; font-size: clamp(2rem, 1.4vw + 1.4rem, 3rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; color: var(--u-ink); }
.u-side-copy .p-md { margin: 0; color: var(--u-muted); }
.u-side-media { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2.5vw, 2.5rem); min-width: 0; }
.unpay-side.is-recipient .u-side-media { flex-direction: row-reverse; }
/* the scenes draw at ~60 % of their slot: a 24 rem slot gives a ~14 rem drawing, about half the demo's height */
.unpay-side-art { position: relative; z-index: 0; flex: 0 1 24rem; min-width: 0; aspect-ratio: 437 / 330; pointer-events: none; }
.unpay-side .ud { z-index: 1; }
.unpay-side .ud-sender { flex: 0 1 26rem; }
.unpay-side .ud-recipient { flex: 0 1 22.5rem; }
@media screen and (min-width: 1100px) {
  /* words + composition as one centred group: no column stretches into an empty middle */
  .unpay-side { grid-template-columns: minmax(0, 24rem) minmax(0, 45rem); gap: clamp(1rem, 1.5vw, 2rem); }
  .unpay-side.is-recipient { grid-template-columns: minmax(0, 41.5rem) minmax(0, 24rem); }
  .unpay-side .u-side-media { gap: 0; }
  .unpay-side .ud-sender { flex: 0 0 26rem; }
  .unpay-side .ud-recipient { flex: 0 0 22.5rem; }
  /* the drawing sits in the middle of its slot: the slot's empty edge tucks under the demo, so the two read as one */
  .unpay-side-art { flex-basis: 22rem; min-width: 11rem; margin-right: -3rem; }
  .unpay-side.is-recipient .unpay-side-art { margin-right: 0; margin-left: -3rem; }
  .unpay-side.is-recipient .u-side-copy { order: 2; }
  .unpay-side .u-side-copy { padding-bottom: 2rem; }   /* QA 1 Oct #8: centred on the demo card, not card + caption */
  .unpay-side.is-recipient .u-side-media { order: 1; }
}
@media screen and (min-width: 768px) and (max-width: 1099px) {
  .u-side-copy { max-width: 36rem; }
  .unpay-side-art { flex-basis: 18rem; }
}
/* phones: words, then the sketch (big enough to read), then the demo at full width */
@media screen and (max-width: 767px) {
  .unpay-side { gap: 1.25rem; }
  .u-side-media, .unpay-side.is-recipient .u-side-media { flex-direction: column; gap: 1rem; }
  .unpay-side-art { flex: none; width: min(100%, 16rem); }
  .unpay-side .ud-sender, .unpay-side .ud-recipient { flex: none; width: 100%; }
}

/* row 6: the app's own card floating on the reversed-banner plate (paper -> lavender -> indigo). Each clip's frame IS
   one app card (art/app-media/record-cards.ts paints everything around the card in the card's own colour), so the page
   only adds the card's rounded corners and a soft shadow: no inner box, no mask edge. The desk clip (528 CSS px of the
   app) shows at 1:1 or bigger from 1200 px; the phone clip (328) at 1:1 below that, so the app text stays >= 14 px. */
.unpay-tabs-stage { width: 100%; }
.extra_features-phone.unpay-tabs-plate { width: 100%; height: auto; max-width: none; aspect-ratio: auto; transform: none; }
.unpay-tabs {
  background-color: var(--u-band-mist);
  background-image: linear-gradient(104deg in oklab, var(--u-band-mist) 0%, var(--u-band-mist) 34%, var(--u-band-lilac) 64%, var(--u-band-indigo) 100%);
}
.unpay-plate { box-sizing: border-box; width: 100%; display: flex; justify-content: center; align-items: center; padding: 0; }
.unpay-plate-view {
  position: relative; flex: none; width: min(100%, 600px); aspect-ratio: var(--ar-desk, 1); overflow: hidden;
  border-radius: 1.75rem; background: #fffefa;
  box-shadow: none;
}
.unpay-tab-panel { position: absolute; inset: 0; }
.unpay-tab-media { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.unpay-tab-media[data-size="phone"] { display: none; }
.unpay-tab-panel > .art-card { position: absolute; inset: .75rem; width: auto; height: auto; }
@media screen and (max-width: 1199px) {
  .unpay-plate-view { width: min(100%, 328px); aspect-ratio: var(--ar-phone, 1); border-radius: 1.5rem; }
  .unpay-plate-view:has([data-size="phone"]) .unpay-tab-media[data-size="desk"] { display: none; }
  .unpay-tab-media[data-size="phone"] { display: block; }
}
/* < 768: the words + tabs on top, the clip under them: the banner runs top -> bottom instead */
@media screen and (max-width: 767px) {
  .unpay-tabs { background-image: linear-gradient(180deg in oklab, var(--u-band-mist) 0%, var(--u-band-mist) 46%, var(--u-band-lilac) 72%, var(--u-band-indigo) 100%); }
}
/* from 768 px the plate column takes 7 of 12 (the reference's spacer column goes), so each crop fits at 1:1 */
@media screen and (min-width: 768px) {
  .unpay-tabs .row > .col.u-md-hide { display: none; }
  .unpay-tabs .row > .col:has([data-tabs-wrapper]) { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .unpay-tabs .row > .col:has(.unpay-tabs-stage) { flex: 0 0 58.3333%; max-width: 58.3333%; }
}
/* the tabs: white pills; the one playing is the deep indigo with white words */
.extra_features-item { background-color: var(--u-card); box-shadow: none; }
.extra_features-item.is-active { background-color: var(--u-band-deep); box-shadow: none; }
.extra_features-item.is-active h3 { color: #fff; }
.extra_features-item.is-active p { color: rgb(255 255 255 / .9); }
[data-tabs-ring] circle { stroke: color-mix(in oklab, var(--u-ink) 14%, transparent); }
[data-tabs-ring] circle:last-child { stroke: var(--u-band-deep); }
.extra_features-item.is-active [data-tabs-ring] circle { stroke: rgb(255 255 255 / .3); }
.extra_features-item.is-active [data-tabs-ring] circle:last-child { stroke: #fff; }
.extra_features-item.is-active .tabs_pause-icon, .extra_features-item.is-active .tabs_play-icon { color: #fff; }
/* every tab keeps the same width; only the fill says which one plays (1 Oct QA #20: the reference shrank the others to 92.5 %) */
.extra-features_list .extra_features-item:not(.is-active) { transform: none; }
/* three tabs need no scrolling list: no edge fade, no fixed height */
.extra-features_list { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
@media screen and (max-width: 767px) {
  .extra-features_list { flex-direction: column; gap: .5rem; width: 100%; margin: 0; padding: 0; }
  .extra_features-item { width: 100%; min-width: 0; max-width: none; flex: none; box-sizing: border-box; transform: none !important; }
  .extra_features-item > .u-hflex-between-center { width: 100%; }
}

/* row 7: "Final means final", the ink band: white type, one indigo; the three moves right under the subline;
   the mark scene on the right (the slot carries the band's colours, so the scene draws white lines on ink) */
.unpay-final { position: relative; overflow: hidden; background: var(--u-band-ink); color: #fff; }
.unpay-final-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.unpay-final-copy { display: flex; flex-direction: column; gap: 2rem; max-width: 38rem; }
.unpay-final-head { display: flex; flex-direction: column; gap: 1rem; }
.unpay-final .h2 { color: #fff; margin: 0; }
.unpay-final-head .p-md { color: rgb(255 255 255 / .84); margin: 0; }
.unpay-final-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.unpay-final-rule { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1.25rem; background: rgb(255 255 255 / .07); }
.unpay-final-ico { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #6f74f0; color: #fff; }
.unpay-final-ico .unpay-ico { width: 1.25rem; height: 1.25rem; }
.unpay-final-rule-t { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.unpay-final-rule .h4 { color: #fff; margin: 0; font-size: 1.25rem; line-height: 1.25; }
.unpay-final-rule .p-md { color: rgb(255 255 255 / .84); margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.unpay-final-art {
  justify-self: center; width: min(100%, 30rem); aspect-ratio: 1;
  --u-ground: var(--u-band-ink); --u-dark: var(--u-band-ink); --u-ink: #ffffff; --u-accent: #6f74f0;
}
@media screen and (min-width: 1024px) {
  .unpay-final-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 7rem); }
}
@media screen and (max-width: 1023px) { .unpay-final-art { width: min(100%, 17rem); } }
.unpay-final ::selection { background: #fff; color: var(--u-band-ink); }

/* row 8: FAQ in two columns from 1024 px (head + the undo key | the questions); white rows, the open one lavender */
.unpay-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.unpay-faq-side { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.unpay-faq-art { flex: none; width: 8.5rem; aspect-ratio: 1; }
/* QA 1 Oct #11: phones: the art above the words, the words at full width */
@media screen and (max-width: 767px) {
  .unpay-faq-side { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1rem; }
  .unpay-faq-art { order: -1; width: 7.5rem; }
}
@media screen and (min-width: 1024px) {
  .unpay-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .unpay-faq-side { position: sticky; top: 7.5rem; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2rem; }
  .unpay-faq-art { width: min(100%, 26rem); }   /* 1 Oct QA #12: 256 px over ~600 px of empty column */
}
@media screen and (min-width: 1280px) {
  /* the questions stop at ~760 px (a full-width row read as a form); the side takes the rest */
  .unpay-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 47.5rem); }
}
.unpay-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.unpay-faq { background-color: var(--u-card); }
.unpay-faq-item { border-radius: 1.125rem; background: var(--u-band-mist); transition: background-color var(--u-t1) var(--u-ease); }
.unpay-faq-item:hover { background: color-mix(in oklab, var(--u-accent-tint) 60%, var(--u-band-mist)); }
.unpay-faq-item[open] { background: var(--u-accent-tint); }
.unpay-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.125rem 1.5rem; cursor: pointer; list-style: none; border-radius: 1.125rem;
}
.unpay-faq-q:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 2px; }
.unpay-faq-q::-webkit-details-marker { display: none; }
.unpay-faq-q .h5 { margin: 0; font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.unpay-faq-plus { position: relative; flex: none; width: 1rem; height: 1rem; color: var(--u-accent-deep); transition: transform var(--u-t2) var(--u-ease); }
.unpay-faq-plus::before, .unpay-faq-plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; border-radius: 1px; background: currentColor;
}
.unpay-faq-plus::after { transform: rotate(90deg); transition: transform var(--u-t2) var(--u-ease); }
.unpay-faq-item[open] .unpay-faq-plus::after { transform: rotate(0deg); }
.unpay-faq-a { overflow: hidden; }
.unpay-faq-a p { margin: 0; padding: 0 3.5rem 1.25rem 1.5rem; font-size: 1.0625rem; line-height: 1.5; }
@media screen and (max-width: 767px) {
  .unpay-faq-q { padding: 1rem 1.125rem; }
  .unpay-faq-q .h5 { font-size: 1.0625rem; }
  .unpay-faq-a p { padding: 0 1.125rem 1.125rem; font-size: 1rem; }
}

/* row 9: the closing CTA stands on the flipped banner (paper at the top, the footer's indigo at the foot):
   unpay-backdrop.js mounts its drifting shapes on .unpay-cta-bg; this gradient is there until then */
.unpay-cta { position: relative; isolation: isolate; overflow: hidden; }
.unpay-cta > .unpay-cta-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--u-ground) 0%, var(--u-ground) 18%, var(--u-band-mist) 36%, var(--u-band-lilac) 66%, var(--u-band-indigo) 100%);
}
.unpay-cta > :not(.unpay-cta-bg) { position: relative; z-index: 1; }
/* the drifting shapes fade out before the footer (both gradients end on the same indigo), so there is no seam */
.unpay-cta > .unpay-cta-bg > .u-bd {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 97%); mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
}
.section-2.unpay-cta { padding-bottom: clamp(1rem, 2.5vw, 2.5rem); }
/* the subline in brand ink, not muted slate: it sits on the lilac part of the flipped gradient (slate was 3.5:1) */
.unpay-cta .p-md.u-color-secondary { color: var(--u-ink); text-wrap: balance; }   /* no lone "real money." (QA #13) */
#art-cta-coins { align-items: flex-end; }
#art-cta-coins.footer_cta-image { width: 100%; margin-left: 0; aspect-ratio: 1440 / 500; margin-bottom: -7vw; } /* the coins sit in the top ~72 % of the box: pull the footer up over the empty rest (the section clips it) */
@media screen and (max-width: 767px) { #art-cta-coins.footer_cta-image { aspect-ratio: 390 / 250; margin-bottom: -12vw; } }
#art-cta-coins > .art-card { width: min(92%, 72rem); height: 84%; margin: 0 auto; border-radius: 2rem 2rem 0 0; }

/* row 10: the footer carries on in the indigo: white logo and links, the mark tone-on-tone in the corner */
.unpay-foot {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--u-band-indigo) 0%, var(--u-band-deep) 100%);
  --u-logo-a: #ffffff; --u-logo-b: #ffffff;
}
.unpay-foot > .container-2 { position: relative; z-index: 1; }
.footer-2.unpay-foot { padding-top: clamp(2.5rem, 4vw, 4.5rem); padding-bottom: clamp(3rem, 5vw, 5.5rem); }
/* the mark stays whole (its dot inside the footer gutter) and clear of the links and the contract card: phones in the
   top right beside the link list; from 768 in the empty half of the logo column, its U cropped a little by the foot */
.unpay-foot-mark { position: absolute; z-index: 0; right: 1rem; top: 1.5rem; width: min(15rem, 56vw); height: auto; color: rgb(255 255 255 / .07); pointer-events: none; }
@media screen and (min-width: 768px) { .unpay-foot-mark { right: auto; top: auto; left: calc(8vw + 5rem); bottom: -1.5rem; width: clamp(10.5rem, 16.5vw, 15rem); } }
.unpay-foot .footer_logo-2, .unpay-foot .u-color-secondary, .unpay-foot .text-link, .unpay-foot h2 { color: #fff; }
.unpay-foot .text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* QA 1 Oct #12: the tap area reaches 41 px; the negative margin keeps the footer's layout exactly as it was */
.unpay-foot .text-link { display: inline-block; padding-block: 9px; margin-block: -9px; }
.unpay-foot ::selection { background: #fff; color: var(--u-band-deep); }

/* ---------- row 5: "Both sides" live demos (build.py demo_sender / demo_recipient, js/unpay-demos.js).
   The panels copy the app: no borders, surfaces by tone, one soft shadow; amber = can still be undone. */
.unpay-pts { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.unpay-pts li { display: flex; align-items: center; gap: .625rem; font-size: 1rem; line-height: 1.4; color: var(--u-muted); }
.unpay-pt-ico { display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; color: var(--u-ink); }

.ud {
  --d-ink: var(--u-ink); --d-muted: var(--u-muted); --d-panel: var(--u-raised); --d-inset: var(--u-surface);
  --d-accent: var(--u-accent); --d-accent-ink: var(--u-on-accent);
  --d-accent-btn: var(--u-accent-deep);                                 /* white text 5.9:1 in every mix */
  --d-accent-hover: var(--u-accent-deeper);
  --d-pending: var(--u-pending-ink); --d-pending-ring: var(--u-pending); --d-pending-bg: var(--u-pending-bg);
  --d-final: var(--u-final-ink); --d-final-edge: var(--u-final); --d-final-bg: var(--u-final-bg);
  --d-off: #858a94; --d-off-bg: rgba(138, 143, 152, .16);
  --d-track: color-mix(in oklab, var(--u-ink) 10%, transparent);
  --d-plate: linear-gradient(162deg, #1e2b55 0%, #26366b 50%, #34488a 100%);
  --d-ease: var(--u-ease);
  position: relative; box-sizing: border-box; width: 100%; color: var(--d-ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left;
}
.ud .num { font-variant-numeric: tabular-nums; }
.ud .unpay-ico { width: 100%; height: 100%; }
.ud.is-off * { animation-play-state: paused !important; }
.ud-panel {
  position: relative; z-index: 1; box-sizing: border-box; width: min(100%, 26rem); padding: 1.25rem;
  border-radius: 1.5rem; background: var(--d-panel); will-change: opacity, transform;
  box-shadow: none;
}
.ud-caption { position: relative; z-index: 1; margin: .875rem 0 0 .25rem; font-size: 14px; line-height: 1.3; color: var(--d-muted); }
.ud-ft { font-size: 14px; line-height: 1.2; color: var(--d-muted); }

/* sender: balance + state, ring + amount, the Unpay button, the undo lane */
.ud-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.ud-bal { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ud-bal-v { font-size: 14px; color: var(--d-muted); white-space: nowrap; }
.ud-bal-v b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--d-ink); }
.ud-state {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; flex: none;
  font-size: 14px; font-weight: 500; transition: background-color var(--u-t2) var(--d-ease), color var(--u-t2) var(--d-ease);
}
.ud-state[data-tone="pending"] { background: var(--d-pending-bg); color: var(--d-pending); }
.ud-state[data-tone="off"] { background: var(--d-off-bg); color: var(--d-off); }
.ud-state-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ud-state[data-tone="pending"] .ud-state-dot { background: var(--d-pending-ring); animation: ud-beat 2s var(--u-ease-sway) infinite; }
@keyframes ud-beat { 50% { transform: scale(.6); opacity: .55; } }
.ud-main { display: flex; align-items: center; gap: 1.125rem; margin: 1rem 0 1.125rem; }
.ud-ring { position: relative; flex: none; width: 7.25rem; height: 7.25rem; }
.ud-ring svg { display: block; width: 100%; height: 100%; }
.ud-ring circle { fill: none; stroke-width: 6; }
.ud-rtrk { stroke: var(--d-track); }
.ud-arc { stroke: var(--d-pending-ring); stroke-linecap: round; transition: stroke var(--u-t2) var(--d-ease); }
.ud[data-state="undone"] .ud-arc { stroke: var(--d-off); }
.ud-mid, .ud-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity var(--u-t2) var(--d-ease), transform var(--u-t2) var(--d-ease); }
.ud-time { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.ud-cap { margin-top: 4px; font-size: 14px; color: var(--d-muted); }
.ud-back { color: var(--d-off); opacity: 0; transform: scale(.7) rotate(40deg); }
.ud-back .unpay-ico { width: 2.25rem; height: 2.25rem; }
.ud[data-state="undone"] .ud-mid { opacity: 0; transform: scale(.85); }
.ud[data-state="undone"] .ud-back { opacity: 1; transform: none; transition-delay: .25s; }
.ud-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ud-amt { display: flex; align-items: baseline; gap: 6px; }
.ud-fig { position: relative; font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -.04em; color: var(--d-pending); transition: color var(--u-t2) var(--d-ease); }
.ud-fig::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 3px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--u-t2) var(--d-ease) .15s; }
.ud[data-state="undone"] .ud-fig { color: var(--d-off); }
.ud[data-state="undone"] .ud-fig::after { transform: scaleX(1); }
.ud-unit { font-size: 15px; font-weight: 500; color: var(--d-muted); }
.ud-to { font-size: 15px; font-weight: 500; }
.ud-title { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--d-pending); transition: color var(--u-t2) var(--d-ease); }
.ud[data-state="undone"] .ud-title { color: var(--d-ink); }
.ud-line { font-size: 14px; line-height: 1.35; color: var(--d-muted); }
.ud-unpay {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 3rem; border: 0; border-radius: .875rem;
  background: var(--d-accent-btn); color: var(--d-accent-ink); cursor: pointer;
  font: 600 15px/1 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: none;
  transition: background-color var(--u-t2) var(--d-ease), color var(--u-t2) var(--d-ease), box-shadow var(--u-t2) var(--d-ease), transform var(--u-t1) var(--d-ease);
}
.ud-unpay .unpay-ico { width: 18px; height: 18px; }
.ud-unpay:hover { background: var(--d-accent-hover); }
.ud-unpay:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; }
.ud-unpay.is-press, .ud-unpay:active { transform: scale(.97); }
.ud-unpay:disabled { background: var(--d-inset); color: var(--d-muted); box-shadow: none; cursor: default; }
.ud-cursor {
  position: absolute; z-index: 3; left: 0; top: 0; width: 26px; height: 26px; opacity: 0; pointer-events: none;
  transform-origin: 5px 3px; will-change: transform, opacity;
}
.ud-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ud-cursor path { fill: var(--d-ink); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* the undo lane (the app's UndoLane): left edge = Final, log clock, bars drain toward it */
.ud-lane { margin-top: .875rem; padding: .75rem .75rem .5rem; border-radius: 1rem; background: var(--d-inset); }
.ud-axis, .ud-trk { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 2.75rem; align-items: center; column-gap: .75rem; }
.ud-axis { padding: 0 .25rem .25rem; font-size: 14px; color: var(--d-muted); }
.ud-lbl { white-space: nowrap; }
.ud-ticks { position: relative; height: 18px; grid-column: 2 / 3; container-type: inline-size; }
/* QA 1 Oct #3: "10 min" sits at 63.5 % of the axis, "1 h" ends at 100 %; below ~136 px they touch ("10 min1 h"),
   so only the two ends show there */
@container (max-width: 135px) { .ud-tk:not(.end) { display: none; } }
.ud-axis > .ud-lbl { grid-column: 1; }
.ud-t0 { position: absolute; left: 0; color: var(--d-ink); font-weight: 500; }   /* QA 1 Oct #2: no green on the pending lane */
.ud-tk { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ud-tk.end { transform: translateX(-100%); }
.ud-tracks { list-style: none; margin: 0; padding: 0; }
.ud-trk {
  min-height: 2.25rem; max-height: 3.5rem; padding: 0 .25rem; overflow: hidden;
  transition: max-height var(--u-t2) var(--d-ease) .35s, opacity var(--u-t2) var(--d-ease) .2s;
}
.ud-trk.is-undone { max-height: 0; min-height: 0; opacity: 0; }
.ud-who { display: flex; gap: 8px; min-width: 0; font-size: 14px; white-space: nowrap; }
.ud-a { color: var(--d-pending); font-weight: 600; }
.ud-name { overflow: hidden; text-overflow: ellipsis; }
.ud-left { text-align: right; font-size: 14px; color: var(--d-muted); white-space: nowrap; transition: color var(--u-t2) var(--d-ease); }
.ud-trk.is-final .ud-left { color: var(--d-final); font-weight: 500; }
.ud-trk.is-final .ud-a { color: var(--d-ink); }
.ud-bar { position: relative; height: 8px; border-radius: 999px; background: var(--d-track); overflow: hidden; }
.ud-fill { position: relative; display: block; height: 100%; border-radius: 999px; overflow: hidden; background: var(--d-pending-ring); }
.ud-fill::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: ud-current 2.6s linear infinite;
}
@keyframes ud-current { from { transform: translateX(260%); } to { transform: translateX(-120%); } }

/* recipient: the balance (final money only), the pending row that drains, recent final payments */
.ud-narrow { width: min(100%, 22.5rem); }
.ud-plate { display: flex; flex-direction: column; gap: 2px; padding: 1.125rem 1.25rem 1.25rem; border-radius: 1.125rem; background: var(--d-plate); color: #fff; }
.ud-plate .ud-ft, .ud-note { color: rgba(255, 255, 255, .92); font-size: 14px; }
.ud-big { display: flex; align-items: baseline; gap: 6px; }
.ud-big b { font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.ud-big span { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.ud-pin-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--u-t2) var(--d-ease), opacity var(--u-t2) var(--d-ease); }
.ud-pin-wrap.is-gone { grid-template-rows: 0fr; opacity: 0; }
.ud-pin-wrap > .ud-pin { min-height: 0; overflow: hidden; }
.ud-pin-wrap > .ud-pin { transition: background-color var(--u-t2) var(--d-ease), padding var(--u-t2) var(--d-ease), margin var(--u-t2) var(--d-ease); }
.ud-pin-wrap.is-gone > .ud-pin { padding-block: 0; margin-top: 0; }
.ud-pin {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; column-gap: .75rem; row-gap: .625rem;
  margin-top: .75rem; padding: .875rem; border-radius: 1rem; background: var(--d-pending-bg);
  transition: background-color var(--u-t2) var(--d-ease);
}
.ud-pin[data-tone="final"] { background: var(--d-final-bg); }
.ud-pin-ic { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: color-mix(in oklab, var(--u-pending) 26%, transparent); color: var(--d-pending); transition: background-color var(--u-t2) var(--d-ease), color var(--u-t2) var(--d-ease); }
.ud-pin[data-tone="final"] .ud-pin-ic { background: color-mix(in oklab, var(--u-final) 22%, transparent); color: var(--d-final); }
.ud-pin-ic > span { position: absolute; width: 1.25rem; height: 1.25rem; transition: opacity var(--u-t2) var(--d-ease), transform var(--u-t2) var(--d-ease); }
.ud-ic-f { opacity: 0; transform: scale(.5); }
.ud-pin[data-tone="final"] .ud-ic-p { opacity: 0; transform: scale(.5) rotate(-90deg); }
.ud-pin[data-tone="final"] .ud-ic-f { opacity: 1; transform: none; }
.ud-pin[data-tone="pending"] .ud-ic-p { animation: ud-turn 3var(--u-t1) var(--d-ease) infinite; }
@keyframes ud-turn { 0%, 70% { transform: none; } 100% { transform: rotate(180deg); } }
.ud-pin-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ud-pin-h { font-size: 15px; font-weight: 600; }
.ud-pin-h b { color: var(--d-pending); transition: color var(--u-t2) var(--d-ease); }
.ud-pin[data-tone="final"] .ud-pin-h b { color: var(--d-final); }
.ud-pin-sub { font-size: 14px; color: var(--d-muted); }
.ud-pin-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; }
.ud-pin-left { flex: none; font-size: 14px; font-weight: 600; color: var(--d-pending); white-space: nowrap; }
.ud-pin[data-tone="final"] .ud-pin-left { color: var(--d-final); }
.ud-drain { flex: 1; position: relative; height: 6px; border-radius: 999px; background: var(--d-track); overflow: hidden; }
.ud-drain-fill { display: block; height: 100%; border-radius: 999px; background: var(--d-pending-ring); }
.ud-acts { display: flex; flex-direction: column; gap: .375rem; margin-top: 1rem; padding: 0 .25rem; }
.ud-acts ol { list-style: none; margin: 0; padding: 0; }
.ud-act-row { display: flex; align-items: center; gap: .625rem; max-height: 2.5rem; min-height: 2.25rem; font-size: 14px; overflow: hidden; }
.ud-act-row.is-new { max-height: 0; min-height: 0; opacity: 0; transition: max-height var(--u-t2) var(--d-ease), min-height var(--u-t2) var(--d-ease), opacity var(--u-t2) var(--d-ease) .15s; }
.ud-act-row.is-new.is-in { max-height: 2.5rem; min-height: 2.25rem; opacity: 1; }
.ud-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d-final-edge); flex: none; }
.ud-act-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-act-row b { font-weight: 600; }
.ud-act-st { color: var(--d-final); font-weight: 500; min-width: 2.5rem; text-align: right; }
.ud-fly { position: absolute; z-index: 3; left: 0; top: 0; opacity: 0; pointer-events: none; font-size: 18px; font-weight: 600; color: var(--d-final); white-space: nowrap; will-change: transform, opacity; }

@media screen and (max-width: 767px) {
  .ud-panel, .ud-narrow { width: 100%; }
  .ud-panel { padding: 1rem; }
  .ud-fig { font-size: 30px; }
  .ud-ring { width: 5.75rem; height: 5.75rem; }
  .ud-time { font-size: 19px; }
  .ud-cap { font-size: 14px; line-height: 1.1; text-align: center; max-width: 4.5rem; }
  .ud-main { gap: .875rem; }
  .ud-axis { grid-template-columns: minmax(0, 1fr); }
  .ud-axis > .ud-lbl { display: none; }
  .ud-ticks { grid-column: 1; }
  .ud-trk { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who left" "bar bar"; row-gap: 6px; padding: .5rem .25rem; max-height: 4rem; }
  .ud-who { grid-area: who; } .ud-left { grid-area: left; } .ud-bar { grid-area: bar; }
}
@media (prefers-reduced-motion: reduce) {
  .ud *, .ud *::before, .ud *::after { animation: none !important; transition: none !important; }
  .ud-fill::after { display: none; }
}

/* ---------- review fixes, 30 Sep (docs/review-30sep/site.md) */

/* in-page anchors land on the section's own top (1 Oct: 96 px left a strip of the previous band under the pill); the
   sections' top padding already puts the heading well below the floating nav. Lenis honours scroll-margin-top too. */
#how, #faq { scroll-margin-top: 0; }

/* 14 px minimum: the live line under the hero button and the footer copyright */
.unpay-live-txt, .unpay-copy, .unpay-copy .copyright-year { font-size: 14px; }

/* contract-address slot in the footer: a visible pending card until the address exists */
.unpay-ca { display: inline-flex; flex-direction: column; gap: .5rem; padding: 1rem 1.125rem; border-radius: 1rem;
  background: rgb(30 43 85 / .24); min-width: 13rem; }
.unpay-ca-k { font-size: 14px; font-weight: 600; color: #fff; }
.unpay-ca-v { display: inline-flex; align-items: center; gap: .5rem; font-size: 15px; font-weight: 500; color: #fff; }
code.unpay-ca-v { font-family: "Geist Mono", ui-monospace, monospace; word-break: break-all; }
.unpay-ca-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--u-pending); flex: none; }
.unpay-ca-link { text-decoration: none; }
.unpay-ca-link code { font-family: "Geist Mono", ui-monospace, monospace; }
.unpay-ca-link .unpay-ico { width: 16px; height: 16px; flex: none; }
.unpay-ca-link:hover code, .unpay-ca-link:focus-visible code { text-decoration: underline; text-underline-offset: 3px; }

/* 404 page (build.py extra_pages): same tokens, font and button as the home page */
body.unpay-404 { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 1.5rem; box-sizing: border-box; }
.u404 { width: min(100%, 34rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.unpay-404 .u-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.u404-logo { display: block; height: 26px; color: var(--u-ink); margin-bottom: 1.5rem; }
.u404-logo .unpay-logo { height: 100%; width: auto; }
.u404-code { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--u-muted); }
.u404-h { margin: 0; font-size: clamp(2rem, 4vw + 1rem, 3rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.u404-p { margin: 0; max-width: 30rem; font-size: 1.125rem; line-height: 1.45; color: var(--u-muted); text-wrap: balance; }
.u404-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.u404-btn { display: inline-flex; align-items: center; gap: .5rem; height: 3rem; padding: 0 1.25rem; border-radius: 999px;
  background: var(--u-accent-deep); color: var(--u-on-accent); font-weight: 500; text-decoration: none;
  transition: background-color var(--u-t1) var(--u-ease); }
.u404-btn:hover { background: var(--u-accent-deeper); }
.u404-ico { width: 18px; height: 18px; }
.u404-link { color: var(--u-ink); font-weight: 500; }
.u404-btn:focus-visible, .u404-link:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 3px; }

/* the "Three ways" tabs are real tabs now: a visible keyboard focus ring */
[data-tab][role="tab"]:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 3px; }

/* ---------- 30 Sep (client): full bleed. No outer frame anywhere: every section runs edge to edge and top to bottom
   (the hero above, the black band, the dark row); text keeps inner gutters (16 px on phones, up to 48 px). The
   content column stops at 1440 px (1 Oct QA: at 1750-1920 a 1760 px column left cards half empty and nothing lined
   up with the header); the backgrounds still run edge to edge. */
:root { --u-gutter: clamp(1rem, 3vw, 3rem); }
.container-2 { width: calc(100% - 2 * var(--u-gutter)); max-width: 90rem; }
.page-wrapper-2, .page-main { margin: 0; padding: 0; }

/* ---------- 30 Sep: the "Three ways" tabs. The inactive tabs said their words at 50 % opacity (2:1); now they stay
   readable (muted ink) and the active one is full ink. The panel swap fades in on the page's motion. */
.extra_features-item { transition: transform var(--u-t2) var(--u-ease), background-color var(--u-t2) var(--u-ease), box-shadow var(--u-t2) var(--u-ease); }
.extra_features-item h3, .extra_features-item p { transition: color var(--u-t2) var(--u-ease), opacity var(--u-t2) var(--u-ease); }
.extra_features-item:not(.is-active) h3, .extra_features-item:not(.is-active) p { opacity: 1 !important; color: var(--u-muted); }  /* beats the mirror's nested .5 */
.extra_features-item:not(.is-active):hover h3 { color: var(--u-ink); }
.unpay-tab-panel { animation: u-panel-in var(--u-t2) var(--u-ease) both; }
@keyframes u-panel-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- links: one hover */
.text-link { transition: color var(--u-t1) var(--u-ease); }
.text-link:hover { color: var(--u-accent-deep); }
html[data-mix="3"] .text-link:hover { color: var(--u-accent); }

/* ---------- motion: the reveal (unpay.js adds .is-in once 12 % of the element is on screen; siblings stagger by --i).
   html.u-motion is set before paint by the head script, and only without reduced motion. */
html.u-motion [data-reveal] {
  opacity: 0; transform: translate3d(0, var(--u-rise), 0);
  transition: opacity var(--u-t3) var(--u-ease), transform var(--u-t3) var(--u-ease);
  transition-delay: calc(var(--i, 0) * var(--u-stagger));
}
html.u-motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .unpay-tab-panel { animation: none; }
  .btn:hover { transform: none; }
  .unpay-how .unpay-card, .unpay-step-n, .unpay-how .unpay-card h3 { transition: none; }
}

/* ---------- 1 Oct: two new rows. "When you'll want the undo" (lilac band, after How it works) and "Real payments,
   real endings" (lavender band, after the ink band). JS: _unpay/js/unpay-sections.js. */

/* "When": the art pinned left while the four cases scroll past (>= 1024); the case at mid-screen is lit = a white
   card, and the art plays it. Below 1024: heading, art, one swipe row. Ink only on lilac (5.8:1), no muted text. */
.unpay-cases { background-color: var(--u-band-lilac); color: var(--u-ink); }
html[data-mix="3"] .unpay-cases { background-color: color-mix(in oklab, var(--u-accent) 26%, var(--u-ground)); }
.unpay-cases .h2 { margin: 0; }
.u-cases-head { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.u-cases-head .p-md { margin: 0; color: var(--u-ink); }
.u-cases-art { width: 100%; aspect-ratio: 1; transition: opacity .25s var(--u-ease); }
html:not([data-mix="3"]) .u-cases-art { --u-accent: var(--u-band-deep); }
.u-cases-art.is-swap { opacity: 0; }
.u-cases-list { list-style: none; margin: 0; padding: 0; }
.u-case-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; box-sizing: border-box;
  padding: 2rem; border-radius: 1.5rem; background-color: rgb(255 255 255 / .55); box-shadow: none;
  transition: background-color var(--u-t2) var(--u-ease), box-shadow var(--u-t2) var(--u-ease), transform var(--u-t2) var(--u-ease);
}
.u-case.is-active .u-case-card { background-color: var(--u-card); box-shadow: var(--u-card-shadow); }
.u-case-n { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--u-ink); }
.u-case .h4 { margin: 0; font-size: clamp(1.375rem, .6vw + 1.1rem, 1.75rem); line-height: 1.15; letter-spacing: -.02em; color: var(--u-ink); }
.u-case .p-md { margin: 0; color: var(--u-ink); max-width: 30rem; }
.u-case-mode {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .25rem; padding: .4375rem .875rem .4375rem .625rem;
  border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.2;
  background-color: var(--u-card); color: var(--u-accent-deep);
  transition: background-color var(--u-t2) var(--u-ease);
}
.u-case.is-active .u-case-mode { background-color: var(--u-accent-tint); }
.u-case-mode-ico { width: 1.125rem; height: 1.125rem; flex: none; }
html[data-mix="3"] .u-case-mode { color: var(--u-ink); }
html[data-mix="3"] .u-case-card { background-color: color-mix(in oklab, var(--u-card) 55%, transparent); }
html[data-mix="3"] .u-case.is-active .u-case-card { background-color: var(--u-card); }
@media screen and (min-width: 1024px) {
  .u-cases-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 7rem); margin-top: clamp(2rem, 3vw, 3.5rem); }
  /* 1 Oct QA #11: the cases sit ~28vh apart (the section was 2273 px at 1750) and the art glides beside the lit case,
     centred on it (unpay-sections.js sets its translateY, kept inside the grid), instead of a sticky 100vh stage */
  .u-cases-stage { position: relative; }
  .u-cases-art { width: min(100%, 34rem, 72vh); margin-inline: auto;
    transition: opacity .25s var(--u-ease), transform var(--u-t2) var(--u-ease); }
  .u-case { display: flex; align-items: center; min-height: 28vh; }
  .u-cases-list { display: flex; flex-direction: column; gap: 1rem; }
  .u-case-card { width: 100%; max-width: 36rem; padding: 2.25rem 2.5rem; }
}
@media screen and (max-width: 1023px) {
  .u-cases-art { width: min(100%, 26rem); aspect-ratio: 4 / 3; margin: 1.5rem auto .5rem; }
  .u-cases-list {
    display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--u-gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--u-gutter)); padding: .5rem var(--u-gutter) 1.5rem;
  }
  .u-cases-list::-webkit-scrollbar { display: none; }
  .u-case { flex: 0 0 82%; scroll-snap-align: start; cursor: pointer; }
  .u-case-card { height: 100%; padding: 1.5rem 1.375rem; }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .u-cases-art { width: min(100%, 30rem); }
  .u-case { flex-basis: 46%; }
}

/* "Live": the counts, two lanes of real payments drifting in opposite directions, the honest label under them.
   Tiles are white with one soft shadow; final = green, pending = amber + time left, unpaid / sent back = indigo. */
.unpay-real { background-color: var(--u-accent-tint); color: var(--u-ink); }
.unpay-real .h2 { margin: 0; }
.u-live-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; }
.u-live-copy { display: flex; flex-direction: column; gap: 1rem; max-width: 34rem; }
.u-live-copy .p-md { margin: 0; color: var(--u-ink); }
.u-live-stats { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 3rem; margin: 0; }
.u-live-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; min-width: 7rem; }
.u-live-stat dt { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--u-ink); max-width: 11rem; }
@media screen and (min-width: 1024px) { .u-live-stat dt { max-width: none; white-space: nowrap; } }   /* all three on one line (QA #17) */
.u-live-stat dd {
  margin: 0; font-size: clamp(2.5rem, 2.4vw + 1.6rem, 4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--u-ink);
}
.u-live-stat[data-state="final"] dd { color: var(--u-final-ink); }
.u-live-stat[data-state="unpaid"] dd { color: var(--u-accent-deep); }
.u-live-stat[data-state="pending"] dd { color: var(--u-pending-ink); }
html[data-mix="3"] .u-live-stat[data-state="unpaid"] dd { color: var(--u-accent); }
.u-lanes { display: flex; flex-direction: column; gap: 1rem; margin-top: clamp(2.5rem, 4vw, 4rem); }
.u-lane:focus { outline: none; }
.u-lane:focus-visible { outline: 2px solid var(--u-accent-deep); outline-offset: -2px; }
.u-lane { overflow-x: auto; scrollbar-width: none; padding-block: .75rem 1.75rem; margin-block: -.75rem -1.75rem; }
.u-lane::-webkit-scrollbar { display: none; }
.u-lane-track { display: flex; width: max-content; will-change: transform; }
.u-lane-set { display: flex; gap: 1rem; margin: 0; padding: 0 1rem 0 var(--u-gutter); list-style: none; }
.u-lane-set + .u-lane-set { padding-left: 0; }
.u-lane:not(.is-drift) .u-lane-set[aria-hidden="true"] { display: none; }
.u-lane.is-drift { overflow: hidden; }
/* QA 1 Oct #1: tiles fade out at the card's sides (the hero wallet marquee's mask) instead of being cut */
.u-lane { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.u-pay {
  display: flex; align-items: flex-start; gap: .875rem; flex: none; width: 22rem; box-sizing: border-box;
  padding: 1.125rem 1.25rem; border-radius: 1.25rem; background-color: var(--u-card); box-shadow: var(--u-card-shadow);
}
.u-pay-ico { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.u-pay-ico .unpay-ico { width: 1.125rem; height: 1.125rem; }
.u-pay-body { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.u-pay-amt { font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.u-pay-amt small { font-size: 14px; font-weight: 500; color: var(--u-muted); letter-spacing: 0; }
.u-pay-meta { font-size: 14px; line-height: 1.35; color: var(--u-muted); font-variant-numeric: tabular-nums; }
@media screen and (min-width: 768px) { .u-pay-meta { white-space: nowrap; } }   /* one line, the badge right under it (QA #18) */
.u-pay-st {
  display: inline-flex; align-items: center; gap: .375rem; margin-top: .375rem; padding: .25rem .625rem; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.u-pay-left { font-variant-numeric: tabular-nums; }
.u-pay[data-state="final"] .u-pay-ico, .u-pay[data-state="final"] .u-pay-st { background: var(--u-final-bg); color: var(--u-final-ink); }
.u-pay[data-state="pending"] .u-pay-ico, .u-pay[data-state="pending"] .u-pay-st { background: var(--u-pending-bg); color: var(--u-pending-ink); }
.u-pay[data-state="pending"] .u-pay-amt { color: var(--u-muted); }
.u-pay[data-state="unpaid"] .u-pay-ico, .u-pay[data-state="unpaid"] .u-pay-st,
.u-pay[data-state="returned"] .u-pay-ico, .u-pay[data-state="returned"] .u-pay-st { background: var(--u-accent-tint); color: var(--u-accent-deep); }
html[data-mix="3"] .u-pay[data-state="unpaid"] .u-pay-st, html[data-mix="3"] .u-pay[data-state="returned"] .u-pay-st,
html[data-mix="3"] .u-pay[data-state="unpaid"] .u-pay-ico, html[data-mix="3"] .u-pay[data-state="returned"] .u-pay-ico { color: var(--u-ink); }
.u-live-note { margin: clamp(2rem, 3vw, 3rem) 0 0; font-size: 15px; line-height: 1.5; color: var(--u-ink); }
.u-live-note .text-link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media screen and (max-width: 767px) {
  .u-live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: 100%; }
  .u-live-stat { min-width: 0; }
  .u-live-stat dd { font-size: clamp(2rem, 8vw, 2.5rem); }
  .u-pay { width: 18.5rem; padding: 1rem 1.125rem; }
  .u-lanes { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .u-case-card, .u-case-mode, .u-cases-art { transition: none; }
  .u-case.is-active .u-case-card { transform: none; }
}

/* ---------- 1 Oct (client): every row between the hero and the closing CTA is an inset rounded card on the one paper
   ground, with visible side space and one gap, so a white card next to a lavender or ink one never butts into it
   (docs/review-01oct/cards.md). Colour order: white (Problem) -> deep indigo (How) -> lilac (When) -> white (Both
   sides) -> mist -> indigo banner (Three ways) -> ink (Final) -> lavender (Real payments) -> white (FAQ). The hero
   melts into the paper above the first card; the paper under the last card is where the CTA's flipped banner starts.
   Anything wide inside a card (swipe rows, lanes) runs to the card's edges and is clipped by its corners. */
:root {
  --card-gx: clamp(.75rem, 2.4vw - .25rem, 2rem);        /* side space: 12 px phones, ~20 at 1024, 32 from ~1450 (SOOK) */
  --card-gap: clamp(1rem, 1vw + .5rem, 1.5rem);          /* between cards: 16 px phones -> 24 px desktop */
  --card-r: clamp(1.5rem, 1.2vw + 1rem, 2.25rem);        /* corners: 24 px phones, ~28 tablet, 36 desktop (SOOK, Reserve) */
  --card-py: clamp(3.5rem, 4.5vw + 1.5rem, 7rem);        /* inner top / bottom: 56 -> 112 px */
}
.page-main > .section-2:is(.unpay-problem, .unpay-how, .unpay-cases, .unpay-sides, .unpay-tabs, .unpay-final, .unpay-real, .unpay-faq) {
  position: relative; box-sizing: border-box; flex: none; align-self: stretch; width: auto;
  margin: var(--card-gap) var(--card-gx) 0; padding-block: var(--card-py);
  border-radius: var(--card-r); overflow: clip;
  --u-gutter: clamp(1rem, 3.2vw + .25rem, 4rem);         /* text inset inside a card: 16 px phones (28 px from the screen) */
}
.page-main > .section-2.unpay-faq { margin-bottom: var(--card-gap); }
/* row 3: white card, the three problems on mist tiles (tone on tone, no shadow) */
.unpay-problem { background-color: var(--u-card); }
.unpay-problem .feature_card.unpay-card { background-color: var(--u-band-mist); box-shadow: none; }
html[data-mix="3"] .unpay-problem .feature_card.unpay-card { background-color: var(--u-surface); }
/* Night mix (?mix=3): the pale card grounds turn to the raised night tone so light type keeps its contrast */
html[data-mix="3"] .unpay-tabs { background-image: linear-gradient(104deg in oklab, var(--u-raised) 0%, var(--u-raised) 34%, #2b3070 64%, #3d41a8 100%); }
html[data-mix="3"] .unpay-faq-item { background: var(--u-surface); }
html[data-mix="3"] .unpay-faq-item[open] { background: var(--u-accent-tint); }

/* 44 px tap targets at phone width (the v5 proof, 3 Oct, found these 1-22 px short; the look is unchanged) */
@media screen and (max-width: 767px) {
  .u-nav-logo { box-sizing: content-box; padding-block: 11px; margin-block: -11px; }
  .footer_logo-2 { padding-block: 10px; margin-block: -10px; }
  .unpay-foot .footer_link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px; }
  .unpay-foot .text-link { padding-block: 10px; margin-block: -10px; min-width: 44px; }
  .unpay-ca-v { padding-block: 12px; margin-block: -12px; }
}
