/* ==========================================================================
   Vela — landing page
   --------------------------------------------------------------------------
    1. Tokens
    2. Base
    3. Layout
    4. Type
    5. Buttons & badges
    6. Brand
    7. Navigation
    8. Hero
   8b. Film
   10. Virtual card
   11. Floating UI
   12. Principles
   13. Showcase
   14. Features
   15. Cashback
   16. Bonus
   18. Solana
   19. FAQ
   20. Final CTA
   21. Footer
   22. Dialog
   23. Motion
   24. Responsive
   25. Reduced motion
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */

:root {
  /* Color */
  --paper: #f4f2fb;
  --surface: #ffffff;
  --mist: #ebe6ff;
  --lilac: #d6ccff;
  --violet: #5b3df5;
  --violet-hover: #4b2ee4;
  --violet-deep: #23174d;
  --ink: #1a1430;
  --ink-soft: #524b69;
  --mint: #3ee0ae;
  --mint-ink: #077655;
  --mint-ice: #daf6ec;
  --line: rgb(26 20 48 / 0.09);
  --line-strong: rgb(26 20 48 / 0.16);

  /* Type */
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Phone system UI (status bar, lock screen, notifications) uses the device's own face */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.04rem + 0.36vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.12rem + 0.55vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.32rem + 1.3vw, 2.5rem);
  --text-display: clamp(2.5rem, 1.55rem + 4vw, 5.25rem);

  /* Space (4px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section: clamp(5.5rem, 3.6rem + 7vw, 10rem);

  /* Layout */
  --gutter: clamp(0.75rem, 0.2rem + 2.4vw, 2.5rem);
  --container: 75rem;
  --nav-h: 4.75rem;

  /* Shape */
  --r-panel: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  --r-lg: 1.75rem;
  --r-md: 1.25rem;
  --r-sm: 0.875rem;
  --r-pill: 999px;

  /* Depth */
  --shadow-1: 0 1px 2px rgb(26 20 48 / 0.05), 0 4px 14px -6px rgb(26 20 48 / 0.12);
  --shadow-2: 0 1px 2px rgb(26 20 48 / 0.05), 0 20px 44px -20px rgb(35 23 77 / 0.3);
  --shadow-card:
    0 1px 1px rgb(35 23 77 / 0.1),
    0 26px 50px -22px rgb(35 23 77 / 0.5),
    0 60px 110px -50px rgb(91 61 245 / 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.25, 1);
}


/* 2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

::selection {
  background: var(--lilac);
  color: var(--ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}


/* 3. Layout
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-head {
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: none;
}

.section-head--split .display {
  max-width: 13ch;
}


/* 4. Type
   ========================================================================== */

.display {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 34ch;
  font-size: var(--text-lg);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.section-head .lead {
  margin-top: var(--space-5);
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head--split .lead {
  margin-top: 0;
  padding-bottom: 0.35em;
}

.fineprint {
  max-width: 54ch;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--ink-soft);
}

.note {
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}

.link:hover {
  color: var(--violet);
}


/* 5. Buttons & badges
   ========================================================================== */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.25s,
    box-shadow 0.4s var(--ease-out),
    color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.12s;
}

.btn--lg {
  height: 3.5rem;
  padding: 0 1.75rem;
  font-size: var(--text-md);
}

.btn--primary {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 10px 24px -12px rgb(91 61 245 / 0.75);
}

.btn--primary:hover {
  --btn-bg: var(--violet-hover);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 14px 30px -12px rgb(91 61 245 / 0.85);
}

/* Light sweep across the filled buttons on hover */
.btn--primary,
.btn--white {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::after,
.btn--white::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.32) 50%, transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}

.btn--white::after {
  background: linear-gradient(105deg, transparent 30%, rgb(91 61 245 / 0.12) 50%, transparent 70%);
}

.btn--primary:hover::after,
.btn--white:hover::after {
  transform: translateX(110%);
  transition: transform 0.9s var(--ease-out);
}

.btn--light {
  box-shadow: var(--shadow-1);
}

.btn--quiet {
  --btn-bg: rgb(255 255 255 / 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--quiet:hover {
  --btn-bg: var(--surface);
}

.btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--violet-deep);
  box-shadow: 0 12px 30px -14px rgb(10 5 40 / 0.6);
}

.btn .icon--mark {
  width: 1.2em;
  height: 1.2em;
  transform-origin: 50% 90%;
  transition: transform 0.6s var(--ease-out);
}

.btn:hover .icon--mark {
  transform: rotate(-9deg);
}

.btn-card {
  position: relative;
  flex: none;
  width: 1.6em;
  height: 1.02em;
  border-radius: 0.2em;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(140 118 255 / 0.9), transparent 60%),
    linear-gradient(155deg, #4b30e3, #1f1170);
  box-shadow: 0 0.15em 0.35em -0.12em rgb(35 23 77 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.14);
  transform: rotate(-6deg);
  transition: transform 0.6s var(--ease-out);
}

.btn-card svg {
  position: absolute;
  top: 0.16em;
  left: 0.18em;
  width: 0.36em;
  height: 0.36em;
  color: #fff;
}

.btn:hover .btn-card {
  transform: rotate(0deg) translateY(-1px);
}

.btn--white .icon--mark {
  color: var(--violet);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.78);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), var(--shadow-1);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
}


/* 6. Brand
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.5rem;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  color: var(--violet);
  transform-origin: 50% 90%;
  transition: transform 0.7s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg);
}

.brand__word {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: lowercase;
  padding-bottom: 0.08em;
}


/* 7. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}

.nav__bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  height: var(--nav-h);
  padding-inline: var(--gutter);
  transition:
    background-color 0.35s,
    box-shadow 0.35s,
    height 0.35s var(--ease-out);
}

.nav.is-scrolled .nav__bar {
  height: 4rem;
  background: rgb(244 242 251 / 0.82);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}

.nav.is-menu-open .nav__bar {
  background: var(--paper);
  box-shadow: none;
}

.nav .brand {
  justify-self: start;
}

.nav__links {
  position: relative;
  display: flex;
  gap: 0.125rem;
  padding: 0.3125rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.nav__links a {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--ink);
}

/* Pill that glides under the hovered link */
.nav__pill {
  position: absolute;
  top: 0.3125rem;
  bottom: 0.3125rem;
  left: 0;
  width: var(--pill-w, 0);
  border-radius: var(--r-pill);
  background: var(--mist);
  opacity: 0;
  transform: translateX(var(--pill-x, 0));
  transition: opacity 0.25s;
}

.nav__links.has-pill .nav__pill {
  opacity: 1;
  transition:
    opacity 0.25s,
    transform 0.5s var(--ease-out),
    width 0.5s var(--ease-out);
}

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle-lines,
.nav__toggle-lines::before,
.nav__toggle-lines::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out), opacity 0.2s;
}

.nav__toggle-lines {
  position: relative;
  background: transparent;
}

.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-lines::before {
  transform: translateY(-3.5px);
}

.nav__toggle-lines::after {
  transform: translateY(3.5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: calc(var(--nav-h) + var(--space-5)) var(--gutter) max(var(--space-6), env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
  transform: none;
}

.menu__links {
  display: flex;
  flex-direction: column;
}

.menu__links a {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.menu.is-open .menu__links a {
  animation: rise 0.6s var(--ease-out) both;
}

.menu.is-open .menu__links a:nth-child(2) { animation-delay: 0.04s; }
.menu.is-open .menu__links a:nth-child(3) { animation-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(4) { animation-delay: 0.12s; }

.menu__actions {
  display: grid;
  gap: 0.625rem;
}


/* 8. Hero
   ========================================================================== */

.hero {
  padding: var(--nav-h) var(--gutter) 0;
}

.hero__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(34rem, calc(100svh - var(--nav-h) - 0.75rem), 56rem);
  padding-block: clamp(3rem, 8svh, 6rem);
  border-radius: var(--r-panel);
  background: var(--mist);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  background: radial-gradient(60% 55% at 50% 0%, rgb(255 255 255 / 0.7), transparent 72%);
}

/* Soft halo that keeps the headline readable over the ribbons */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(44% 40% at 50% 47%, rgb(235 230 255 / 0.78), rgb(235 230 255 / 0) 78%);
  pointer-events: none;
}

.ribbons {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--space-5);
}

.hero__badge {
  margin-bottom: clamp(1rem, 2.6svh, 2rem);
}

.hero__title {
  font-size: clamp(2.875rem, min(7.4vw, 10.4svh), 7.5rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.042em;
  word-spacing: 0.02em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.1em;
  margin-bottom: -0.1em;
}

.hero__line > span {
  display: inline-block;
}

.hero__lead {
  max-width: 44ch;
  margin-top: clamp(1rem, 2.6svh, 1.75rem);
  font-size: var(--text-lg);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3.2svh, 2.25rem);
}

.hero__pay {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1rem, 2.4svh, 1.5rem);
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.4s var(--ease-out);
}

.hero__pay:hover {
  background: rgb(255 255 255 / 0.9);
  transform: translateY(-1px);
}

.hero__pay .paymark {
  height: 2rem;
}

.hero__pay-text {
  margin-left: 0.25rem;
}


/* 8b. Film
   The teaser with voice-over. Poster + play button; the video only loads
   on play (preload="none"), then the native controls take over.
   ========================================================================== */

.film__stage {
  position: relative;
  isolation: isolate;
  max-width: 68rem;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-panel);
  background: var(--mist);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.85),
    0 50px 100px -50px rgb(35 23 77 / 0.55),
    0 20px 40px -24px rgb(35 23 77 / 0.25);
}

.film__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--mist);
}

.film__stage:not(.is-playing) .film__video {
  cursor: pointer;
}

.film__play {
  position: absolute;
  left: 50%;
  bottom: 11%;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), var(--shadow-2);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 0.45s var(--ease-out), opacity 0.3s, background-color 0.25s;
}

.film__play:hover {
  background: rgb(255 255 255 / 0.95);
  transform: translateX(-50%) translateY(-2px);
}

.film__play:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.film__play-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 24px -10px rgb(91 61 245 / 0.85);
  transition: transform 0.45s var(--ease-out);
}

.film__play:hover .film__play-icon {
  transform: scale(1.06);
}

.film__play-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.15rem;
}

.film__play-text small {
  margin-left: 0.6rem;
  font-size: inherit;
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.film__stage.is-playing .film__play {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}


/* 9. Phone & wallet marks
   ========================================================================== */

/* A phone drawn in CSS. The screen's font-size is 16pt of a 393pt-wide
   iPhone and everything inside is sized in em, so a screen scales with
   --phone-w the way an image would. */
.phone {
  --phone-w: 18rem;
  position: relative;
  flex: none;
  width: var(--phone-w);
  padding: calc(var(--phone-w) * 0.034);
  border-radius: calc(var(--phone-w) * 0.165);
  background: linear-gradient(140deg, #57526a 0%, #23202d 20%, #302c3b 58%, #15131b 100%);
  box-shadow:
    inset 0 0 0 calc(var(--phone-w) * 0.004) rgb(255 255 255 / 0.3),
    inset 0 0 0 calc(var(--phone-w) * 0.013) #0d0c12,
    0 1px 2px rgb(26 20 48 / 0.25),
    0 30px 60px -24px rgb(35 23 77 / 0.55),
    0 70px 120px -60px rgb(91 61 245 / 0.4);
  container-type: inline-size;
}

/* Side button (right), action and volume buttons (left) */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: calc(var(--phone-w) * 0.013);
  border-radius: 2px;
  background: linear-gradient(90deg, #262330, #55506a);
}

.phone::before {
  right: calc(var(--phone-w) * -0.01);
  top: 26%;
  height: 11%;
}

.phone::after {
  left: calc(var(--phone-w) * -0.01);
  top: 18%;
  height: 4%;
  box-shadow:
    0 calc(var(--phone-w) * 0.11) 0 #3b3747,
    0 calc(var(--phone-w) * 0.2) 0 #3b3747;
  transform: scaleX(-1);
}

.phone__screen {
  position: relative;
  isolation: isolate;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.132);
  background: var(--screen-bg, #f7f6fc);
  color: var(--ink);
  font-size: 4.0712cqw;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

.phone__island {
  position: absolute;
  z-index: 30;
  top: 0.6875em;
  left: 50%;
  width: 7.875em;
  height: 2.3125em;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}

.phone__home {
  position: absolute;
  z-index: 30;
  bottom: 0.5em;
  left: 50%;
  width: 8.4em;
  height: 0.3125em;
  border-radius: 99px;
  background: currentColor;
  transform: translateX(-50%);
}

.statusbar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.4em;
  padding: 0.3em 1.75em 0 2.05em;
  font-family: var(--font-system);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.statusbar__time {
  width: 3.4em;
  font-size: 1.0625em;
  text-align: center;
}

.statusbar__icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.statusbar__icons svg {
  width: 1.1em;
  height: 0.72em;
}

.statusbar__icons .statusbar__battery {
  width: 1.7em;
  height: 0.82em;
}

/* App chrome shared by the Vela screens */
.app-title {
  font-size: 2.1em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.app-label {
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--ink-soft);
}

.app-group {
  border-radius: 1.25em;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.8em 1em;
  font-size: 0.9375em;
}

.app-row + .app-row {
  border-top: 1px solid var(--line);
}

.app-row > span:first-child {
  color: var(--ink-soft);
}

.app-row strong {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-variant-numeric: tabular-nums;
}

.app-row img,
.app-row .paymark {
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.65em;
  border-radius: 99px;
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
}

.chip svg {
  width: 1.1em;
  height: 1.1em;
}

.chip--mint {
  background: var(--mint-ice);
  color: var(--mint-ink);
}

.chip--violet {
  background: var(--mist);
  color: var(--violet);
}

.app-icon-btn {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.app-icon-btn svg {
  width: 1.15em;
  height: 1.15em;
}

.mini-tx {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75em;
  padding: 0.65em 0.9em;
  font-size: 0.9375em;
}

.mini-tx + .mini-tx {
  border-top: 1px solid var(--line);
}

.mini-tx .tx__logo {
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.75em;
  font-size: inherit;
}

.mini-tx b {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  line-height: 1.2;
}

.mini-tx small {
  overflow: hidden;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-tx strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mini-tx strong small {
  display: block;
  font-weight: 500;
}

.tabbar {
  position: absolute;
  z-index: 20;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.6em 0.75em 2.1em;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 -1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  font-size: 0.625em;
  font-weight: 600;
  color: rgb(26 20 48 / 0.42);
}

.tabbar svg {
  width: 2.3em;
  height: 2.3em;
}

.tabbar .is-active {
  color: var(--violet);
}

/* iOS notification */
.notif {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7em;
  padding: 0.75em 0.9em;
  border-radius: 1.4em;
  background: rgb(250 249 255 / 0.82);
  box-shadow: 0 0.6em 1.6em -0.6em rgb(26 20 48 / 0.35);
  font-family: var(--font-system);
  font-size: 0.875em;
  line-height: 1.25;
  color: #1c1b22;
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}

.notif__icon {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.6em;
  background: linear-gradient(155deg, #6c52ff, #3a20c9);
  color: #fff;
}

.notif__icon svg {
  width: 62%;
  height: 62%;
}

.notif__body {
  min-width: 0;
}

.notif__title {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  font-weight: 600;
}

.notif__title time {
  font-weight: 400;
  color: rgb(28 27 34 / 0.5);
}

.notif__text {
  display: block;
}

.notif__thumb {
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.55em;
}

/* Wallet acceptance marks */
.paymark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  line-height: 1;
}

.paymark svg {
  height: 1.15rem;
}

.paymark--apple {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.paymark--apple svg {
  width: calc(1.15rem * 2.284);
}

.paymark--google {
  background: #fff;
  box-shadow: inset 0 0 0 1px #dadce0;
}

.paymark--google svg {
  width: calc(1.15rem * 2.44);
}

/* Same marks at phone-screen scale */
.phone .paymark {
  height: 1.7em;
  padding: 0 0.5em;
  border-radius: 0.38em;
}

.phone .paymark svg {
  height: 0.9em;
}

.phone .paymark--apple svg {
  width: calc(0.9em * 2.284);
}

.phone .paymark--google svg {
  width: calc(0.9em * 2.44);
}


/* 10. Virtual card
   ========================================================================== */

.vcard {
  --w: 24rem;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: var(--w);
  aspect-ratio: 1.586;
  padding: calc(var(--w) * 0.062) calc(var(--w) * 0.07);
  overflow: hidden;
  border-radius: calc(var(--w) * 0.052);
  container-type: inline-size;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    inset 0 1px 0 rgb(255 255 255 / 0.28);
  pointer-events: none;
}

.vcard--violet {
  background:
    radial-gradient(85% 120% at 100% 0%, rgb(140 118 255 / 0.85) 0%, transparent 58%),
    linear-gradient(155deg, #4b30e3 0%, #301ba3 50%, #1f1170 100%);
}

.vcard--ink {
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(110 90 230 / 0.55) 0%, transparent 60%),
    linear-gradient(155deg, #2b1c64 0%, #1d1248 55%, #150c36 100%);
}

.vcard--pearl {
  color: var(--ink);
  background:
    radial-gradient(85% 120% at 100% 0%, #fff 0%, transparent 60%),
    linear-gradient(155deg, #fdfcff 0%, #eeeafc 55%, #ded7f8 100%);
}

.vcard--pearl::after {
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.9),
    inset 0 -1px 0 rgb(91 61 245 / 0.12);
}

.vcard__art {
  position: absolute;
  z-index: -1;
  right: -16cqw;
  bottom: -30cqw;
  width: 84cqw;
  height: 84cqw;
  color: rgb(255 255 255 / 0.075);
}

.vcard--pearl .vcard__art {
  color: rgb(91 61 245 / 0.07);
}

.vcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vcard__brand {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: 5.6cqw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: lowercase;
}

.vcard__brand svg {
  width: 6.6cqw;
  height: 6.6cqw;
}

.vcard--pearl .vcard__brand svg {
  color: var(--violet);
}

.vcard__kind {
  font-size: 3cqw;
  font-weight: 500;
  opacity: 0.72;
}

.vcard__chip {
  width: 11.5cqw;
  aspect-ratio: 1.3;
  margin-top: 7.5cqw;
  border-radius: 1.8cqw;
  background:
    linear-gradient(90deg, transparent 31%, rgb(58 38 120 / 0.28) 31% 34%, transparent 34% 66%, rgb(58 38 120 / 0.28) 66% 69%, transparent 69%),
    linear-gradient(0deg, transparent 46%, rgb(58 38 120 / 0.28) 46% 54%, transparent 54%),
    linear-gradient(135deg, #f6f2ff 0%, #c8bcf4 45%, #efeaff 70%, #b4a6ec 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.vcard__number {
  display: flex;
  gap: 3.2cqw;
  margin-top: auto;
  font-size: 5cqw;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}

.vcard__foot {
  display: flex;
  align-items: flex-end;
  gap: 8cqw;
  margin-top: 4.2cqw;
}

.vcard__field {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  font-size: 3.5cqw;
  font-weight: 500;
  line-height: 1.15;
}

.vcard__label {
  font-size: 2.5cqw;
  opacity: 0.62;
}

.vcard__network {
  width: 8.5cqw;
  height: auto;
  margin-left: auto;
  margin-bottom: 0.5cqw;
}

.vcard__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(112deg, transparent 32%, rgb(255 255 255 / 0.2) 46%, transparent 60%);
  background-size: 260% 100%;
  background-position: calc(55% - var(--px, 0) * 45%) 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.vcard--mini {
  --w: 15rem;
  padding: 1rem 1.15rem;
}

.vcard--mini .vcard__number {
  font-size: 6.2cqw;
}


/* 11. Tap to pay (Apple Pay / Google Pay)
   ========================================================================== */

.pay__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.pay__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
}

.pay__copy .display {
  max-width: 12ch;
}

.pay__copy .lead {
  margin-top: var(--space-5);
}

.pay__steps {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.pay__steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.pay__num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--violet);
}

.pay__steps p {
  max-width: 44ch;
  padding-top: 0.3rem;
  color: var(--ink-soft);
}

.pay__steps strong {
  color: var(--ink);
}

/* Free card: everything included, only the daily limit is capped */
.pay__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
}

.pay__facts div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-1);
}

.pay__facts dt {
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.pay__facts dd {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pay__facts small {
  margin-left: 0.1em;
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

/* The real Apple Pay screen, in a phone that rises out of a lit plinth.
   Overlay positions are measured on the 369 × 800 screenshot. */
.pay__stage {
  --pay-phone: clamp(15rem, 23vw, 18.5rem);
  position: relative;
}

.pay__plinth {
  display: flex;
  justify-content: center;
  height: calc(var(--pay-phone) * 1.42 + 3rem);
  padding-top: 3rem;
  overflow: hidden;
  border-radius: var(--r-panel);
  background:
    radial-gradient(55% 45% at 50% 36%, rgb(255 255 255 / 0.85), transparent 72%),
    var(--mist);
}

.pay__phone {
  --phone-w: var(--pay-phone);
  height: max-content;
  animation: bob 6s ease-in-out infinite alternate;
}

.pay__screen {
  background: #000;
}

.pay__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Light sweeping across the card, like tilting a card in Wallet */
.pay__shine {
  position: absolute;
  top: 7%;
  left: 3.8%;
  width: 92.2%;
  height: 24.9%;
  overflow: hidden;
  border-radius: 3.8% / 6.5%;
  pointer-events: none;
}

.pay__shine::before {
  content: "";
  position: absolute;
  inset: -10% -60%;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 0.65) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: card-shine 5s var(--ease-soft) 1.5s infinite;
}

/* Rings leaving the "Hold Near Reader" glyph */
.pay__pulse {
  position: absolute;
  top: 40.9%;
  left: 49.9%;
  width: 17.6%;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.pay__pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 0.1em rgb(46 150 255),
    0 0 0.9em rgb(46 150 255 / 0.55);
  opacity: 0;
  animation: nfc-ring 2.4s var(--ease-out) infinite;
}

.pay__pulse i:nth-child(2) {
  animation-delay: 1.2s;
}



.pay__stage .note {
  margin-top: var(--space-4);
  text-align: center;
}


/* 12. Principles
   ========================================================================== */

.principles__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: start;
}

.principles__title {
  max-width: 13ch;
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.principles__list {
  border-top: 1px solid var(--line);
}

.principle {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.principle h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.principle p {
  max-width: 48ch;
  margin-top: 0.35rem;
  color: var(--ink-soft);
}


/* 13. Showcase
   ========================================================================== */

.glyph-card {
  position: relative;
  display: inline-block;
  width: 1.2em;
  height: 0.76em;
  margin: 0 0.06em;
  border-radius: 0.09em;
  vertical-align: -0.04em;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(140 118 255 / 0.9), transparent 60%),
    linear-gradient(155deg, #4b30e3, #1f1170);
  box-shadow: 0 0.12em 0.25em -0.08em rgb(35 23 77 / 0.55);
  transform: rotate(-8deg);
  transition: transform 1.2s var(--ease-out) 0.3s;
}

.glyph-card svg {
  position: absolute;
  top: 0.1em;
  left: 0.11em;
  width: 0.24em;
  height: 0.24em;
  color: #fff;
}

.js .display:not(.is-visible) .glyph-card {
  transform: translateY(0.25em) rotate(-28deg);
}

.showcase__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  max-width: 68rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
}

.showcase__plinth {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-panel);
  background:
    radial-gradient(60% 70% at 25% 40%, rgb(255 255 255 / 0.65), transparent 70%),
    var(--mist);
}

.showcase__stage {
  --mx: 0;
  --my: 0;
}

.showcase__card {
  justify-self: end;
  margin-right: -3.5rem;
  transform:
    translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0)
    rotate(calc(-9deg + var(--mx) * 2deg))
    translateY(-1.5rem);
  transition: transform 0.6s var(--ease-out);
}

.showcase__card .vcard {
  --w: clamp(16rem, 32vw, 25rem);
  animation: bob 6s ease-in-out infinite alternate;
}

.showcase__phone {
  --phone-w: clamp(15rem, 21vw, 17.5rem);
  z-index: 2;
  justify-self: start;
  transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px), 0);
  transition: transform 0.6s var(--ease-out);
}

/* Vela app: home screen */
.home {
  padding: 0.2em 1.25em 0;
}

.home__head {
  display: flex;
  align-items: center;
  gap: 0.65em;
  height: 3.2em;
}

.home__avatar {
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: linear-gradient(150deg, #8f7cff, var(--violet));
  color: #fff;
  font-size: 0.8125em;
  font-weight: 600;
}

.home__hello {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.2;
}

.home__hello small {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--ink-soft);
}

.home__bell {
  position: relative;
  margin-left: auto;
}

.home__bell::after {
  content: "";
  position: absolute;
  top: 0.45em;
  right: 0.5em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #ff5a4e;
  box-shadow: 0 0 0 2px var(--surface);
}

.home .app-label {
  margin-top: 0.9em;
}

.home__amount {
  margin-top: 0.1em;
  font-size: 2.6em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.home__unit {
  font-size: 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.home__fiat {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.3em;
  font-size: 0.9375em;
  color: var(--ink-soft);
}

.home__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.2em;
}

.home__actions span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  font-size: 0.75em;
  font-weight: 600;
}

.home__actions i {
  display: grid;
  place-items: center;
  width: 3.9em;
  height: 3.9em;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.home__actions i.is-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: none;
}

.home__actions svg {
  width: 1.85em;
  height: 1.85em;
}

.home__actions .is-wallet svg {
  width: 2.3em;
  height: 2.3em;
}

.home__paycard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7em;
  margin-top: 1.1em;
  padding: 0.7em 0.8em;
  border-radius: 1.1em;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.9375em;
}

.home__mini-card {
  position: relative;
  width: 3.2em;
  height: 2.05em;
  border-radius: 0.35em;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(140 118 255 / 0.9), transparent 60%),
    linear-gradient(155deg, #4b30e3, #1f1170);
  color: #fff;
}

.home__mini-card svg {
  position: absolute;
  top: 0.3em;
  left: 0.35em;
  width: 0.8em;
  height: 0.8em;
}

.home__paycard b {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  line-height: 1.2;
}

.home__paycard small {
  overflow: hidden;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home__list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.2em 0.2em 0.5em;
}

.home__list-head .app-label {
  margin: 0;
}

.home__list-head span:last-child {
  font-size: 0.8125em;
  font-weight: 600;
  color: var(--violet);
}

.home__cashback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7em;
  padding: 0.8em 1em;
  border-radius: 1.1em;
  background: var(--mint-ice);
  color: var(--mint-ink);
  font-size: 0.9375em;
  font-weight: 600;
}

.home__cashback span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.home__cashback svg {
  width: 1.2em;
  height: 1.2em;
}

.tx__logo {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.875rem;
  background: var(--mist);
  color: var(--violet-deep);
  font-size: var(--text-sm);
  font-weight: 600;
}

.tx__logo svg {
  width: 56%;
  height: 56%;
}

.tx__logo--spotify {
  background: #191414;
  color: #1ed760;
}

.tx__logo--uber {
  background: #000;
  color: #fff;
}

.tx__logo--uber svg {
  width: 72%;
  height: 72%;
}

.tx__logo--starbucks {
  background: #00704a;
  color: #fff;
}

.tx__logo--starbucks svg {
  width: 70%;
  height: 70%;
}

.showcase__toast {
  position: absolute;
  z-index: 3;
  top: clamp(2.5rem, 7vw, 5rem);
  right: clamp(0.75rem, 3vw, 2.5rem);
  width: min(19.5rem, 88vw);
  font-size: 0.9375rem;
}

.showcase__toast strong {
  font-weight: 600;
}


/* 14. Features
   ========================================================================== */

.features__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

/* Pinned: the layout sticks while the page scrolls through one step per
   feature (script.js sizes the spacer and sets the sticky top). */
.features.is-pinned .features__layout {
  position: sticky;
  top: var(--pin-top, calc(var(--nav-h) + 1.5rem));
}

.features__spacer {
  height: 0;
}

.feature-tab {
  display: block;
  width: 100%;
  padding: 1.35rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feature-tab:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-tab__title {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: rgb(26 20 48 / 0.34);
  transition: color 0.35s;
}

.feature-tab:hover .feature-tab__title {
  color: rgb(26 20 48 / 0.6);
}

.feature-tab[aria-selected="true"] .feature-tab__title {
  color: var(--ink);
}

/* With JS, titles fill with ink from left to right as the page scrolls
   (--fill goes 0 → 1, set by script.js). */
@property --fill {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.js .feature-tab__title,
.js .feature-tab:hover .feature-tab__title,
.js .feature-tab[aria-selected="true"] .feature-tab__title {
  --rest: rgb(26 20 48 / 0.26);
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(90deg, var(--ink) calc(var(--fill) * 140% - 40%), var(--rest) calc(var(--fill) * 140%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: --fill 0.3s linear;
}

.js .feature-tab:hover .feature-tab__title {
  --rest: rgb(26 20 48 / 0.5);
}

.feature-tab__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.5s var(--ease-out),
    opacity 0.35s,
    margin-top 0.5s var(--ease-out);
}

.feature-tab[aria-selected="true"] .feature-tab__more {
  grid-template-rows: 1fr;
  margin-top: 0.6rem;
  opacity: 1;
}

.feature-tab__text {
  min-height: 0;
  max-width: 38ch;
  overflow: hidden;
  color: var(--ink-soft);
}

/* The stage is a lit plinth; the phone rises from its bottom edge */
.features__stage {
  position: relative;
  display: flex;
  justify-content: center;
  height: clamp(26rem, calc(100svh - var(--nav-h) - 6rem), 38rem);
  padding-top: clamp(1.75rem, 4vh, 3rem);
  overflow: hidden;
  border-radius: var(--r-panel);
  background:
    radial-gradient(60% 50% at 50% 30%, rgb(255 255 255 / 0.7), transparent 75%),
    var(--stage-bg, var(--mist));
  transition: background-color 0.6s;
}

.features__stage[data-active="earn"] { --stage-bg: var(--mint-ice); }
.features__stage[data-active="solana"] { --stage-bg: #e3f1f4; }
.features__stage[data-active="setup"] { --stage-bg: #ece8fb; }

.features__phone {
  --phone-w: clamp(15rem, 22vw, 18rem);
  --screen-bg: #f7f6fc;
  height: max-content;
  box-shadow:
    inset 0 0 0 calc(var(--phone-w) * 0.004) rgb(255 255 255 / 0.3),
    inset 0 0 0 calc(var(--phone-w) * 0.013) #0d0c12,
    0 40px 80px -30px rgb(35 23 77 / 0.6);
}

.feature-panel {
  position: absolute;
  inset: 0;
  padding: 3.4em 1.25em 0;
}

.feature-panel[hidden] {
  display: none;
}

/* Feature screens (inside the phone, sized in em) */
.fs {
  display: flex;
  flex-direction: column;
}

.fs--center {
  align-items: center;
  text-align: center;
}

.fs-nav {
  display: grid;
  grid-template-columns: 2.3em 1fr 2.3em;
  align-items: center;
  width: 100%;
  height: 3em;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
}

.fs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6em;
}

.fs-seg {
  display: inline-flex;
  padding: 0.2em;
  border-radius: 99px;
  background: #ebe8f6;
  font-size: 0.8125em;
  font-weight: 600;
}

.fs-seg > * {
  padding: 0.35em 0.85em;
  border-radius: 99px;
  color: var(--ink-soft);
}

.fs-seg b {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(26 20 48 / 0.12);
}

.fs-merchant {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.6em;
  text-align: center;
}

.fs-merchant .tx__logo {
  width: 4.2em;
  height: 4.2em;
  border-radius: 1.2em;
  font-size: inherit;
  box-shadow: 0 0.5em 1.2em -0.5em rgb(0 112 74 / 0.6);
}

.fs-merchant__name {
  margin-top: 0.7em;
  font-size: 1.125em;
  font-weight: 600;
}

.fs-merchant__meta {
  font-size: 0.8125em;
  color: var(--ink-soft);
}

.fs-amount {
  margin-top: 0.25em;
  font-size: 2.9em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fs-amount--mint {
  margin-top: 0.1em;
  color: var(--mint-ink);
  text-align: left;
}

.fs-amount--sm {
  font-size: 1.6em;
}

.fs-status {
  display: flex;
  justify-content: center;
  margin-top: 0.6em;
}

.convert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1em;
}

.token {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.8em;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.875em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.token img {
  width: 1em;
  height: auto;
}

.convert__arrow {
  width: 1.2em;
  height: 1.2em;
  color: var(--ink-soft);
}

.fs-rows {
  width: 100%;
  margin-top: 1em;
  text-align: left;
}

.app-row .is-mint,
.mini-tx .is-mint {
  color: var(--mint-ink);
}

.fs-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55em;
  align-items: end;
  height: 7.5em;
  margin: 1.1em 0 1em;
  padding: 0 0.2em;
}

.fs-chart span {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4em;
  height: 100%;
  font-size: 0.6875em;
  font-weight: 600;
  color: var(--ink-soft);
}

.fs-chart i {
  width: 100%;
  height: calc(var(--h) * 100% - 1.6em);
  min-height: 0.4em;
  border-radius: 0.45em;
  background: #bfe9d9;
  transform-origin: bottom;
}

.fs-chart .is-today i {
  background: var(--mint-ink);
}

.fs-chart .is-future i {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.fs-chart .is-today {
  color: var(--ink);
}

.fs-card {
  display: flex;
  justify-content: center;
  margin-top: 0.4em;
}

.fs-card .vcard {
  --w: 20.5em;
  box-shadow: 0 0.8em 1.8em -0.8em rgb(35 23 77 / 0.6);
}

.confirm {
  position: relative;
  width: 5.5em;
  height: 5.5em;
  margin: 1.4em auto 0;
}

.confirm__ring {
  width: 100%;
  height: 100%;
}

.confirm__ring circle {
  fill: none;
  stroke-width: 4;
}

.confirm__track {
  stroke: var(--mist);
}

.confirm__progress {
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.confirm__check {
  position: absolute;
  inset: 0;
  width: 2.3em;
  height: 2.3em;
  margin: auto;
  color: var(--violet);
}

.confirm__title {
  margin-top: 1em;
  font-size: 1.375em;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.confirm__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.35em;
  font-size: 0.875em;
  color: var(--ink-soft);
}

.confirm__meta img {
  width: 1em;
  height: auto;
}

.setup {
  margin-top: 1.2em;
}

.setup__item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 0.9em;
  font-size: 0.9375em;
  font-weight: 600;
}

.setup__item + .setup__item {
  border-top: 1px solid var(--line);
}

.setup__item .paymark {
  margin-left: auto;
}

.setup__tick {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  flex: none;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
}

.setup__tick svg {
  width: 1em;
  height: 1em;
}

.setup__bar {
  height: 0.4em;
  margin-top: 1em;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e0f4;
}

.setup__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
  transform-origin: left;
}


/* 15. Cashback
   ========================================================================== */

.cashback__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.cashback__title {
  display: flex;
  flex-direction: column;
}

.cashback__figure {
  margin-left: -0.05em;
  font-size: clamp(10rem, 3rem + 30vw, 30rem);
  font-weight: 600;
  font-stretch: 75%;
  line-height: 0.78;
  letter-spacing: -0.065em;
  color: var(--violet);
}

.cashback__caption {
  max-width: 14ch;
  margin-top: clamp(1rem, 3vw, 2rem);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ledger {
  margin-top: var(--space-6);
}

.ledger__card {
  padding: 1.25rem 1.5rem 0.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
}

.ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: 1rem;
}

.ledger__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
}

.ledger__total {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--mint-ink);
  font-variant-numeric: tabular-nums;
}

.ledger__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto 3.5rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.ledger__row .tx__logo {
  border-radius: 0.8rem;
}

.ledger__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  line-height: 1.25;
}

.ledger__name small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--ink-soft);
}

.ledger__row .chip {
  font-size: var(--text-xs);
}

.ledger__row strong {
  text-align: right;
  color: var(--mint-ink);
  font-variant-numeric: tabular-nums;
}

.cashback__side .fineprint {
  margin-top: var(--space-5);
}


/* 16. Bonus
   ========================================================================== */

.bonus {
  padding-inline: var(--gutter);
}

.bonus__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--space-7);
  max-width: 92rem;
  margin-inline: auto;
  padding: clamp(3rem, 1.5rem + 6vw, 7rem);
  overflow: hidden;
  border-radius: var(--r-panel);
  background:
    radial-gradient(70% 90% at 80% 100%, rgb(91 61 245 / 0.45), transparent 70%),
    var(--violet-deep);
  color: #fff;
}

.bonus__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bonus__copy,
.bonus__visual {
  position: relative;
  z-index: 1;
}

.bonus__title {
  max-width: 8ch;
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.bonus__text {
  max-width: 32ch;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: rgb(255 255 255 / 0.74);
}

.bonus__actions {
  margin-top: var(--space-6);
}

.fineprint--on-dark {
  margin-top: var(--space-5);
  color: rgb(255 255 255 / 0.6);
}

.bonus__visual {
  position: relative;
}

.bonus__amount {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bonus__value {
  font-size: clamp(5rem, 2rem + 10vw, 11rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.bonus__unit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0.9rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.1);
  font-size: var(--text-sm);
  font-weight: 500;
}


/* 18. Solana
   ========================================================================== */

.solana {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
  text-align: center;
}

.solana__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solana__title {
  font-size: clamp(3.25rem, 0.8rem + 10.5vw, 10.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.solana__lead {
  margin-top: var(--space-6);
  margin-inline: auto;
}

.solana__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  width: 100%;
  max-width: 62rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  text-align: left;
}

.solana__facts li {
  padding: var(--space-5);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.66);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.solana__facts h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.solana__facts p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}


/* 19. FAQ
   ========================================================================== */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-6));
}

.faq__head .display {
  max-width: 9ch;
}

.faq__head .lead {
  margin-top: var(--space-5);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq__icon {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__q button:hover .faq__icon {
  transform: scale(1.06);
}

.faq__item.is-open .faq__icon {
  background: var(--violet);
  color: #fff;
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 1fr;
}

.js .faq__a {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.js .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  min-height: 0;
  overflow: hidden;
}

.faq__a p {
  max-width: 58ch;
  padding: 0 3.5rem 1.6rem 0;
  color: var(--ink-soft);
}

.js .faq__a p {
  opacity: 0;
  transform: translateY(-0.4rem);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.js .faq__item.is-open .faq__a p {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}


/* 20. Final CTA
   ========================================================================== */

.cta {
  padding: 0 var(--gutter);
}

.cta__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(38rem, 30rem + 22vw, 50rem);
  padding-top: clamp(4rem, 2rem + 7vw, 8.5rem);
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--violet);
  color: #fff;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 42% at 50% 30%, rgb(91 61 245 / 0.75), rgb(91 61 245 / 0) 80%);
  pointer-events: none;
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--space-5);
}

.cta__title {
  max-width: 11ch;
  font-size: clamp(2.75rem, 1rem + 6.2vw, 6.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.cta__actions {
  margin-top: var(--space-6);
}

.cta__pay {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-5);
}

.cta__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 0.8);
}

.cta__cards {
  --rise: 0px;
  --cta-card: clamp(15rem, 10rem + 18vw, 25rem);
  position: relative;
  width: 100%;
  height: calc(var(--cta-card) / 1.586 * 0.75);
  margin-top: auto;
  padding-top: var(--space-7);
  box-sizing: content-box;
}

.cta__card {
  position: absolute;
  top: var(--space-7);
  left: 50%;
}

.cta__card .vcard {
  --w: var(--cta-card);
}

.cta__card--back {
  transform: translate(calc(-50% - var(--cta-card) * 0.28), calc(var(--rise) * 1.4 + 1.5rem)) rotate(-11deg);
}

.cta__card--front {
  transform: translate(calc(-50% + var(--cta-card) * 0.22), var(--rise)) rotate(7deg);
}


/* 21. Footer
   ========================================================================== */

.footer {
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0 var(--space-6);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-7);
}

.footer__brand p {
  margin-top: var(--space-4);
  color: var(--ink-soft);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.footer__col h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__col .icon {
  width: 1rem;
  height: 1rem;
}

.footer__legal {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.footer__legal p {
  max-width: 92ch;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--ink-soft);
}


/* 23. Motion
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes line-up {
  from { transform: translateY(108%); }
  to { transform: none; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(22%) rotateX(38deg) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(7px); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes ring-fill {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes check-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: none; }
}

@keyframes tick-on {
  from { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; }
  to { background-color: var(--violet); box-shadow: none; color: #fff; }
}

@keyframes bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(1.2em); }
  to { opacity: 1; transform: none; }
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: none; }
}

@keyframes nudge {
  0%, 100% { transform: none; }
  50% { transform: translateX(3px); }
}

@keyframes card-shine {
  0% { transform: translateX(-60%); }
  40%, 100% { transform: translateX(60%); }
}

@keyframes nfc-ring {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(2.2); }
}

/* Tap to pay: the phone rises out of its plinth, then the receipt lands */
.js .pay__phone {
  opacity: 0;
  translate: 0 4rem;
  transition: opacity 1s var(--ease-out) 0.15s, translate 1.3s var(--ease-out) 0.15s;
}


.js .pay__stage.is-visible .pay__phone {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Hero load sequence: runs once fonts are ready (.is-ready on <html>) */
.js .hero__badge,
.js .hero__lead,
.js .hero__actions,
.js .hero__pay {
  opacity: 0;
}

.js .hero__line > span {
  transform: translateY(108%);
}

.is-ready .hero__badge { animation: rise 0.8s var(--ease-out) 0.05s both; }
.is-ready .hero__line > span { animation: line-up 1.05s var(--ease-out) both; }
.is-ready .hero__line:nth-child(1) > span { animation-delay: 0.1s; }
.is-ready .hero__line:nth-child(2) > span { animation-delay: 0.18s; }
.is-ready .hero__line:nth-child(3) > span { animation-delay: 0.26s; }
.is-ready .hero__lead { animation: rise 0.9s var(--ease-out) 0.5s both; }
.is-ready .hero__actions { animation: rise 0.9s var(--ease-out) 0.6s both; }
.is-ready .hero__pay { animation: rise 0.9s var(--ease-out) 0.72s both; }

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Headlines rise word by word (words are wrapped by script.js) */
.w {
  display: inline-block;
  clip-path: inset(-0.2em -0.1em -0.18em -0.1em);
}

.w > span {
  display: inline-block;
}

.js [data-split] .w > span {
  transform: translateY(112%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + var(--wi, 0) * 55ms);
}

.js [data-split].is-visible .w > span {
  transform: none;
}

/* Showcase: plinth, card, app and toast land in sequence */
.js [data-showcase] .showcase__plinth {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out);
}

.js [data-showcase] .showcase__card {
  opacity: 0;
  translate: -4rem 2rem;
  rotate: -10deg;
  transition:
    opacity 1s var(--ease-out) 0.2s,
    translate 1.4s var(--ease-out) 0.2s,
    rotate 1.4s var(--ease-out) 0.2s,
    transform 0.6s var(--ease-out);
}

.js [data-showcase] .showcase__phone {
  opacity: 0;
  translate: 0 3rem;
  transition:
    opacity 1s var(--ease-out) 0.35s,
    translate 1.3s var(--ease-out) 0.35s,
    transform 0.6s var(--ease-out);
}

.js [data-showcase] .mini-tx,
.js [data-showcase] .home__cashback {
  opacity: 0;
  translate: -0.75em 0;
  transition: opacity 0.6s var(--ease-out), translate 0.8s var(--ease-out);
}

.js [data-showcase] .mini-tx:nth-child(1) { transition-delay: 0.75s; }
.js [data-showcase] .mini-tx:nth-child(2) { transition-delay: 0.85s; }
.js [data-showcase] .mini-tx:nth-child(3) { transition-delay: 0.95s; }
.js [data-showcase] .home__cashback { transition-delay: 1.1s; }

.js [data-showcase] .showcase__toast {
  opacity: 0;
  scale: 0.85;
  translate: 0 0.75rem;
  transition:
    opacity 0.6s var(--ease-out) 1.35s,
    scale 0.8s var(--ease-out) 1.35s,
    translate 0.8s var(--ease-out) 1.35s;
}

.js [data-showcase].is-visible .showcase__plinth,
.js [data-showcase].is-visible .showcase__card,
.js [data-showcase].is-visible .showcase__phone,
.js [data-showcase].is-visible .mini-tx,
.js [data-showcase].is-visible .home__cashback,
.js [data-showcase].is-visible .showcase__toast {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
}

.js [data-showcase].is-visible .showcase__plinth {
  transform: none;
}

.js [data-showcase].is-visible .showcase__card {
  transform:
    translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0)
    rotate(calc(-9deg + var(--mx) * 2deg))
    translateY(-1.5rem);
}

/* 3% rises out of a mask */
.js .cashback__figure {
  clip-path: inset(100% -5% -10% -5%);
  translate: 0 0.25em;
  transition: clip-path 1.4s var(--ease-out), translate 1.4s var(--ease-out);
}

.js .cashback__title.is-visible .cashback__figure {
  clip-path: inset(-10% -5% -10% -5%);
  translate: 0 0;
}

/* Counters keep their final width while they roll, so nothing shifts */
span[data-counter],
strong[data-counter] {
  display: inline-block;
}

[data-counter] {
  font-variant-numeric: tabular-nums;
}

.mini-tx strong span,
.home__cashback strong {
  text-align: right;
}

.bonus__value {
  text-align: center;
}

/* Bonus amount */
.js .bonus__amount {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease-out) 0.7s, transform 1.1s var(--ease-out) 0.7s;
}

.js .bonus__visual.is-visible .bonus__amount {
  opacity: 1;
  transform: none;
}

/* Cashback notifications land one by one */
.js .ledger__row {
  opacity: 0;
  transform: translateY(1.4em) scale(0.95);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .ledger__row.is-in {
  opacity: 1;
  transform: none;
}

/* Feature vignettes: play when their panel becomes active */
.js .feature-panel .fs {
  opacity: 0;
}

.feature-panel.is-playing .fs {
  animation: screen-in 0.55s var(--ease-out) both;
}

.feature-panel.is-playing .convert .token:first-child { animation: slide-in 0.5s var(--ease-out) 0.25s both; }
.feature-panel.is-playing .convert__arrow { animation: slide-in 0.5s var(--ease-out) 0.4s both, nudge 1.2s ease-in-out 1s 2; }
.feature-panel.is-playing .convert .token:last-child { animation: slide-in 0.5s var(--ease-out) 0.55s both; }
.feature-panel.is-playing .fs-status { animation: pop 0.5s var(--ease-out) 0.95s both; }

.feature-panel.is-playing .fs-chart i {
  animation: bar-grow 0.7s var(--ease-out) both;
  animation-delay: calc(0.25s + var(--i) * 0.07s);
}

.feature-panel.is-playing .mini-tx {
  animation: rise 0.5s var(--ease-out) both;
  animation-delay: calc(0.5s + var(--i) * 0.14s);
}

.feature-panel.is-playing .confirm__progress { animation: ring-fill 1.1s var(--ease-soft) 0.25s both; }
.feature-panel.is-playing .confirm__check { animation: check-in 0.45s var(--ease-out) 1.25s both; }

.feature-panel.is-playing .setup__tick {
  animation: tick-on 0.35s var(--ease-out) both;
  animation-delay: calc(0.35s + var(--i) * 0.45s);
}

.feature-panel.is-playing .setup__bar span { animation: bar-fill 1.4s var(--ease-soft) 0.3s both; }


/* 24. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav__wallet {
    width: 2.75rem;
    padding: 0;
  }

  .nav__wallet > span:not(.btn-card) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-h: 4.25rem;
  }

  .nav__bar {
    grid-template-columns: 1fr auto;
  }

  .nav__links,
  .nav__wallet {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav.is-scrolled .nav__bar {
    height: var(--nav-h);
  }

  .principles__grid,
  .pay__grid,
  .features__layout,
  .cashback__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay__stage {
    --pay-phone: min(17rem, 60vw);
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
  }

  .principles__grid {
    gap: var(--space-7);
  }

  .principles__title {
    max-width: 18ch;
  }

  .features__layout {
    gap: var(--space-5);
  }

  /* Phone first, titles under it: when pinned, nothing moves above the titles */
  .features__stage {
    order: -1;
    height: clamp(17rem, 46svh, 24rem);
    padding-top: 1.5rem;
  }

  .features__phone {
    --phone-w: min(15.5rem, 62vw);
  }

  .cashback__grid {
    gap: var(--space-6);
  }

  .cashback__side {
    max-width: 34rem;
  }

  .bonus__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .bonus__visual {
    max-width: 34rem;
    width: 100%;
    margin-inline: auto;
  }

  .faq__head {
    position: static;
  }

  .faq__head .display {
    max-width: none;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .showcase__stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 2.5rem 1rem 3rem;
  }

  .showcase__card,
  .js [data-showcase].is-visible .showcase__card {
    justify-self: center;
    margin: 0 0 -4.5rem;
    transform: rotate(-6deg);
  }

  .showcase__card .vcard {
    --w: min(19rem, 78vw);
  }

  .showcase__phone {
    --phone-w: min(17rem, 72vw);
    justify-self: center;
  }

  .showcase__toast {
    position: relative;
    top: auto;
    right: auto;
    justify-self: center;
    margin-top: 1.25rem;
  }

  .solana__facts {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }

  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-6);
  }
}

@media (max-width: 640px) {
  .hero__panel {
    min-height: auto;
    padding-block: 3.5rem;
  }

  .film__stage {
    border-radius: var(--r-lg);
  }

  /* Small screens: a round play button in the corner, clear of the title */
  .film__play {
    left: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem;
    transform: none;
  }

  .film__play:hover {
    transform: translateY(-2px);
  }

  .film__stage.is-playing .film__play {
    transform: translateY(8px);
  }

  .film__play-text {
    display: none;
  }

  .film__play-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .film__play-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .hero__content {
    padding-inline: 1.25rem;
  }

  .hero__title {
    font-size: clamp(2rem, 10.4vw, 3.5rem);
  }

  .ledger__card {
    padding-inline: 1.1rem;
  }

  .ledger__total {
    font-size: 1.75rem;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }


  .feature-tab {
    padding: 0.9rem 0;
  }

  .cashback__figure {
    font-size: clamp(10rem, 58vw, 15rem);
  }

  .ledger__card {
    padding-inline: 1.1rem;
  }

  .ledger__row {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto 3.25rem;
    gap: 0.6rem;
  }

  .bonus__panel {
    padding: 3rem 1.5rem 6rem;
    gap: var(--space-8);
  }

  .faq__q button {
    padding: 1.25rem 0;
  }

  .faq__a p {
    padding-right: 0;
  }

  .cta__panel {
    min-height: 34rem;
    padding-top: 4rem;
  }

  .cta__cards {
    --cta-card: min(64vw, 16rem);
  }


  .footer__bottom {
    flex-direction: column;
  }
}


/* 25. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    transform: none;
  }

  .showcase__card .vcard,
  .pay__phone,
  .pay__shine::before,
  .pay__pulse i {
    animation: none !important;
  }
}
