/* hero.css: header (nav), hero, hero backdrop and the works-with strip. Loaded after unpay.css (build.py). Owned by the
   1 Oct hero pass (docs/review-01oct/BRIEF.md sections 1 + 2). Markup: build.py rewrite_nav / rewrite_hero /
   works_tail. Behaviour: js/unpay-hero.js (header states, menu sheet, the hero pin) and js/unpay-backdrop.js (the
   drifting brand shapes on every [data-backdrop]). */

:root {
  /* the client's banner (brand/client-2026-09-30/banner.jpg): indigo at the top, lavender, near white at the foot */
  --h-indigo: #5d55e8;
  --h-indigo-2: #625ae9;                                   /* white text still 5.1:1 here: the copy ends above it */
  --h-violet: #7c76ee;
  --h-lilac: #a4a1f2;
  --h-mist: #e4e3fb;                                       /* the stage's foot = the tail's top: no seam */
  --h-paper: color-mix(in srgb, var(--u-ground) 30%, #fff);
  --h-nav-h: 72px;
  --h-pill-b: 76px;                                        /* the glass pill's foot: 16 px from the top + 60 px tall */
}

/* ============================================================ header */
.u-nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.u-nav-bar {
  pointer-events: auto; box-sizing: border-box; position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.5rem;
  /* the same column as the page content (.container-2 in unpay.css): the logo lines up with every section's text */
  width: min(90rem, 100% - 2 * var(--u-gutter, 32px)); height: var(--h-nav-h); margin: 0 auto; padding: 0;
  border-radius: 20px;
  background-color: rgb(250 249 246 / 0); box-shadow: 0 10px 30px -14px rgb(30 43 85 / 0), 0 1px 2px rgb(30 43 85 / 0);
  -webkit-backdrop-filter: blur(0px) saturate(100%); backdrop-filter: blur(0px) saturate(100%);
  color: #fff; --u-logo-a: #fff; --u-logo-b: #fff;
  transition: width var(--u-t2) var(--u-ease), height var(--u-t2) var(--u-ease), margin var(--u-t2) var(--u-ease),
    padding var(--u-t2) var(--u-ease), background-color var(--u-t2) var(--u-ease), box-shadow var(--u-t2) var(--u-ease),
    backdrop-filter var(--u-t2) var(--u-ease), -webkit-backdrop-filter var(--u-t2) var(--u-ease),
    color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d);
  /* the type flips faster than the pill fills (1 Oct QA N4: white text sat on a half-filled pale pill for ~0.3 s) */
  --nav-ink-t: .1s; --nav-ink-d: 0s;
}
.u-nav-logo { justify-self: start; display: block; height: 24px; color: inherit; line-height: 0; }
.u-nav-logo .unpay-logo { display: block; height: 100%; width: auto; }
.u-nav-logo stop { transition: stop-color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d); }
.u-nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; }
/* section links: one quiet size; the section on screen gets a small dot under its link (unpay.js 5) */
.u-nav-link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 12px;
  color: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--u-t1) var(--u-ease), color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d);
}
.u-nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: currentColor; opacity: 0; transform: scale(.3);
  transition: opacity var(--u-t2) var(--u-ease), transform var(--u-t2) var(--u-ease);
}
.u-nav-link.is-active::after { opacity: 1; transform: none; }
.u-nav-link:hover { background-color: rgb(255 255 255 / .14); }
.u-nav-end { justify-self: end; display: flex; align-items: center; gap: 2px; }
.u-nav-end .u-nav-cta { margin-left: 8px; }
.u-nav-cta, .u-sheet-cta, .u-btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; box-sizing: border-box;
  height: 44px; padding: 0 18px 0 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  background-color: #fff; color: var(--u-accent-deep);
  transition: background-color var(--u-t2) var(--u-ease), color var(--u-t2) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.u-nav-cta { transition: background-color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d), color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d), transform var(--u-t1) var(--u-ease); }
.u-nav-cta:hover, .u-btn-white:hover { transform: scale(1.025); }
.u-nav-cta:active, .u-btn-white:active, .u-sheet-cta:active { transform: scale(.98); }
.u-nav-cta-ico { display: block; width: 18px; height: 18px; flex: none; }
.u-nav-menu { display: none; }
.u-nav a:focus-visible, .u-nav button:focus-visible, .u-hero a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* scrolled: a glass pill, paper at 72 %; logo, four links, Open app */
.u-nav[data-nav-state="glass"] .u-nav-bar, .u-nav.is-open .u-nav-bar {
  width: min(880px, 100% - 32px); height: 60px; margin-top: 16px; padding: 0 8px 0 20px;
  background-color: rgb(250 249 246 / .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 10px 30px -14px rgb(30 43 85 / .30), 0 1px 2px rgb(30 43 85 / .06);
  color: var(--u-ink); --u-logo-a: #4f46e5; --u-logo-b: #9ea1f6;
}
.u-nav[data-nav-state="glass"] .u-nav-link:hover, .u-nav.is-open .u-nav-link:hover,
.u-nav[data-nav-state="glass"] .u-nav-link::after { background: var(--u-accent-deep); }
.u-nav[data-nav-state="glass"] .u-nav-cta, .u-nav.is-open .u-nav-cta { background-color: var(--u-accent-deep); color: #fff; }
.u-nav[data-nav-state="glass"] .u-nav-cta:hover { background-color: var(--u-accent-deeper); }
/* over a dark band ([data-nav="dark"]): dark glass, white type */
.u-nav[data-nav-state="dark"]:not(.is-open) .u-nav-bar {
  width: min(880px, 100% - 32px); height: 60px; margin-top: 16px; padding: 0 8px 0 20px;
  background-color: rgb(22 26 66 / .72);                  /* dark enough for white type over any ground (#final starts pale) */
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 30px -14px rgb(8 10 30 / .5), 0 1px 2px rgb(8 10 30 / .1);
  color: #fff;
}
.u-nav.is-open .u-nav-bar { background-color: rgb(250 249 246 / .96); }

/* the header's link targets: since the rows became inset cards (1 Oct) a section's top is its card's top, so an anchor
   lands the card 16 px below the glass pill instead of under it (loaded after unpay.css, so this wins) */
#how, #when, #ways, #live, #faq { scroll-margin-top: calc(var(--h-pill-b) + 16px); }

/* below 1024 the links move into the menu sheet */

/* phones + tablets (below 1024): bar, small Open app, menu button; every link lives in the sheet (1 Oct: at 768-1023
   the bar had room for only 3 of the 5 links, so the rest could not be reached) */
@media (max-width: 1023px) {
  :root { --h-nav-h: 64px; }
  .u-nav-bar { grid-template-columns: 1fr auto; width: calc(100% - 32px); padding: 0; }
  .u-nav-links { display: none; }
  .u-nav-end .u-nav-cta { margin-left: 0; }
  .u-nav-logo { height: 22px; }
  .u-nav-cta { height: 44px; padding: 0 14px 0 11px; font-size: 15px; gap: .375rem; }   /* 44 px tap target (QA 1 Oct #12) */
  /* QA 1 Oct #13: the sheet has its own big Open app, so the bar's one fades out while the sheet is open */
  .u-nav-end .u-nav-cta { transition: background-color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d), color var(--nav-ink-t) var(--u-ease) var(--nav-ink-d), transform var(--u-t1) var(--u-ease), opacity var(--u-t2) var(--u-ease), visibility 0s linear 0s; }
  .u-nav.is-open .u-nav-end .u-nav-cta { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--u-t2) var(--u-ease), visibility 0s linear var(--u-t2); }
  .u-nav-cta-ico { width: 16px; height: 16px; }
  .u-nav-menu {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin: 0 -6px 0 0; padding: 0;
    border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer;
  }
  .u-nav-menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform var(--u-t2) var(--u-ease); }
  .u-nav.is-open .u-nav-menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .u-nav.is-open .u-nav-menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .u-nav[data-nav-state="glass"] .u-nav-bar, .u-nav[data-nav-state="dark"]:not(.is-open) .u-nav-bar, .u-nav.is-open .u-nav-bar {
    width: calc(100% - 24px); height: 60px; margin-top: 12px; padding: 0 8px 0 16px; border-radius: 18px;
  }
}
.u-nav-sheet {
  pointer-events: auto; box-sizing: border-box; width: calc(100% - 24px); margin: 8px auto 0; padding: 8px 16px 16px;
  border-radius: 20px; background: var(--h-paper); color: var(--u-ink);
  box-shadow: 0 24px 48px -20px rgb(30 43 85 / .35), 0 1px 2px rgb(30 43 85 / .06);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: 50% 0;
  transition: opacity var(--u-t2) var(--u-ease), transform var(--u-t2) var(--u-ease), visibility 0s linear var(--u-t2);
}
.u-nav.is-open .u-nav-sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.u-sheet-links { display: flex; flex-direction: column; }
.u-sheet-link {
  display: flex; align-items: center; min-height: 60px; color: var(--u-ink); text-decoration: none;
  font-size: 28px; font-weight: 600; letter-spacing: -.025em;
}
.u-sheet-link.is-active { color: var(--u-accent-deep); }
.u-sheet-cta { width: 100%; height: 52px; margin-top: 8px; background-color: var(--u-accent-deep); color: #fff; font-size: 17px; }
@media (min-width: 1024px) { .u-nav-sheet { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .u-nav-sheet { max-width: 560px; margin-right: 12px; } }

/* ============================================================ backdrop (js/unpay-backdrop.js) */
[data-backdrop] { position: relative; isolation: isolate; }
.u-bd {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--bd-grad, linear-gradient(180deg, var(--h-indigo) 0%, var(--h-violet) 40%, var(--h-lilac) 68%, #edecfc 90%, var(--u-ground) 100%));
}
[data-backdrop="flip"] > .u-bd {
  background: var(--bd-grad, linear-gradient(180deg, var(--u-ground) 0%, #edecfc 16%, var(--h-lilac) 52%, var(--h-violet) 78%, var(--h-indigo) 100%));
}
.u-bd-shape { position: absolute; left: 0; top: 0; will-change: transform; backface-visibility: hidden; }
.u-bd-shape svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ============================================================ hero */
.u-hero { position: relative; background: var(--u-ground); font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.u-hero-pin { position: relative; }
/* 1 Oct QA S2: on a fast flick (and in the browser's overscroll bounce) the whole frame can sit a few px low for a
   frame and the page canvas shows above it. The canvas is the hero's top indigo (it also meets the indigo footer at
   the bottom); body keeps painting paper over the whole page, so nothing else changes. (html:root outranks the
   reference's inline `html { background-color }`.) */
html:root { background-color: var(--h-indigo); }
.u-hero-stage {
  position: relative; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column;
  --bd-grad: linear-gradient(180deg, var(--h-indigo) 0%, var(--h-indigo) 26%, var(--h-indigo-2) 42%, var(--h-violet) 57%, var(--h-lilac) 77%, #d8d6f9 92%, var(--h-mist) 100%);
}
.u-hero-copy {
  position: relative; z-index: 2; box-sizing: border-box; width: 100%;
  padding: calc(var(--h-nav-h) + clamp(20px, 4.5vh, 56px)) var(--u-gutter, 24px) 0; text-align: center; color: #fff;
  will-change: transform, opacity;
}
.u-hero-h {
  margin: 0 auto; max-width: 16ch; color: #fff;
  font: 600 clamp(2.75rem, min(4.2vw + 1.4rem, 8.6vh), 5rem)/1.02 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em; text-wrap: balance;
}
@media (min-width: 1024px) { .u-hero-h { max-width: none; } }
.u-hero-p {
  margin: clamp(12px, 2vh, 20px) auto 0; max-width: 46rem; color: #fff;
  font-size: clamp(1.0625rem, .45vw + .9rem, 1.3125rem); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; text-wrap: balance;
}
.u-hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: clamp(20px, 3.4vh, 32px); }
.u-btn-white { height: 50px; padding: 0 24px 0 18px; font-size: 17px; box-shadow: 0 12px 28px -14px rgb(20 16 90 / .55); }
.u-btn-white:hover { background-color: #f1f0fe; }
.u-hero-link {
  display: inline-flex; align-items: center; gap: .5rem; height: 50px; padding: 0 12px; color: #fff;
  font-size: 17px; font-weight: 600; letter-spacing: -.005em; text-decoration: none;
  text-decoration-line: underline; text-decoration-color: rgb(255 255 255 / 0); text-underline-offset: 6px; text-decoration-thickness: 2px;
  transition: text-decoration-color var(--u-t1) var(--u-ease);
}
.u-hero-link:hover { text-decoration-color: rgb(255 255 255 / .8); }

/* iPhone / Android APK / Chrome extension under the buttons (client 3 Oct): small white-on-indigo glass pills with
   the brand marks (one size, one colour); they slide in one after another once the title is in (u-motion only) */
.u-hero-get { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: clamp(12px, 2vh, 18px) auto 0; max-width: 40rem; }
.u-get {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; box-sizing: border-box; padding: 0 1rem 0 .875rem;
  border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color var(--u-t1) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.u-get:hover { background: rgb(255 255 255 / .24); transform: translateY(-1px); }
.u-get:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.u-get-mark { flex: none; width: 18px; height: 18px; }
.u-get-s { font-weight: 500; font-size: 13px; color: rgb(255 255 255 / .78); }
.u-get.is-soon { background: rgb(255 255 255 / .08); }
.u-get.is-soon .u-get-t { color: rgb(255 255 255 / .86); }
html.u-motion .u-get { animation: u-get-in .7s var(--u-ease) both; animation-delay: calc(.55s + var(--i, 0) * .09s); }
@keyframes u-get-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@media (max-width: 420px) { .u-get { padding: 0 .875rem 0 .75rem; font-size: 14px; } .u-get-s { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .u-get { animation: none !important; transition: none; } }

/* the waitlist field (client 3 Oct): one glass pill, the email and a white button inside it; the line under it says
   "You're on the list." or what is wrong with the address */
.u-hero-wl { width: 100%; max-width: 27rem; margin: clamp(14px, 2.2vh, 20px) auto 0; }
.u-hero-wl-field {
  display: flex; align-items: center; gap: .375rem; box-sizing: border-box; height: 52px; padding: 4px 4px 4px 1.125rem;
  border-radius: 999px; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); transition: background-color var(--u-t1) var(--u-ease), box-shadow var(--u-t1) var(--u-ease);
}
.u-hero-wl-field:focus-within { background: rgb(255 255 255 / .22); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75); }
.u-hero-wl-field.is-bad { box-shadow: inset 0 0 0 1.5px #ffd2c2; }
.u-hero-wl-input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: none; color: #fff;
  font: 500 16px/1 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.005em;
}
.u-hero-wl-input::placeholder { color: rgb(255 255 255 / .66); }
.u-hero-wl-btn {
  flex: none; height: 44px; padding: 0 1.125rem; border: 0; border-radius: 999px; cursor: pointer; background: #fff;
  color: var(--u-accent-deep, #4f46e5); font: 600 15px/1 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.005em; white-space: nowrap; transition: background-color var(--u-t1) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.u-hero-wl-btn:hover { background: #f1f0fe; }
.u-hero-wl-btn:active { transform: scale(.98); }
.u-hero-wl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.u-hero-wl-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.u-hero-wl-msg { margin: .5rem 0 0; font-size: 14px; font-weight: 500; line-height: 1.3; color: #fff; }
.u-hero-wl-msg:empty { display: none; }
.u-hero-wl-msg.is-bad { color: #ffe1d6; }
.u-hero-wl.is-done .u-hero-wl-field { display: none; }
.u-hero-wl.is-done .u-hero-wl-msg {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; border-radius: 999px;
  background: rgb(255 255 255 / .16); font-size: 16px; font-weight: 600;
}
.u-hero-wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.u-hero-wl .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; }
html.u-motion .u-hero-wl { animation: u-get-in .7s var(--u-ease) .45s both; }
@media (max-width: 420px) { .u-hero-wl-field { padding-left: 1rem; } .u-hero-wl-btn { padding: 0 .875rem; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .u-hero-wl { animation: none !important; } .u-hero-wl-field, .u-hero-wl-btn { transition: none; } }

/* the art: centred, no box behind it (transparent canvas) */
.u-hero-art { position: relative; z-index: 1; box-sizing: border-box; }
.u-hero-art > #art-hero { position: absolute; inset: 0; --u-wash: #d9d8f6; }   /* hatch shade leans lavender on this ground */
html.u-motion .u-hero-art > #art-hero { animation: u-hero-art-in 1.2s var(--u-ease) .15s both; }
@keyframes u-hero-art-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* phones + tablets (and reduced motion): no pin, the art under the copy, the story plays by itself */
.u-hero-art { width: 94%; margin: clamp(8px, 2.5vh, 32px) auto 0; aspect-ratio: 390 / 380; max-height: 78svh; }
@media (min-width: 600px) { .u-hero-art { aspect-ratio: 4 / 3; max-height: 62svh; } }
@media (min-width: 1024px) { .u-hero-art { height: clamp(460px, calc(100svh - 300px), 860px); aspect-ratio: auto; max-height: none; } }
@media (max-width: 767px) {
  .u-hero-stage { --bd-grad: linear-gradient(180deg, var(--h-indigo) 0%, var(--h-indigo) 34%, var(--h-indigo-2) 48%, var(--h-violet) 60%, var(--h-lilac) 77%, #d8d6f9 92%, var(--h-mist) 100%); }
}

/* desktop >= 1024: the stage pins for one more screen and scroll drives the story (unpay-hero.js sets the
   transforms: the copy lifts away, the art grows from under the copy to the whole stage) */
@media (min-width: 1024px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .u-hero-pin { height: 200vh; }
  /* a tighter copy block (title size unchanged) leaves more height to the art under it at the top */
  .u-hero-copy { padding-top: calc(var(--h-nav-h) + clamp(16px, 3vh, 40px)); }
  .u-hero-cta { margin-top: clamp(16px, 2.6vh, 28px); }
  .u-hero-stage { position: sticky; top: 0; height: 100vh; }
  .u-hero-art {
    position: absolute; left: 3.5%; right: 3.5%; top: calc(var(--h-pill-b) + 8px); bottom: calc(2vh + 44px);
    width: auto; height: auto; margin: 0; transform-origin: 50% 100%; will-change: transform;
  }
}

/* the story's words under the art: the step the scene is on is ink with its colour dot, the others muted */
.u-hero-steps {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem 1.75rem;
  margin: 4px auto 0; padding: 0 16px; list-style: none; color: var(--u-ink);
  font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em;
}
.u-hero-steps li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: #414a78;
  transition: color var(--u-t2) var(--u-ease); }
/* phones: the drifting dot's darker edge can pass behind the row (worst ground L 0.36): a deeper muted ink keeps every
   label >= 4.5:1 there (#414a78 fell to 3.6:1); the step the scene is on still reads by weight + its colour dot */
/* phones: one step per row, left-aligned, the column centred under the art (three in a row wrapped 2 + 1) */
@media (max-width: 767px) {
  .u-hero-steps { display: grid; justify-content: center; justify-items: start; gap: .5rem; margin-top: 12px; }
  .u-hero-steps li { color: #28305e; }
}
.u-hero-steps i { display: block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #8f8cc9;
  transition: background-color var(--u-t2) var(--u-ease), transform var(--u-t2) var(--u-ease); }
.u-hero-steps[data-now="send"] [data-step="send"], .u-hero-steps[data-now="window"] [data-step="window"],
.u-hero-steps[data-now="end"] [data-step="end"] { color: var(--u-ink); font-weight: 600; }
.u-hero-steps[data-now="send"] [data-step="send"] i { background: var(--u-accent-deep); transform: scale(1.25); }
.u-hero-steps[data-now="window"] [data-step="window"] i { background: var(--u-pending); transform: scale(1.25); }
.u-hero-steps[data-now="end"] [data-end="undone"] i { background: var(--u-accent-deep); transform: scale(1.25); }
.u-hero-steps[data-now="end"] [data-end="final"] i { background: var(--u-final); transform: scale(1.25); }
.u-hero-steps [data-end="undone"] .is-final, .u-hero-steps [data-end="final"] .is-undone { display: none; }
@media (min-width: 1024px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .u-hero-steps { position: absolute; left: 0; right: 0; bottom: 2vh; margin: 0; min-height: 44px; align-items: center; opacity: 0; }
}

/* ============================================================ works with: the hero's lavender -> paper tail */
.u-works {
  padding: clamp(16px, 2.4vw, 32px) 0 clamp(56px, 7vw, 96px); text-align: center;
  background: linear-gradient(180deg, var(--h-mist) 0%, color-mix(in srgb, var(--h-mist) 50%, var(--u-ground)) 45%, var(--u-ground) 100%);
}
.u-works-live {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: var(--u-ink);
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.u-works-h {
  margin: .5rem 0 0; color: var(--u-muted); font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0;
}
.u-marquee {
  margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.u-marquee-track { display: flex; width: max-content; animation: u-marquee 42s linear infinite; }
.u-marquee:hover .u-marquee-track { animation-play-state: paused; }
.u-works-row { display: flex; align-items: center; flex: none; gap: clamp(40px, 5vw, 72px); padding-right: clamp(40px, 5vw, 72px); }
.u-works-dup { display: contents; }
.u-works-logo { height: 1.625rem; background-color: color-mix(in oklab, var(--u-ink) 72%, transparent); }
@keyframes u-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ============================================================ reduced motion: static shapes, no pin, no marquee */
@media (prefers-reduced-motion: reduce) {
  .u-nav-bar, .u-nav-sheet, .u-nav-menu span, .u-nav-link::after { transition: none; }
  .u-marquee { -webkit-mask-image: none; mask-image: none; }
  .u-marquee-track { animation: none; width: auto; justify-content: center; }
  .u-works-row { flex-wrap: wrap; justify-content: center; padding: 0 16px; row-gap: 20px; }
  .u-works-row[aria-hidden], .u-works-dup { display: none; }
  .u-nav-cta:hover, .u-btn-white:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .u-nav .u-nav-end .u-nav-cta, .u-nav.is-open .u-nav-end .u-nav-cta { transition: none; }   /* the menu's Open app swap is instant */
}

/* skip link (1 Oct QA): off screen until a keyboard user tabs to it, then a small pill top-left above the header */
.u-skip {
  position: fixed; z-index: 1000; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 12px; padding: 10px 16px; border-radius: 999px;
  background: #1e2b55; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.u-skip:focus, .u-skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; }

/* ============================================================ X corner button (client, 3 Oct)
   A round button in the top-right corner, outside the header bar; the bar leaves room for it on the right. */
.u-x-corner {
  pointer-events: auto; position: fixed; z-index: 61; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 14px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; box-sizing: border-box;
  color: #fff; background-color: rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  transition: background-color var(--u-t2) var(--u-ease), color var(--nav-ink-t, .1s) var(--u-ease), top var(--u-t2) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.u-x-corner svg { display: block; width: 17px; height: 17px; fill: currentColor; }
.u-x-corner:hover { transform: translateY(-1px); background-color: rgb(255 255 255 / .26); }
.u-x-corner:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.u-nav[data-nav-state="glass"] .u-x-corner, .u-nav.is-open .u-x-corner {
  top: calc(env(safe-area-inset-top, 0px) + 24px); color: var(--u-ink); background-color: rgb(250 249 246 / .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 10px 30px -14px rgb(30 43 85 / .30), 0 1px 2px rgb(30 43 85 / .06);
}
.u-nav[data-nav-state="glass"] .u-x-corner:hover { background-color: rgb(250 249 246 / .92); }
.u-nav[data-nav-state="dark"]:not(.is-open) .u-x-corner {
  top: calc(env(safe-area-inset-top, 0px) + 24px); color: #fff; background-color: rgb(22 26 66 / .72);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 30px -14px rgb(8 10 30 / .5), 0 1px 2px rgb(8 10 30 / .1);
}
/* desktop top state: the transparent full-width bar ends before the button */
@media (min-width: 1024px) {
  .u-nav[data-nav-state="top"]:not(.is-open) .u-nav-bar { padding-right: 52px; }
}
/* phones + tablets: the bar and its pill shift left to leave the corner to the button */
@media (max-width: 1023px) {
  .u-x-corner { right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .u-nav[data-nav-state="glass"] .u-x-corner, .u-nav.is-open .u-x-corner,
  .u-nav[data-nav-state="dark"]:not(.is-open) .u-x-corner { top: calc(env(safe-area-inset-top, 0px) + 20px); }
  .u-nav-bar { width: calc(100% - 32px - 52px); margin-left: 16px; }
  .u-nav[data-nav-state="glass"] .u-nav-bar, .u-nav[data-nav-state="dark"]:not(.is-open) .u-nav-bar, .u-nav.is-open .u-nav-bar {
    width: calc(100% - 24px - 52px); margin-left: 12px;
  }
}
