/*
 * The landing page at `/` (ETE-178). Design v2: LUMI's structure, the Locus
 * red, Instrument Serif and Inter. Values come from tokens.css, linked before
 * this file.
 *
 * Built to the founder's rule for v2, "everything subtle": hairline strokes,
 * shadows you barely see, motion of a few pixels. The two places allowed to
 * be noticed are the hero demo and the reward celebration inside it.
 *
 * Under the CSP nothing here can come from the page: no style="" anywhere.
 * Per-element values are classes (.p-70 for a 70% progress bar), and the few
 * that are computed (a tab indicator's position, a particle's direction) are
 * custom properties landing.js sets through the CSSOM, which the CSP allows.
 *
 * Motion: `.rm` on <html> is prefers-reduced-motion. It reduces rather than
 * removes -- fades of 150ms stay, travel, springs and loops go. Reveal-on-
 * scroll only hides anything once landing.js has added `.rv`, so with the
 * script off, blocked or failed, every section is simply there.
 */

/* -- Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

html.rm {
  scroll-behavior: auto;
}

/* Decorative glows must never widen the page. */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 var(--fs-body) / 1.6 var(--font-ui);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: var(--brand-text);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 400;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

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

/* The icon sprite. Not display:none, which some engines also apply to what
   <use> clones out of it. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 28px;
  height: 28px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -80px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

/* -- Type ----------------------------------------------------------------- */

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.06;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.t-statement {
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  line-height: 1.22;
  color: var(--ink);
}

/* The second sentence is the explanation, so it reads as body copy rather than
   in the display serif: a single-weight serif in a muted tone at this size was
   hard to read (ETE-180). */
.t-statement .dim {
  display: block;
  max-width: 640px;
  margin: 18px auto 0;
  font-family: var(--font-ui);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted-text);
  text-wrap: pretty;
}

.t-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.t-small {
  font-size: var(--fs-small);
}

.t-xs {
  font-size: var(--fs-xs);
}

.t-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.accent {
  color: var(--brand-text);
  font-style: italic;
}

b {
  color: var(--ink);
  font-weight: 600;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  margin-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head .t-lead {
  max-width: 600px;
}

/* -- Eyebrows and badges -------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-1);
  color: var(--brand-text);
  font: 500 var(--fs-xs) / 1.2 var(--font-ui);
  letter-spacing: 0.01em;
}

.eyebrow--tint {
  border-color: transparent;
  background: var(--brand-tint);
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--sunk);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge .icon {
  width: 13px;
  height: 13px;
}

.badge--brand {
  border-color: transparent;
  background: var(--brand-tint);
  color: var(--brand-text);
}

.badge--solid {
  border-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}

.badge--success {
  border-color: var(--success-line);
  background: var(--success-bg);
  color: var(--success);
}

.badge--danger {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentcolor;
}

/* -- Buttons -------------------------------------------------------------- */

.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-2) var(--ease-standard),
    background-color var(--dur-1) var(--ease-standard),
    border-color var(--dur-1) var(--ease-standard),
    color var(--dur-1) var(--ease-standard),
    box-shadow var(--dur-2) var(--ease-standard);
}

.btn:active:not([disabled]) {
  transform: scale(0.97);
  transition-duration: var(--dur-1);
}

.rm .btn:active:not([disabled]) {
  transform: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn--lg {
  --h: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.btn--sm {
  --h: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--sh-red);
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--primary:active {
  background: var(--brand-press);
}

.btn--dark {
  background-color: var(--dark);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 10%), transparent);
  color: var(--on-dark);
}

.btn--dark:hover {
  background-color: #2a2532;
}

.btn--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--surface-2);
  color: var(--brand-text);
}

.btn--icon {
  width: var(--h);
  padding: 0;
}

.btn[disabled] {
  box-shadow: none;
  cursor: default;
}

/* The pill with an arrow (Locus). */
.btn--arrow {
  gap: 14px;
  padding-right: 6px;
}

.btn--arrow .btn__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--red-600);
  transition: transform var(--dur-3) var(--ease-standard);
}

.btn--lg.btn--arrow .btn__arrow {
  width: 44px;
  height: 44px;
}

.btn--arrow:hover .btn__arrow {
  transform: translateX(2px);
}

.rm .btn--arrow:hover .btn__arrow {
  transform: none;
}

.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn__icon {
  display: none;
}

.rm .btn .spinner {
  border-right-color: currentcolor;
  animation: pulse 1s ease-in-out infinite;
}

/* A gentle ring that says "you can press this", only while the demo waits. */
.btn.is-hint {
  animation: hint 1.6s var(--ease-standard) infinite;
}

.rm .btn.is-hint {
  animation: none;
  box-shadow: var(--ring);
}

@keyframes hint {
  0% {
    box-shadow: var(--sh-red), 0 0 0 0 rgb(215 53 74 / 30%);
  }

  70% {
    box-shadow: var(--sh-red), 0 0 0 8px rgb(215 53 74 / 0%);
  }

  100% {
    box-shadow: var(--sh-red), 0 0 0 0 rgb(215 53 74 / 0%);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes curtain {
  from {
    opacity: 0;
    transform: scaleY(0.96);
  }
}

/* -- Cards, rewards, progress --------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.reward-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
}

.reward-card .r-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand-text);
}

.reward-card .r-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.reward-card .r-pts {
  color: var(--muted-text);
  font-size: var(--fs-xs);
}

.reward-card .r-end {
  margin-left: auto;
}

.reward-card.is-ready {
  border-color: var(--brand-halo);
  background: linear-gradient(180deg, var(--surface), var(--red-50));
}

/* The one place red is a background: the featured reward. */
.reward-card--feature {
  border-color: transparent;
  background: linear-gradient(160deg, #d23348, var(--red-700));
  color: #fff;
}

.reward-card--feature .r-name {
  color: #fff;
}

.reward-card--feature .r-pts {
  color: rgb(255 255 255 / 90%);
}

.reward-card--feature .r-ico {
  background: rgb(255 255 255 / 16%);
  color: #fff;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font: 600 17px / 1 var(--font-ui);
}

.avatar--ink {
  background: var(--ink);
  color: var(--surface);
}

.avatar--deep {
  background: var(--red-700);
}

.progress {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--sunk);
}

.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-300), var(--brand));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform var(--dur-6) var(--ease-standard) var(--dur-2);
}

.rm .progress > i {
  transition: none;
}

.p-38 {
  --p: 0.375;
}

.p-70 {
  --p: 0.7;
}

.p-90 {
  --p: 0.9;
}

.p-92 {
  --p: 0.917;
}

.p-100 {
  --p: 1;
}

/* -- Navbar --------------------------------------------------------------- */

.nav {
  position: fixed;
  z-index: 50;
  top: 20px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 24px, 820px);
  height: 64px;
  padding: 0 10px 0 24px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(21 18 27 / 4%), 0 8px 30px -12px rgb(94 15 30 / 12%);
  transform: translateX(-50%);
  transition:
    top var(--dur-3) var(--ease-standard),
    background-color var(--dur-3) var(--ease-standard),
    box-shadow var(--dur-3) var(--ease-standard);
}

.nav.is-scrolled {
  top: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 12px 34px -12px rgb(94 15 30 / 18%), 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__logo .mark {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.nav__links {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-2), color var(--dur-2);
}

.nav__links a:hover {
  background: var(--brand-tint);
  color: var(--brand-text);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav .btn {
  --h: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.nav .btn--icon {
  width: 44px;
  padding: 0;
}

.nav__menu {
  display: none;
}

.nav__menu summary {
  list-style: none;
}

.nav__menu summary::-webkit-details-marker {
  display: none;
}

.nav__menu[open] .icon--open,
.nav__menu:not([open]) .icon--close {
  display: none;
}

.nav-panel {
  position: fixed;
  z-index: 49;
  top: 80px;
  left: 12px;
  right: 12px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
  animation: fade-up var(--dur-4) var(--ease-enter);
}

.rm .nav-panel {
  animation: fade-in var(--dur-2) linear;
}

.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav-panel a:hover {
  background: var(--brand-tint);
}

.nav-panel .nav-panel__client {
  color: var(--brand-text);
}

@media (max-width: 820px) {
  .nav {
    top: 12px;
    height: 60px;
    padding: 0 8px 0 18px;
  }

  .nav.is-scrolled {
    top: 8px;
  }

  .nav__links {
    display: none;
  }

  .nav__right {
    margin-left: auto;
  }

  .nav__menu {
    display: block;
  }
}

@media (max-width: 380px) {
  .nav .btn--dark {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* -- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(124px, 14vw, 168px) 0 0;
  text-align: center;
}

/* The blush in place of LUMI's clouds. */
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 -80px;
  background:
    radial-gradient(60% 50% at 18% 18%, rgb(240 179 187 / 50%), transparent 70%),
    radial-gradient(45% 45% at 85% 12%, rgb(215 53 74 / 14%), transparent 70%),
    radial-gradient(70% 60% at 60% 70%, rgb(245 227 224 / 90%), transparent 72%),
    radial-gradient(40% 40% at 8% 80%, rgb(230 133 148 / 18%), transparent 70%);
  content: "";
  -webkit-mask: linear-gradient(#000 60%, transparent);
  mask: linear-gradient(#000 60%, transparent);
}

.hero__text {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.hero .t-display {
  max-width: 900px;
  text-wrap: balance;
}

.hero .t-lead {
  max-width: 620px;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 14px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.client-link {
  color: var(--muted-text);
  font-size: 14px;
}

.client-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

/* The entrance: the H1 only rises, it never starts invisible (it is the
   largest paint). Everything else fades up a few pixels, once. */
.hero .t-display {
  animation: h-rise var(--dur-6) var(--ease-enter) both;
}

.hero__text > :not(.t-display) {
  animation: fade-up var(--dur-6) var(--ease-enter) both;
}

.hero__text > :nth-child(3) {
  animation-delay: 60ms;
}

.hero__text > :nth-child(4) {
  animation-delay: 120ms;
}

.hero__text > :nth-child(n + 5) {
  animation-delay: 180ms;
}

.sim {
  animation: fade-up var(--dur-6) var(--ease-enter) 240ms both;
}

.rm .hero .t-display,
.rm .hero__text > *,
.rm .sim {
  animation: none;
}

@keyframes h-rise {
  from {
    transform: translateY(8px);
  }
}

/* -- The phone ------------------------------------------------------------ */

.phone {
  position: relative;
  width: var(--pw, 280px);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2530, #0e0c11);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 12%), var(--sh-3);
}

.phone::before {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 20px;
  background: #0b0a0d;
  content: "";
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--bg);
  color: var(--body);
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px 0;
  color: var(--ink);
  font: 600 12px / 1 var(--font-ui);
}

.phone__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.phone__bars i {
  width: 3px;
  border-radius: 1px;
  background: var(--ink);
}

.phone__bars i:nth-child(1) {
  height: 4px;
}

.phone__bars i:nth-child(2) {
  height: 7px;
}

.phone__bars i:nth-child(3) {
  height: 10px;
}

.scr {
  position: absolute;
  inset: 46px 0 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 18px 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-5) var(--ease-standard), visibility 0s linear var(--dur-5);
}

.scr.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-5) var(--ease-standard);
}

.scr__top {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.scr__top .avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 14px;
}

.scr__top b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.scr__top div span {
  color: var(--muted-text);
  font-size: 11px;
}

.scr__title {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  text-align: left;
}

.bigpts {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  text-align: left;
}

.bigpts .of {
  color: var(--muted-text);
  font-size: 14px;
}

.scr__left {
  color: var(--body);
  font-size: 12.5px;
  text-align: left;
}

/* -- The customer's code (gallery block 17) -------------------------------- */

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 4px;
  text-align: center;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--qr, 196px);
  aspect-ratio: 1;
}

/* One white round background inside the ring; the QR sits on it with air
   around its corners. */
.qr-frame::before {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.qr-frame .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring use {
  fill: none;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.ring .track {
  stroke: var(--line-strong);
}

/* The ring drains in real time over the code's minute, linearly, and turns
   amber for the last three seconds. It stays under reduced motion: it is
   information, not decoration. */
.ring .prog {
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: ring-drain var(--period, 60s) linear forwards;
  transition: stroke var(--dur-3);
}

.qr-frame.is-ending .ring .prog {
  stroke: var(--warning-500);
}

@keyframes ring-drain {
  to {
    stroke-dashoffset: 100;
  }
}

.qr-code {
  position: relative;
  width: 56%;
  aspect-ratio: 1;
}

.qr-code svg {
  width: 100%;
  height: 100%;
}

.qr-modules {
  fill: #15121b;
  fill-rule: evenodd;
}

.qr-meta {
  color: var(--muted-text);
  font-size: 12px;
}

.qr-meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.spoken {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--sunk);
}

.spoken code {
  color: var(--ink);
  font: 600 13px / 1 var(--font-mono);
  letter-spacing: 0.08em;
}

/* -- Points: the dot that lands (gallery block 19) ------------------------- */

.points {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.odo {
  display: inline-grid;
  height: 1em;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 64px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.odo span {
  grid-area: 1 / 1;
}

.odo .out {
  animation: odo-out var(--dur-4) var(--ease-exit) forwards;
}

.odo .in {
  animation: odo-in var(--dur-4) var(--ease-spring-soft) both;
}

.rm .odo .out {
  animation: fade-out var(--dur-2) linear forwards;
}

.rm .odo .in {
  animation: fade-in var(--dur-2) linear both;
}

@keyframes odo-out {
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes odo-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.plus-one {
  position: absolute;
  top: -4px;
  left: 100%;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font: 700 13px / 1 var(--font-ui);
  white-space: nowrap;
  pointer-events: none;
  animation: plus-up 900ms var(--ease-enter) forwards;
}

.rm .plus-one {
  animation: plus-static 1s linear forwards;
}

@keyframes plus-up {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }

  25% {
    opacity: 1;
    transform: none;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes plus-static {
  0%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.dots--12 {
  grid-template-columns: repeat(6, 1fr);
}

.pt {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1.5px dashed var(--muted);
  border-radius: 50%;
}

.pt.is-goal {
  border-color: var(--brand-halo);
}

.pt.is-on {
  border: 0;
  background: var(--brand);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 12%);
  color: #fff;
}

.pt.is-on::before {
  width: 46%;
  height: 46%;
  background: currentcolor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pt.is-landing {
  animation: stamp-drop var(--dur-6) var(--ease-spring-pop) both;
}

.pt.is-landing::after {
  position: absolute;
  inset: -2px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  content: "";
  animation: ink-ring var(--dur-5) var(--ease-enter) 260ms both;
}

.rm .pt.is-landing {
  animation: fade-in var(--dur-2) linear both;
}

.rm .pt.is-landing::after {
  display: none;
}

@keyframes stamp-drop {
  0% {
    opacity: 0;
    transform: scale(1.4) rotate(-12deg);
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: none;
  }
}

@keyframes ink-ring {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* -- The reward unlocking (gallery block 20) -------------------------------
   The one moment meant to be noticed: a burst of 24 particles, a red glow and
   the trophy jumping, 1.1s, once. Under reduced motion it is still felt -- a
   flash of colour with nothing travelling. */

.celebrate {
  position: absolute;
  z-index: 2;
  top: 172px;
  left: 12px;
  right: 12px;
  display: grid;
  place-items: center;
}

.celebrate .glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(215 53 74 / 50%), transparent 65%);
  opacity: 0;
  pointer-events: none;
}

.celebrate .burst {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  width: 0;
  height: 0;
}

.celebrate .burst i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
}

.celebrate .burst i:nth-child(3n) {
  width: 7px;
  height: 7px;
  background: var(--red-200);
}

.celebrate .burst i:nth-child(4n) {
  border-radius: 3px;
  background: var(--red-700);
}

.prize {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 18px 14px;
  border-radius: 22px;
  box-shadow: var(--sh-3);
  text-align: center;
}

.prize__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--brand);
  box-shadow: var(--sh-red);
  color: #fff;
}

.prize__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.prize__line {
  color: var(--body);
  font-size: 12.5px;
}

.celebrate.is-on .prize {
  animation: prize-in var(--dur-celebrate) var(--ease-spring-pop) both;
}

.celebrate.is-on .prize__icon {
  animation: trophy 900ms var(--ease-spring-pop) 180ms both;
}

.celebrate.is-on .glow {
  animation: glow var(--dur-celebrate) var(--ease-enter) both;
}

.celebrate.is-on .burst i {
  animation: particle var(--dur-celebrate) cubic-bezier(0, 0, 0, 1) 80ms both;
}

.rm .celebrate.is-on .prize {
  animation: fade-in var(--dur-2) linear both;
}

.rm .celebrate.is-on .prize__icon {
  animation: none;
}

.rm .celebrate.is-on .glow {
  animation: glow-rm 1200ms linear both;
}

.rm .celebrate.is-on .burst i {
  animation: none;
}

@keyframes prize-in {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(18px);
  }

  60% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes trophy {
  0% {
    transform: scale(0.4) rotate(-20deg);
  }

  55% {
    transform: scale(1.2) rotate(8deg);
  }

  100% {
    transform: none;
  }
}

@keyframes glow {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  45% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes glow-rm {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
  }
}

@keyframes particle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.1);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.6);
  }
}

/* -- The hero demo -------------------------------------------------------- */

.sim {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100% - 40px, 980px);
  margin: clamp(40px, 6vw, 64px) auto 0;
}

.sim__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
}

.sim__phonewrap {
  --pw: 300px;
  position: relative;
  display: grid;
  justify-items: center;
  width: calc(var(--pw) + 150px);
  max-width: 100%;
  height: 560px;
  padding-top: 16px;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 78%, transparent);
  mask: linear-gradient(#000 78%, transparent);
}

.sim .phone {
  transform: rotate(-4deg);
  transform-origin: 50% 100%;
}

.rm .sim .phone {
  transform: none;
}

.sim__counter {
  position: absolute;
  z-index: 4;
  top: 150px;
  right: calc(50% - 470px);
  display: grid;
  gap: 12px;
  width: 300px;
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--sh-3);
  text-align: left;
}

.sim__counter .lab {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sim__counter .lab .icon {
  width: 16px;
  height: 16px;
}

.sim__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim__who .avatar {
  background: var(--ink);
  color: var(--surface);
}

.sim__who b {
  display: block;
}

.sim__who span {
  color: var(--muted-text);
  font-size: 13px;
}

.sim__counter .btn {
  width: 100%;
}

.sim__done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--success);
  color: var(--on-success);
  animation: curtain var(--dur-2) var(--ease-enter);
}

.rm .sim__done {
  animation: fade-in 100ms linear;
}

.sim__done .icon {
  flex: none;
  width: 28px;
  height: 28px;
}

.sim__done b {
  display: block;
  color: inherit;
  font-size: 17px;
  line-height: 1.25;
}

.sim__done span {
  font-size: 13px;
}

.sim__fake {
  position: absolute;
  z-index: 4;
  top: 110px;
  left: calc(50% - 450px);
  display: grid;
  gap: 10px;
  width: 250px;
  padding: 14px;
  border-radius: 22px;
  box-shadow: var(--sh-2);
  text-align: left;
}

.sim__fake .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim__fake .thumb {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  opacity: 0.7;
  filter: grayscale(1);
}

.sim__fake b {
  display: block;
  font-size: 14px;
}

.sim__fake span {
  color: var(--muted-text);
  font-size: 12.5px;
}

.sim__ui {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: -36px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--sh-2);
}

.sim__steps {
  display: flex;
  gap: 4px;
  counter-reset: step;
}

.sim__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 6px;
  border-radius: var(--r-pill);
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color var(--dur-3), color var(--dur-3);
}

.sim__steps li::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--body);
  content: counter(step);
  counter-increment: step;
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--dur-3), color var(--dur-3);
}

.sim__steps li[aria-current="step"] {
  background: var(--brand-tint);
  color: var(--ink);
}

.sim__steps li[aria-current="step"]::before {
  background: var(--brand);
  color: #fff;
}

.sim__steps li.is-done::before {
  background: var(--ink);
  color: var(--surface);
}

@media (max-width: 1000px) {
  .sim__fake {
    display: none;
  }

  .sim__counter {
    right: calc(50% - 360px);
  }
}

@media (max-width: 760px) {
  .sim__phonewrap {
    --pw: 262px;
    height: 480px;
  }

  .scr .qr-frame {
    --qr: 170px;
  }

  .odo {
    font-size: 56px;
  }

  /* The counter card overlaps the phone's lower half here, so the reward
     pops up over the points instead of below them. */
  .celebrate {
    top: 92px;
  }

  .sim__counter {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 330px);
    margin-top: -120px;
  }

  .sim__ui {
    margin-top: 16px;
    border-radius: 24px;
  }

  .sim__steps li {
    padding-right: 10px;
    font-size: 13px;
  }

  /* With JavaScript the bar names only the step in progress; without it, the
     three steps are the whole story and all of them stay readable. */
  .js .sim__steps li span {
    display: none;
  }

  .js .sim__steps li[aria-current="step"] span {
    display: inline;
  }

  .sim__steps {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* -- Sections ------------------------------------------------------------- */

.sec {
  padding-block: calc(var(--section) / 2);
}

.statement {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.statement .t-statement {
  max-width: 820px;
  text-wrap: balance;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(100%, 900px);
  margin-top: clamp(20px, 4vw, 44px);
}

.stats li {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.stats p {
  max-width: 250px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Features, 2x2 */
.features {
  position: relative;
  isolation: isolate;
}

.features::before {
  position: absolute;
  z-index: -1;
  inset: 10% -10% 0;
  background:
    radial-gradient(50% 45% at 30% 55%, rgb(240 179 187 / 30%), transparent 70%),
    radial-gradient(45% 40% at 75% 45%, rgb(245 227 224 / 85%), transparent 70%);
  content: "";
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 820px) {
  .fgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 36px) 0;
  overflow: hidden;
  text-align: center;
}

.feature-card > p {
  max-width: 400px;
  margin-inline: auto;
  font-size: 15px;
}

.feature-card .viz {
  display: grid;
  place-items: center;
  margin-top: auto;
  padding: 24px 0 28px;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card {
    transition: transform var(--dur-2) var(--ease-standard), box-shadow var(--dur-3) var(--ease-standard);
  }

  .feature-card:hover {
    box-shadow: var(--sh-2);
    transform: translateY(-2px);
  }

  .rm .feature-card:hover {
    transform: none;
  }
}

.viz-anti {
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
}

.viz-anti .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--sh-1);
  text-align: left;
}

.viz-anti .row > div:nth-child(2) {
  min-width: 0;
}

.viz-anti .mini {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}

.qr-frame--mini {
  --qr: 48px;
}

.qr-frame--mini .ring use {
  stroke-width: 2.5;
}

.mini--fake {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  opacity: 0.6;
  filter: grayscale(1);
}

.viz-anti b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.viz-anti span {
  color: var(--muted-text);
  font-size: 12.5px;
}

.viz-anti .badge,
.viz-anti .btn {
  margin-left: auto;
}

.viz-anti .btn {
  padding: 0 14px;
}

.viz-anti .result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--danger);
  color: var(--on-danger);
  font-size: 14px;
  text-align: left;
}

.viz-anti .result.is-shown {
  animation: curtain var(--dur-2) var(--ease-enter);
}

.rm .viz-anti .result.is-shown {
  animation: fade-in 100ms linear;
}

.viz-anti .result b,
.viz-anti .result span {
  color: inherit;
}

.viz-anti .result .icon {
  flex: none;
}

.viz-chart {
  position: relative;
  width: min(100%, 340px);
}

.viz-chart .tag {
  position: absolute;
  top: -6px;
  right: 4%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--sh-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.viz-chart .tag .dot {
  color: var(--brand);
}

.viz-chart figcaption {
  margin-top: 8px;
  color: var(--muted-text);
}

.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart .bar {
  fill: var(--red-200);
  transform-box: fill-box;
  transform-origin: bottom;
}

.chart .bar.hi {
  fill: var(--brand);
}

.chart.is-pre .bar {
  transform: scaleY(0);
}

.chart.is-in .bar {
  animation: grow var(--dur-6) var(--ease-spring-soft) both;
}

.chart .bar--2 {
  animation-delay: 30ms;
}

.chart .bar--3 {
  animation-delay: 60ms;
}

.chart .bar--4 {
  animation-delay: 90ms;
}

.chart .bar--5 {
  animation-delay: 120ms;
}

.chart .bar--6 {
  animation-delay: 150ms;
}

.chart .bar--7 {
  animation-delay: 180ms;
}

.rm .chart.is-in .bar {
  animation: none;
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}

.chart text {
  fill: var(--muted-text);
  font: 500 11px var(--font-ui);
}

.chart .grid {
  stroke: var(--line-strong);
  stroke-dasharray: 3 4;
}

.viz-stack {
  position: relative;
  width: 280px;
  max-width: 100%;
  height: 196px;
}

.viz-stack .reward-card {
  position: absolute;
  left: 0;
  right: 0;
  box-shadow: var(--sh-2);
}

.viz-stack .reward-card:nth-child(1) {
  top: 0;
  opacity: 0.9;
  transform: rotate(-4deg) translateX(-12px);
}

.viz-stack .reward-card:nth-child(2) {
  top: 62px;
  transform: rotate(2deg) translateX(10px);
}

.viz-stack .reward-card:nth-child(3) {
  top: 128px;
  transform: rotate(-1.5deg);
}

.viz-list {
  display: grid;
  gap: 14px;
  width: min(100%, 330px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--sh-2);
  text-align: left;
}

.viz-list .it {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 12px;
}

.viz-list .avatar {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
}

.viz-list b {
  font-size: 13.5px;
  font-weight: 500;
}

.viz-list .n {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.viz-list .progress {
  grid-column: 2 / 4;
  height: 6px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.facts .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-text);
}

/* How it works */
.steps {
  display: grid;
  gap: 12px;
  width: min(100%, 860px);
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 20px 28px;
  padding: 22px 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.step h3 {
  font: 500 clamp(1.05rem, 1rem + 0.3vw, 1.25rem) / 1.3 var(--font-ui);
}

.ntile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, #fff 0%, var(--red-100) 100%);
  box-shadow: 0 8px 18px -10px rgb(215 53 74 / 40%), inset 0 0 0 1px rgb(215 53 74 / 10%);
  color: var(--brand-text);
  font: 400 34px / 1 var(--font-display);
  transform: rotate(-6deg);
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 56px 1fr;
    padding: 18px;
  }

  .step p {
    grid-column: 1 / -1;
  }
}

.steps-foot {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 32px;
  text-align: center;
}

/* Reward menus */
.rtabs {
  --n: 4;
  --i: 0;
  position: relative;
  display: inline-grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.rtabs::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: var(--r-pill);
  background: var(--ink);
  content: "";
  transform: translateX(calc(100% * var(--i)));
  transition: transform var(--dur-3) var(--ease-standard);
}

.rm .rtabs::before {
  transition: none;
}

.rtabs [role="tab"] {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--dur-2);
}

.rtabs [role="tab"][aria-selected="true"] {
  color: var(--surface);
}

.rtabs [role="tab"]:focus-visible {
  outline-offset: -2px;
}

.rtabs .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .rtabs {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    border-radius: 24px;
  }

  .rtabs::before {
    display: none;
  }

  .rtabs [role="tab"][aria-selected="true"] {
    background: var(--ink);
  }
}

.rpanel + .rpanel {
  margin-top: 28px;
}

.js .rpanel + .rpanel {
  margin-top: 0;
}

.rpanel__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-align: center;
}

.js .rpanel__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.rpanel.is-shown {
  animation: fade-in var(--dur-3) var(--ease-standard);
}

.rm .rpanel.is-shown {
  animation: none;
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rgrid .reward-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.rgrid .reward-card .r-ico {
  width: 48px;
  height: 48px;
}

.rgrid .reward-card .r-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.rgrid .reward-card .r-pts {
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 500;
}

.rgrid .reward-card--feature .r-pts {
  color: rgb(255 255 255 / 92%);
}

.rgrid .grow {
  display: grid;
  gap: 4px;
  margin-top: auto;
}

@media (max-width: 980px) {
  .rgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .rgrid .reward-card {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 16px;
    border-radius: var(--r-md);
  }

  .rgrid .grow {
    margin-top: 0;
  }
}

.rnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
  font-size: 15px;
  text-align: center;
}

/* FAQ: native <details>, which opens and closes with JavaScript off. */
.faq {
  display: grid;
  gap: 12px;
  width: min(100%, 860px);
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--dur-3);
}

.faq details[open] {
  box-shadow: var(--sh-2);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px 14px 24px;
  border-radius: var(--r-md);
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .plus {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-text);
  transition: transform var(--dur-4) var(--ease-standard), background-color var(--dur-2), color var(--dur-2);
}

.faq details[open] .plus {
  background: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}

.rm .faq .plus {
  transition: none;
}

.faq .answer {
  max-width: 68ch;
  padding: 0 24px 22px;
}

.faq details[open] .answer {
  animation: fade-up var(--dur-4) var(--ease-enter);
}

.rm .faq details[open] .answer {
  animation: fade-in 100ms linear;
}

/* Closing */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px) 0;
}

.closing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(60% 50% at 18% 18%, rgb(240 179 187 / 45%), transparent 70%),
    radial-gradient(45% 45% at 85% 12%, rgb(215 53 74 / 12%), transparent 70%),
    radial-gradient(70% 60% at 60% 70%, rgb(245 227 224 / 90%), transparent 72%);
  content: "";
  -webkit-mask: linear-gradient(transparent, #000 30%);
  mask: linear-gradient(transparent, #000 30%);
}

.closing__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.closing__text {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-bottom: 80px;
}

.closing__text .t-h1 {
  max-width: 560px;
  text-wrap: balance;
}

.closing__text p {
  max-width: 460px;
}

.closing__text .t-small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.closing__art {
  position: relative;
  display: grid;
  justify-items: center;
  height: 560px;
  padding-top: 30px;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 82%, transparent);
  mask: linear-gradient(#000 82%, transparent);
}

.closing__art .phone {
  --pw: 280px;
  transform: rotate(5deg);
}

.rm .closing__art .phone {
  transform: none;
}

.closing__art .scr__left b {
  color: var(--ink);
}

.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--sh-3);
  color: var(--muted-text);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.float b {
  display: block;
  font-size: 15px;
}

.float .fi {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-text);
}

.float .fi.solid {
  background: var(--brand);
  color: #fff;
  font: 700 14px var(--font-ui);
}

.float--a {
  top: 24px;
  left: 0;
}

.float--b {
  top: 250px;
  right: 0;
}

.float--c {
  bottom: 110px;
  left: 0;
}

@media (hover: hover) and (pointer: fine) {
  html:not(.rm) .float {
    animation: bob 6s ease-in-out infinite alternate;
  }

  html:not(.rm) .float--b {
    animation-delay: -2s;
  }

  html:not(.rm) .float--c {
    animation-delay: -4s;
  }
}

@keyframes bob {
  to {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .closing__grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .closing__text {
    justify-items: center;
    padding-bottom: 0;
  }

  .closing__art {
    height: 480px;
  }

}

@media (max-width: 440px) {
  .float--b {
    display: none;
  }

  .float--c {
    bottom: 48px;
  }

  .float {
    padding: 10px 12px 10px 10px;
    font-size: 12px;
  }

  .float b {
    font-size: 13.5px;
  }

  .float .fi {
    width: 34px;
    height: 34px;
  }

  .closing__art .phone {
    --pw: 240px;
  }
}

/* Footer */
.foot {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.foot__brand {
  display: grid;
  align-content: start;
  gap: 12px;
}

.foot__brand p {
  max-width: 300px;
}

.foot h2 {
  margin-bottom: 12px;
  color: var(--muted-text);
  font: 600 13px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot ul {
  display: grid;
  gap: 2px;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
}

.foot ul a:hover {
  color: var(--brand-text);
}

.foot .nav__logo {
  font-size: 30px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-text);
  font-size: 13px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lang-switch button,
.lang-switch .current {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-size: 13px;
}

.lang-switch button {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch .current {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 820px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot__brand {
    grid-column: 1 / -1;
  }

  .foot {
    padding-bottom: 110px;
  }
}

/* The sticky bar on phones */
.mbar {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  transform: translateY(110%);
  transition: transform var(--dur-4) var(--ease-enter);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mbar.is-on {
  transform: none;
}

.rm .mbar {
  transition: none;
}

.mbar .btn {
  flex: 1;
}

.mbar .btn--icon {
  flex: none;
}

@media (min-width: 821px) {
  .mbar {
    display: none;
  }
}

/* -- Reveal on scroll, once ------------------------------------------------
   Visible by default. Only once landing.js has added `.rv` (it skips that
   under reduced motion and without IntersectionObserver) does anything start
   hidden, and once seen it stays. */

.rv .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}

.rv .reveal {
  transition: opacity 500ms var(--ease-enter), transform 500ms var(--ease-enter);
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-wrap,
  .mbar,
  .sim__ui {
    display: none;
  }
}

/* Reduced motion before (or without) landing.js: the entrance and the floating
   notices stay still. With the script, `.rm` covers the rest. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero .t-display,
  .hero__text > *,
  .sim,
  .float {
    animation: none !important;
  }
}
