/* Monochrome tokens — mirrors MonoColors in the Android theme. No hue anywhere.
   The landing is dark-only by design: one declared scheme keeps mobile browsers'
   force-dark from re-inverting a palette we already chose. */
:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #0c0c0c;
  --surface-raised: #141414;
  --hairline: #1c1c1c;
  --hairline-strong: #2e2e2e;
  --text: #ffffff;
  --text-secondary: #8e8e8e;
  --text-dim: #5a5a5a;
  --accent: #ffffff;
  --on-accent: #000000;

  --step: 8px;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: clamp(20px, 6vw, 64px);
  --measure: 68rem;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Author `display` rules outrank the UA stylesheet's [hidden] { display: none },
   so panels toggled via the hidden attribute need this back. */
[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--text);
}

/* Film grain. Monochrome has no colour to carry texture, so a faint static noise
   layer keeps large black fields from reading as dead flat. */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url('/brand/art/grain.png');
  background-size: 520px 520px;
  mix-blend-mode: screen;
}

/* Hero backdrop: the brand plate, pushed right and dimmed so the headline stays first. */
.section--hero {
  position: relative;
  overflow: hidden;
}

.hero-plate {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) * -1);
  width: min(56%, 520px);
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.section--hero > *:not(.hero-plate) {
  position: relative;
}

@media (max-width: 42rem) {
  .hero-plate {
    top: auto;
    bottom: -6%;
    right: -18%;
    width: 74%;
    transform: none;
    opacity: 0.28;
  }
}

/* Chalk artwork sits behind the card's own text, cropped to the corner. */
.feature {
  position: relative;
  overflow: hidden;
}

.feature-art {
  position: absolute;
  top: -18%;
  right: -14%;
  width: 46%;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.feature > *:not(.feature-art) {
  position: relative;
}

/* Entrance ---------------------------------------------------------------- */

.reveal {
  animation: rise 900ms var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

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

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--step);
  padding: calc(var(--step) * 2) var(--gutter);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.mark {
  width: 26px;
  height: 26px;
  display: block;
  /* The mark is authored white; nothing to invert on a dark-only page. */
}

.masthead-nav {
  display: flex;
  gap: calc(var(--step) * 2.5);
  font-size: 0.875rem;
}

.masthead-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.masthead-nav a:hover {
  color: var(--text);
}

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

.section {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 11vh, 112px) var(--gutter);
  border-bottom: 0;
}

.section--hero {
  padding-top: clamp(56px, 13vh, 128px);
}

.section--tight {
  padding-top: clamp(32px, 6vh, 56px);
  padding-bottom: clamp(32px, 6vh, 56px);
}

.section--closing {
  border-bottom: 0;
  text-align: center;
}

.section-label {
  margin: 0 0 clamp(28px, 5vh, 48px);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

h1 {
  display: grid;
  margin: calc(var(--step) * 2.5) 0 0;
  font-size: clamp(3rem, 13vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  margin: calc(var(--step) * 3.5) 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 2.4vw, 1.1875rem);
  color: var(--text-secondary);
  text-wrap: pretty;
}

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

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step);
  margin-top: clamp(32px, 6vh, 52px);
}

.section--closing .cta {
  justify-content: center;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 calc(var(--step) * 3.5);
  /* Browsers with "dark mode for websites" enabled darken any large light fill, and no
     CSS opt-out survives it — colour-scheme, gradients and SVG backgrounds were all
     overridden in testing. So the primary button must not rely on its fill alone: the
     2px border and heavier label keep it reading as primary either way. */
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 260ms var(--ease),
    opacity 200ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease);
}

.button-arrow {
  display: inline-block;
  transition: transform 320ms var(--ease);
}

.button:hover {
  opacity: 0.88;
}

.button:hover .button-arrow {
  transform: translateX(4px);
}

.button[download]:hover .button-arrow {
  transform: translateY(3px);
}

.button:active {
  transform: scale(0.985);
}

.button:disabled {
  border-color: var(--hairline-strong);
  background-color: var(--surface-raised);
  color: var(--text-dim);
  cursor: progress;
}

.button--ghost {
  border-width: 1px;
  background-color: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
  font-weight: 500;
}

.button--ghost:hover {
  border-color: var(--text-secondary);
  background-color: var(--surface-raised);
  opacity: 1;
}

.button:focus-visible,
.link:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: calc(var(--step) * 2.5) 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Figures ----------------------------------------------------------------- */

.figures {
  display: grid;
  gap: calc(var(--step) * 3);
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.figure dt {
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.figure-unit {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 2px;
}

.figure dd {
  margin: 10px 0 0;
  max-width: 26ch;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Cards ------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: var(--step);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  margin: 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature {
  transition:
    border-color 240ms var(--ease),
    background-color 240ms var(--ease);
}

.feature:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-raised);
}

.feature-index {
  display: block;
  margin-bottom: calc(var(--step) * 2.5);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Steps ------------------------------------------------------------------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  border-top: 1px solid var(--hairline);
}

.steps li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--step);
  padding: calc(var(--step) * 3) 0;
  border-bottom: 1px solid var(--hairline);
}

.step-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding-top: 4px;
}

.steps p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Key stage --------------------------------------------------------------- */

.stage {
  display: grid;
  gap: calc(var(--step) * 2.5);
  max-width: 34rem;
}

.result {
  display: grid;
  gap: calc(var(--step) * 2);
  animation: rise 700ms var(--ease) both;
}

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

.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Breathing dot: the only motion that continues after the page settles, so the
   freshly-issued key reads as live rather than as a static screenshot. */
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

.key {
  margin: calc(var(--step) * 2.5) 0 calc(var(--step) * 3.5);
  font-family: var(--mono);
  font-size: clamp(1.375rem, 6.2vw, 2.125rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  word-break: break-word;
}

.key span {
  display: inline-block;
  animation: keyIn 520ms var(--ease) both;
  animation-delay: calc(var(--i) * 22ms);
}

@keyframes keyIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step);
}

.actions .button {
  flex: 1;
  min-height: 52px;
  min-width: max-content;
  padding: 0 calc(var(--step) * 2.5);
  font-size: 0.9375rem;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--step);
  margin: calc(var(--step) * 3.5) 0 0;
  padding-top: calc(var(--step) * 2.5);
  border-top: 1px solid var(--hairline);
}

.meta dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.meta dd {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.card--qr {
  display: grid;
  justify-items: center;
  gap: calc(var(--step) * 2);
}

.qr-frame {
  padding: 14px;
  border-radius: var(--radius-sm);
  /* The QR must stay pure black-on-white to remain scannable, so it sits on its own
     white plate — as a gradient, so force-dark cannot dim it into an unreadable grey. */
  background-color: #ffffff;
  background-image: linear-gradient(#ffffff, #ffffff);
  line-height: 0;
}

.qr-frame img {
  width: min(240px, 60vw);
  height: auto;
}

.card--qr figcaption {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.link {
  justify-self: center;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline-strong);
  cursor: pointer;
  transition: color 200ms var(--ease);
}

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

.error {
  margin: 0;
  padding: calc(var(--step) * 2) calc(var(--step) * 2.5);
  border: 1px solid var(--hairline-strong);
  border-left-width: 3px;
  border-left-color: var(--text);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  display: grid;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--step);
  padding: calc(var(--step) * 3) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 200ms var(--ease);
}

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

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: transform 300ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0 0 calc(var(--step) * 3);
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Footer ------------------------------------------------------------------ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--step) * 3);
  padding: calc(var(--step) * 4) var(--gutter) calc(var(--step) * 5);
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.footer-meta,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-nav {
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current='page'] {
  color: var(--text);
}

@media (max-width: 56rem) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 30rem) {
  .cta .button {
    width: 100%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 14px 20px;
  }
}

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

#key .stage {
  max-width: 68rem;
}

.checkout {
  max-width: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  gap: 0;
  padding: 0;
  background: linear-gradient(138deg, #111 0%, #090909 58%, #0d0d0d 100%);
}

.checkout-product,
.checkout-action {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.checkout-product {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--hairline);
}

.checkout-product::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -150px;
  bottom: -170px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255,255,255,.018), 0 0 0 76px rgba(255,255,255,.012);
  pointer-events: none;
}

.checkout-mark {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #000;
  font: 750 1.25rem var(--font);
}

.checkout-mark i {
  position: absolute;
  inset: -20% auto -20% -65%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.2), transparent);
  animation: checkoutShine 1.2s var(--ease) .4s both;
}

@keyframes checkoutShine { to { left: 140%; } }

.checkout-product h3 {
  max-width: 12ch;
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.checkout-lead {
  max-width: 43ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: .94rem;
}

.checkout-price {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin: 34px 0 24px;
}

.checkout-price strong {
  font: 600 clamp(2.4rem, 5vw, 4rem)/.8 var(--mono);
  letter-spacing: -.075em;
}

.checkout-price span {
  color: var(--text-dim);
  font: .65rem/1.35 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.checkout-product .plan-list {
  position: relative;
  z-index: 1;
  max-width: 43ch;
  margin-bottom: 0;
  border-bottom: 0;
  font-size: .82rem;
}

.checkout-action {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,.22);
}

.checkout-step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.checkout-step-head > span,
.transfer-index {
  flex: 0 0 auto;
  color: var(--text-dim);
  font: .62rem var(--mono);
  letter-spacing: .12em;
}

.checkout-step-head strong,
.checkout-step-head small {
  display: block;
}

.checkout-step-head strong { font-size: .94rem; }
.checkout-step-head small { margin-top: 3px; color: var(--text-secondary); font-size: .72rem; }

.checkout-action .asset-options {
  grid-template-columns: 1fr;
  gap: 7px;
}

.checkout-action .asset-option {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.015);
}

.asset-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 650 .64rem var(--mono);
}

.asset-copy { min-width: 0; }
.asset-copy b, .asset-copy small { display: block; }
.asset-due { font: 600 .7rem var(--mono); white-space: nowrap; }

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 24px 0 12px;
  color: var(--text-secondary);
  font-size: .75rem;
}

.checkout-total strong { color: var(--text); font: 600 .86rem var(--mono); }
.checkout-button { margin-top: 0; }
.checkout-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--text-dim); font-size: .67rem; }
.checkout-note i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }

.invoice {
  display: block;
  max-width: none;
}

.payment-console {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #111, #080808 60%);
}

.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
}

.invoice-status { display: flex; align-items: center; gap: 13px; }
.invoice-status strong, .invoice-status span { display: block; }
.invoice-status strong { margin-top: 3px; font-size: .9rem; }
.invoice-timer { text-align: right; }
.invoice-timer span { display: block; color: var(--text-dim); font: .58rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.invoice-timer strong { display: block; margin-top: 3px; font: 600 1.05rem var(--mono); }

.invoice-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 26px; }
.invoice-progress i { height: 2px; background: var(--hairline-strong); transition: background 300ms var(--ease); }
.invoice-progress i.is-active { background: #fff; }
.invoice[data-status='confirming'] .invoice-progress i:nth-child(-n+2) { background: #fff; }
.invoice[data-status='confirming'] .pulse { animation-duration: .8s; }

.invoice-body {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.payment-qr {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding: clamp(26px, 4vw, 42px);
  border-right: 1px solid var(--hairline);
  background: rgba(255,255,255,.018);
}

.payment-qr-frame { position: relative; overflow: hidden; width: min(100%, 270px); }
.payment-qr-frame img { display: block; width: 100%; height: auto; }
.payment-qr-frame > i { position: absolute; left: 10px; right: 10px; top: 10px; height: 1px; background: rgba(0,0,0,.42); box-shadow: 0 0 8px rgba(0,0,0,.35); animation: qrScan 3.4s ease-in-out infinite; }
@keyframes qrScan { 0%,100% { transform: translateY(0); opacity: 0; } 12%,88% { opacity: .55; } 50% { transform: translateY(230px); } }
.payment-qr figcaption, .key-qr figcaption { max-width: 25ch; color: var(--text-dim); font-size: .68rem; text-align: center; }

.invoice-details { display: grid; align-content: center; gap: 12px; padding: clamp(26px, 4vw, 42px); }
.transfer-block { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.transfer-block--amount strong { display: block; margin: 7px 0 8px; font: 600 clamp(1.8rem, 4vw, 3.1rem)/1 var(--mono); letter-spacing: -.055em; }
.transfer-block--amount em { display: inline-flex; padding: 5px 8px; border: 1px solid var(--hairline-strong); border-radius: 999px; color: var(--text-secondary); font: normal .61rem var(--mono); }
.transfer-block--address { align-items: center; }
.transfer-block--address .wallet-address { margin-top: 7px; font-size: .77rem; line-height: 1.45; }
.copy-address { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border: 1px solid var(--hairline-strong); border-radius: 9px; background: var(--surface-raised); color: var(--text-secondary); cursor: pointer; font-size: .67rem; }
.copy-address b { color: var(--text); font-size: .9rem; }

.tx-disclosure { border-bottom: 1px solid var(--hairline); }
.tx-disclosure summary { padding: 12px 0; color: var(--text-secondary); cursor: pointer; font-size: .75rem; }
.tx-disclosure summary span { color: var(--text-dim); }
.tx-disclosure .tx-field { padding-bottom: 14px; }
.network-warning { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 0; color: var(--text-dim); font-size: .66rem; line-height: 1.45; }
.network-warning i { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--hairline-strong); border-radius: 50%; color: var(--text-secondary); font: normal .62rem var(--mono); }

.invoice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
}
.invoice-footer .link { padding: 0; }
.invoice-footer > span { color: var(--text-dim); font-size: .67rem; }

/* Key hand-off ----------------------------------------------------------- */
.result { display: block; }
.key-console { max-width: none; padding: clamp(24px, 4vw, 42px); background: linear-gradient(140deg, #121212, #080808 62%); }
.key-success { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 20px; align-items: center; }
.success-mark { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000; font-size: 1.4rem; }
.success-mark i { position: absolute; inset: -8px; border: 1px solid var(--hairline-strong); border-radius: inherit; animation: successRing 1.8s var(--ease) infinite; }
@keyframes successRing { 0%,35% { opacity: .7; transform: scale(.85); } 80%,100% { opacity: 0; transform: scale(1.25); } }
.key-success h3 { margin: 7px 0 5px; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.05em; }
.key-success p { max-width: 58ch; margin: 0; color: var(--text-secondary); font-size: .82rem; }
.key-body { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(220px,.75fr); gap: 14px; margin-top: 30px; }
.key-value-card, .key-qr { margin: 0; padding: clamp(20px,3vw,28px); border: 1px solid var(--hairline); border-radius: 15px; background: rgba(0,0,0,.28); }
.key-value-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.key-value-head > span:last-child { color: var(--text-dim); font: .58rem var(--mono); }
.key-value-card .key { margin: 30px 0; font-size: clamp(1.5rem,4vw,2.55rem); }
.key-copy { width: 100%; }
.key-copy b { font-size: 1rem; }
.key-hint { display: flex; gap: 7px; align-items: center; margin: 12px 0 0; color: var(--text-dim); font-size: .65rem; }
.key-hint i { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--hairline-strong); border-radius: 50%; font: normal .55rem var(--mono); }
.key-qr { display: grid; align-content: center; justify-items: center; gap: 12px; }
.key-qr .qr-frame { width: min(100%, 210px); }
.key-qr img { display: block; width: 100%; height: auto; }
.activation-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 14px 0 0; padding: 0; border: 1px solid var(--hairline); border-radius: 15px; list-style: none; overflow: hidden; }
.activation-steps li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 17px; }
.activation-steps li + li { border-left: 1px solid var(--hairline); }
.activation-steps > li > span { color: var(--text-dim); font: .58rem var(--mono); }
.activation-steps strong, .activation-steps small { display: block; }
.activation-steps strong { font-size: .76rem; }
.activation-steps small { margin-top: 3px; color: var(--text-dim); font-size: .63rem; line-height: 1.35; }
.key-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.key-footer > div span, .key-footer > div strong { display: block; }
.key-footer > div span { color: var(--text-dim); font: .58rem var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.key-footer > div strong { margin-top: 5px; font: .78rem var(--mono); }
.key-footer .button { width: min(100%, 310px); }
.key-close { display: block; margin: 20px auto 0; }
.key-ready .key-console { animation: keyCardReady 760ms var(--ease) both; }

@media (max-width: 48rem) {
  .checkout, .invoice-body, .key-body { grid-template-columns: 1fr; }
  .checkout-product { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .payment-qr { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .payment-qr-frame { width: min(70vw, 250px); }
  .activation-steps { grid-template-columns: 1fr; }
  .activation-steps li + li { border-left: 0; border-top: 1px solid var(--hairline); }
}

@media (max-width: 32rem) {
  .checkout-product, .checkout-action { padding: 24px 20px; }
  .checkout-mark { margin-bottom: 25px; }
  .invoice-head, .invoice-footer { align-items: flex-start; padding-inline: 20px; }
  .invoice-footer, .key-footer { flex-direction: column; }
  .invoice-footer > span { text-align: left; }
  .invoice-details, .payment-qr { padding: 24px 20px; }
  .transfer-block { grid-template-columns: 22px minmax(0,1fr); }
  .transfer-block .copy-address { grid-column: 2; justify-self: start; }
  .key-success { grid-template-columns: 1fr; }
  .key-body { margin-top: 22px; }
  .key-value-head { align-items: flex-start; flex-direction: column; }
  .key-footer .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-mark i, .payment-qr-frame > i, .success-mark i { animation: none; }
}

/* ULU Security ----------------------------------------------------------- */
.ulu {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(42px, 8vw, 92px);
  align-items: center;
}

.ulu-copy .section-label { margin-bottom: 26px; }
.ulu-copy .lede { margin-top: 24px; }
.ulu-price-note {
  max-width: 48ch;
  margin: 28px 0 0;
  padding: 18px 0 0 20px;
  border-top: 1px solid var(--hairline);
  border-left: 2px solid var(--text);
  color: var(--text-secondary);
  font-size: .875rem;
}

.ulu-console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 32%, #181818 0, var(--surface) 42%, #050505 100%);
  box-shadow: 0 34px 90px rgba(0,0,0,.55);
}
.ulu-console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .12em;
  color: var(--text-dim);
}
.ulu-console-head i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--text); box-shadow: 0 0 14px var(--text); }
.ulu-console-head b { color: var(--text-secondary); font-weight: 500; }
.ulu-map { position: relative; display: grid; place-items: center; min-height: 310px; isolation: isolate; }
.ulu-map::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: conic-gradient(from 32deg, transparent, rgba(255,255,255,.13), transparent 30%, rgba(255,255,255,.07), transparent 68%);
  filter: blur(12px);
  opacity: .8;
  transition: transform 650ms var(--ease), opacity 300ms var(--ease);
}
.ulu-console[data-active="session"] .ulu-map::before { transform: rotate(118deg) scale(1.08); }
.ulu-console[data-active="local"] .ulu-map::before { transform: rotate(236deg) scale(.94); }
.ulu-map img { width: 54px; height: 54px; filter: drop-shadow(0 0 22px rgba(255,255,255,.2)); z-index: 2; }
.ulu-orbit { position: absolute; border: 1px solid var(--hairline-strong); border-radius: 50%; }
.ulu-orbit--outer { width: 244px; height: 244px; animation: ulu-spin 24s linear infinite; }
.ulu-orbit--inner { width: 144px; height: 144px; border-style: dashed; animation: ulu-spin 18s linear infinite reverse; }
.ulu-orbit::before, .ulu-orbit::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--text-secondary); }
.ulu-orbit::before { left: 50%; top: -3px; }
.ulu-orbit::after { left: 50%; bottom: -3px; }
@keyframes ulu-spin { to { transform: rotate(360deg); } }
.ulu-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: #080808;
  color: var(--text-dim);
  font: 500 .625rem/1 var(--mono);
  font-style: normal;
  cursor: pointer;
  outline: 0;
  box-shadow: 0 9px 25px rgba(0,0,0,.5);
  transition: color 280ms var(--ease), background 280ms var(--ease), border-color 280ms var(--ease), transform 280ms var(--ease);
}
.ulu-node::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  padding: 4px 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  color: var(--text-dim);
  font: 500 .54rem/1 var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.ulu-node:hover::after, .ulu-node:focus-visible::after, .ulu-node.is-active::after { border-color: var(--hairline-strong); color: var(--text); }
.ulu-node:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 9px 25px rgba(0,0,0,.5); }
.ulu-node--key { transform: translate(-105px, -68px); }
.ulu-node--session { transform: translate(112px, -22px); }
.ulu-node--local { transform: translate(-20px, 112px); }
.ulu-node.is-active { border-color: var(--text); background: var(--text); color: var(--bg); }
.ulu-node--key.is-active { transform: translate(-105px, -68px) scale(1.14); }
.ulu-node--session.is-active { transform: translate(112px, -22px) scale(1.14); }
.ulu-node--local.is-active { transform: translate(-20px, 112px) scale(1.14); }
.ulu-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 16px; padding: 3px; border: 1px solid var(--hairline); border-radius: 12px; }
.ulu-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--text-secondary); font: 500 .75rem/1 var(--mono); cursor: pointer; transition: background 220ms var(--ease), color 220ms var(--ease); }
.ulu-tabs button.is-active { background: var(--text); color: var(--bg); }
.ulu-detail { display: grid; grid-template-columns: 42px 1fr; gap: 14px; min-height: 132px; padding: 24px 20px 18px; }
.ulu-detail > span { font: 500 .6875rem/1 var(--mono); color: var(--text-dim); }
.ulu-detail h3 { margin-top: -3px; }
.ulu-detail p { margin: 0; color: var(--text-secondary); font-size: .8125rem; }
.ulu-detail.is-changing > div { animation: ulu-detail-in 360ms var(--ease); }
@keyframes ulu-detail-in { from { opacity: 0; transform: translateY(6px); } }
.ulu-disclosure { margin: 0; padding: 12px 20px; border-top: 1px solid var(--hairline); color: var(--text-dim); font-size: .6875rem; }

@media (max-width: 52rem) {
  .ulu { grid-template-columns: 1fr; }
  .ulu-console { max-width: 620px; width: 100%; }
}
@media (max-width: 32rem) {
  .ulu-map { min-height: 260px; transform: scale(.9); margin: -14px; }
  .ulu-tabs { margin-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ulu-orbit { animation: none; }
}

/* Mobile containment and touch interactions -------------------------------- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
.section,
.masthead,
.footer,
.cards,
.stage,
.ulu,
.ulu-console {
  min-width: 0;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

details > summary { touch-action: manipulation; }
details[data-animating="true"] > summary { pointer-events: none; }

@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden; }
}

@media (max-width: 42rem) {
  .masthead { width: 100%; padding-inline: 16px; }
  .masthead-nav { min-width: 0; }
  .masthead-nav a:not(.masthead-cta) { display: none; }
  .section { width: 100%; overflow: clip; }
  .cta { width: 100%; grid-template-columns: 1fr; }
  .cta .button { width: 100%; justify-content: space-between; }
  .marquee { width: 100%; max-width: 100%; overflow: hidden; }
  .ulu-copy, .ulu-detail > div { min-width: 0; }
  .ulu-tabs button { padding-inline: 6px; font-size: .66rem; }
}

.spotlight-host {
  --spot-x: 50%;
  --spot-y: 50%;
  isolation: isolate;
}

.spotlight-host > .pointer-spotlight {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  background: radial-gradient(circle 190px at var(--spot-x) var(--spot-y), rgba(255,255,255,.13), rgba(255,255,255,.035) 38%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}

.spotlight-host.is-spotlit > .pointer-spotlight { opacity: 1; }
.spotlight-host > :not(.pointer-spotlight) { position: relative; z-index: 1; }

@media (hover: none) {
  .spotlight-host > .pointer-spotlight {
    background: radial-gradient(circle 150px at var(--spot-x) var(--spot-y), rgba(255,255,255,.11), transparent 72%);
  }
}

/* ULU desktop composition -------------------------------------------------- */
#ulu { scroll-margin-top: 72px; }

@media (min-width: 52.01rem) {
  .section.ulu {
    grid-template-columns: minmax(340px, .78fr) minmax(540px, 1.22fr);
    gap: clamp(48px, 6vw, 88px);
    min-height: auto;
    padding-block: clamp(88px, 10vh, 118px);
    align-items: center;
  }
  .ulu-copy { max-width: 510px; }
  .ulu-copy h2 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 4.8vw, 5.1rem);
    line-height: .91;
  }
  .ulu-copy .lede { max-width: 49ch; font-size: 1rem; line-height: 1.68; }
  .ulu-price-note { max-width: 46ch; }
  .ulu-console { min-height: 604px; }
}

.ulu-console {
  border-color: rgba(255,255,255,.2);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 36%, #202020 0, #0b0b0b 42%, #040404 100%);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 38px 110px rgba(0,0,0,.68), inset 0 1px rgba(255,255,255,.04);
}

.ulu-console-head {
  min-height: 58px;
  padding-inline: 20px;
  background: rgba(0,0,0,.42);
}
.ulu-console-head > span { color: #9b9b9b; }
.ulu-console-head b {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #f2f2f2;
  letter-spacing: .08em;
}

.ulu-map { min-height: 360px; }
.ulu-map::after {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 18px;
  pointer-events: none;
}

.ulu-core {
  position: relative;
  z-index: 5;
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #f5f5f5, #a8a8a8 52%, #5d5d5d);
  box-shadow: 0 0 0 12px rgba(255,255,255,.035), 0 0 62px rgba(255,255,255,.18);
}
.ulu-core img { width: 42px; height: 42px; filter: brightness(0); }
.ulu-core small {
  position: absolute;
  top: calc(100% + 16px);
  color: #9a9a9a;
  font: 500 .5rem/1 var(--mono);
  letter-spacing: .17em;
  white-space: nowrap;
}

.ulu-orbit--outer { width: 288px; height: 288px; border-color: rgba(255,255,255,.18); }
.ulu-orbit--inner { width: 190px; height: 190px; border-color: rgba(255,255,255,.13); }

.ulu-axis {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,255,255,.38), rgba(255,255,255,.06));
}
.ulu-axis::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.75);
}
.ulu-axis--key { transform: rotate(214deg); }
.ulu-axis--session { transform: rotate(-11deg); }
.ulu-axis--local { transform: rotate(91deg); }

.ulu-node {
  width: 48px;
  height: 48px;
  border-color: rgba(255,255,255,.24);
  background: #0a0a0a;
  font-size: .68rem;
  box-shadow: 0 12px 34px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.04);
}
.ulu-node--key { transform: translate(-124px, -79px); }
.ulu-node--session { transform: translate(137px, -26px); }
.ulu-node--local { transform: translate(-23px, 133px); }
.ulu-node--key.is-active { transform: translate(-124px, -79px) scale(1.12); }
.ulu-node--session.is-active { transform: translate(137px, -26px) scale(1.12); }
.ulu-node--local.is-active { transform: translate(-23px, 133px) scale(1.12); }
.ulu-node.is-active { box-shadow: 0 0 0 7px rgba(255,255,255,.07), 0 12px 36px rgba(0,0,0,.7); }
.ulu-node::after { top: calc(100% + 11px); padding: 5px 8px; font-size: .56rem; }

.ulu-tabs {
  margin: 0 20px;
  padding: 4px;
  background: rgba(0,0,0,.38);
}
.ulu-tabs button { min-height: 46px; }

.ulu-detail {
  grid-template-columns: 54px 1fr;
  min-height: 128px;
  padding: 24px 24px 18px;
}
.ulu-detail > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.ulu-detail h3 { margin: 0 0 7px; font-size: 1.2rem; }
.ulu-detail p { max-width: 58ch; line-height: 1.6; }
.ulu-disclosure { padding: 14px 24px; background: rgba(0,0,0,.34); }

@media (min-width: 72rem) {
  .cards { gap: 10px; }
  .feature { min-height: 224px; padding: 28px 22px; }
  .feature h3 { max-width: 18ch; }
  .feature p { max-width: 32ch; }
}

@media (max-width: 52rem) {
  .ulu-core { width: 88px; height: 88px; }
  .ulu-core img { width: 34px; height: 34px; }
  .ulu-map { min-height: 330px; }
}

/* The old raster hero plate carried a visible crop line on desktop. */
.section--hero {
  grid-template-columns: minmax(0, 1fr);
}
.section--hero > :not(.hero-plate) { grid-column: 1; }
.section--hero .lede { max-width: 58ch; }

/* Information pages ------------------------------------------------------- */

.info-main {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
}

.info-hero {
  position: relative;
  padding: clamp(64px, 12vh, 124px) var(--gutter) clamp(44px, 8vh, 80px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.info-hero::after {
  content: '';
  position: absolute;
  width: clamp(240px, 38vw, 480px);
  aspect-ratio: 1;
  top: 50%;
  right: max(-16vw, -180px);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.015),
    0 0 0 96px rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.info-kicker,
.info-updated,
.info-index {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 calc(var(--step) * 3);
  color: var(--text-secondary);
}

.info-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.info-lede {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: calc(var(--step) * 4) 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
}

.info-updated {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: calc(var(--step) * 4);
  color: var(--text-dim);
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 104px);
  padding: clamp(48px, 9vh, 96px) var(--gutter);
}

.info-aside {
  align-self: start;
  position: sticky;
  top: 96px;
}

.info-index {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-index a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.info-index a:hover,
.info-index a:focus-visible {
  color: var(--text);
  transform: translateX(3px);
}

.info-content {
  min-width: 0;
}

.info-section {
  padding: 0 0 clamp(36px, 6vh, 64px);
  margin: 0 0 clamp(36px, 6vh, 64px);
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 96px;
}

.info-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.info-section h2 {
  margin: 0 0 calc(var(--step) * 2.5);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.info-section h3 {
  margin: calc(var(--step) * 3) 0 var(--step);
  font-size: 1rem;
}

.info-section p,
.info-section li {
  max-width: 68ch;
  color: var(--text-secondary);
}

.info-section p {
  margin: 0 0 calc(var(--step) * 2);
}

.info-section ul,
.info-section ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
}

.info-section strong {
  color: var(--text);
  font-weight: 600;
}

.info-callout {
  padding: calc(var(--step) * 3);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.info-callout p:last-child {
  margin-bottom: 0;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: calc(var(--step) * 3);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: calc(var(--step) * 3);
}

.support-card {
  padding: calc(var(--step) * 3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-card span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.support-card strong {
  display: block;
  margin-bottom: 6px;
}

.support-card p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 46rem) {
  .info-hero::after {
    opacity: 0.55;
  }

  .info-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-aside {
    position: static;
  }

  .info-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Cosmetics — light, sheen and depth.

   In a palette with no hue, "premium" has to come from how light behaves:
   an edge lit from above, a sweep travelling across a pressed surface, a soft
   spotlight under the cursor. Everything below is white at low alpha; nothing
   introduces a colour.
   ========================================================================== */

/* Scroll-driven entrance. `.reveal` starts hidden and only plays once its section
   is actually on screen — previously every animation fired at page load, so anything
   below the fold had already finished by the time you scrolled to it. */
.reveal {
  animation: none;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Headlines pick up a top-down falloff, as if lit from above. */
h1,
h2,
.figure dt {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #b4b4b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sheen: a narrow diagonal highlight that crosses the button on hover, and once
   on its own shortly after the page settles so the eye finds it. */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
}

.button:hover::after,
.button:focus-visible::after {
  animation: sheen 900ms var(--ease);
}

.button--ghost::after {
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
}

#download::after {
  animation: sheen 1100ms var(--ease) 1400ms;
}

@keyframes sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

/* Surfaces get a hairline of light along the top edge and a spotlight that follows
   the pointer. `--mx`/`--my` are written by app.js on pointer move. */
.card,
.demo-frame {
  position: relative;
}

.card::before,
.demo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}

.feature:hover::after {
  opacity: 1;
}

/* Live demo ---------------------------------------------------------------- */

.demo {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 54rem) {
  .demo {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  }
}

.demo-frame {
  border: 1px solid var(--hairline-strong);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(255, 255, 255, 0.28);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.demo-bar b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.demo-bar small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.demo-bar span:nth-child(2) {
  flex: 1;
}

.demo-back,
.demo-key {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.demo-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px;
  padding: 18px 14px;
  background: var(--bg);
}

.demo-msg {
  max-width: 78%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: 16px;
  animation: pop 420ms var(--ease) both;
}

.demo-msg--them {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: var(--surface-raised);
  color: var(--text);
}

.demo-msg--me {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: #ffffff;
  color: #000000;
}

/* Three dots, each on its own offset — the same indicator the app shows. */
.demo-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background: var(--surface-raised);
  animation: pop 300ms var(--ease) both;
}

.demo-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: blink 1.3s ease-in-out infinite;
}

.demo-typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.demo-typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

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

.demo-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.demo-send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-secondary);
}

.demo-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.demo-notes li {
  padding-left: 18px;
  border-left: 1px solid var(--hairline-strong);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.demo-notes b {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 3px;
}

/* Tighter vertical rhythm — the airy spacing read as emptiness on a phone. */
.section {
  padding: clamp(44px, 7vh, 88px) var(--gutter);
}

.section-label {
  margin-bottom: clamp(20px, 3.5vh, 36px);
}

.stage {
  gap: calc(var(--step) * 2);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .button::after,
  .demo-typing i {
    animation: none !important;
  }
}

/* Chat grows from the bottom like a real thread, instead of leaving a void below. */
.demo-thread {
  justify-content: flex-end;
  min-height: 260px;
}

/* The nav wrapped to two lines once a third link was added. */
@media (max-width: 30rem) {
  .masthead {
    padding-inline: calc(var(--gutter) * 0.7);
  }

  .masthead-nav {
    gap: calc(var(--step) * 1.75);
    font-size: 0.8125rem;
  }

  .masthead-nav a {
    white-space: nowrap;
  }

  .masthead-nav a:nth-child(2) {
    display: none;
  }
}

/* ==========================================================================
   Marquee, progress rail, and the alignment pass.
   ========================================================================== */

/* Reading progress. One hairline at the very top — the only persistent chrome. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #ffffff);
  transition: width 90ms linear;
}

/* Marquee ------------------------------------------------------------------ */

.section--flush {
  padding-top: clamp(28px, 4vh, 48px);
  padding-bottom: clamp(28px, 4vh, 48px);
  max-width: none;
}

.marquee-note {
  max-width: var(--measure);
  margin: 0 auto clamp(16px, 2.5vh, 26px);
  padding-inline: var(--gutter);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee {
  overflow: hidden;
  /* Fade both ends into the page so the loop has no visible seam. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: slide 42s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: clamp(1.125rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 240ms var(--ease);
}

.marquee-track span:hover {
  color: var(--text);
}

.marquee-track i {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hairline-strong);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    /* The track is duplicated in JS, so half a lap is a seamless loop. */
    transform: translateX(-50%);
  }
}

/* Alignment pass ----------------------------------------------------------- */

/* Cards were different heights whenever their copy differed in length. */
.cards {
  align-items: stretch;
}

.feature {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature h3 {
  margin-top: auto;
}

/* Chalk art now shows the drawing itself instead of the black field around it. */
.feature-art {
  top: clamp(14px, 3vw, 22px);
  right: clamp(14px, 3vw, 22px);
  width: clamp(56px, 14%, 88px);
  height: auto;
  opacity: 0.4;
  mix-blend-mode: screen;
}

/* Step rows: number aligned to the first line, not to the middle of a wrapped block. */
.steps li {
  align-items: start;
}

.figures {
  align-items: start;
}

.figure dt {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

/* Less air between a section label and its content, and between stacked sections. */
.section {
  padding: clamp(38px, 6vh, 76px) var(--gutter);
}

.demo-notes li {
  padding-block: 2px;
}

.masthead-cta {
  color: var(--text) !important;
  font-weight: 600;
}

@media (max-width: 30rem) {
  /* All three links stay; they simply get tighter. */
  .masthead-nav a:nth-child(2) {
    display: inline;
  }

  .masthead-nav {
    gap: 14px;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Contrast and spacing corrections found on device.
   -------------------------------------------------------------------------- */

/* The top-down falloff worked on the 7rem headline but washed the 4rem figures out
   to near-invisible grey, especially under a browser's forced dark mode. Headlines
   keep it; figures go back to solid white. */
.figure dt {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text);
  gap: 6px;
}

h1,
h2 {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #d2d2d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.figure-unit {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-secondary);
  margin-left: 0;
}

/* The three figures sat far apart on a phone, reading as three empty screens. */
.figures {
  gap: clamp(20px, 3vh, 32px);
}

.figure dd {
  margin-top: 4px;
}

.marquee-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A single message left most of the demo thread blank; a shorter frame plus a seeded
   first line means it never looks like an empty room. */
.demo-thread {
  min-height: 210px;
}

/* Payment access ---------------------------------------------------------- */

.checkout {
  display: grid;
  gap: 28px;
  max-width: 42rem;
  overflow: hidden;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}

.checkout-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.checkout-head h3 {
  margin: 8px 0 0;
  max-width: 14ch;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.checkout-head strong {
  flex: none;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 0;
  border-block: 1px solid var(--hairline);
  list-style: none;
  color: var(--text-secondary);
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.plan-list li::before {
  content: '✓';
  flex: none;
  color: var(--text);
  font-family: var(--mono);
}

.asset-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.asset-picker legend {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.asset-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asset-option {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.asset-option:hover {
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.asset-option.is-selected {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.asset-option b {
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.asset-option small {
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: 0.6875rem;
  opacity: 0.62;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 16px;
  max-width: 54rem;
  animation: invoiceIn 680ms var(--ease) both;
}

@keyframes invoiceIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.payment-card {
  display: grid;
  gap: 24px;
}

.payment-amount {
  display: grid;
  gap: 5px;
  padding-block: 8px;
}

.payment-amount strong {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.payment-amount span,
.payment-foot span {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.wallet-block {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg);
}

.wallet-address {
  display: block;
  overflow-wrap: anywhere;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.link--left {
  justify-self: start;
  padding: 0;
}

.tx-field {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tx-field small {
  color: var(--text-dim);
  font-weight: 400;
}

.tx-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: 500 0.875rem/1 var(--mono);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.tx-field input:focus {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.tx-field input:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

.payment-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.payment-foot strong {
  font-family: var(--mono);
  font-size: 0.875rem;
}

.payment-qr {
  align-self: start;
}

.invoice > .link {
  grid-column: 1 / -1;
}

.key-ready .card--key {
  animation: keyCardReady 760ms var(--ease) both;
}

@keyframes keyCardReady {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  60% {
    box-shadow: 0 0 70px rgba(255, 255, 255, 0.14);
  }
  100% {
    opacity: 1;
    transform: none;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 44rem) {
  .invoice {
    grid-template-columns: 1fr;
  }

  .payment-qr {
    order: -1;
  }
}

@media (max-width: 30rem) {
  .checkout-head {
    align-items: end;
  }

  .asset-options {
    grid-template-columns: 1fr;
  }

  .asset-option {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 10px;
  }
}

/* Hero layout audit ------------------------------------------------------ */
/* Keep the masthead readable at browser zoom and large text sizes. The old
   absolute artwork left the headline with no real width constraint, so a zoomed
   desktop viewport could horizontally scroll and capture the banner halfway through. */
.section--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  grid-template-rows: repeat(5, auto);
  column-gap: clamp(28px, 5vw, 72px);
  align-content: center;
  min-height: min(820px, calc(100svh - 72px));
  padding-block: clamp(64px, 10vh, 112px);
  overflow: clip;
  container-type: inline-size;
}

.section--hero > :not(.hero-plate) {
  grid-column: 1;
  min-width: 0;
  max-width: 100%;
}

.section--hero h1 {
  width: min(100%, 10.5ch);
  font-size: clamp(3.25rem, 7.2vw, 6rem);
  line-height: 0.92;
  overflow-wrap: normal;
}

.section--hero h1 span {
  min-width: 0;
  max-width: 100%;
}

.section--hero .hero-plate {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  width: min(100%, 440px);
  transform: none;
  opacity: 0.48;
}

@media (max-width: 64rem) {
  .section--hero {
    display: block;
    min-height: auto;
    padding-block: clamp(56px, 9vh, 88px);
  }

  .section--hero h1 {
    width: min(100%, 10.5ch);
    font-size: clamp(3rem, 11vw, 5.25rem);
  }

  .section--hero .hero-plate {
    position: absolute;
    top: 50%;
    right: -12%;
    width: min(58%, 420px);
    transform: translateY(-50%);
    opacity: 0.24;
  }
}

@media (max-width: 34rem) {
  .section--hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.35rem);
  }

  .section--hero .hero-plate {
    top: auto;
    bottom: -5%;
    right: -24%;
    width: 82%;
    transform: none;
    opacity: 0.18;
  }
}
