/* Lime — tokens first, everything below references them */
:root {
  --ground: #eeeef0;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --surface-3: #e7e7ec;
  --ink: #262a3f;
  --ink-soft: #62667a;
  --accent: #0500ff;
  --lime: #ddfb4c;
  --navy: #1c2030;
  --accent-strong: #0400cc;
  --on-accent: #ffffff;
  --pos: #0a8f4f;
  --rule: rgba(38, 42, 63, 0.1);

  --font: "Wix Madefor Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Wix Madefor Display", var(--font);

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --step-head: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  --step-display: clamp(2.75rem, 1.2rem + 3.6vw, 4.5rem);

  --container: 1240px;
  --margin: clamp(16px, 3vw, 40px);
  --gap: clamp(12px, 1.4vw, 20px);
  --section: clamp(96px, 9vw, 144px);
  --radius: clamp(20px, 2vw, 24px);
  --bar-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip:focus { top: 12px; }
.pos { color: var(--pos); }

/* the container: every block sits inside one column */
.bar__in, main > section, .foot { width: min(100% - 2 * var(--margin), var(--container)); margin-inline: auto; }

/* ---------- type ---------- */
.h2 { font-family: var(--font-head); font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.h3 { font-family: var(--font-head); font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.body { font-size: var(--step-body); line-height: 1.55; max-width: 46ch; }
.lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; max-width: 36ch; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 16px 48px; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head .body { justify-self: end; color: var(--ink-soft); }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } .sec-head .body { justify-self: start; } }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: var(--step-body); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.btn--small { height: 42px; padding: 0 18px; font-size: var(--step-small); }
.btn--wide { width: 100%; }
.btn--ghost { background: #dfdfe6; color: var(--ink); }
.btn--ink { background: var(--on-accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover { background: var(--accent-strong); }
  .btn--ghost:not([disabled]):hover { background: #d4d4dd; }
  .btn--ink:not([disabled]):hover { background: #24271e; }
}
.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link--quiet { color: var(--ink); text-decoration-color: rgba(38, 42, 63, 0.3); }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--surface); }
.bar__in { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.wordmark svg { flex: none; width: 30px; height: 30px; }
.wordmark .wm-name { color: var(--accent); }
.bar__nav { display: flex; gap: 2px; font-size: var(--step-small); font-weight: 500; }
.bar__nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; transition: color var(--t-hover) ease, background-color var(--t-hover) ease; }
.bar__nav a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--ink); } }
.menu-btn, .menu { display: none; }
@media (max-width: 960px) {
  .bar__nav { display: none; }
  .bar__in { gap: 10px; }
  .js .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
    background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform var(--t-press) var(--ease-out);
  }
  .menu-btn:active { transform: scale(0.94); }
  .menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* the menu covers the whole screen under the bar, nothing shows through */
  .js .menu {
    position: fixed; inset: var(--bar-h) 0 0; z-index: 49;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    overflow: auto; padding: 24px var(--margin) calc(24px + env(safe-area-inset-bottom));
    background: var(--ground); visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .js .menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 300ms var(--ease-out); }
  .menu__list { display: grid; }
  .menu__list a { display: block; padding: 12px 0; font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; }
  .menu__list a[aria-current="true"] { color: var(--accent); }
  .menu__foot { display: grid; gap: 16px; color: var(--ink-soft); }
  .js.menu-open { overflow: hidden; }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .menu__list li { opacity: 0; transform: translateY(12px); transition: opacity 120ms ease, transform 120ms var(--ease-out); }
  .menu.is-open .menu__list li { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out), transform 420ms var(--ease-expo); }
  .menu.is-open .menu__list li:nth-child(2) { transition-delay: 35ms; }
  .menu.is-open .menu__list li:nth-child(3) { transition-delay: 70ms; }
  .menu.is-open .menu__list li:nth-child(4) { transition-delay: 105ms; }
  .menu.is-open .menu__list li:nth-child(5) { transition-delay: 140ms; }
}

/* ---------- the card: one drawn object, used everywhere ---------- */
.ccard { position: relative; aspect-ratio: 85.6 / 53.98; container-type: inline-size; perspective: 1000px; }
.ccard__body {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 4.6cqw;
  padding: 6.5cqw 7cqw;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  /* taste-skill-ignore: a card is a floating object; its edge and its shadow are part of it */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 56px -24px rgba(28, 32, 48, 0.4), 0 10px 20px -10px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: card finish or a UI fragment outline */
  transition: filter 300ms ease, background-color 400ms ease, color 400ms ease;
  user-select: none;
}
.ccard--lime .ccard__body {
  color: #ffffff;
  background-color: #0500ff;
  /* taste-skill-ignore: the sheen and grain are the card's own finish */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.22) 47%, rgba(255, 255, 255, 0) 60%), /* taste-skill-ignore: card finish or a UI fragment outline */
    linear-gradient(155deg, #3d38ff 0%, #0500ff 48%, #0300b4 100%); /* taste-skill-ignore: card finish or a UI fragment outline */
}
.ccard--vip .ccard__body {
  color: #eef0f8;
  background-color: #121629;
  /* taste-skill-ignore: brushed metal finish */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.022) 0 1px, rgba(255, 255, 255, 0) 1px 3px), /* taste-skill-ignore: card finish or a UI fragment outline */
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.09) 46%, rgba(255, 255, 255, 0) 60%), /* taste-skill-ignore: card finish or a UI fragment outline */
    linear-gradient(155deg, #2a3050 0%, #151a30 55%, #0b0e1e 100%); /* taste-skill-ignore: card finish or a UI fragment outline */
}
.ccard--vip .ccard__tier, .ccard--vip .ccard__wave { color: #9aa6ff; }
.ccard--ink .ccard__body, .ccard--graphite .ccard__body {
  color: #b4bdff;
  background-color: #1b2038;
  /* taste-skill-ignore: card finish */
  background-image:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.07) 46%, rgba(255, 255, 255, 0) 60%), /* taste-skill-ignore: card finish or a UI fragment outline */
    linear-gradient(155deg, #2c3352 0%, #1a1f38 100%); /* taste-skill-ignore: card finish or a UI fragment outline */
}
.ccard__brand { font-size: 7.2cqw; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.ccard__tier { justify-self: end; font-size: 3.4cqw; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; transition: filter 200ms ease, opacity 200ms ease; }
.ccard__wave { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: 5.4cqw; }
.ccard__num { grid-column: 1 / -1; grid-row: 3; font-size: 4.6cqw; font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.ccard__meta { grid-column: 1; grid-row: 4; display: flex; gap: 6cqw; margin-top: 1.6cqw; font-size: 2.9cqw; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; }
.ccard__meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ccard__visa { grid-column: 2; grid-row: 3 / span 2; align-self: end; font-size: 10.5cqw; font-weight: 700; font-style: italic; letter-spacing: -0.03em; line-height: 0.78; }
.ccard__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 48%); /* taste-skill-ignore: light on the card */
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.ccard.is-hover .ccard__glare { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.is-swapping { filter: blur(2px); opacity: 0.3; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; margin-top: clamp(12px, 1.4vw, 20px); padding: clamp(32px, 5vw, 72px) clamp(20px, 4.5vw, 64px); border-radius: clamp(24px, 3vw, 40px); background: var(--surface); overflow: hidden; }
.hero__title { font-family: var(--font-head); font-size: var(--step-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
.hl { display: block; overflow: clip; padding-bottom: 0.06em; }
.hl__in { display: inline-block; }
.hero__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.42; letter-spacing: -0.01em; max-width: 34ch; color: var(--ink-soft); }
.hero__actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__wc { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); }
.hero__wc img { flex: none; width: 22px; height: 22px; border-radius: 6px; }
.facts { margin-top: 44px; display: flex; gap: clamp(24px, 3vw, 44px); flex-wrap: wrap; }
.facts dt { font-size: var(--step-small); color: var(--ink-soft); }
.facts dd { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }

.hero__visual { position: relative; height: clamp(500px, 44vw, 600px); }
.app {
  position: absolute; left: 0; top: 92px; z-index: 2; width: min(360px, 74%);
  padding: 22px; border-radius: 28px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule); /* taste-skill-ignore: card finish or a UI fragment outline */
}
.app__top { display: flex; justify-content: space-between; align-items: center; }
.app__label { font-size: var(--step-small); color: var(--ink-soft); }
.app__chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.app__bal { margin-top: 6px; font-size: 40px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.app__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.app__act { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); font-size: 13px; color: var(--ink-soft); }
.app__act svg { width: 20px; color: var(--ink); }
.app__act--on { background: var(--accent); color: var(--on-accent); }
.app__act--on svg { color: var(--on-accent); }
.app__tx { margin-top: 18px; display: grid; gap: 4px; }
.app__tx li, .txl li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; font-size: 15px; }
.app__tx small, .txl small { display: block; color: var(--ink-soft); font-size: 13px; }
.app__tx b, .txl b { font-weight: 500; font-variant-numeric: tabular-nums; }
.app__tx-new { background: var(--surface-2); }
.logo, .coin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--surface-3)); color: var(--on-accent); font-weight: 700; font-size: 15px; flex: none; }
.coin--usdt { --c: #26a17b; color: #fff; }
.coin--usdc { --c: #2775ca; color: #fff; }
.coin--btc { --c: #f7931a; color: #fff; }
.coin--eth { --c: #627eea; color: #fff; }
/* the card rests behind the app, showing its brand edge and the Visa mark */
.hero__card { position: absolute; right: 4%; top: 34px; width: min(390px, 68%); transform: rotate(8deg); z-index: 1; }
/* the notification drops in above the app panel, never over the balance */
.toast { position: absolute; left: 18px; top: 0; z-index: 3; }
.toast.notif { width: min(300px, 86vw); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { height: clamp(380px, 92vw, 520px); }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__visual { height: auto; padding: 104px 0 8px; }
  .app { position: relative; top: 0; width: 92%; padding: 18px; }
  .app__bal { font-size: 34px; }
  .hero__card { right: -6%; top: 26px; width: 62%; }
  .toast { left: auto; right: 12px; top: 0; }
}

/* ---------- rails ---------- */
.rails { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 22px 28px; border-radius: var(--radius); background: var(--surface); }
.rails__label { color: var(--ink-soft); font-size: var(--step-small); }
.rails__list { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.rails__list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.rails__list .coin { width: 30px; height: 30px; font-size: 14px; }
.rails__nets { margin-left: auto; color: var(--ink-soft); font-size: var(--step-small); }
@media (max-width: 900px) { .rails__nets { margin-left: 0; } }

/* ---------- calculator ---------- */
.calc-sec { padding-top: var(--section); }
.calc-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(20px, 3.6vw, 48px); border-radius: var(--radius); background: var(--surface); }
.calc-panel__card { padding: clamp(8px, 3vw, 40px); }
.calc-panel__card .ccard { max-width: 520px; margin-inline: auto; }
.calc { display: grid; gap: 18px; }
.calc__field { display: grid; gap: 8px; min-width: 0; }
.calc__label { font-size: var(--step-small); color: var(--ink-soft); font-weight: 500; }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); --n: 2; --i: 0; }
.seg--4 { --n: 4; }
/* a copy of the labels on the accent, clipped to the chosen option: the colour changes exactly at the edge */
.seg__over {
  position: absolute; inset: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); pointer-events: none;
  clip-path: inset(0 calc((var(--n) - var(--i) - 1) * 100% / var(--n)) 0 calc(var(--i) * 100% / var(--n)) round 999px);
  transition: clip-path var(--t-ui) var(--ease-out);
}
.seg__over span { display: grid; place-items: center; font-size: var(--step-small); font-weight: 500; white-space: nowrap; }
.seg button { position: relative; height: 42px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font-size: var(--step-small); font-weight: 500; cursor: pointer; white-space: nowrap; transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.seg button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-checked="false"]:hover { color: var(--accent); } }
.input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--surface-2); font-size: var(--step-body); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease; }
.input:focus { outline: none; background: var(--surface-3); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__out { margin-top: 4px; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.calc__total { display: grid; gap: 2px; margin-bottom: 8px; }
.calc__total dt { font-size: var(--step-small); color: var(--ink-soft); font-weight: 500; }
.calc__total dd { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.calc__line { display: flex; justify-content: space-between; gap: 16px; }
.calc__line dt { color: var(--ink-soft); }
.calc__note { font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 900px) { .calc-panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .calc__pair { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { padding-top: var(--section); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); background: var(--surface); min-height: 340px; }
.tile__text { display: grid; gap: 8px; }
.tile__text p { color: var(--ink-soft); max-width: 42ch; }
.tile--art { grid-column: span 5; padding: 0; gap: 0; }
.tile--art .tile__text { padding: 22px clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px); }
.tile__art { position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 264px; background: var(--surface-2); }
.tile--online { grid-column: span 5; justify-content: space-between; }
.tile--travel { grid-column: span 7; }
.tile--iban { grid-column: span 5; justify-content: space-between; }
.tile--world { grid-column: span 7; justify-content: flex-end; padding: 0; }
.tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__text--over { position: relative; padding: clamp(22px, 2.4vw, 32px); padding-top: 120px; background: linear-gradient(to top, rgba(28, 32, 48, 0.94), rgba(28, 32, 48, 0)); /* taste-skill-ignore: neutral scrim under text on footage */ }
.tile--world { background: var(--navy); color: #fff; }
.tile__text--over p { color: rgba(255, 255, 255, 0.8); }

/* Apple Wallet style screen */
.pass { flex: none; width: 220px; display: grid; justify-items: center; gap: 14px; padding: 18px 18px 22px; border-radius: 28px; background: #f3f4ee; color: #1a1c16; }
.pass__card { position: relative; width: 100%; aspect-ratio: 85.6 / 53.98; border-radius: 10px; padding: 10px 12px; background: var(--accent); display: grid; grid-template-columns: 1fr auto; align-content: space-between; }
.pass__brand { font-weight: 700; letter-spacing: -0.045em; font-size: 15px; }
.pass__wave svg { width: 14px; }
.pass__visa { grid-column: 2; font-weight: 700; font-style: italic; font-size: 20px; line-height: 0.8; }
.pass__ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #1d6ff2; box-shadow: inset 0 0 0 3px #1d6ff2; } /* taste-skill-ignore: card finish or a UI fragment outline */
.pass__ring svg { width: 24px; }
.pass__hint { font-size: 13px; color: #6a6d62; }
@media (prefers-reduced-motion: no-preference) {
  .pass__ring { animation: ring 2.4s var(--ease-out) infinite; }
  @keyframes ring { 0% { box-shadow: inset 0 0 0 3px #1d6ff2, 0 0 0 0 rgba(29, 111, 242, 0.35); } 70%, 100% { box-shadow: inset 0 0 0 3px #1d6ff2, 0 0 0 14px rgba(29, 111, 242, 0); } } /* taste-skill-ignore: card finish or a UI fragment outline */
}
.txl { display: grid; gap: 4px; padding: 10px; border-radius: 20px; background: var(--surface-2); }
.iban { display: grid; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--surface-2); }
.iban__label { font-size: 13px; color: var(--ink-soft); }
.iban__num { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.iban__row { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--rule); font-size: 15px; } /* taste-skill-ignore: card finish or a UI fragment outline */
@media (max-width: 980px) {
  .tile--pay, .tile--online, .tile--travel, .tile--iban, .tile--world { grid-column: span 12; }
}
@media (max-width: 560px) {
  .pass { width: 100%; max-width: 260px; justify-self: center; align-self: center; }
  .tile { min-height: 0; }
  .tile--world { min-height: 300px; }
}

/* ---------- how it works ---------- */
.how { padding-top: var(--section); }
.steps { border-radius: var(--radius); background: var(--surface); padding: clamp(8px, 1vw, 12px); }
.steps__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps__tab {
  position: relative; overflow: hidden; display: grid; gap: 2px; justify-items: start; text-align: left;
  padding: 18px 20px 20px; border: 0; border-radius: 18px; background: transparent; cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.steps__tab:active { transform: scale(0.98); }
.steps__tab[aria-selected="true"] { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .steps__tab[aria-selected="false"]:hover { background: rgba(38, 42, 63, 0.04); } }
.steps__name { font-weight: 500; font-size: var(--step-body); }
.steps__time { font-size: var(--step-small); color: var(--ink-soft); }
.steps__bar { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.steps__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.steps__tab[aria-selected="true"] .steps__bar::after { transform: scaleX(1); }
.steps.is-auto .steps__tab[aria-selected="true"] .steps__bar::after { animation: fill var(--step-ms, 6000ms) linear both; }
.steps.is-paused .steps__tab[aria-selected="true"] .steps__bar::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.steps__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.6vw, 52px); }
.steps__panel[hidden] { display: none; }
.steps__text { display: grid; gap: 12px; }
.steps__text p { color: var(--ink-soft); max-width: 44ch; }
.screen { display: grid; gap: 12px; padding: 20px; border-radius: 24px; background: var(--surface-2); min-height: 280px; align-content: start; }
.screen__title { font-weight: 500; }
.screen__foot { font-size: var(--step-small); color: var(--ink-soft); }
.wl { display: grid; gap: 6px; }
.wl li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-3); font-weight: 500; }
.wl li small { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.wl li.is-on { box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore: card finish or a UI fragment outline */
.wl li.is-on small { color: var(--accent); }
.wl__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; }
.nets { display: flex; gap: 6px; }
.nets span { padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: 14px; color: var(--ink-soft); }
.nets .is-on { background: var(--accent); color: var(--on-accent); }
.addr { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); font-variant-numeric: tabular-nums; }
.addr__copy { font-size: 14px; color: var(--accent); }
.recv { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-3); }
.recv small { display: block; font-size: 13px; color: var(--ink-soft); }
.screen__card { width: min(100%, 340px); justify-self: center; margin: 8px 0 6px; }
.wallet-btn { justify-self: center; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff; font-weight: 500; font-size: 15px; } /* taste-skill-ignore: card finish or a UI fragment outline */
.wallet-btn svg { width: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .steps__panel:not([hidden]) { animation: panel-in 380ms var(--ease-out); }
  @keyframes panel-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
}
@media (max-width: 800px) {
  .steps__tab { padding: 14px 16px 18px; }
  .steps__bar { left: 16px; right: 16px; bottom: 8px; }
  .steps__panel { grid-template-columns: 1fr; padding: 20px 12px 12px; }
}
@media (max-width: 600px) {
  .steps__tabs { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- pricing ---------- */
.pricing { padding-top: var(--section); }
.plans { padding: clamp(16px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
.plans__table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plans__table th, .plans__table td { padding: 16px 12px 16px 0; text-align: left; font-weight: 400; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.plans__table thead th { border-bottom: 0; padding-bottom: 28px; vertical-align: bottom; }
.plans__table tbody th { color: var(--ink-soft); width: 32%; }
.plans__table td { width: 34%; }
.plans__table tbody tr:last-child > * { border-bottom: 0; }
.plans__corner { vertical-align: bottom !important; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; padding-right: clamp(0px, 2vw, 32px); }
.plan .ccard { width: 100%; max-width: 320px; margin-bottom: 18px; }
.plan__name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }
.plan__price { font-size: var(--step-body); }
.plan__price small { font-size: var(--step-small); color: var(--ink-soft); }
.plan .btn { margin-top: 12px; }
@media (max-width: 640px) {
  .plans { padding: 16px; overflow: visible; }
  .plans__table { min-width: 0; font-size: 15px; }
  /* the comparison stays readable: the row label sits on its own line, the two plans under it */
  .plans__table:not(.rates__table), .plans__table:not(.rates__table) thead, .plans__table:not(.rates__table) tbody { display: block; }
  .plans__table:not(.rates__table) tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .plans__table:not(.rates__table) tbody tr:last-child { border-bottom: 0; }
  .plans__table:not(.rates__table) thead tr { padding: 0 0 8px; border-bottom: 0; }
  .plans__table:not(.rates__table) th, .plans__table:not(.rates__table) td { width: auto; padding: 0; border: 0; }
  .plans__table:not(.rates__table) tbody th { grid-column: 1 / -1; font-size: 13px; }
  .plans__corner { display: none; }
  .plan { padding-right: 0; }
  .plan .ccard { max-width: none; margin-bottom: 12px; }
  .plan .btn { width: 100%; padding: 0 8px; }
  /* the staking rates stay a table, four narrow columns */
  .rates__table { table-layout: auto; font-size: 15px; }
  .rates__table th, .rates__table td { padding: 14px 6px 14px 0; }
  .rates__table tbody th { width: auto; white-space: nowrap; }
  .rates__table td { font-size: var(--step-body); text-align: right; }
  .rates__table thead th:not(:first-child) { text-align: right; }
  .rates__table .asset { gap: 8px; }
  .rates__table .coin { width: 26px; height: 26px; }
}

/* ---------- safety ---------- */
.safe { padding-top: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.safe__list { margin-top: 36px; display: grid; gap: 28px; }
.safe__list li { display: grid; gap: 6px; padding-left: 22px; box-shadow: inset 3px 0 0 var(--accent); } /* taste-skill-ignore: card finish or a UI fragment outline */
.safe__list p { color: var(--ink-soft); max-width: 46ch; }
.controls { display: grid; gap: 10px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); }
.controls__card { width: min(100%, 380px); justify-self: center; margin: 12px 0 22px; }
.controls__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.controls__row b { display: block; font-weight: 500; }
.controls__row small { color: var(--ink-soft); font-size: var(--step-small); }
.controls__on { color: var(--accent); font-size: var(--step-small); font-weight: 500; }
.switch { position: relative; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background-color 200ms ease; flex: none; }
.switch span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform 240ms var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(20px); background: var(--on-accent); }
.switch:active span { width: 28px; }
.switch[aria-checked="true"]:active span { transform: translateX(16px); }
.ccard__frost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2cqw; font-size: 5cqw; font-weight: 600; color: #eaf6ff; background: rgba(120, 160, 190, 0.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.ccard__frost svg { width: 6cqw; }
.ccard.is-frozen .ccard__body { filter: saturate(0.25) brightness(0.85); }
.ccard.is-frozen .ccard__frost { opacity: 1; visibility: visible; transition: opacity 260ms ease; }
@media (max-width: 900px) { .safe { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { padding-top: var(--section); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--bar-h) + 32px); display: grid; gap: 20px; justify-items: start; }
.faq__side .body { color: var(--ink-soft); }
.acc { display: grid; gap: 8px; }
.acc__item { border-radius: 20px; background: var(--surface); transition: background-color var(--t-hover) ease; }
.acc__item.is-open { background: var(--surface-2); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 22px 24px; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.acc__q:focus-visible { outline-offset: -2px; border-radius: 20px; }
.acc__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--accent); }
.acc__item.is-open .acc__icon::before, .acc__item.is-open .acc__icon::after { background: var(--on-accent); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .acc__q:hover .acc__icon { transform: scale(1.06); } }
/* the answer folds open by animating its row from 0fr to 1fr, so it always fits its content */
.acc__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 360ms var(--ease-out), visibility 0s linear 360ms; }
.acc__a > div { overflow: hidden; min-height: 0; }
.acc__a p { padding: 0 24px 24px; max-width: 60ch; color: var(--ink-soft); opacity: 0; transform: translateY(-6px); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 360ms var(--ease-out); }
.acc__item.is-open .acc__a p { opacity: 1; transform: none; transition: opacity 320ms ease 60ms, transform 400ms var(--ease-out) 40ms; }
.no-js .acc__a, html:not(.js) .acc__a { grid-template-rows: 1fr; }
html:not(.js) .acc__a { visibility: visible; }
html:not(.js) .acc__a p { opacity: 1; transform: none; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__side { position: relative; top: 0; } }
@media (max-width: 560px) { .acc__q { padding: 18px; } .acc__a p { padding: 0 18px 18px; } }

/* ---------- close ---------- */
.close {
  margin-top: var(--section); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 32px;
  padding: clamp(32px, 5vw, 72px); border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
}
.close__copy { display: grid; gap: 24px; justify-items: start; }
.close__title { font-family: var(--font-head); font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; max-width: 12ch; }
.close__cards { position: relative; height: clamp(260px, 28vw, 340px); }
.close__card { position: absolute; width: min(300px, 66%); }
.close__card--back { right: 2%; top: 4%; transform: rotate(8deg); }
.close__card--front { left: 2%; bottom: 4%; transform: rotate(-7deg); }
@media (max-width: 800px) {
  .close { grid-template-columns: 1fr; }
  .close__cards { height: 220px; }
  .close__copy .btn { width: 100%; }
}

/* ---------- footer ---------- */
.foot { overflow: hidden; padding-top: var(--section); }
.foot__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.foot__brand { display: grid; gap: 12px; align-content: start; }
.foot__brand p { color: var(--ink-soft); max-width: 32ch; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__h { font-size: var(--step-small); color: var(--ink-soft); margin-bottom: 4px; }
.foot__col .link { text-decoration-color: transparent; }
.credits { margin-top: clamp(56px, 6vw, 88px); font-size: var(--step-small); line-height: 1.6; max-width: 110ch; color: var(--ink-soft); }
.credits a { color: var(--ink); text-decoration-color: rgba(38, 42, 63, 0.3); text-underline-offset: 0.2em; }
.foot__legal { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; font-size: var(--step-small); color: var(--ink-soft); }
.foot__name { display: block; width: 100%; height: auto; margin-top: clamp(24px, 3vw, 40px); margin-bottom: -7%; overflow: visible; }
.foot__name text { font-family: var(--font-head); font-weight: 800; font-size: 262px; letter-spacing: -0.03em; fill: #e2e2e8; }
@media (max-width: 800px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---------- connect wallet dialog ---------- */
.connect { width: min(100% - 32px, 440px); max-height: min(100% - 32px, 640px); padding: 24px; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); /* taste-skill-ignore: the dialog really floats */ overflow: auto; }
.connect::backdrop { background: rgba(28, 32, 48, 0.5); }
.connect__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.connect__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; }
.connect__x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.connect__x svg { width: 16px; }
.connect__x:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .connect__x:hover { background: var(--surface-3); } }
.connect__body { display: grid; gap: 16px; }
.connect__body[hidden] { display: none; }
.connect__text { color: var(--ink-soft); line-height: 1.5; }
.connect__big { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.connect__alt { justify-self: center; font-size: var(--step-small); }
.wallets { display: grid; gap: 8px; }
.wallets:empty { display: none; }
.wallet { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--surface-2); text-align: left; text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.wallet:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .wallet:hover { background: var(--surface-3); } }
.wallet__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c, var(--surface-3)); color: var(--on-accent); font-weight: 700; overflow: hidden; }
.wallet__icon img { width: 100%; height: 100%; }
.wallet__name { font-weight: 500; }
.wallet__hint { font-size: var(--step-small); color: var(--ink-soft); }
.acct { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.acct__label { font-size: var(--step-small); color: var(--ink-soft); }
.acct__addr { font-size: var(--step-lead); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.spinner { justify-self: start; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .connect { opacity: 0; transform: scale(0.96) translateY(8px); transition: opacity 150ms ease, transform 150ms var(--ease-out), overlay 150ms allow-discrete, display 150ms allow-discrete; }
  .connect[open] { opacity: 1; transform: none; transition-duration: 240ms; }
  @starting-style { .connect[open] { opacity: 0; transform: scale(0.96) translateY(8px); } }
  .connect::backdrop { opacity: 0; transition: opacity 150ms ease, overlay 150ms allow-discrete, display 150ms allow-discrete; }
  .connect[open]::backdrop { opacity: 1; transition-duration: 240ms; }
  @starting-style { .connect[open]::backdrop { opacity: 0; } }
  .connect__body:not([hidden]) { animation: step-in 260ms var(--ease-out); }
  @keyframes step-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
}
@media (max-width: 560px) { .connect { margin: auto auto 16px; } }

/* ---------- plain pages: terms, privacy, 404 ---------- */
.page-plain main { width: min(100% - 2 * var(--margin), var(--container)); margin-inline: auto; }
.page-plain main > section { width: auto; margin-inline: 0; }
.bar__back { margin-right: 12px; font-size: var(--step-small); }
@media (max-width: 560px) { .bar__back { display: none; } }
.legal { padding: clamp(48px, 6vw, 96px) 0 var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.legal > * { grid-column: 3 / span 8; }
.legal__title { font-family: var(--font-head); font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.legal__meta { margin-top: 16px; color: var(--ink-soft); font-size: var(--step-small); }
.legal__intro { margin-top: 32px; max-width: 46ch; }
.legal__sec { margin-top: 48px; display: grid; gap: 12px; }
.legal__sec p, .legal__list { max-width: 66ch; line-height: 1.6; }
.legal__list { padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; }
@media (max-width: 900px) { .legal > * { grid-column: 1 / -1; } }
.lost { min-height: calc(100svh - var(--bar-h) - 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px var(--gap); padding: 64px 0; }
.lost__text { display: grid; gap: 28px; justify-items: start; }
.lost__title { font-family: var(--font-head); font-size: var(--step-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
.lost__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lost .ccard { width: 100%; max-width: 500px; justify-self: end; transform: rotate(-6deg); }
@media (max-width: 900px) { .lost { grid-template-columns: 1fr; align-content: center; } .lost .ccard { justify-self: start; max-width: 400px; } }
.foot--plain { padding: 0 0 40px; }
.foot--plain .foot__legal { margin-top: 0; padding-top: 24px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the headline rises out of its lines */
  .js .hl__in { transform: translateY(108%); }
  .js.is-loaded .hl__in { transform: none; transition: transform 1000ms var(--ease-expo); }
  .js.is-loaded .hl:nth-child(2) .hl__in { transition-delay: 80ms; }

  /* the product arrives: the app rises, the card slides in and settles, the top-up lands */
  .js .app { opacity: 0; transform: translateY(24px); }
  .js .hero__card { opacity: 0; transform: translate(-22%, 10%) rotate(0deg); }
  .js .toast { opacity: 0; transform: translateY(-16px) scale(0.96); }
  .js.is-loaded .app { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) 200ms, transform 1000ms var(--ease-expo) 200ms; }
  .js.is-loaded .hero__card { opacity: 1; transform: rotate(8deg); transition: opacity 600ms var(--ease-out) 380ms, transform 1300ms var(--ease-expo) 380ms; }
  .js.is-loaded .toast { opacity: 1; transform: none; transition: opacity 300ms ease 1250ms, transform 650ms cubic-bezier(0.32, 0.72, 0, 1) 1250ms; }
  .js .app__tx-new { animation: tx-in 600ms var(--ease-expo) 1350ms both; }
  @keyframes tx-in { from { opacity: 0; transform: translateY(-8px); } }

  /* section parts arrive in reading order, once */
  .js [data-reveal] { opacity: 0; transform: translateY(20px); }
  .js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .hero [data-reveal].is-in { transition-delay: calc(300ms + var(--d, 0) * 80ms); }

  /* pictures open from the bottom edge inside their tiles */
  .js .tile.is-in .shutter { animation: shutter 1100ms var(--ease-in-out) calc(var(--d, 0) * 80ms + 120ms) both; }
  .js .tile.is-in .shutter img { animation: settle 1500ms var(--ease-soft) calc(var(--d, 0) * 80ms + 120ms) both; }
  @keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  @keyframes settle { from { transform: scale(1.12); } }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; }
  .spinner { animation-duration: 1600ms; }
  .acc__a, .acc__a p { transition: none; }
}

/* ---------- real coin icons ---------- */
img.coin { background: none; border-radius: 50%; object-fit: contain; }

/* ---------- language picker ---------- */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: var(--step-small); font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.lang__btn svg { width: 18px; }
.lang__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .lang__btn:hover { background: var(--surface-3); } }
.lang__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 240px; max-height: min(70vh, 460px); overflow: auto; padding: 6px; border-radius: 18px;
  background: var(--surface-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); /* taste-skill-ignore: a menu floats */
  transform-origin: top right;
}
.lang__list[hidden] { display: none; }
.lang__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; }
.lang__list li small { color: var(--ink-soft); }
.lang__list li[aria-selected="true"] { background: var(--surface-3); }
.lang__list li[aria-selected="true"] small { color: var(--accent); }
.lang__list li.is-active, .lang__list li:hover { background: var(--surface-3); }
@media (prefers-reduced-motion: no-preference) {
  .lang__list:not([hidden]) { animation: pop 180ms var(--ease-out); }
  @keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
}
@media (max-width: 560px) { .lang__btn .lang__code { display: none; } .lang__btn { width: 42px; padding: 0; justify-content: center; } }

/* ---------- products row ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); margin-bottom: var(--gap); }
.prod {
  position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 26px 26px; border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.prod:active { transform: scale(0.99); }
.prod__ic { display: flex; height: 34px; align-items: center; margin-bottom: 10px; }
.prod__ic .coin + .coin { margin-left: -8px; box-shadow: 0 0 0 3px var(--surface); } /* taste-skill-ignore: part of a drawn interface */
.prod__ic--card svg { height: 34px; width: auto; display: block; }
.prod__name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }
.prod__text { color: var(--ink-soft); max-width: 34ch; }
.prod__go { position: absolute; top: 24px; right: 26px; font-size: 20px; color: var(--ink-soft); transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .prod:hover { background: var(--surface-2); }
  .prod:hover .prod__go { transform: translateX(4px); color: var(--accent); }
  .prod:hover .prod__ic .coin + .coin { box-shadow: 0 0 0 3px var(--surface-2); } /* taste-skill-ignore: part of a drawn interface */
}
@media (max-width: 960px) { .prod { padding: 20px 20px 22px; } .prod__go { top: 20px; right: 20px; } }
@media (max-width: 700px) { .products { grid-template-columns: 1fr; } .prod { padding: 24px 26px 26px; } .prod__go { top: 24px; right: 26px; } }

/* ---------- Apple Pay tile: a light card in a dark page, a wallet that pays ---------- */
.paymarks { display: flex; gap: 8px; margin-top: 8px; }
.paymark { display: grid; place-items: center; height: 40px; padding: 0 14px; border-radius: 10px; background: #0d0e0b; color: #fff; }
.paymark svg { width: 52px; height: 34px; }
.apl { width: 1em; height: 1em; margin-top: -0.14em; }
.tile--pay { background: var(--surface); color: var(--ink); }
.tile--pay .tile__text p { color: var(--ink-soft); }
/* ---------- staking ---------- */
.stake, .exch { padding-top: var(--section); }
.stake__panel, .exch__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; padding: clamp(20px, 3.6vw, 48px); border-radius: var(--radius); background: var(--surface); }
.stake__form, .exch__form { display: grid; gap: 18px; align-content: start; }
.seg--3 { --n: 3; }
.stake__chart { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 24px; border-radius: 24px; background: var(--surface-2); min-height: 320px; }
.stake__sum { display: grid; gap: 2px; }
.stake__sum b { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 6px; min-height: 160px; }
.bars span { flex: 1; height: 100%; border-radius: 6px 6px 3px 3px; background: var(--surface-3); transform-origin: 50% 100%; transform: scaleY(var(--h, 0.1)); transition: transform 500ms var(--ease-out); }
.bars span:last-child { background: var(--accent); }
.bars__axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 900px) { .stake__panel, .exch__panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- exchange ---------- */
.xrow { display: grid; gap: 8px; }
.xrow__label { font-size: var(--step-small); color: var(--ink-soft); font-weight: 500; }
.xrow__box { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 18px; background: var(--surface-2); transition: box-shadow var(--t-hover) ease; }
.xrow__box:focus-within { box-shadow: inset 0 0 0 2px var(--accent); /* taste-skill-ignore: focus ring */ }
.xrow__amt { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xrow__amt:focus { outline: none; }
.xsel { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 34px 6px 8px; border-radius: 999px; background: var(--surface-3); }
.xsel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none; }
.xsel select { appearance: none; -webkit-appearance: none; border: 0; background: none; font-weight: 600; font-size: var(--step-body); cursor: pointer; padding: 4px 0; }
.xsel select:focus-visible { outline: none; }
.xsel:focus-within { box-shadow: inset 0 0 0 2px var(--accent); /* taste-skill-ignore: focus ring */ }
.xsel select option { background: var(--surface-2); color: var(--ink); }
.xsel--lang { padding-left: 14px; }
.xswap { justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px 0; z-index: 1; border: 4px solid var(--surface); border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; transition: transform var(--t-ui) var(--ease-out); }
.xswap svg { width: 20px; }
.xswap:active { transform: scale(0.94); }
.xswap.is-turned { transform: rotate(180deg); }
.xswap.is-turned:active { transform: rotate(180deg) scale(0.94); }
.exch__side { display: grid; gap: 14px; align-content: start; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.pairs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: var(--step-small); font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.pairs button .coin + .coin { margin-left: -10px; box-shadow: 0 0 0 2px var(--surface-2); } /* taste-skill-ignore: part of a drawn interface */
.pairs button:active { transform: scale(0.97); }
.pairs button[aria-pressed="true"] { background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--accent); /* taste-skill-ignore: selected state */ }
@media (hover: hover) and (pointer: fine) { .pairs button:hover { background: var(--surface-3); } }
.exch__how { display: grid; gap: 18px; margin-top: 18px; }
.exch__how li { display: grid; gap: 4px; padding-left: 20px; box-shadow: inset 3px 0 0 var(--surface-3); } /* taste-skill-ignore: part of a drawn interface */
.exch__how p { color: var(--ink-soft); }

/* ---------- footer extras ---------- */
.foot__brand { gap: 16px; }
.foot__soc { display: flex; gap: 8px; flex-wrap: wrap; }
.soc { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.soc svg { width: 19px; }
.soc:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .soc:hover { background: var(--accent); color: var(--on-accent); } }
.foot__lang { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }
.foot__col button.link { text-align: left; font-size: inherit; text-decoration-color: transparent; }
.foot__disc { margin-top: 20px; max-width: 90ch; font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(420px, calc(100% - 32px));
  display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface-2); color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); /* taste-skill-ignore: the banner floats */
}
.cookie[hidden] { display: none; }
.cookie__title { font-weight: 600; font-size: var(--step-body); }
.cookie__text { color: var(--ink-soft); font-size: var(--step-small); line-height: 1.5; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie__actions .btn { height: 44px; font-size: var(--step-small); padding: 0 12px; }
.cookie__more { justify-self: start; font-size: var(--step-small); }
.cookie__opts { display: grid; gap: 8px; }
.cookie__opts[hidden] { display: none; }
.cookie__opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-3); }
.cookie__opt b { display: block; font-weight: 500; font-size: 15px; }
.cookie__opt small { color: var(--ink-soft); font-size: 13px; }
.cookie__opt .switch[disabled] { opacity: 0.6; cursor: default; }
.cookie .switch { background: var(--surface); }
.cookie .switch[aria-checked="true"] { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .cookie:not([hidden]) { animation: cookie-in 420ms var(--ease-expo) 600ms both; }
  @keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } }
  .cookie.is-leaving { animation: cookie-out 180ms var(--ease-out) forwards; }
  @keyframes cookie-out { to { opacity: 0; transform: translateY(16px); } }
}
@media (max-width: 560px) { .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; } }

/* ---------- other scripts (set by i18n.js) ---------- */
html[lang="zh"] { --font: "Wix Madefor Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="ja"] { --font: "Wix Madefor Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
html[lang="ko"] { --font: "Wix Madefor Text", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html[lang="ar"] { --font: "Wix Madefor Text", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", sans-serif; }
html[lang="hi"] { --font: "Wix Madefor Text", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
html:is([lang="zh"], [lang="ja"], [lang="ko"]) :is(.hero__title, .h2, .close__title, .lost__title, .legal__title) { letter-spacing: -0.02em; line-height: 1.12; }
html:is([lang="ar"], [lang="hi"]) :is(.hero__title, .h2, .close__title) { letter-spacing: 0; line-height: 1.2; }
html.i18n-wait main, html.i18n-wait .bar__nav, html.i18n-wait .foot { opacity: 0; }
html.i18n-ready main, html.i18n-ready .bar__nav, html.i18n-ready .foot { transition: opacity 200ms ease; }
[dir="rtl"] .hero__card { right: auto; left: 2%; transform: rotate(-8deg); }
[dir="rtl"] .app { left: auto; right: 0; }
[dir="rtl"] .toast { left: auto; right: 18px; }
[dir="rtl"] .prod__go { right: auto; left: 26px; transform: scaleX(-1); }
[dir="rtl"] .lang__list { right: auto; left: 0; }
[dir="rtl"] .safe__list li, [dir="rtl"] .exch__how li { padding-left: 0; padding-right: 20px; box-shadow: inset -3px 0 0 var(--accent); } /* taste-skill-ignore: part of a drawn interface */
[dir="rtl"] .xsel { padding: 6px 8px 6px 34px; }
[dir="rtl"] .xsel::after { right: auto; left: 14px; }
[dir="rtl"] .cookie { left: auto; right: 16px; }

/* ---------- product pages: staking, exchange ---------- */
.prod__fig { margin-top: 6px; font-weight: 500; color: var(--accent); }
.phero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 40px; padding: clamp(40px, 6vw, 96px) 0 clamp(24px, 3vw, 40px); }
.phero__title { font-family: var(--font-head); font-size: clamp(2.1rem, 1rem + 3.1vw, 3.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; max-width: 19ch; text-wrap: balance; }
.pfacts { display: grid; gap: 8px; }
.pfacts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--surface); }
.pfacts dt { color: var(--ink-soft); }
.pfacts dd { font-weight: 500; }
@media (max-width: 900px) { .phero { grid-template-columns: 1fr; } }
.stake--first, .exch--first { padding-top: clamp(48px, 5vw, 80px); }
.rates, .how-list, .coins { padding-top: var(--section); }
.asset { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.asset small { color: var(--ink-soft); font-weight: 400; font-size: var(--step-small); }
.rates__table { min-width: 0; }
.rates__table thead th { color: var(--ink-soft); font-size: var(--step-small); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.rates__table td { font-size: var(--step-lead); font-weight: 500; width: auto; }
.rates__table td:last-child { color: var(--accent); }
.rates__table tbody th { width: 34%; color: var(--ink); }
@media (max-width: 640px) { .rates__table .asset small { display: none; } .rates__table td { font-size: var(--step-body); } }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cards3 li { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); }
.cards3 p { color: var(--ink-soft); }
.cards3__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.cards3__ic svg { width: 22px; }
@media (max-width: 800px) { .cards3 { grid-template-columns: 1fr; } }
.coinlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.coinlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--surface); }
.coinlist b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .coinlist { grid-template-columns: 1fr; } }
.close__coins { position: relative; height: clamp(180px, 20vw, 240px); }
.close__coins .coin { position: absolute; width: clamp(88px, 10vw, 120px); height: auto; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: coins float */ }
.close__coins .coin:nth-child(1) { left: 6%; top: 8%; transform: rotate(-10deg); }
.close__coins .coin:nth-child(2) { left: 38%; top: 38%; z-index: 1; }
.close__coins .coin:nth-child(3) { right: 6%; top: 0; transform: rotate(12deg); }
.legal__note { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }
html[lang="en"] .legal__note, html:not([lang]) .legal__note { display: none; }
.legal__more { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--step-small); }
.legal__sec button.link { font-size: inherit; }
img.logo, img.wl__ic, img.wallet__icon { background: none; object-fit: contain; }
img.wl__ic, img.wallet__icon { border-radius: 9px; }

/* ---------- iOS-style notification ---------- */
.notif {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: start;
  width: min(310px, 86vw); padding: 12px 14px 13px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.78); color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); /* taste-skill-ignore: the system notification material */
  box-shadow: 0 18px 40px -16px rgba(28, 32, 48, 0.3); /* taste-skill-ignore: a notification floats */
}
.notif__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
.notif__icon--mycard { background: #fff; }
.notif__icon--mycard svg { width: 38px; height: 38px; }
.notif__icon--wallet { background: #000; align-content: center; gap: 2px; padding: 0 6px; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2); /* taste-skill-ignore: icon edge */ }
.notif__icon--wallet i { display: block; width: 26px; height: 6px; border-radius: 2px; }
.notif__icon--wallet i:nth-child(1) { background: #3e9cf3; }
.notif__icon--wallet i:nth-child(2) { background: #f6b83c; }
.notif__icon--wallet i:nth-child(3) { background: #ee5a50; }
.notif__body { display: grid; gap: 1px; min-width: 0; }
.notif__head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-soft); text-transform: none; }
.notif__head b { font-weight: 500; }
.notif__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.notif__text { font-size: 14px; line-height: 1.3; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .toast { left: 0; top: 0; } }

/* footer language picker: the bar's picker, wider, opening upward */
.lang--foot { justify-self: start; margin-top: 4px; }
.lang--foot .lang__btn { height: 46px; padding: 0 14px 0 14px; gap: 10px; font-size: var(--step-body); }
.lang--foot .lang__chev { width: 16px; color: var(--ink-soft); transition: transform var(--t-ui) var(--ease-out); }
.lang--foot .lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang--foot .lang__list { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; transform-origin: bottom left; }
.foot__fine { max-width: 70ch; }
@media (max-width: 560px) { .lang--foot .lang__btn .lang__name { display: inline; } .lang--foot .lang__btn { width: auto; padding: 0 14px; } }

.foot__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  margin-top: clamp(48px, 5vw, 72px); padding-top: 24px; box-shadow: inset 0 1px 0 var(--rule); /* taste-skill-ignore: one quiet divider before the fine print */
  font-size: var(--step-small); color: var(--ink-soft);
}
.foot__fine { max-width: none; margin: 0; }
.foot__fine span { color: var(--ink); }
.foot__util { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot__util .link { white-space: nowrap; color: var(--ink-soft); font-size: inherit; text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) { .foot__util .link:hover { color: var(--ink); text-decoration-color: currentColor; } }
.foot__legal { display: none; }
.cookie { max-height: calc(100svh - 16px); overflow: auto; }
.cookie__actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cookie__actions .btn { white-space: normal; line-height: 1.15; text-align: center; }
.cookie .btn--ghost { background: #dfdfe6; }
@media (hover: hover) and (pointer: fine) { .cookie .btn--ghost:hover { background: #d4d4dd; } }
/* nothing in the forms may push the page wider than the phone */
.stake__form, .exch__form, .exch__side { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.xrow, .xrow__box { min-width: 0; }
.xsel { flex: none; }
@media (max-width: 560px) { .hero__card { right: 5%; width: 54%; } }


/* languages with long words: the big type steps down so headlines still fit in two lines */
html:is([lang="de"], [lang="fr"], [lang="es"], [lang="pt"], [lang="it"], [lang="pl"], [lang="tr"], [lang="id"], [lang="vi"], [lang="hi"], [lang="ar"]) {
  --step-display: clamp(2.25rem, 1rem + 3.1vw, 3.8rem);
  --step-head: clamp(1.85rem, 1.2rem + 1.9vw, 2.9rem);
}
html:not([lang="en"]) .close__title { max-width: 20ch; }
html:not([lang="en"]) .phero__title { font-size: clamp(1.9rem, 0.9rem + 2.8vw, 3.3rem); max-width: 22ch; }
@media (max-width: 700px) {
  html:is([lang="de"], [lang="fr"], [lang="es"], [lang="pt"], [lang="it"], [lang="pl"], [lang="tr"], [lang="id"], [lang="vi"], [lang="hi"], [lang="ar"]) .hero__title { font-size: 8.8vw; }
  .phero__title { font-size: 8.6vw; }
  html:is([lang="pt"], [lang="id"]) .phero__title { font-size: 6.4vw; }
  html[lang="id"] .hero__title { font-size: 8.2vw; }
}

/* Japanese: the hero line is one word longer than the others */
html[lang="ja"] .hero__title { font-size: clamp(2.3rem, 1.1rem + 3.2vw, 3.7rem); }
@media (max-width: 700px) { html[lang="ja"] .hero__title { font-size: 8.6vw; } }

/* the globe: drawn in code, payments flying between cities */
.tile--world { min-height: 360px; }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile--world .tile__text--over { background: none; padding-top: 0; max-width: 60%; }
@media (max-width: 560px) { .tile--world { min-height: 420px; } .tile--world .tile__text--over { max-width: none; } }

/* how it works: every step the same size, so switching never jumps */
.steps__panel { min-height: 460px; align-items: center; }
.steps__text { align-content: center; }
.steps__text .h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.screen { height: 360px; min-height: 0; align-content: center; position: relative; overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgba(5, 0, 255, 0.07), rgba(5, 0, 255, 0)); /* taste-skill-ignore: light under the screen */ pointer-events: none; }
.screen > * { position: relative; }
.checks { display: grid; gap: 10px; margin-top: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(5, 0, 255, 0.1); color: var(--accent); }
@media (max-width: 800px) { .steps__panel { min-height: 0; } .screen { height: auto; min-height: 300px; } }

/* language popover: compact, two columns, fixed beside its button (placed by i18n.js) */
.lang__pop {
  position: fixed; z-index: 95; width: 340px; padding: 8px; border-radius: 18px;
  background: var(--surface-2);
  box-shadow: 0 24px 60px -12px rgba(28, 32, 48, 0.3); /* taste-skill-ignore: a popover floats */
}
.lang__pop[hidden] { display: none; }
.lang__title { padding: 6px 10px 8px; font-size: 13px; color: var(--ink-soft); }
.lang__pop .lang__list { position: static; width: auto; max-height: none; overflow: visible; padding: 0; background: none; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; animation: none; } /* taste-skill-ignore: part of a drawn interface */
.lang__pop .lang__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px; align-items: center; padding: 7px 10px; border-radius: 11px; cursor: pointer; line-height: 1.2; transition: background-color var(--t-hover) ease; }
.lang__native { grid-column: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang__en { grid-column: 1; font-size: 11px; color: var(--ink-soft); }
.lang__tick { grid-column: 2; grid-row: 1 / span 2; width: 16px; color: var(--accent); opacity: 0; transform: scale(0.6); transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.lang__pop .lang__list li[aria-selected="true"] { background: rgba(5, 0, 255, 0.07); }
.lang__pop .lang__list li[aria-selected="true"] .lang__tick { opacity: 1; transform: none; }
.lang__pop .lang__list li.is-active, .lang__pop .lang__list li:hover { background: var(--surface-3); }
.lang__pop .lang__list li:focus { outline: none; }
.lang__pop .lang__list li.is-active { box-shadow: inset 0 0 0 1.5px rgba(5, 0, 255, 0.5); /* taste-skill-ignore: keyboard position */ }
@media (prefers-reduced-motion: no-preference) { .lang__pop:not([hidden]) { animation: pop 180ms var(--ease-out); } }
@media (max-width: 560px) {
  /* on a phone it is a sheet from the bottom of the screen */
  .lang__pop { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; max-height: 80svh; overflow: auto; padding: 10px; border-radius: 24px; }
  .lang__pop .lang__list li { padding: 10px 12px; }
  @media (prefers-reduced-motion: no-preference) { .lang__pop:not([hidden]) { animation: sheet-up 280ms cubic-bezier(0.32, 0.72, 0, 1); } }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
}



/* ---------- hotels, rentals, flights: a boarding pass and the deposits held on the card ---------- */
.tile--travel .tile__art { aspect-ratio: 21 / 9; }
.trip { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: clamp(16px, 2.2vw, 28px); }
.bp { --bg: var(--surface-2); position: relative; display: grid; gap: 12px; padding: 14px 18px 16px; border-radius: 18px; background: var(--surface); color: var(--ink); }
.bp__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: #6a6d62; }
.bp__paid { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; white-space: nowrap; }
.bp__paid svg { width: 12px; height: 12px; }
.bp__route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bp__end { display: grid; gap: 2px; }
.bp__end--to { text-align: end; }
.bp__end b { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.bp__end small { font-size: 12px; color: #6a6d62; }
.bp__line { position: relative; height: 20px; margin-bottom: 16px; background: linear-gradient(90deg, rgba(13, 14, 11, 0.28) 50%, transparent 0) 0 50% / 8px 1.5px repeat-x; } /* taste-skill-ignore: dashed route line, not a decorative gradient */
.bp__fly { position: absolute; inset: 0; overflow: hidden; }
[dir="rtl"] .bp__line { transform: scaleX(-1); }
.bp__fly::before { content: ""; position: absolute; left: 0; right: 10px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }
.bp__plane { position: absolute; top: 0; left: 0; width: 100%; height: 20px; transform: translateX(var(--x, 0)); }
.bp__plane svg { position: absolute; right: 0; top: 0; width: 20px; height: 20px; }
.bp__cut { position: relative; height: 0; margin: 2px -18px; border-top: 1.5px dashed rgba(13, 14, 11, 0.18); }
.bp__cut::before, .bp__cut::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.bp__cut::before { left: -8px; }
.bp__cut::after { right: -8px; }
.bp__meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
.bp__meta dt { font-size: 11px; color: #6a6d62; }
.bp__meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.holds { display: grid; gap: 6px; padding: 8px; border-radius: 18px; background: var(--surface); }
.holds li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; font-size: 14px; }
.holds li > span:nth-child(2) { min-width: 0; }
.holds small { display: block; color: var(--ink-soft); font-size: 12px; }
.holds__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--ink); }
.holds__ic svg { width: 18px; height: 18px; }
.holds__st { display: grid; justify-items: end; }
.holds__st > b { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.holds__hold { background: var(--surface-2); color: var(--ink-soft); }
.holds__hold::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f0b23a; }
.holds__free { background: rgba(10, 143, 79, 0.1); color: var(--pos); opacity: 0; }
.holds__free svg { width: 12px; height: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .js .bp__plane, .js .bp__fly::before, .js .holds__hold:not(.holds__hold--keep), .js .holds__free { animation: var(--a) 8s var(--ease-in-out) infinite both; animation-play-state: paused; }
  .js .tile.is-in .bp__plane, .js .tile.is-in .bp__fly::before, .js .tile.is-in .holds__hold, .js .tile.is-in .holds__free { animation-play-state: running; }
  .bp__plane { --a: bp-fly; }
  .bp__fly::before { --a: bp-trail; }
  .holds__hold { --a: hold-out; }
  .holds__free { --a: hold-in; }
  @keyframes bp-fly { 0%, 6% { transform: translateX(calc(-100% + 20px)); opacity: 0; } 10% { opacity: 1; } 58%, 86% { transform: none; opacity: 1; } 94%, 100% { transform: none; opacity: 0; } }
  @keyframes bp-trail { 0%, 6% { transform: scaleX(0); opacity: 1; } 58%, 86% { transform: scaleX(1); opacity: 1; } 94%, 100% { transform: scaleX(1); opacity: 0; } }
  @keyframes hold-out { 0%, 60% { opacity: 1; transform: none; } 66%, 92% { opacity: 0; transform: translateY(-4px); } 98%, 100% { opacity: 1; transform: none; } }
  @keyframes hold-in { 0%, 62% { opacity: 0; transform: translateY(4px) scale(0.96); } 68%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .holds__hold:not(.holds__hold--keep) { opacity: 0; }
  .holds__free { opacity: 1; }
}
@media (max-width: 980px) { .tile--travel .tile__art { aspect-ratio: auto; } .trip { padding: clamp(16px, 2.6vw, 28px); } }
@media (max-width: 640px) {
  .tile--travel .tile__art { aspect-ratio: auto; }
  .trip { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Apple Pay: one low band of type, the two wallet marks and three facts ---------- */
.tile--pay { grid-column: span 12; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px clamp(24px, 5vw, 72px); padding: clamp(24px, 3vw, 40px); }
.tile--pay .tile__text { max-width: 620px; gap: 10px; }
.tile--pay .tile__text p { max-width: 54ch; }
.pay__title { font-family: var(--font-head); font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tile--pay .paymarks { margin: 0; }
.tile--pay .paymark { height: 48px; padding: 0 18px; border-radius: 12px; }
.tile--pay .paymark svg { width: 60px; height: 40px; }
.tile--pay .checks { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 4px 0 0; font-size: 15px; }
@media (max-width: 860px) {
  .tile--pay { grid-template-columns: minmax(0, 1fr); }
  .tile--pay .checks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- white sheets on the grey page ---------- */
.phero { margin-top: clamp(12px, 1.4vw, 20px); padding: clamp(32px, 5vw, 64px) clamp(20px, 4.5vw, 64px); border-radius: clamp(24px, 3vw, 40px); background: var(--surface); }
.phero .pfacts div { background: var(--surface-2); }
.legal { margin-top: clamp(12px, 1.4vw, 20px); margin-bottom: clamp(12px, 1.4vw, 20px); padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px); border-radius: clamp(24px, 3vw, 40px); background: var(--surface); }
.cookie { background: var(--surface); }


/* =========================================================
   responsive: phones, tablets, laptops, wide and ultra-wide
   ========================================================= */

/* ---------- the bar on small phones: everything fits in one row ---------- */
@media (max-width: 420px) {
  .bar__in { gap: 8px; }
  .wordmark { font-size: 20px; gap: 7px; }
  .wordmark svg { width: 26px; height: 26px; }
  .bar .btn--small { height: 40px; padding: 0 14px; font-size: 13px; }
  .lang__btn, .js .menu-btn { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .wordmark .wm-name { display: none; }
}

/* ---------- phones: tighter rhythm, full-width actions ---------- */
@media (max-width: 560px) {
  :root { --section: clamp(72px, 18vw, 96px); --radius: 20px; }
  .hero { padding: 28px 20px 24px; gap: 28px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 24px; }
  .facts { margin-top: 32px; gap: 16px 28px; }
  .sec-head { margin-bottom: 28px; }
  .rails { padding: 18px 20px; gap: 12px 20px; }
  .rails__list { gap: 10px 16px; }
  .calc-panel { padding: 18px; }
  .calc-panel__card { padding: 4px 0 8px; }
  .tile { padding: 20px; }
  .tile--art .tile__text { padding: 18px 20px 20px; }
  .tile--pay { padding: 22px 20px; }
  .steps { padding: 6px; }
  .steps__panel { padding: 16px 8px 8px; }
  .screen { padding: 16px; }
  .controls { padding: 18px; }
  .controls__card { margin: 4px 0 16px; }
  .safe__list { margin-top: 24px; gap: 20px; }
  .close { padding: 28px 22px; gap: 24px; }
  .close__title { max-width: none; }
  .close__cards { height: 200px; }
  .close__card { width: 64%; }
  .foot__top { gap: 32px 16px; }
  .foot__col .link, .foot__col a { overflow-wrap: anywhere; }
  .foot__bottom { margin-top: 40px; }
  .legal { padding: 28px 20px; }
  .legal__sec { margin-top: 36px; }
  .lost { padding: 40px 0; gap: 32px; }
  .lost .ccard { max-width: none; transform: rotate(-4deg); }
  .phero { padding: 28px 20px 24px; gap: 28px; }
  .stake__panel, .exch__panel { padding: 18px; gap: 20px; }
  .stake__chart { padding: 18px; min-height: 260px; }
  .cards3 li { padding: 22px 20px; }
  .coinlist li { padding: 12px 16px; }
  .connect { padding: 20px; }
}
/* the smallest phones: the hero headline and balance step down one more notch */
@media (max-width: 380px) {
  :root { --step-display: clamp(2.25rem, 10.5vw, 2.75rem); --step-head: clamp(1.75rem, 8.5vw, 2.1rem); }
  .hero__lead { font-size: 1.0625rem; }
  .app__bal { font-size: 30px; }
  .app { width: 100%; padding: 16px; }
  .hero__card { right: 0; width: 56%; }
  .seg button { padding: 0 6px; font-size: 13px; }
  .seg__over span { font-size: 13px; }
  .calc__total dd { font-size: 2rem; }
  .pfacts div { padding: 14px 16px; }
  .cookie__actions { grid-template-columns: 1fr; }
}

/* ---------- tablets, portrait: two tiles share a row where the content allows ---------- */
@media (min-width: 641px) and (max-width: 980px) {
  .tile--pay { order: 1; }
  .tile--online { order: 2; grid-column: span 6; }
  .tile--iban { order: 3; grid-column: span 6; }
  .tile--travel { order: 4; }
  .tile--world { order: 5; min-height: 420px; }
  .tile--world .tile__text--over { max-width: 70%; }
  .pass { width: 200px; }
}
@media (min-width: 561px) and (max-width: 900px) {
  /* one column, but the visual keeps the desktop composition */
  .hero { padding: clamp(28px, 5vw, 48px) clamp(20px, 4.5vw, 40px); }
  .hero__visual { max-width: 640px; }
  .hero__lead { max-width: 40ch; }
  .calc-panel__card .ccard { max-width: 460px; }
  .safe { gap: 32px; }
  .faq { gap: 24px; }
  .close__cards { height: 260px; max-width: 520px; }
  .controls__card { width: min(100%, 420px); }
  .phero__title { max-width: none; }
  .pfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pfacts div { flex-direction: column; gap: 4px; }
  .stake__chart { min-height: 280px; }
}
/* tablets, landscape and small laptops: the desktop layout with slightly tighter gutters */
@media (min-width: 901px) and (max-width: 1100px) {
  .hero { gap: 32px; }
  .hero__visual { height: clamp(460px, 44vw, 560px); }
  .app { width: min(330px, 76%); }
  .hero__card { width: min(360px, 70%); }
  .bar__nav a { padding: 8px 10px; }
  .bar__in { gap: 16px; }
  .steps__panel, .calc-panel, .stake__panel, .exch__panel { gap: 28px; }
  .faq { gap: 32px; }
  .foot__top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
}

/* ---------- short landscape phones: the menu and dialogs still scroll ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: 60px; }
  .js .menu { padding-top: 16px; gap: 20px; }
  .menu__list a { padding: 8px 0; font-size: clamp(1.5rem, 5vh, 2rem); }
  .connect { max-height: calc(100% - 16px); }
  .lang__pop { max-height: calc(100svh - 16px); overflow: auto; }
  .hero__visual { height: auto; min-height: 420px; }
}

/* ---------- wide screens: the column grows and the type with it ---------- */
@media (min-width: 1700px) {
  :root { --container: 1440px; --section: clamp(128px, 8vw, 176px); --gap: 22px; }
  html { font-size: 108%; }
  .hero__visual { height: clamp(560px, 36vw, 660px); }
  .app { width: min(400px, 74%); top: 104px; }
  .hero__card { width: min(440px, 68%); }
  .toast.notif { width: min(330px, 86vw); }
  .calc-panel__card .ccard { max-width: 580px; }
  .screen__card { width: min(100%, 380px); }
  .controls__card { width: min(100%, 420px); }
  .close__card { width: min(340px, 66%); }
  .close__cards { height: clamp(300px, 24vw, 380px); }
  .pass { width: 240px; }
}
/* ultra-wide and 4K: one more step, so a 2560px screen is not a 1240px island */
@media (min-width: 2200px) {
  :root { --container: 1720px; --margin: 48px; --gap: 24px; }
  html { font-size: 118%; }
  .hero__visual { height: clamp(640px, 32vw, 760px); }
  .app { width: min(460px, 74%); top: 120px; }
  .hero__card { width: min(520px, 68%); }
  .toast.notif { width: min(360px, 86vw); }
  .app__bal { font-size: 46px; }
  .bar__nav a { padding: 10px 16px; }
  .calc-panel__card .ccard { max-width: 660px; }
  .plan .ccard { max-width: 380px; }
  .close__card { width: min(400px, 66%); }
  .close__cards { height: clamp(340px, 22vw, 440px); }
  .close__coins { height: clamp(240px, 16vw, 320px); }
  .close__coins .coin { width: clamp(120px, 7vw, 160px); }
}

/* ---------- touch: nothing depends on hover, targets stay large ---------- */
@media (hover: none) and (pointer: coarse) {
  .link, .foot__col .link { text-decoration-color: rgba(38, 42, 63, 0.3); }
  .bar__nav a, .pairs button, .seg button { min-height: 42px; }
  .acc__q { padding-top: 20px; padding-bottom: 20px; }
}

/* ---------- print: the page, not the chrome ---------- */
@media print {
  .bar, .menu, .cookie, .connect, .lang__pop, .skip, .foot__name { display: none !important; }
  body { background: #fff; }
  main > section, .foot { width: auto; }
}
