/* Homepage layout */

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Navigation. Base styles are the full-screen menu; wide screens at the top of the page get inline links. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--paper);
  pointer-events: none;
}
.site-nav__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 18px calc(var(--gutter) + var(--edge));
  transition: padding .35s var(--ease);
}
.site-nav__bar > * { pointer-events: auto; }
.site-nav__home {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  padding: 0;
  border-radius: 999px;
  transition: padding .35s var(--ease), background-color .25s;
}
.site-nav__links {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: safe center;
  gap: 6px;
  padding: 96px calc(var(--gutter) + var(--edge)) 40px;
  overflow: auto;
  background: var(--black);
  opacity: 0;
  visibility: hidden;
}
.is-menu-open .site-nav__links { opacity: 1; visibility: visible; transition: opacity .25s; }
.is-menu-closing .site-nav__links { visibility: visible; opacity: 0; pointer-events: none; transition: opacity .25s; }
.is-menu-open .site-nav__links > * { animation: menu-in .5s var(--ease) backwards; }
.is-menu-open .site-nav__links > :nth-child(2) { animation-delay: .04s; }
.is-menu-open .site-nav__links > :nth-child(3) { animation-delay: .08s; }
.is-menu-open .site-nav__links > :nth-child(4) { animation-delay: .12s; }
.is-menu-open .site-nav__links > :nth-child(5) { animation-delay: .16s; }
.is-menu-open .site-nav__links > :nth-child(6) { animation-delay: .2s; }
.is-menu-open .site-nav__links > :nth-child(7) { animation-delay: .24s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }
.site-nav__links a:not(.btn) {
  padding: 4px 0;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--paper);
  transition: color .2s;
}
.site-nav__links a:not(.btn):hover, .site-nav__links a[aria-current="page"] { color: var(--lime); }
.site-nav__menu-cta { min-height: 60px; margin-top: 22px; padding: 0 34px; font-size: 17px; }
.menu-detail { display: none; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--paper-muted); }
:is(.is-menu-open, .is-menu-closing) .menu-detail { display: block; }

/* With room to spare, the full-screen menu becomes brand-coloured tiles */
@media (width > 640px) {
  :is(.is-menu-open, .is-menu-closing) .site-nav__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: safe center;
    gap: 12px;
    max-width: none;
  }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(130px, 25vh, 240px);
    padding: clamp(16px, 2vw, 26px);
    border-radius: var(--radius-lg);
    background: rgba(240, 240, 240, .08);
    font-size: clamp(24px, 3vw, 40px);
    color: var(--paper);
    transition: transform .3s var(--ease), background-color .2s;
  }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):hover { transform: translateY(-4px); background: rgba(240, 240, 240, .16); color: var(--paper); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a[aria-current="page"]:not(.btn) { box-shadow: inset 0 0 0 2px var(--lime); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):nth-child(1),
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):nth-child(1):hover { background: var(--purple); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):nth-child(1) .menu-detail { color: var(--paper); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):nth-child(2),
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):nth-child(2):hover { background: var(--lime); color: var(--black); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a:not(.btn):nth-child(2) .menu-detail { color: var(--black); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__links a[aria-current="page"]:not(.btn):nth-child(2) { box-shadow: inset 0 0 0 2px var(--black); }
  :is(.is-menu-open, .is-menu-closing) .site-nav__menu-cta { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
}
.site-nav__cta { position: relative; z-index: 2; }
.site-nav__toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 240, 240, .14);
  cursor: pointer;
  transition: background-color .25s;
}
.site-nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.site-nav__toggle span:first-child { top: 18px; }
.site-nav__toggle span:last-child { top: 25px; }
.is-menu-open .site-nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.is-menu-open .site-nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }
body.is-menu-open { overflow: hidden; }
.is-menu-open .site-nav__cta { visibility: hidden; }

/* Once scrolled, the bar shrinks to solid controls that recolour with the section beneath */
.site-nav.is-compact .site-nav__bar { padding-top: 12px; padding-bottom: 12px; }
.site-nav.is-compact .site-nav__home { padding: 10px 18px 10px 14px; background: var(--black); }
.site-nav.is-compact .site-nav__cta { background: var(--lime); color: var(--black); }
.site-nav.is-compact[data-on="light"] .site-nav__cta,
.site-nav.is-compact[data-on="lime"] .site-nav__cta { background: var(--black); color: var(--paper); }
.site-nav.is-compact[data-on="light"] .site-nav__toggle,
.site-nav.is-compact[data-on="lime"] .site-nav__toggle { background: var(--black); }
.is-menu-open .site-nav.is-compact .site-nav__toggle { background: rgba(240, 240, 240, .14); }

@media (width > 1020px) {
  .site-nav:not(.is-compact) .site-nav__bar { padding-top: 26px; padding-bottom: 26px; gap: 24px; }
  .site-nav:not(.is-compact) .site-nav__home { margin-right: 0; }
  .site-nav:not(.is-compact) .site-nav__toggle,
  .site-nav:not(.is-compact) .site-nav__menu-cta { display: none; }
  .site-nav:not(.is-compact) .site-nav__links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 2.8vw, 40px);
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav:not(.is-compact) .site-nav__links a:not(.btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--paper-muted);
  }
  .site-nav:not(.is-compact) .site-nav__links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 1.5px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .site-nav:not(.is-compact) .site-nav__links a:not(.btn):hover,
  .site-nav:not(.is-compact) .site-nav__links a[aria-current="page"] { color: var(--paper); }
  .site-nav:not(.is-compact) .site-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav:not(.is-compact) .site-nav__links a:not(.btn):hover::after { transform: scaleX(1); }
}

/* Sticky call to action */
.bar-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(440px, calc(100vw - 32px));
  min-height: 62px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity .3s, visibility .3s, transform .45s var(--ease), background-color .25s, color .25s;
}
.bar-cta.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.bar-cta[data-on="light"], .bar-cta[data-on="lime"] { background: var(--black); color: var(--paper); }
.bar-cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.bar-cta:hover svg { transform: translateX(4px); }
.is-menu-open .bar-cta { visibility: hidden; opacity: 0; }

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  margin: 0 var(--edge);
  padding: clamp(104px, 8.6vw, 128px) var(--gutter) 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: var(--black);
  color: var(--paper);
}
.hero__lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: url("../assets/hero-lines.svg") center bottom / max(1500px, 100%) auto no-repeat;
  pointer-events: none;
}
.hero__lines::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28%;
  width: 88%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 59, 237, .46), transparent);
  transform: translateX(-50%);
}
.hero__copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 3.8fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 {
  margin-top: 22px;
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.hero__side { padding-top: clamp(36px, 3.8vw, 54px); }
.hero__side p { max-width: 30ch; font-size: var(--type-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--paper-muted); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.play { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.play__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(240, 240, 240, .1);
  color: var(--lime);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.play:hover .play__icon { background: var(--purple); color: var(--paper); transform: scale(1.06); }

/* Layered cards. Children are positioned in cqw, so the fan scales as one object. */
.stage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  container-type: inline-size;
  --px: 0;
  --py: 0;
}
.stage__inner { position: relative; height: 36cqw; margin-bottom: -11.5cqw; }
.stage__card, .stage__wallet {
  position: absolute;
  rotate: var(--r);
  translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * 1px);
  transition: transform .5s var(--ease), translate .6s var(--ease);
  animation: fan-in 1.1s var(--ease) backwards;
}
.stage__card { width: 34cqw; }
.stage__card:hover { transform: translateY(-1.1cqw); }
.stage__card--purple { --r: -9deg; --d: 6; left: 1.2cqw; top: 8.5cqw; z-index: 1; }
.stage__card--black { --r: -2deg; --d: 10; left: 20.5cqw; top: 5cqw; z-index: 2; animation-delay: .08s; }
.stage__card--lime { --r: 7deg; --d: 14; left: 41cqw; top: 9.2cqw; z-index: 3; animation-delay: .16s; }
.stage__wallet { --r: 4deg; --d: 20; left: 77.5cqw; top: -2cqw; width: 20cqw; z-index: 4; animation-delay: .26s; }

@keyframes fan-in {
  from { opacity: 0; transform: translateY(70px); rotate: 0deg; }
}

/* Shared large-type section copy */
h2 { font-weight: 700; letter-spacing: var(--track-display); line-height: 1.04; text-wrap: balance; }
.lede { margin-top: 22px; max-width: 40ch; font-size: var(--type-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--ink-muted); }
.block-title { font-size: var(--type-h2); }
.check-list { display: grid; gap: 12px; margin-top: 30px; font-size: var(--type-body); font-weight: 500; letter-spacing: -.01em; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .48em; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

/* Features */
.features { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 calc(var(--gutter) + var(--edge)); }
.concept-note {
  padding-top: calc(min(11.8vw, 158px) + 18px);
  font-size: 14px;
  text-align: center;
  color: var(--ink-muted);
}
.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(64px, 7vw, 104px) 0 var(--space-section);
}
.features__intro { position: sticky; top: 96px; }
.features h2, .waitlist h2 { margin-top: 18px; font-size: var(--type-h2); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-list li { display: grid; }
.feature-list li:nth-child(even) { translate: 0 28px; }
.feature {
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 25vw, 340px);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink-line), var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(126, 59, 237, .45), 0 28px 50px -26px rgba(0, 0, 0, .4); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  border-radius: 16px;
  background: rgba(126, 59, 237, .1);
  color: var(--purple);
}
.feature__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 32px; font-size: var(--type-h3); font-weight: 700; letter-spacing: var(--track-display); line-height: 1.15; }
.feature p { margin-top: 8px; font-size: var(--type-body); line-height: 1.45; color: var(--ink-muted); }
.feature__more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--purple); }
.feature__more::after { content: " \2192"; display: inline-block; margin-left: 4px; transition: transform .3s var(--ease); }
.feature:hover .feature__more::after { transform: translateX(4px); }
.feature--dark { background: var(--black); color: var(--paper); box-shadow: 0 28px 50px -26px rgba(0, 0, 0, .55); }
.feature--dark:hover { box-shadow: 0 34px 60px -24px rgba(126, 59, 237, .6); }
.feature--dark .feature__icon { background: var(--lime); color: var(--black); }
.feature--dark p { color: var(--paper-muted); }
.feature--dark .feature__more { color: var(--lime); }

/* Colour blocks: one full-width idea at a time */
.block {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: calc(100% - var(--edge) * 2);
  min-height: clamp(560px, 52vw, 780px);
  margin: var(--edge) auto 0;
  padding: clamp(56px, 6vw, 88px) max(clamp(28px, 6vw, 96px), calc((100% - var(--max)) / 2));
  overflow: hidden;
  border-radius: var(--radius-xl);
  scroll-margin-top: calc(var(--edge) - var(--nav-clear));
}
.block__device { justify-self: center; width: clamp(250px, 24vw, 330px); }
.block--lime { background: var(--lime); color: var(--black); }
.block--lime .lede { color: var(--black); }
.block--lime :focus-visible { outline-color: var(--black); }
.block--purple { background: var(--purple); color: var(--paper); }
.block--purple .lede { color: var(--paper); }
.block--purple :focus-visible { outline-color: var(--lime); }
.block--purple .choice:not([aria-pressed="true"]) { background: rgba(0, 0, 0, .28); }
.block--purple .choice:not([aria-pressed="true"]):hover { background: rgba(0, 0, 0, .42); }
/* Pills on light backgrounds */
.block--lime .choice, .block--paper .choice, .section .choice { background: rgba(0, 0, 0, .08); color: var(--black); }
.block--lime .choice:hover, .block--paper .choice:hover, .section .choice:hover { background: rgba(0, 0, 0, .16); }
.block--lime .choice[aria-pressed="true"], .block--paper .choice[aria-pressed="true"], .section .choice[aria-pressed="true"] { background: var(--black); color: var(--paper); }
.block--lime .segmented input:focus-visible + span { outline-color: var(--black); }
.block__note { margin-top: 26px; font-size: 14px; font-weight: 500; }
.eyebrow + .block-title { margin-top: 20px; }

/* Pill choices used by the card picker and business tabs */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 240, 240, .14);
  color: var(--paper);
  font: 600 15px var(--font);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.choice:hover { background: rgba(240, 240, 240, .26); }
.choice[aria-pressed="true"] { background: var(--lime); color: var(--black); }
.choice i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240, 240, 240, .5); }
.choice i[data-tone="purple"] { background: var(--purple); }
.choice i[data-tone="black"] { background: var(--black); }
.choice i[data-tone="lime"] { background: var(--lime); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }

/* Dark movement panel */
.movement {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 24px;
  width: calc(100% - var(--edge) * 2);
  min-height: clamp(560px, 52vw, 780px);
  margin: var(--edge) auto 0;
  padding: clamp(56px, 6vw, 88px) max(clamp(28px, 6vw, 96px), calc((100% - var(--max)) / 2));
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--black);
  color: var(--paper);
  scroll-margin-top: calc(var(--edge) - var(--nav-clear));
}
.movement::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 59, 237, .55), transparent);
  transform: translateY(-50%);
}
.movement__copy { position: relative; z-index: 1; }
.movement h2 { margin-top: 20px; font-size: var(--type-h2); }
.movement h2 span { display: block; white-space: nowrap; }
.movement__card .gcard__foot span:last-child { display: none; }
.movement__copy > p:not(.eyebrow) { margin-top: 24px; max-width: 40ch; font-size: var(--type-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--paper-muted); }
.movement__picker-label { display: block; margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--paper-muted); }
.movement .choices { margin-top: 12px; }
.movement__copy .btn { margin-top: 30px; }
.movement__scene {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  container-type: inline-size;
}
.movement__rings { position: absolute; inset: 0; width: 100%; height: 100%; animation: drift 60s linear infinite; }
.movement__rings circle { stroke: rgba(240, 240, 240, .16); stroke-width: 1; }
.movement__rings circle:nth-child(2) { stroke-dasharray: 2 9; stroke: rgba(240, 240, 240, .32); }
.movement__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3cqw;
  height: 3cqw;
  margin: -1.5cqw;
  border-radius: 50%;
  background: var(--lime);
  animation: orbit 16s linear infinite;
}
.movement__card {
  position: absolute;
  top: 22%;
  left: 7%;
  width: 78%;
  transform: perspective(1400px) rotateX(16deg) rotateY(-16deg) rotateZ(-9deg);
  animation: float-a 8s ease-in-out infinite;
}
.ledger {
  position: absolute;
  right: 0;
  bottom: 14%;
  width: 45%;
  padding: 4cqw;
  border-radius: 5cqw;
  background: var(--paper);
  color: var(--black);
  box-shadow: var(--shadow-object);
  animation: float-b 8s ease-in-out infinite;
}
.ledger__head { display: flex; justify-content: space-between; font-size: 2.5cqw; font-weight: 600; color: var(--ink-muted); }
.ledger__total { margin-top: 1cqw; font-size: 6.4cqw; font-weight: 700; letter-spacing: -.03em; }
.ledger__line { display: block; width: 100%; height: 9cqw; margin-top: 1.5cqw; }
.ledger__line path { stroke: var(--purple); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

@keyframes drift { to { transform: rotate(360deg); } }
@keyframes orbit {
  from { transform: rotate(0) translateX(39.7cqw); }
  to { transform: rotate(360deg) translateX(39.7cqw); }
}
@keyframes float-a { 50% { translate: 0 -14px; } }
@keyframes float-b { 50% { translate: 0 10px; } }

/* Pause control for the looping panel animation */
.motion-toggle {
  position: absolute;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 2;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 240, 240, .14);
  color: var(--paper);
  font: 600 14px var(--font);
  cursor: pointer;
  transition: background-color .2s;
}
.motion-toggle:hover { background: rgba(240, 240, 240, .26); }
.movement.is-paused .movement__rings,
.movement.is-paused .movement__dot,
.movement.is-paused .movement__card,
.movement.is-paused .ledger { animation-play-state: paused; }

/* Scroll story: the copy scrolls past one phone, which changes screen with each scene */
.story {
  width: calc(100% - var(--edge) * 2);
  margin: var(--edge) auto 0;
  padding: var(--space-section) max(clamp(28px, 6vw, 96px), calc((100% - var(--max)) / 2)) 0;
  overflow: clip;
  border-radius: var(--radius-xl);
  background: var(--black);
  color: var(--paper);
  scroll-margin-top: calc(var(--edge) - var(--nav-clear));
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.story[data-on="purple"] { background: var(--purple); }
.story[data-on="lime"] { background: var(--lime); color: var(--black); }
.story .eyebrow { color: inherit; }
.story__intro { max-width: 760px; }
.story__intro h2 { margin-top: 18px; font-size: var(--type-h2); }
.story__intro .lede { color: inherit; }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  background: inherit;
}
.story__scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78svh;
  opacity: .5;
  transition: opacity .4s;
}
.story__scene.is-active { opacity: 1; }
/* The last scene is a full screen tall, so the phone stays pinned while it's centred */
@media (width > 1020px) { .story__scene:last-child { min-height: 100svh; } }
.story__scene h3 { margin-top: 16px; font-size: var(--type-scene); font-weight: 700; line-height: 1.06; letter-spacing: var(--track-display); text-wrap: balance; }
.story__scene p:not(.eyebrow) { margin-top: 16px; max-width: 36ch; font-size: var(--type-lede); line-height: 1.45; letter-spacing: -.01em; }
.story__device {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100svh;
  background: inherit;
  --wallet-room: 100svh - 170px;
}
.story__device::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 59, 237, .55), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .6s;
}
.story[data-on="dark"] .story__device::before { opacity: 1; }
.story__device > * { position: relative; }
.story__device ginga-wallet { width: min(calc((var(--wallet-room)) / 2.04), 314px); }
.story__label { font-size: 13px; font-weight: 600; text-align: center; }
.story__rail { position: relative; width: 140px; height: 4px; overflow: hidden; border-radius: 4px; }
.story__rail::before, .story__rail::after { content: ""; position: absolute; inset: 0; background: currentColor; }
.story__rail::before { opacity: .24; }
.story__rail::after { transform: scaleX(var(--progress, 0)); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .story__device ginga-wallet { rotate: var(--tilt, 0deg); transition: rotate .8s var(--ease); }
}

/* Section entrances. app.js only adds these when motion is allowed. */
.will-reveal { opacity: 0; transform: translateY(28px); }
.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease) var(--reveal-delay, 0s), transform .9s var(--ease) var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle, .tour__pause { display: none; }
}

/* Waitlist */
.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--space-section) calc(var(--gutter) + var(--edge));
}
.segmented { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; padding: 0; border: 0; }
.segmented legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-line);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.segmented input:checked + span { background: var(--black); color: var(--paper); }
.segmented input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.field { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.waitlist__row { display: flex; gap: 10px; }
.input {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28);
  font: 500 16px var(--font);
  color: var(--black);
  transition: box-shadow .2s;
}
.input::placeholder { color: rgba(0, 0, 0, .5); }
.input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--purple); }
.waitlist__status { margin-top: 14px; min-height: 1.55em; font-size: 14px; color: var(--ink-muted); }
.waitlist__status.is-error, .waitlist__status.is-ok { color: var(--black); font-weight: 600; }
.waitlist__note { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.waitlist__closed { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--ink-line); }
.waitlist__closed-title { font-size: 20px; font-weight: 800; }
.waitlist__closed .waitlist__note { margin-top: 0; }
/* Text links keep their line height but get a 44px tap area */
.waitlist__note a { display: inline-block; margin: -12px 0; padding: 12px 0; text-decoration: underline; text-underline-offset: .15em; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .15em; }

/* Footer */
.footer {
  margin: 0 var(--edge);
  padding: clamp(48px, 6vw, 80px) var(--gutter) 36px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--black);
  color: var(--paper);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--paper-line);
}
.footer ginga-logo { --logo-h: 38px; }
.footer__tag { margin-top: 14px; font-size: 11px; color: var(--paper-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.5vw, 36px); align-self: flex-start; }
.footer__links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: 14px; color: var(--paper-muted); transition: color .2s; }
.footer__links a:hover { color: var(--lime); }
.footer :focus-visible, .hero :focus-visible, .site-nav :focus-visible, .movement :focus-visible { outline-color: var(--lime); }
.footer__legal { max-width: var(--max); margin: 22px auto 0; font-size: 13px; line-height: 1.6; color: var(--paper-muted); }
.footer__legal + .footer__legal { margin-top: 10px; }

/* Concept tour dialog */
.sheet--tour { width: min(860px, calc(100vw - 32px)); padding: clamp(24px, 3.5vw, 44px); }
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
.tour__device { width: 250px; }
.tour__steps { display: grid; gap: 4px; margin: 20px 0 16px; }
.tour__step {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s;
}
.tour__step:hover { background: rgba(0, 0, 0, .05); }
.tour__step strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.tour__step span { display: none; font-size: 14px; color: var(--ink-muted); }
.tour__step.is-active { background: rgba(126, 59, 237, .1); }
.tour__step.is-active span { display: block; }
.tour__step.is-active.is-playing::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--purple);
  transform-origin: left;
  animation: step-progress var(--step-ms, 4500ms) linear both;
}
.tour__pause {
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 14px var(--font);
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}
.tour__note { margin-bottom: 20px; font-size: 14px; color: var(--ink-muted); }
@keyframes step-progress { from { transform: scaleX(0); } }

/* Small laptop: the side column is narrow, so the play button stands alone and clears the wallet */
@media (width > 1020px) and (width <= 1320px) {
  .play__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Tablet and small laptop */
@media (width <= 1020px) {
  .hero__copy { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { font-size: clamp(50px, 8.4vw, 86px); }
  .hero__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-top: 0; }
  .hero__side p { max-width: 36ch; }
  .hero__actions { margin-top: 0; }
  .stage { margin-top: 36px; }
  .stage__wallet { top: -3cqw; }

  .story__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story__device { order: -1; z-index: 2; height: calc(52svh + 64px); padding: 72px 0 8px; gap: 8px; --wallet-room: 52svh - 68px; }
  .story__scene { min-height: 44svh; padding: 24px 0; }

  .features__grid { grid-template-columns: 1fr; }
  .features__intro { position: static; }
  .block { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .movement { grid-template-columns: 1fr; gap: 40px; }
  .movement__scene { margin: 0 auto; }
  .waitlist { grid-template-columns: 1fr; }
}

/* Short, wide screens such as a phone on its side: no room to pin the phone */
@media (width <= 1020px) and (height <= 560px) {
  .story__device { position: relative; height: auto; padding: 32px 0; --wallet-room: 360px; }
  .story__scene { min-height: 0; }
}

/* Phone: the fan is re-stacked inside the viewport so nothing clips */
@media (max-width: 640px) {
  .site-nav__cta { padding: 0 16px; font-size: 13px; }
  .site-nav ginga-logo { --logo-h: 26px; }
  .site-nav.is-compact .site-nav__home { padding: 8px 14px 8px 11px; }
  .hero { display: flex; flex-direction: column; padding-top: 88px; padding-bottom: 32px; }
  .hero__copy, .hero__side { display: contents; }
  .hero__lead, .hero__side p, .hero__actions { position: relative; }
  .hero__side p { order: 1; max-width: none; margin-top: 14px; }
  .hero h1 { font-size: clamp(44px, 12.6vw, 72px); margin-top: 16px; }
  .hero__actions { order: 3; margin-top: 48px; gap: 12px; }
  .hero__actions .btn { display: none; }
  .btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
  .play__icon { width: 56px; height: 56px; }

  /* Product comes straight after the promise; the buttons follow, with the bar always in reach */
  .stage { order: 2; width: 100%; margin: 24px 0 0; }
  .stage__inner { height: 112cqw; margin-bottom: 0; }
  .stage__card { width: 76cqw; }
  .stage__card--purple { --r: -7deg; left: 2cqw; top: 2cqw; }
  .stage__card--black { --r: 4deg; left: 20cqw; top: 23cqw; }
  .stage__card--lime { --r: -4deg; left: 0; top: 45cqw; }
  .stage__wallet { --r: 5deg; left: 59cqw; top: 33cqw; width: 38cqw; }

  .concept-note { padding-top: 24px; }
  .features__grid { padding-top: 48px; padding-bottom: 72px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:nth-child(even) { translate: none; }
  .feature { min-height: 0; }
  .feature h3 { margin-top: 44px; }

  .block { padding: 72px 24px 56px; }
  .block__device { width: min(280px, 100%); }
  .story { padding-left: 24px; padding-right: 24px; }
  .movement { padding: 72px 24px 72px; min-height: 0; }
  .movement::before { top: auto; right: -20%; bottom: -8%; width: 140%; transform: none; }
  .waitlist__row { flex-direction: column; }
  .waitlist__row .btn { width: 100%; }

  .sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92dvh; border-radius: 28px 28px 0 0; }
  .tour { grid-template-columns: 1fr; }
  .tour__device { width: 168px; margin: 0 auto; }
}
