/*
 * The landing page's own stylesheet, served as one file (css/landing.css) and loaded by the landing
 * only. The seven sections built from the boards keep their rules in lobb.css; here is what was
 * built round them, one part per section, after this one for what they share.
 *
 * Every section is complete and still as plain HTML. Where a script takes a section over it marks
 * it with `data-live`, and only then does the section's moving layout apply. With reduced motion no
 * section is marked, so each shows its still.
 */

/*
 * A section that holds the screen while it is scrolled through: it is as tall as its stage plus the
 * scroll that drives it, and the stage stays put. A sticky stage only works while no ancestor clips
 * it, so such a section shows its overflow and the stage clips its own.
 */
.lp section[data-live='hold'] {
  overflow: visible;
}

.lp section[data-live='hold'] > .lp-stage {
  position: sticky;
  top: 0;
  overflow: hidden;
}

/*
 * A stage that fills the screen is as tall as the screen can get (a phone's address bar slides
 * away), so its ground reaches the bottom edge either way, and it lays its content out in the
 * height the screen always has.
 */
.lp section[data-live='hold'] > .lp-stage--screen {
  height: 100vh;
  height: 100lvh;
}

.lp section[data-live='hold'] > .lp-stage--screen > .lp-wrap {
  height: 100vh;
  height: 100svh;
}

/* --- What the sections share: a small label over a headline, the headline's size, a line of text, a mark */

/*
 * Every headline on the page is the page's own: it carries the class `headline`, from which it
 * takes its face, its weight and its tracking (lobb.css), and a section gives it only its size.
 */
.lp .headline.lp-heading {
  max-width: 11em;
  font-size: min(11vw, 52px);
  text-wrap: balance;
}

.lp-eyebrow {
  margin-bottom: 18px;
  color: var(--quiet);
}

.lp-lede {
  max-width: 26em;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.lp-head .lp-lede {
  margin-top: 20px;
}

/* On ink: the label and the line of text are the boards' grey for text there. */
.lp-lob,
.lp-stream,
.lp-drift,
.lp-merch {
  --quiet: var(--muted);
}

.lp-lob .lp-lede,
.lp-stream .lp-lede,
.lp-drift .lp-lede,
.lp-merch .lp-lede {
  color: var(--muted);
}

/* The quiet action beside a yellow button: the same shape, outlined. */
.lp-quiet {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 26px;
  border: 1px solid var(--ring);
  border-radius: 16px;
  color: var(--paper);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.lp-quiet:hover {
  border-color: var(--paper);
}

@media (min-width: 1024px) {
  .lp .headline.lp-heading {
    font-size: clamp(44px, 3.7vw, 78px);
  }

  .lp-lede {
    font-size: clamp(17px, 1.1vw, 21px);
  }

  /* A section's head: the label and the headline on the left, the line of text on the right, level with the headline's foot. */
  .lp-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 26em);
    gap: 48px;
    align-items: end;
  }

  .lp-head .lp-lede {
    margin-top: 0;
    padding-bottom: 0.5em;
  }
}

/* --- 00, the header (adapted from Annnimate's floating navbar) */

/*
 * Open at the top of the page, over the ink hero: the logo, the links, Sign in and the action as the
 * cards board's outlined mono button. The script fixes it to the screen and folds it into a small
 * pill once the page scrolls: blue, holding the small mark and Sign in. Without the script it is the
 * bar at the top of the page and no more.
 */
.lp-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 75px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.lp-nav[data-live] {
  position: fixed;
}

/*
 * The hero makes room for it. On a phone the bar lies exactly where the hero's own bar was (the logo
 * left, a mono word right), so the hero's bar keeps its room and shows nothing. From 1024 px the
 * board starts below the bar instead (the rule is with the other wide rules, further down).
 */
.lp-hero-bar > * {
  visibility: hidden;
}

.lp-nav-row {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.lp-nav a,
.lp-menu-button {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

/*
 * The pill the header folds into: blue, which shows on ink and on paper alike. Its edge is a thin
 * line of ink, the gap every blue dash of the hero's band keeps from the next, so the pill stays a
 * thing of its own while the band passes under it.
 */
.lp-nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue);
  outline: 2px solid var(--ink);
  opacity: 0;
}

/*
 * The logo: the wordmark, in paper. It is one drawing in a window. To fold it the script narrows the
 * window to the raised o with its bar, the small mark, and slides the drawing so the o stands in it:
 * nothing is redrawn. The window's docked width is what the measuring class sets below. On the blue
 * pill the mark is as it is on the ink bar: one flat colour, paper, with no ground of its own.
 */
.lp-nav-logo {
  flex: none;
  align-items: flex-start;
  margin-right: auto;
  font-size: 16px;
}

.lp-nav-crop {
  display: block;
  flex: none;
  width: calc(var(--mark) * 1540 / 600);
  overflow: hidden;
}

.lp-nav-links {
  display: none;
}

.lp-nav-links a,
.lp-nav-signin {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  text-decoration: none;
}

/*
 * The underline of a link in the bar: a thin line that is drawn in from the left under a pointer or
 * the keyboard's focus, and leaves to the right. For a reader who asked for stillness it is simply
 * there, and then not.
 */
.lp-nav-links a::after,
.lp-nav-signin::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transform-origin: 100% 50%;
}

.lp-nav-links a:hover::after,
.lp-nav-links a:focus-visible::after,
.lp-nav-signin:hover::after,
.lp-nav-signin:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .lp-nav-links a::after,
  .lp-nav-signin::after {
    transition: transform 280ms cubic-bezier(0.3, 0.9, 0.1, 1);
  }
}

/*
 * Sign in is the one thing the pill holds beside the logo. On a phone it is not in the open bar (it
 * is in the menu): it waits for the pill, and arrives with it.
 */
.lp-nav-signin {
  visibility: hidden;
  opacity: 0;
}

.lp-nav-end {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

/* The phone's menu is open: the page behind it stays where it is. */
.lp-menu-open {
  overflow: hidden;
}

/*
 * On a phone the folded bar floats over the top of the screen, so a link into the page stops a
 * little short of a section's top and its headline lands clear of the pill. A section that holds
 * the screen has that room inside it, and has to be met exactly at its top to hold.
 */
@media (max-width: 1023px) {
  .lp-nav[data-live] ~ .lp section {
    scroll-margin-top: 44px;
  }

  .lp-nav[data-live] ~ .lp section[data-live='hold'] {
    scroll-margin-top: 0;
  }
}

/*
 * The page's action: the outlined mono button of the cards board, in paper. Never a second yellow
 * button. It belongs to the open bar and leaves with it: the pill holds no box (the pill is the
 * frame, and a box inside a pill is one frame too many), only the bare words Sign in.
 */
.lp-nav-action,
.lp-menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--paper);
  font-size: 11.5px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.lp-nav-action:hover {
  background: var(--paper);
  color: var(--ink);
}

/* On a phone the bar is the logo and the menu, and the action is in the menu. */
.lp-nav-action {
  display: none;
}

/*
 * The phone's menu. Its button is a summary, so it opens and closes with no script at all. Its two
 * words lie one over the other, so the button is as wide open as shut and nothing beside it moves.
 */
.lp-menu-button {
  position: relative;
  display: inline-grid;
  justify-items: end;
  border-color: transparent;
  padding: 0 0 0 10px;
  list-style: none;
  cursor: pointer;
}

/* The word is small; the room to press it is not. */
.lp-menu-button::after {
  position: absolute;
  inset: -10px -12px -10px -2px;
  content: '';
}

/* At the top of the page the word ends on the page's margin; in the pill it sits in the middle of its room. */
.lp-nav.is-docked .lp-menu-button {
  justify-items: center;
}

/* In the pill two bare words stand side by side: a hairline in their own paper keeps them apart. */
.lp-nav.is-docked .lp-menu-button::before {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: var(--paper);
  content: '';
}

.lp-menu-button::-webkit-details-marker {
  display: none;
}

.lp-menu-word {
  grid-area: 1 / 1;
}

.lp-menu-word--close,
.lp-menu[open] .lp-menu-word {
  visibility: hidden;
}

.lp-menu[open] .lp-menu-word--close {
  visibility: visible;
}

/*
 * Without the script the bar is not fixed and scrolls away with the page, while the open sheet
 * covers the screen: the button that closes it then stays in the screen's corner, in reach.
 */
.lp-nav:not([data-live]) .lp-menu[open] .lp-menu-button {
  position: fixed;
  top: 20px;
  right: 22px;
}

/* The sheet: ink, over the whole screen, under the bar. The links are set at the headline's size. */
.lp-menu-sheet {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 118px 22px 28px;
  overflow-y: auto;
  background: var(--ink);
  pointer-events: auto;
}

.lp-menu-links {
  font-family: var(--sans);
  font-size: min(40px, calc((100vw - 44px) / 9.75));
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-transform: none;
}

.lp-menu-links a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
}

.lp-menu-action {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-top: 28px;
  padding: 0 14px;
  border: 1px solid var(--paper);
  text-decoration: none;
}

/* Docked, the pill above the sheet already holds Sign in. */
.lp-nav.is-docked .lp-menu-signin {
  display: none;
}

.lp-menu-sheet .mono-label {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
}

/*
 * The docked layout, applied for one measurement only and never painted: the script reads where
 * everything sits inside the pill, removes the class and moves each thing there itself.
 */
.lp-nav.is-measuring .lp-nav-row {
  justify-content: center;
  gap: 8px;
}

.lp-nav.is-measuring .lp-nav-logo {
  margin-right: 0;
}

.lp-nav.is-measuring .lp-nav-crop {
  width: calc(var(--mark) * 400 / 600);
}

.lp-nav.is-measuring .lp-nav-links,
.lp-nav.is-measuring .lp-nav-action {
  display: none;
}

/* A bare word wants more room round it than a box that brings its own. */
.lp-nav.is-measuring .lp-nav-signin {
  margin: 0 8px;
}

@media (min-width: 768px) {
  .lp-nav {
    height: 64px;
  }

  .lp-nav-logo {
    align-items: center;
    margin-right: 0;
    font-size: 18px;
  }

  /* The links stand between the logo and the bar's end. */
  .lp-nav-links {
    display: flex;
    gap: 24px;
    margin: 0 auto;
  }

  .lp-nav-signin {
    visibility: visible;
    opacity: 1;
  }

  .lp-nav-end {
    gap: 20px;
  }

  .lp-nav-action {
    display: inline-flex;
    height: 30px;
    font-size: 12px;
  }

  .lp-menu {
    display: none;
  }

}

@media (min-width: 1024px) {
  /* The bar lies over the top of the hero, so the board starts below it, with its own logo and label. */
  .lp .lp-hero {
    padding-top: 64px;
  }

  .lp-hero-bar > * {
    visibility: visible;
  }

  /* With room to spare, the links sit in the very middle of the bar whatever stands at its ends. */
  .lp-nav-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 var(--edge);
  }

  .lp-nav-logo {
    justify-self: start;
  }

  .lp-nav-links {
    gap: 30px;
    margin: 0;
  }

  .lp-nav-end {
    justify-self: end;
    gap: 22px;
  }

  .lp-nav.is-measuring .lp-nav-row {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-nav-action {
    transition: none;
  }
}

/* --- The hero: the three lines, the pay screen on a phone, where the payment came from and went */

/*
 * The owner's pick (src/ui/landing/hero.ts): laid as Cash App lays its hero, on the yellow ground of
 * the pay and receipt pages, from their own pictures. It fills the first screen at every size, by
 * itself: no script holds it. What moves in it is the stylesheet's alone, the two pictures beside the
 * phone popping in and floating (at the end), and nothing waits on it.
 */
.lp .hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--yellow);
  color: var(--ink);
}

/*
 * The ground: the pay page's lanes tone on tone; from 1024 px the big cluster of ink lanes in the
 * bottom right corner, and, where the logo stands clear of it (from 1660 px: 56 px in from the
 * content's edge, which is 1440 px wide at most), the small one in the top left, as on the pay page.
 * A phone has the lanes alone: the pay page shows no ground there, and a cluster beside a phone's
 * phone outweighs it.
 */
.lp .hero {
  background-image: url(../art/receipt-ground-small.svg);
  background-position: left bottom;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .lp .hero {
    background-image: url(../art/corner-big.svg), url(../art/receipt-ground.svg);
    background-position:
      right bottom,
      left bottom;
  }
}

@media (min-width: 1660px) {
  .lp .hero {
    background-image: url(../art/corner-small.svg), url(../art/corner-big.svg), url(../art/receipt-ground.svg);
    background-position:
      left top,
      right bottom,
      left bottom;
  }
}

/*
 * The header is the page's own, links and all, on the hero's yellow: its words are ink, but in the
 * blue pill it folds into and over the phone's ink menu, where they stay paper. The page's action
 * is a small ink pill, as the hero's first action is.
 */
.lp-nav:not(.is-docked):not(:has(.lp-menu[open])) {
  color: var(--ink);
}

.lp-nav-action {
  padding: 0 14px;
  border-color: var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.lp-nav-action:hover {
  border-color: var(--card-on-ink);
  background: var(--card-on-ink);
  color: var(--paper);
}

/* The keyboard's ring round a pill is ink, which the yellow shows. */
.lp-nav:not(.is-docked) .lp-nav-action:focus-visible,
.hero-pill:focus-visible {
  outline-color: var(--ink);
}

/* The owner's three lines, in the page's headline face, one colour, tight. */
.lp .headline.hero-title {
  margin: 0;
  line-height: 0.96;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 24em;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* The two actions as small pills: the first filled ink, the second drawn round. */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.hero-pill--go {
  background: var(--ink);
  color: var(--paper);
}

.hero-pill--go:hover {
  border-color: var(--card-on-ink);
  background: var(--card-on-ink);
}

.hero-pill--how:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-arrow {
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The places: "Works in" and their three marks, each named for a screen reader. */
.hero-places {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-place {
  display: inline-flex;
}

.hero-place-mark {
  flex: none;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* --- The layout */

/*
 * On a phone, and on any screen taller than it is wide: the three lines, the sentence, the actions
 * and the places, then the phone rising from the foot of the screen. From 1024 px on a screen wider
 * than tall, three columns: the lines on the left, the phone in the middle, the sentence and the
 * actions on the right, the two sides level with each other.
 */
.hero {
  --phone-s: 0.67;
}

@supports (width: calc(1px * tan(atan2(1px, 1px)))) {
  .hero {
    --phone-s: min(tan(atan2(100vw - 130px, 390px)), 1.1);
  }
}

.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 92px 22px 0;
}

.hero-head {
  container-type: inline-size;
}

/* As wide as the column allows, and never so tall that a phone held on its side shows the three lines alone. */
.hero-grid .headline.hero-title {
  font-size: min(15vw, 64px);
  font-size: min(17cqi, 96px, 14svh);
}

.hero-side .hero-lede {
  margin-top: 18px;
}

.hero-side .hero-actions {
  margin-top: 22px;
}

/* Where the phone stands: what is left of the screen, and never less than enough to show its top. */
.hero-device {
  position: relative;
  flex: 1 0 260px;
  margin-top: 36px;
}

/*
 * The phone is about 400 px wide on the owner's screen (1875 by 1042), and short enough that nine
 * tenths of it leave 100 px under the header.
 */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .hero {
    --phone-s: 0.9;
  }

  @supports (width: calc(1px * tan(atan2(1px, 1px)))) {
    .hero {
      --phone-s: min(tan(atan2(21.3vw, 390px)), tan(atan2(100svh - 164px, 760px)), 1.1);
    }
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(390px * var(--phone-s)) minmax(0, 1fr);
    grid-template-rows: 1fr;
    column-gap: clamp(40px, 3.6vw, 72px);
    align-items: center;
    padding: 64px var(--edge) 0;
  }

  .hero-head {
    grid-row: 1;
    grid-column: 1;
    padding-bottom: 6svh;
  }

  .hero-grid .headline.hero-title {
    font-size: clamp(44px, 4.1vw, 96px);
    font-size: min(19.4cqi, 112px);
  }

  .hero-side {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    width: min(100%, 23em);
    padding-bottom: 6svh;
  }

  .hero-side .hero-lede {
    margin-top: 0;
    font-size: clamp(17px, 1vw, 20px);
  }

  .hero-side .hero-actions {
    margin-top: 28px;
  }

  .hero-device {
    grid-row: 1;
    grid-column: 2;
    align-self: stretch;
    margin-top: 0;
  }
}

/* --- The phone, as a picture */

/*
 * A phone is drawn at a phone's own size, 390 by 844, and scaled to the room it has (--phone-s): what
 * it holds keeps the product's own sizes. It stands at the top of its place, and the foot of the
 * screen cuts it; where its place is taller than nine tenths of it, it moves down so that the foot
 * still cuts it, and it rises from the screen's edge at every size.
 */
.hero-phone {
  position: absolute;
  top: max(0px, 100% - 760px * var(--phone-s, 1));
  left: 50%;
  display: flex;
  flex-direction: column;
  width: 390px;
  height: 844px;
  margin-left: -195px;
  overflow: hidden;
  border-radius: 56px;
  background: var(--ink);
  color: var(--paper);
  transform: scale(var(--phone-s, 1));
  transform-origin: 50% 0;
}

.hero-status {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 6px 32px 0 44px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.hero-status svg {
  width: 46px;
  height: 12px;
  fill: currentColor;
}

.hero-status .hero-battery {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
}

.hero-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 26px 0;
}

/* The pay screen in it: the product's own, at its own sizes, whatever the width of the screen it is shown on. */
.hero-phone .pay-amount {
  font-size: 76px;
}

.hero-phone .pay-body {
  flex: none;
}

.hero-phone .wallet-radio.lp-radio-on {
  border: 5px solid var(--paper);
}

/*
 * Each wallet's own logo, where the board draws a coloured dot: a square the dot's size, cut to the
 * corner of Phantom's own square (26 of its 108), so an app icon sits as it does on a phone. A mark
 * that comes with no square of its own stands on a plain one of paper, inset about as far as
 * Phantom's ghost is in its square.
 */
.hero-phone .wallet-logo {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 24.07%;
  object-fit: cover;
}

.hero-phone .wallet-logo--tile {
  padding: 4px;
  background: var(--paper);
  object-fit: contain;
}

/*
 * Where the payment came from and where it went, beside the phone, read in that order: the command
 * on X at its lower left, under the words, and the receipt's first lines lower still at its right.
 * Each is drawn at the product's own size and scaled with the phone, and comes over the phone's edge
 * by no more than the room the pay screen keeps there, so nothing on the screen is covered. A phone
 * has no room beside its phone: it has the line of places alone.
 */
.hero-note {
  display: none;
}

@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .hero-note {
    position: absolute;
    z-index: 2;
    display: block;
    transform: scale(var(--phone-s));
  }

  .hero-note--from {
    right: calc(100% - 16px * var(--phone-s));
    bottom: calc(250px * var(--phone-s));
    transform-origin: 100% 100%;
  }

  .hero-bubble {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 11px 15px 12px;
    border-radius: 20px 20px 6px;
    background: var(--blue);
    color: var(--paper);
    font-size: 15px;
    line-height: 1.38;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  /* X's mark at the start of the message, in its own paper: where it was written, once. */
  .hero-note-mark {
    flex: none;
    width: 13px;
    height: 13px;
    fill: currentColor;
  }

  .hero-note--paid {
    bottom: calc(96px * var(--phone-s));
    left: calc(100% - 16px * var(--phone-s));
    width: 214px;
    padding: 13px 16px 15px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    transform-origin: 0 100%;
  }

  .hero-note--paid .slip-paid {
    margin-top: 0;
    font-size: 10.5px;
  }

  .hero-chip-amount {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-top: 6px;
    font-weight: 300;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .hero-chip-amount span {
    font-weight: 400;
    font-size: 13px;
    letter-spacing: -0.01em;
  }
}

/*
 * The two pop in once as the page opens, in the story's order (the owner's word of 26 Nov 2026, "the
 * chat bubbles to pop up and animate"): the message on X first, the receipt a second after it. Each
 * grows out of its corner nearest the phone with a short spring that passes its size a little and
 * settles, then floats a few px, slowly, half a float out of step with the other. Only their scale,
 * their place and their opacity move, on top of the scale that sizes them with the phone. At rest
 * each stands where it belongs: what hides it before it pops is the pop's own first moment, so where
 * nothing moves, and for a reader who asked for stillness, both are simply there. Out of sight
 * (assets/js/landing/away.js marks the hero), the floating rests.
 */
@media (prefers-reduced-motion: no-preference) {
  .hero-note--from {
    animation:
      hero-pop 560ms 300ms backwards,
      hero-pop-in 260ms ease-out 300ms backwards,
      hero-float 6s ease-in-out 860ms infinite;
  }

  .hero-note--paid {
    animation:
      hero-pop 560ms 1300ms backwards,
      hero-pop-in 260ms ease-out 1300ms backwards,
      hero-float 6s ease-in-out 3860ms infinite;
  }

  .lp .hero[data-away] .hero-note {
    animation-play-state: paused;
  }

  /*
   * The spring: a damped one let go from rest (damping 0.62), half way in 100 ms, past its size by a
   * fortieth at 290 ms and back by 420 ms. A browser without linear() grows it on the plain ease.
   */
  @keyframes hero-pop {
    from {
      scale: 0.7;
      animation-timing-function: linear(0, 0.034 3.57%, 0.12 7.14%, 0.238 10.71%, 0.37 14.29%, 0.504 17.86%, 0.632 21.43%, 0.746 25%, 0.885 30.36%, 0.983 35.71%, 1.044 41.07%, 1.075 46.43%, 1.084 51.79%, 1.074 58.93%, 1.053 66.07%, 1.026 75%, 1.004 85.71%, 1);
    }
  }

  @keyframes hero-pop-in {
    from {
      opacity: 0;
    }
  }

  @keyframes hero-float {
    0%,
    100% {
      translate: 0 0;
    }

    50% {
      translate: 0 -5px;
    }
  }
}

/* --- "Anywhere": London and Bangkok at one moment, one payment crossing between them */

/*
 * The owner's sentence over one moment in two cities (src/ui/landing/anywhere.ts), on ink: on a phone
 * London, the strip, then Bangkok at the right, read from the top left to the bottom right; from
 * 1024 px the two cities side by side with the strip between their times. What moves is at the end of
 * this part; the numbers in it are the strip's own (test/landing-anywhere.test.ts holds them to it).
 */
.lp .lp-any {
  background: var(--ink);
  color: var(--paper);
}

.lp .lp-any .lp-wrap {
  padding-top: 72px;
  padding-bottom: 80px;
}

.lp-any .lp-eyebrow,
.lp-any .lp-lede {
  color: var(--muted);
}

.lp .lp-any .headline.lp-any-title {
  max-width: 13em;
}

.lp-any-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 48px;
}

.lp-any-end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-any-end--to {
  align-items: flex-end;
}

.lp-any-city {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The time there, as large and light as an amount on the pay screen. */
.lp-any-time {
  display: flex;
  gap: 0.16em;
  align-items: baseline;
  margin-top: 10px;
  font-weight: 300;
  font-size: min(64px, 17vw);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.lp-any-time span {
  font-weight: 400;
  font-size: 0.22em;
  letter-spacing: 0.01em;
}

.lp-any-note {
  margin-top: 20px;
}

/* The message to the bot, as the hero's: a blue bubble, its tight corner where it was sent from, X's mark at its start. */
.lp-any-bubble {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 11px 15px 12px;
  border-radius: 20px 20px 6px;
  background: var(--blue);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.lp-any-mark {
  flex: none;
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* The receipt's first lines, as the hero's chip has them. */
.lp-any-chip {
  width: 214px;
  padding: 13px 16px 15px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}

.lp-any-paid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-any-paid span + span {
  color: var(--quiet);
}

.lp-any-amount {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 6px;
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.lp-any-amount span {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* The strip between the two: each length is drawn whole, and the screen's width picks the one shown. Blue lanes, the money one dash of yellow. */
.lp-any-strip {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 32px 0;
  overflow: hidden;
}

.lp-any-strip-pic {
  display: none;
  overflow: visible;
}

.lp-any-strip-pic--narrow {
  display: block;
}

.lp-any-lanes line {
  stroke: var(--blue);
}

.lp-any-money {
  stroke: var(--yellow);
}

/* At rest the money stands on the middle row's last dash, by Bangkok: as many periods (33 px) on as it hops. */
.lp-any-strip-pic--wide .lp-any-money {
  transform: translateX(528px);
}

.lp-any-strip-pic--mid .lp-any-money {
  transform: translateX(264px);
}

.lp-any-strip-pic--narrow .lp-any-money {
  transform: translateX(231px);
}

@media (min-width: 1024px) {
  .lp .lp-any .lp-wrap {
    padding-top: 120px;
    padding-bottom: 128px;
  }

  .lp-any-moment {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      'from-city . to-city'
      'from-time strip to-time'
      'from-note . to-note';
    align-items: center;
    margin-top: 88px;
  }

  .lp-any-end {
    display: contents;
  }

  .lp-any-end--from > * {
    justify-self: start;
  }

  .lp-any-end--to > * {
    justify-self: end;
  }

  .lp-any-end--from .lp-any-city {
    grid-area: from-city;
  }

  .lp-any-end--from .lp-any-time {
    grid-area: from-time;
  }

  .lp-any-end--from .lp-any-note {
    grid-area: from-note;
  }

  .lp-any-end--to .lp-any-city {
    grid-area: to-city;
  }

  .lp-any-end--to .lp-any-time {
    grid-area: to-time;
  }

  .lp-any-end--to .lp-any-note {
    grid-area: to-note;
  }

  .lp-any-time {
    margin-top: 12px;
    font-size: clamp(72px, 6vw, 112px);
  }

  .lp-any-strip {
    grid-area: strip;
    justify-self: center;
    margin: 12px 40px 0;
    overflow: visible;
  }

  .lp-any-strip-pic--narrow {
    display: none;
  }

  .lp-any-strip-pic--mid {
    display: block;
  }
}

@media (min-width: 1440px) {
  .lp-any-strip-pic--mid {
    display: none;
  }

  .lp-any-strip-pic--wide {
    display: block;
  }
}

/*
 * What moves, by transform and opacity alone, once: where things may move the section's script marks it
 * live, which holds all of this at its start, and runs it when the moment is two fifths in view. The
 * message comes in at 200 ms, the money runs the strip a dash a step from 800 ms in the two seconds the
 * receipt says (16, 8 or 7 hops, by the strip), and the receipt comes in as it lands, at 2800 ms. Each
 * comes in from 8 px lower and clear, eased out over 450 ms.
 */
@media (prefers-reduced-motion: no-preference) {
  @keyframes lp-any-run-wide {
    from {
      transform: none;
      animation-timing-function: steps(16, end);
    }

    to {
      transform: translateX(528px);
    }
  }

  @keyframes lp-any-run-mid {
    from {
      transform: none;
      animation-timing-function: steps(8, end);
    }

    to {
      transform: translateX(264px);
    }
  }

  @keyframes lp-any-run-narrow {
    from {
      transform: none;
      animation-timing-function: steps(7, end);
    }

    to {
      transform: translateX(231px);
    }
  }

  @keyframes lp-any-come {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .lp-any[data-live] .lp-any-strip-pic--wide .lp-any-money {
    animation: lp-any-run-wide 2000ms linear 800ms both;
    animation-play-state: paused;
  }

  .lp-any[data-live='run'] .lp-any-strip-pic--wide .lp-any-money {
    animation-play-state: running;
  }

  .lp-any[data-live] .lp-any-strip-pic--mid .lp-any-money {
    animation: lp-any-run-mid 2000ms linear 800ms both;
    animation-play-state: paused;
  }

  .lp-any[data-live='run'] .lp-any-strip-pic--mid .lp-any-money {
    animation-play-state: running;
  }

  .lp-any[data-live] .lp-any-strip-pic--narrow .lp-any-money {
    animation: lp-any-run-narrow 2000ms linear 800ms both;
    animation-play-state: paused;
  }

  .lp-any[data-live='run'] .lp-any-strip-pic--narrow .lp-any-money {
    animation-play-state: running;
  }

  .lp-any[data-live] .lp-any-end--from .lp-any-note {
    animation: lp-any-come 450ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both;
    animation-play-state: paused;
  }

  .lp-any[data-live='run'] .lp-any-end--from .lp-any-note {
    animation-play-state: running;
  }

  .lp-any[data-live] .lp-any-end--to .lp-any-note {
    animation: lp-any-come 450ms cubic-bezier(0.2, 0.7, 0.2, 1) 2800ms both;
    animation-play-state: paused;
  }

  .lp-any[data-live='run'] .lp-any-end--to .lp-any-note {
    animation-play-state: running;
  }
}

/* --- "How it works": the headline on paper, with its three steps under it */

/*
 * The headline and the three cards under it, on paper, whatever runs. With the script the headline's
 * lines rise in out of their masks as the section comes into view, and the cards open from dashes as
 * they come into view (cards.css); nothing holds the screen.
 */
.lp .lp-rise .lp-wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* A line of the headline rises through a mask of its own height; the room under it is for descenders. */
.lp-rise-mask {
  display: block;
  overflow: clip;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.lp-rise-line {
  display: block;
}

/* Under its headline, the row of cards is the board's own: only the room over it is this section's. */
.lp-rise .lp-card-row {
  margin-top: 36px;
}

@media (min-width: 1024px) {
  .lp .lp-rise .lp-wrap {
    padding-top: 104px;
    padding-bottom: 120px;
  }

  .lp-rise .lp-card-row {
    margin-top: 48px;
  }
}

/* --- 02 of the boards, the three cards, opening from dashes (adapted from Annnimate's shape stretch) */

/*
 * At rest, open, a card is the board's own, by the rules in lobb.css. With the script each card
 * stretches open from one dash in its own colour as it comes into view: the script moves a clip round
 * the card, lays the card's art dash by dash in a drawing of its own, and at the end hands over to the
 * picture the card has always had. The cards stand under their headline in "How it works" (rise.css).
 */
.lp-cards[data-live] .lp-card {
  clip-path: inset(0);
}

/* While a card is closed or opening, its picture waits and the drawing stands in for it. */
.lp-cards[data-live] .lp-card:not(.is-settled)::before,
.lp-cards[data-live] .lp-card.is-settled .lp-card-draw {
  visibility: hidden;
}

/* The drawings sit exactly where the pictures do. */
.lp-card-draw {
  position: absolute;
  right: 0;
  bottom: 68px;
  overflow: hidden;
  pointer-events: none;
}

.lp-card--square .lp-card-draw {
  right: 24px;
  bottom: 65px;
  width: min(300px, calc(100% - 46px));
  height: auto;
}

/* --- The three steps on the three cards: a number where the board has an icon, and the first step's instruction as a label */

.lp-card-num {
  color: var(--ink);
}

/* What you type, as a label box: ink with paper text, as the boards' label stacks are. */
.lp-card-post {
  position: absolute;
  top: 134px;
  left: 22px;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- 05 of the boards, in the chat, as an ink card that opens (adapted from Annnimate's card expand) */

/*
 * The board's composition on ink: the dark chapter of the page starts here. The section stays paper
 * and holds one ink card as wide as the screen; with the script the card comes up inset, its top
 * corners round, and its edges open to the full width while everything inside holds still.
 */
.lp-chat-card {
  --inset: 0%;
  --radius: 0px;

  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 var(--inset) 0 var(--inset) round var(--radius) var(--radius) 0 0);
}

/* On ink the label boxes are paper with ink text, as on the "what it does" board, and the last one yellow. */
.lp-chat-card .label-stack li {
  background: var(--paper);
  color: var(--ink);
}

.lp-chat-card .label-stack li:last-child {
  background: var(--yellow);
}

/*
 * Each line of the headline sits in a mask, so the script can let it rise into place from below its
 * own line. The padding gives the descenders room inside the mask; the margin takes it back.
 */
.lp-mask {
  display: block;
  margin-bottom: -0.16em;
  padding-bottom: 0.16em;
  overflow: clip;
}

.lp-line {
  display: block;
}

/* --- "Any handle" (adapted from Annnimate's word stream) */

/*
 * Handles at headline size on ink. The words never move: the light moves through them, one word
 * per step, as the section is scrolled. At rest (no script, or reduced motion) the whole list is
 * quiet and its last word, the title, is lit. There is no clock.
 */
.lp .lp-stream {
  background: var(--ink);
  color: var(--paper);
}

.lp-stream .lp-stage {
  position: relative;
}

.lp-stream .lp-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

/* Waiting and read words are the boards' own grey for small type on ink; at this size it reads at 3.7:1. */
.lp .headline.lp-stream-list {
  margin-top: 32px;
  color: var(--quiet-on-ink);
  font-size: min(11vw, 52px);
}

/* A handle is one thing: it is lit as one and never breaks across lines. */
.lp-word {
  display: inline-block;
  white-space: nowrap;
}

.lp-word.is-lit {
  color: var(--paper);
}

.lp-stream-end {
  margin-top: 28px;
}

/* Held by the script: the stage is one screen, and the list stands in the middle of it. */
.lp-stream[data-live] {
  height: calc(100vh + var(--run, 110vh));
  height: calc(100lvh + var(--run, 110vh));
}

/* Nothing on the stage gives up height to make room: what does not fit shows as not fitting, and the script then leaves the section be. */
.lp-stream[data-live] .lp-wrap > * {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .lp-stream .lp-wrap {
    padding-top: 104px;
    padding-bottom: 104px;
  }

  .lp .headline.lp-stream-list {
    max-width: 14em;
    margin-top: 40px;
    font-size: clamp(52px, 5.2vw, 108px);
  }

  .lp-stream-end {
    margin-top: 36px;
  }
}

/* --- 05, how a payment moves: four steps and a dial of lanes (adapted from Annnimate's orb process) */

/*
 * At rest (no script, or reduced motion): the headline, a line of text, the four steps as a list and
 * the dial in the first step's colours. Ink, straight after the chat: one dark chapter.
 */
.lp .lp-dial-section {
  background: var(--ink);
  color: var(--paper);
}

.lp-dial-section .lp-wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}

.lp-dial-list {
  margin-top: 28px;
}

.lp-dial-list li {
  display: flex;
  gap: 16px;
  max-width: 400px;
  padding: 13px 0 14px;
  border-top: 1px solid var(--line-on-ink);
}

.lp-dial-num {
  flex: none;
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lp-dial-text {
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.lp-dial-label {
  margin-top: 28px;
}

.lp-dial-visual {
  display: grid;
  place-items: center;
  margin-top: 36px;
}

/* The dial is drawn 440 px across and never larger; on a narrow screen it takes the width there is. */
.lp-dial {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
}

.lp-dial-art {
  display: block;
  width: 100%;
  height: 100%;
}

/* A press sends one ring of paper dashes hopping outward: the script marks one ring at a time. */
.lp-dial-ring.is-ripple > path {
  stroke: var(--paper);
}

/* The ring of step names hangs off the middle of the dial; the script sets each one upright round it. */
.lp-dial-names {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.lp-dial-name {
  position: absolute;
  top: 0;
  left: 0;
  height: 34px;
  padding: 0 11px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The step at the top is a label box, paper with ink text. */
.lp-dial-name[aria-current] {
  background: var(--paper);
  color: var(--ink);
}

.lp-dial-turn {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.lp-dial-turn button {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--paper);
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lp-dial-turn button:disabled {
  border-color: var(--line-on-ink);
  color: var(--quiet-on-ink);
  cursor: default;
}

/*
 * Held by the script: one screen, the dial in the middle of it, and one step showing at a time (the
 * others stay in the page for a screen reader, stacked in the same place).
 */
.lp-dial-section[data-live] {
  height: calc(100vh + var(--run, 200vh));
  height: calc(100lvh + var(--run, 200vh));
}

.lp-dial-section[data-live] .lp-wrap {
  display: flex;
  flex-direction: column;
  padding-top: 84px;
  padding-bottom: 24px;
}

.lp-dial-section[data-live] .lp-dial-copy {
  display: contents;
}

/* Only the dial gives up height to make room; the words keep theirs. */
.lp-dial-section[data-live] .lp-dial-copy > * {
  flex-shrink: 0;
}

.lp-dial-section[data-live] .lp-dial-visual {
  flex: 1 1 0;
  order: 1;
  min-height: 0;
  margin-top: 20px;
  container-type: size;
}

.lp-dial-section[data-live] .lp-dial {
  width: min(440px, 100cqw, 100cqh);
}

.lp-dial-section[data-live] .lp-dial-art {
  cursor: pointer;
}

.lp-dial-section[data-live] .lp-dial-list {
  display: grid;
  order: 2;
  margin-top: 20px;
}

.lp-dial-section[data-live] .lp-dial-list li {
  display: block;
  grid-area: 1 / 1;
  padding: 0;
  border: 0;
  opacity: 0;
}

.lp-dial-section[data-live] .lp-dial-list li[aria-current] {
  opacity: 1;
}

.lp-dial-section[data-live] .lp-dial-num {
  display: block;
  padding: 0;
  color: inherit;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.lp-dial-section[data-live] .lp-dial-text {
  display: block;
  min-height: 2.4em;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lp-dial-section[data-live] .lp-dial-turn {
  order: 3;
}

/* On a phone there is no room round the dial for the names: the two buttons under the step turn it. */
.lp-dial-section[data-live] .lp-dial-names,
.lp-dial-section[data-live] .lp-dial-label {
  display: none;
}

/*
 * On a short phone the dial comes first: the line under the headline steps aside (it is still there
 * for a screen reader), and the step is set smaller. The script picks this where the dial would
 * otherwise be left too little room.
 */
@media (max-width: 1023px) {
  .lp-dial-section.is-tight .lp-dial-copy .copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lp-dial-section.is-tight[data-live] .lp-wrap {
    padding-top: 76px;
    padding-bottom: 16px;
  }

  .lp-dial-section.is-tight[data-live] .lp-dial-visual,
  .lp-dial-section.is-tight[data-live] .lp-dial-list,
  .lp-dial-section.is-tight[data-live] .lp-dial-turn {
    margin-top: 12px;
  }

  .lp-dial-section.is-tight[data-live] .lp-dial-num {
    font-size: 40px;
  }

  .lp-dial-section.is-tight[data-live] .lp-dial-text {
    margin-top: 6px;
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  /* The board's frame: the text column on the left, the dial in the right half. */
  .lp-dial-section .lp-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc((100% + 2 * var(--edge)) * 0.486667);
    min-height: 720px;
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .lp-dial-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .lp-dial-copy .headline {
    min-height: 2.06em;
    margin-bottom: 35px;
  }

  .lp-dial-copy .copy {
    margin-top: 0;
  }

  .lp-dial-list {
    margin-top: auto;
  }

  .lp-dial-label {
    margin-top: 40px;
  }

  .lp-dial-visual {
    margin-top: 0;
  }

  /* Held: the same frame at the height of the screen, with room round the dial for the ring of names. */
  .lp-dial-section[data-live] .lp-wrap {
    display: grid;
    min-height: 0;
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .lp-dial-section[data-live] .lp-dial-copy {
    display: flex;
  }

  .lp-dial-section[data-live] .lp-dial-visual {
    margin-top: 0;
    padding: 56px 0;
  }

  /* The step sits at the foot of the column, never closer than this to the line above it. */
  .lp-dial-section[data-live] .lp-dial-list {
    order: 0;
    margin-top: auto;
    padding-top: 24px;
  }

  .lp-dial-section[data-live] .lp-dial-num {
    font-size: 76px;
  }

  .lp-dial-section[data-live] .lp-dial-text {
    max-width: 360px;
    min-height: 0;
    margin-top: 16px;
    font-size: 24px;
  }

  .lp-dial-section[data-live] .lp-dial-names,
  .lp-dial-section[data-live] .lp-dial-label {
    display: block;
  }

  .lp-dial-section[data-live] .lp-dial-turn {
    display: none;
  }
}

/* --- 07, wallets: tiles riding a ring of lanes (adapted from Annnimate's arc carousel) */

/*
 * At rest (no script, or reduced motion): the headline, a few words, the six wallets as a list, and
 * the ring with the first wallet's tile on its near point. Ink, like the dial two sections up.
 */
.lp .lp-wallets {
  background: var(--ink);
  color: var(--paper);
}

/* On a phone the ring stands at the foot of the section, which cuts it to an arch, as the closing's arch is cut. */
.lp-wallets .lp-wrap {
  padding-top: 48px;
}

.lp-wallet-list {
  margin-top: 28px;
}

.lp-wallet-label {
  margin-top: 28px;
}

/* The list: a number, the wallet, and one line about it. */
.lp-wallet-list li {
  display: grid;
  grid-template-columns: 22px 116px minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  max-width: 440px;
  padding: 12px 0 13px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.lp-wallet-num {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lp-wallet-fact {
  color: var(--muted);
}

/*
 * The ring. Everything in it is placed from its centre, a point: the lanes are centred on it and
 * each tile is moved out to its place on the middle lane (by the stylesheet's own rules at rest, by
 * the script once it runs). On a phone the current tile sits on top of the ring.
 */
.lp-arc {
  position: relative;
  height: calc(var(--arc-tile) / 2 + var(--arc-r) + 8px);
  margin-top: 40px;
  touch-action: pan-y;
}

.lp-arc-ring {
  position: absolute;
  top: calc(var(--arc-tile) / 2 + var(--arc-r) + 8px);
  left: 50%;
  width: 0;
  height: 0;
}

.lp-arc-lanes {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lp-arc-lanes--wide {
  display: none;
}

/*
 * A tile is the product's wallet row turned into a square: the dot, the radio, the name, the chains.
 * It is built in tenths of a twenty-second of its side, so it is the same tile at either size. The
 * neighbours are the card on ink; the current one is paper. Each keeps a margin of ink round it, so
 * a lane stops short of a tile instead of touching it.
 */
.lp-arc-tile {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--arc-tile);
  height: var(--arc-tile);
  margin: calc(var(--arc-tile) / -2) 0 0 calc(var(--arc-tile) / -2);
  padding: 2em;
  border-radius: 2.6em;
  outline: 8px solid var(--ink);
  background: var(--card-on-ink);
  color: var(--muted);
  font-size: calc(var(--arc-tile) / 22);
  line-height: 1;
}

.lp-arc-tile.is-current {
  background: var(--paper);
  color: var(--ink);
}

.lp-arc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.lp-arc-tile .wallet-dot {
  width: 3em;
  height: 3em;
}

/* A paper dot on the paper tile keeps its edge. */
.lp-arc-tile.is-current .wallet-dot--paper {
  border: 0.15em solid var(--ink);
}

.lp-arc-radio {
  width: 1.8em;
  height: 1.8em;
  border: 0.15em solid var(--ring);
  border-radius: 50%;
}

.lp-arc-tile.is-current .lp-arc-radio {
  border: 0.5em solid var(--ink);
}

/*
 * A tile shrinks as it goes, so its words leave it by distance: the chains with the current one, the
 * name with the neighbours (on a phone, where a neighbour is small, with the current one too).
 */
.lp-arc-name {
  visibility: hidden;
  font-size: 2.6em;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lp-arc-tile.is-current .lp-arc-name {
  visibility: visible;
}

.lp-arc-chains {
  visibility: hidden;
  margin-top: 0.8em;
  font-family: var(--mono);
  font-size: max(1.05em, 8px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-arc-tile.is-current .lp-arc-chains {
  visibility: visible;
}

/* Previous, Next and Pause: the outlined mono buttons of the dial. */
.lp-wallet-turn {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.lp-wallet-turn button {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--paper);
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Pause is the quiet one of the three: a word, with the room to press it. */
.lp-wallet-turn .lp-wallet-pause {
  margin-left: 6px;
  border-color: transparent;
  color: var(--muted);
}

/*
 * Run by the script: one wallet shows at a time under the ring (the others stay in the page for a
 * screen reader, stacked in the same place), set as the dial sets its step.
 */
.lp-wallets[data-live] .lp-wallet-list {
  display: grid;
}

.lp-wallets[data-live] .lp-wallet-list li {
  display: block;
  grid-area: 1 / 1;
  max-width: none;
  padding: 0;
  border: 0;
  opacity: 0;
}

.lp-wallets[data-live] .lp-wallet-list li[aria-current] {
  opacity: 1;
}

.lp-wallets[data-live] .lp-wallet-num {
  display: block;
  color: inherit;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.lp-wallets[data-live] .lp-wallet-name {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lp-wallets[data-live] .lp-wallet-fact {
  display: block;
  min-height: 2.76em;
  margin-top: 6px;
}

.lp-wallets[data-live] .lp-arc-tile {
  will-change: transform;
}

@media (min-width: 1024px) {
  /* The board's frame: the text column on the left, the ring in the right half. */
  .lp-wallets .lp-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc((100% + 2 * var(--edge)) * 0.486667);
    min-height: 720px;
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .lp-wallet-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .lp-wallet-copy .headline {
    min-height: 2.06em;
    margin-bottom: 35px;
  }

  .lp-wallet-copy .copy {
    margin-top: 0;
  }

  .lp-wallet-list {
    margin-top: auto;
    padding-top: 28px;
  }

  .lp-wallet-label {
    margin-top: 40px;
  }

  /* The ring stands whole, right of the text, the current tile on its left side. */
  .lp-arc {
    height: auto;
    margin-top: 0;
  }

  .lp-arc-ring {
    top: 50%;
    left: calc(var(--arc-tile) / 2 + var(--arc-r));
  }

  .lp-arc-lanes--wide {
    display: block;
  }

  .lp-arc-lanes--narrow {
    display: none;
  }

  .lp-arc-tile.is-near .lp-arc-name {
    visibility: visible;
  }

  .lp-wallet-turn button {
    height: 34px;
    padding: 0 11px;
  }

  .lp-wallets[data-live] .lp-wallet-list {
    margin-top: auto;
  }

  .lp-wallets[data-live] .lp-wallet-num {
    font-size: 76px;
  }

  .lp-wallets[data-live] .lp-wallet-name {
    margin-top: 16px;
    font-size: 24px;
  }

  .lp-wallets[data-live] .lp-wallet-fact {
    max-width: 330px;
    min-height: 0;
    margin-top: 8px;
  }

  .lp-wallets[data-live] .lp-wallet-turn {
    margin-top: 24px;
  }
}

/* --- "Any asset" (adapted from Annnimate's edge carousel) */

/*
 * What a payer can send, as a row of discs. Still, it is a plain row that scrolls sideways. With
 * the script a canvas draws the same discs drifting, and at each side of the screen a disc is drawn
 * out into a streak with a blue rim, so none is ever cut off by the edge. Discs are this section's
 * alone: the owner named the component.
 */
.lp .lp-drift {
  padding: 72px 0;
  background: var(--ink);
  color: var(--paper);
}

/* The band runs from one edge of the screen to the other: the smear happens at the real edges. */
.lp-drift-band {
  --disc: 104px;

  position: relative;
  height: calc(var(--disc) / 0.55);
  margin-top: 32px;
}

.lp-drift-row {
  display: flex;
  align-items: center;
  gap: calc(var(--disc) * 0.55);
  height: 100%;
  padding: 0 22px;
  overflow-x: auto;
}

.lp-coin {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--disc);
  height: var(--disc);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.lp-coin-name {
  font-weight: 500;
  font-size: calc(var(--disc) * 0.2);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lp-coin-chain {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: calc(var(--disc) * 0.07);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* With the script the canvas is the picture, and the row stays as the list a reader is told. */
.lp-drift[data-live] .lp-drift-row {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.lp-drift-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

@media (min-width: 768px) {
  .lp-drift-band {
    --disc: 150px;
  }
}

@media (min-width: 1024px) {
  .lp .lp-drift {
    padding: 104px 0;
  }

  .lp-drift-band {
    --disc: clamp(140px, 16vh, 190px);

    margin-top: 48px;
  }
}

/* --- 09, the pay link: a pass of three joined panels (adapted from Annnimate's linked panels) */

/*
 * The board's grammar: the text column, and a colour panel that bleeds off the bottom edge with a
 * lane cluster in two opposite corners. The panel is blue and holds the pass. On a phone the panel
 * runs edge to edge under the text and shows the small cluster only.
 */
.lp-panel--pass {
  padding: 52px 0 64px;
  background: var(--blue) url(../art/corner-small.svg) left top no-repeat;
}

/*
 * The pass: paper, three panels one under another, a cousin of the receipt's slip. Its paper is one
 * drawn outline behind the panels (the necks between them are part of it), which the server draws
 * at rest and the script redraws as the panels move. The sizes here are the ones that outline was
 * drawn for.
 */
.lp-pass {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  margin: 0 auto;
  color: var(--ink);
}

.lp-pass-shape {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  fill: var(--paper);
  pointer-events: none;
}

.lp-pass-part {
  position: relative;
}

.lp-pass-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 132px;
  padding: 22px 24px 20px;
}

.lp-pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-pass-top .lobb-mark {
  --mark: 18px;
  align-items: flex-start;
  font-size: 15px;
}

/* The label is set in capitals; the logo beside it never is. */
.lp-pass-top > span:last-child {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-pass-who {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lp-pass-code {
  display: grid;
  place-items: center;
  height: 256px;
}

.lp-pass-code .qr {
  display: block;
}

.lp-pass-foot {
  height: 112px;
  padding: 20px 24px 0;
}

.lp-pass-address {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.lp-pass-line {
  margin-top: 9px;
  color: var(--quiet);
  font-size: 13.5px;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

/*
 * With the script each panel can be pulled off, and is a stop for the keyboard. A finger on a panel
 * still scrolls the page: the pull is for a mouse, and a tap does it for a finger.
 */
.lp-paylink[data-live] .lp-pass-part {
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lp-paylink[data-live] .lp-pass-part.is-pulled {
  cursor: grabbing;
}

/* The ring sits inside the panel, on its paper, and follows its corners. */
.lp-pass-part:focus-visible {
  border-radius: 16px;
  outline: 2px solid var(--ink);
  outline-offset: -7px;
}

/* From 600 px there is room beside the pass for the second cluster. */
@media (min-width: 600px) {
  .lp-panel--pass::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 278px;
    height: 278px;
    background: url(../art/corner-big.svg) right bottom no-repeat;
    content: '';
  }
}

@media (min-width: 1024px) {
  .lp-panel--pass {
    padding: 0;
  }

  /* The pass starts 72 px down the panel and ends about as far above its foot. */
  .lp-pass {
    position: absolute;
    top: 72px;
    left: 50%;
    margin: 0 0 0 -150px;
  }
}

/* --- "Control" (adapted from Annnimate's column gallery) */

/*
 * The owner's three points. Still, and on a phone, they are a plain list. From 768 px they are
 * three columns, and with the script a pointer over a column raises a slice of that column's
 * picture from the bottom edge, and a click opens the other columns outward until the slices join
 * into one picture. A picture is the page's own art: a flat ground with lanes on it.
 */
.lp-gal {
  --pad: 22px;
}

.lp-gal .lp-wrap {
  padding-top: 72px;
}

.lp-gal-stage {
  position: relative;
  margin-top: 40px;
}

.lp-gal-col {
  position: relative;
  padding: var(--pad);
  border-top: 1px solid var(--line-on-paper);
}

.lp-gal-name {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lp-gal-text {
  max-width: 30em;
  margin-top: 10px;
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

/* The pictures are the script's: without it they are not there at all. */
.lp-gal-layers {
  display: none;
}

@media (min-width: 768px) {
  .lp-gal {
    --pad: clamp(22px, 2.8vw, 48px);
  }

  .lp-gal-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr auto auto;
    height: clamp(420px, 62vh, 640px);
  }

  /*
   * A column's name and its text lie in rows the three columns share, so the names stand on one line however long
   * a text runs. (A browser that does not know shared rows gives each column rows of its own, which then stand at
   * its foot: the words are where they should be and only the names' one line is lost.)
   */
  .lp-gal-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    align-content: end;
    min-width: 0;
    border-top: 0;
  }

  .lp-gal-name {
    grid-row: 2;
  }

  .lp-gal-text {
    grid-row: 3;
  }

  .lp-gal-col + .lp-gal-col {
    border-left: 1px solid var(--line-on-paper);
  }

  .lp-gal-stage {
    border-top: 1px solid var(--line-on-paper);
  }

  .lp-gal[data-live] .lp-gal-layers {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
  }

  /*
   * A picture shows through a shape with two corners to a column, each as high as its variable
   * says (0 is the bottom edge, 1 the top): the script moves the variables, so a slice rises with
   * its leading corner first.
   */
  .lp-gal-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-repeat: no-repeat;
    clip-path: polygon(
      0% 100%,
      0% calc(100% - var(--c0a, 0) * 100%),
      33.333% calc(100% - var(--c0b, 0) * 100%),
      33.333% calc(100% - var(--c1a, 0) * 100%),
      66.667% calc(100% - var(--c1b, 0) * 100%),
      66.667% calc(100% - var(--c2a, 0) * 100%),
      100% calc(100% - var(--c2b, 0) * 100%),
      100% 100%
    );
  }

  .lp-gal-layer--blue {
    background-color: var(--blue);
    color: var(--paper);
  }

  .lp-gal-layer--yellow {
    background-color: var(--yellow);
    background-image: url(../art/receipt-ground.svg);
    background-position: left bottom;
    color: var(--ink);
  }

  .lp-gal-layer--lilac {
    background-color: var(--lilac);
    background-image: url(../art/ground-lilac.svg);
    background-position: left bottom;
    color: var(--ink);
  }

  /*
   * A picture's cluster of lanes stands in its top right corner, where no words are: a column's
   * words are at its foot, where the slice at rest is, and the open picture's are along its foot
   * too. (The clusters are drawn for a bottom corner, so this one is turned over.)
   */
  .lp-gal-layer::after {
    position: absolute;
    top: 0;
    right: 0;
    height: 42%;
    aspect-ratio: 1;
    background: url(../art/corner-big.svg) right bottom / contain no-repeat;
    content: '';
    transform: scaleY(-1);
  }

  .lp-gal-layer--yellow::after {
    background-image: url(../art/receipt-corner.svg);
  }

  /* The words over a picture: the columns' own, again, in the colour that reads on its ground. */
  .lp-gal-twin {
    position: absolute;
    inset: 0;
    height: auto;
  }

  /* A raised slice has no line down its side: its ground ends where the column does. */
  .lp-gal-twin .lp-gal-col + .lp-gal-col {
    border-left-color: transparent;
  }

  .lp-gal-layer .lp-gal-text {
    color: inherit;
  }

  /* The open picture's own words: the point's title large in its corner, its sentence beside it, and the way back. */
  .lp-gal-panel {
    position: absolute;
    inset: 0;
    visibility: hidden;
  }

  .lp .headline.lp-gal-title {
    position: absolute;
    bottom: var(--pad);
    left: var(--pad);
    max-width: 8em;
    overflow: clip;
    font-size: clamp(40px, 4.2vw, 80px);
  }

  .lp-gal-title span {
    display: block;
  }

  .lp-gal-line {
    position: absolute;
    bottom: var(--pad);
    left: calc(100% / 3 + var(--pad));
    width: calc(100% / 3 - 2 * var(--pad));
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  .lp-gal-back {
    position: absolute;
    top: var(--pad);
    left: var(--pad);
  }

  /* A column is pressed through a button of its own size, over the pictures. */
  .lp-gal-hit {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .lp-gal-hit:focus-visible {
    outline-offset: -8px;
  }
}

@media (min-width: 1024px) {
  .lp-gal .lp-wrap {
    padding-top: 104px;
  }

  .lp-gal-stage {
    margin-top: 56px;
  }
}

/* --- 11, the list: every row a thing it does, and a card with that row's screen (adapted from Annnimate's hover index) */

/*
 * At rest (no script): the headline, the card with the first row's screen, and the eight rows, the
 * first one lit. Ink. On a phone the card comes above the rows, where the hand that taps a row does
 * not cover it.
 */
.lp .lp-list {
  background: var(--ink);
  color: var(--paper);
}

.lp-list .lp-wrap {
  padding-top: 48px;
  padding-bottom: 40px;
}

/*
 * The card: a lilac panel that holds a phone's screen, as the boards frame the phone on a colour
 * panel with a lane cluster peeking round it. The screen starts a little down the panel and runs
 * off its foot.
 */
.lp-list-card {
  position: relative;
  height: 292px;
  margin: 28px 0 0;
  overflow: hidden;
  background: var(--lilac) url(../art/corner-small.svg) left top no-repeat;
}

.lp-list-frame {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 50%;
  width: 232px;
  margin-left: -116px;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: var(--ink);
}

/* Each screen is a whole picture, as wide as the frame, from its top. */
.lp-list-shot {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
}

/*
 * The rows: a number in mono, then the thing, set large. The quiet grey is the far rows', the
 * lighter one the rows next to the lit one, and the lit one is paper. Each is a full 44 px to tap.
 */
.lp-list-rows {
  margin-top: 20px;
  color: var(--quiet-on-ink);
  font-size: min(26px, calc((100vw - 44px) / 13.3));
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lp-list-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0 0;
  -webkit-tap-highlight-color: transparent;
}

.lp-list-row.is-near {
  color: var(--muted);
}

.lp-list-row.is-on {
  color: var(--paper);
}

.lp-list-num {
  flex: none;
  width: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lp-list-label {
  margin-top: 28px;
}

/* With the script a row can be picked: by a pointer, a tap or the keyboard. */
.lp-list[data-live] .lp-list-row {
  cursor: pointer;
}

@media (min-width: 1024px) {
  /* The headline and the rows on the left, the card at the bottom right with its foot on the last row's. */
  .lp-list .lp-wrap {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 40px;
    min-height: 720px;
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .lp-list .headline {
    min-height: 2.06em;
  }

  .lp-list-rows {
    grid-row: 2;
    grid-column: 1;
    align-self: end;
    margin-top: 56px;
    font-size: 40px;
    letter-spacing: -0.035em;
  }

  .lp-list-row {
    min-height: 48px;
    padding: 0;
  }

  .lp-list-num {
    width: 30px;
  }

  .lp-list-label {
    grid-row: 3;
    grid-column: 1;
    margin-top: 40px;
  }

  .lp-list-card {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: end;
    width: 372px;
    height: 464px;
    margin: 0;
  }

  .lp-list-frame {
    top: 40px;
    width: 280px;
    margin-left: -140px;
    border-radius: 30px 30px 0 0;
  }
}

/* --- "Merchants", plain, and the foot of the site */

.lp .lp-merch {
  background: var(--ink);
  color: var(--paper);
}

.lp-merch .lp-wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* The mark the owner's page gives this section: it comes after launch. */
.lp-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-top: 20px;
  padding: 0 11px;
  border: 1px solid var(--ring);
  color: var(--muted);
}

/* The foot: the page's sections, the company's site, the way in, and the company's own lines. */
.lp-foot-site {
  background: var(--ink);
  color: var(--muted);
  font-size: 15px;
}

.lp-foot-site .lp-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.lp-foot-site a {
  text-decoration: none;
}

.lp-foot-site a:hover {
  color: var(--paper);
}

.lp-foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.lp-foot-cols h3 {
  margin: 0 0 14px;
  color: var(--quiet-on-ink);
  font-weight: 400;
}

.lp-foot-cols ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-foot-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 14px;
}

.lp-foot-by {
  margin-right: auto;
  color: var(--paper);
  font-weight: 500;
}

.lp-foot-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--quiet-on-ink);
  font-size: 13px;
  line-height: 20px;
}

.lp-foot-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--paper);
}

.lp-foot-mark span:last-child {
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 1024px) {
  .lp-merch .lp-wrap {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .lp-foot-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lp-foot-site .lp-wrap {
    padding-top: 80px;
  }
}

/*
 * The closing's words do not wait for its arch. The arch stands at the section's foot and plays when
 * it comes into view (assets/js/arch.js holds the section back until then, as it does a message
 * page's); held back with it, the words left most of a screen of bare paper as the section came up,
 * which a reader takes for a section that has not loaded. Here they are simply there.
 */
@media (prefers-reduced-motion: no-preference) {
  .lp .lp-closing.arch--wait .lobb-mark,
  .lp .lp-closing.arch--wait .lp-closing-line,
  .lp .lp-closing.arch--wait .lp-closing-text,
  .lp .lp-closing.arch--wait .button,
  .lp .lp-closing.arch--wait .message-link {
    opacity: 1;
  }

  .lp .lp-closing.arch--play .lobb-mark,
  .lp .lp-closing.arch--play .lp-closing-line,
  .lp .lp-closing.arch--play .lp-closing-text,
  .lp .lp-closing.arch--play .button,
  .lp .lp-closing.arch--play .message-link {
    animation: none;
  }
}

/* The lob and the wallets. Generated at start by src/ui/landing/lob-art.ts. */
.lp-lob{--lob-radius:732px;--lob-reach:748px}
.lp-lob-band{top:-752px;left:-752px;width:1504px;height:752px;background-image:url(../art/lob.svg)}
@media (prefers-reduced-motion: no-preference){
@keyframes lob-run-0{0%{stroke-dashoffset:-295.8;animation-timing-function:steps(14,end)}31.11%{stroke-dashoffset:-346.2;animation-timing-function:linear}31.112%{stroke-dashoffset:-184.2;animation-timing-function:steps(31,end)}100%{stroke-dashoffset:-295.8}}
@keyframes lob-run-1{0%{stroke-dashoffset:-297.6;animation-timing-function:steps(14,end)}31.11%{stroke-dashoffset:-348;animation-timing-function:linear}31.112%{stroke-dashoffset:-186;animation-timing-function:steps(31,end)}100%{stroke-dashoffset:-297.6}}
@keyframes lob-run-2{0%{stroke-dashoffset:-297.6;animation-timing-function:steps(14,end)}31.11%{stroke-dashoffset:-348;animation-timing-function:linear}31.112%{stroke-dashoffset:-186;animation-timing-function:steps(31,end)}100%{stroke-dashoffset:-297.6}}
.lp-lob-run:nth-child(1){animation:lob-run-0 11250ms linear 900ms infinite}
.lp-lob-run:nth-child(2){animation:lob-run-1 11250ms linear 900ms infinite}
.lp-lob-run:nth-child(3){animation:lob-run-2 11250ms linear 900ms infinite}
.lp-lob[data-away] .lp-lob-run{animation-play-state:paused}
}
/* Wallets: where each tile rests on the ring. Generated at start by src/ui/landing/wallets.ts. */
.lp-arc{--arc-tile:118px;--arc-r:166px}
.lp-arc-tile:nth-child(1){transform:translate(0px,-166px) scale(1);z-index:10;visibility:visible}
.lp-arc-tile:nth-child(2){transform:translate(125.24px,-108.95px) scale(0.44);z-index:9;visibility:visible}
.lp-arc-tile:nth-child(3){visibility:hidden}
.lp-arc-tile:nth-child(4){visibility:hidden}
.lp-arc-tile:nth-child(5){visibility:hidden}
.lp-arc-tile:nth-child(6){transform:translate(-125.24px,-108.95px) scale(0.44);z-index:9;visibility:visible}
@media (min-width: 1024px){
  .lp-arc{--arc-tile:202px;--arc-r:290px}
  .lp-arc-tile:nth-child(1){transform:translate(-290px,0px) scale(1);z-index:10;visibility:visible}
  .lp-arc-tile:nth-child(2){transform:translate(-210.75px,199.21px) scale(0.44);z-index:9;visibility:visible}
  .lp-arc-tile:nth-child(3){transform:translate(-134.48px,256.94px) scale(0.19);z-index:8;visibility:visible}
  .lp-arc-tile:nth-child(4){visibility:hidden}
  .lp-arc-tile:nth-child(5){transform:translate(-134.48px,-256.94px) scale(0.19);z-index:8;visibility:visible}
  .lp-arc-tile:nth-child(6){transform:translate(-210.75px,-199.21px) scale(0.44);z-index:9;visibility:visible}
}
