@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("./fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight:400 800; font-display: swap;
}
:root {
  --ink:#1e3049; --blue:#4564de; --secondary:#626e85; --mint:#83dcc2;
  --display:"Plus Jakarta Sans",Poppins,system-ui,sans-serif;
  --ease:cubic-bezier(.22,.7,.25,1);
  --masthead-height:66px;
  color:var(--ink); background:white; font:400 16px/1.45 Poppins,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; }
img { max-width:100%; display:block; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit;text-decoration:none; }
a:focus-visible,button:focus-visible { outline:3px solid #4564de; outline-offset:4px; }
.defs { width:0; height:0; position:absolute; pointer-events:none; }
.skip { position:fixed;top:-70px;left:16px;z-index:20;background:white;padding:10px; }
.skip:focus { top:8px; }

.masthead { position:sticky; top:0; z-index:12; background:rgba(255,255,255,.88); backdrop-filter:blur(14px); }
.masthead-inner { width:min(1210px,90%); height:var(--masthead-height); margin:auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
.brand { justify-self:start; }
.brand img { width:115px; height:auto; }
.masthead nav { position:relative; display:flex; gap:32px; align-items:center; }
.masthead nav a { position:relative; padding:12px 0; color:#68758a; font:600 .9rem var(--display); }
.masthead nav a:hover, .masthead nav a[aria-current] { color:var(--ink); }
.masthead nav:not([data-tracking]) a[aria-current]::after,
.masthead nav[data-tracking]::after {
  content:""; position:absolute; bottom:5px; left:50%; transform:translateX(-50%);
  width:5px; height:5px; background:var(--blue); border-radius:50%; pointer-events:none;
}
.masthead nav[data-tracking]::after { left:0; transform:translateX(calc(var(--nav-dot-x) - 50%)); }
.masthead nav[data-tracking]:not(:has([aria-current]))::after { opacity:0; }
#intro, #cambio { scroll-margin-top:var(--masthead-height); }
@media (prefers-reduced-motion:no-preference) {
  .masthead nav[data-tracking]::after { transition:transform .26s var(--ease), opacity .14s; }
}
.masthead-actions { justify-self:end; display:flex; align-items:center; gap:clamp(12px,1.5vw,22px); }
.nav-demo,.nav-enter { display:inline-flex; align-items:center; justify-content:center; min-height:36px; white-space:nowrap; font:700 .86rem var(--display); }
.nav-demo { gap:5px; color:var(--ink); }
.nav-enter { padding:9px 19px; border-radius:999px; background:var(--ink); color:white; }
.nav-demo svg { width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.nav-demo:hover { color:var(--blue); }
.nav-enter:hover { background:#354b70; }

.intro { overflow:clip; --motion:0; }
.intro-copy { text-align:center; position:relative; z-index:2; margin:0 auto; width:min(94%,740px); padding:clamp(23px,3.2vh,39px) 0 0; }
h1 { font:800 clamp(3.15rem,4.75vw,4.65rem)/1.015 var(--display); letter-spacing:-.055em; word-spacing:.055em; margin:0; }
h1 > span { display:block; }
h1 > span:first-child { color:var(--blue); }
.title-plane { width:.74em; height:.74em; vertical-align:.005em; margin:0 -.085em 0 -.055em; }
.summary { max-width:510px; margin:17px auto 0; font:500 clamp(1rem,1.45vw,1.17rem)/1.42 var(--display); letter-spacing:-.035em; color:#566780; text-wrap:balance; }
.actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:18px auto 0; }
.action { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 24px; border-radius:999px; font:750 .94rem/1.1 var(--display); letter-spacing:-.025em; transition:background .18s,transform .18s var(--ease); }
.action:active,.nav-enter:active { transform:scale(.97); }
.primary { color:#fff; background:var(--blue); box-shadow:0 6px 16px #4564de26; }
.primary:hover { background:#3654cc; }
.secondary { color:var(--ink); background:white; border:1px solid #d5dce7; }
.secondary:hover { background:#f5f7fb; }
.detail { display:flex; min-height:30px; align-items:center; justify-content:center; gap:14px; margin:11px auto 0; color:var(--secondary); font:600 .8rem var(--display); }
.currencies span { display:flex; align-items:center; gap:3px; }
.currencies img { width:23px; height:23px; }
.reverse-control { border:0; background:transparent; font-family:var(--display); cursor:pointer; color:var(--blue); gap:6px; padding:4px 8px; border-radius:6px; }
.reverse-control:hover { background:#eff3ff; }
.reverse-control svg { width:18px; height:18px; transition:transform .4s var(--ease); }
.reverse-control[aria-pressed=true] svg { transform:rotate(180deg); }

.stage-frame { position:relative; margin:clamp(24px,4vh,51px) auto 0; min-height:clamp(630px,82svh,1080px); display:flex; justify-content:center; align-items:flex-start; isolation:isolate; }
.stage { position:relative; flex:none; --world:min(97vw,1500px); width:var(--world); height:calc(var(--world) * .48); }
.swap-caption { font:600 clamp(.65rem,1vw,.95rem) var(--display); }

.swap-stage { margin-top:2%; height:calc(var(--world)*.42); }
.swap-board { position:absolute; inset:1% 1.5% 2%; overflow:hidden; transform:rotate(calc(-2.3deg + var(--motion)*2.3deg)); border-radius:clamp(22px,4vw,64px); background:linear-gradient(112deg,#1c304b,#1c3357 50%,#273e64); box-shadow:inset 0 5px 0 #516784,0 8px 0 #11243e; }
.tracks { position:absolute; inset:0; width:100%; height:100%; }
.track-faint { stroke:#718ab1; stroke-width:58; opacity:.08; }
.track-dashes { stroke:#8aa5d1; opacity:.4; stroke-width:2; stroke-dasharray:6 10; }
.swap-route { position:absolute; top:8%; left:6%; display:flex; align-items:center; gap:.5em; font:700 clamp(1rem,1.7vw,1.65rem) var(--display); color:#f0f5ff; }
.swap-route svg { width:1.1em; height:1.1em; color:#a2b3fa; }
.swap-example { position:absolute; inset:6% 8% 21%; display:grid; grid-template-columns:minmax(0,1fr) 12% minmax(0,1fr); align-items:center; }
.swap-asset { display:grid; justify-items:center; gap:2px; text-align:center; }
.swap-asset img { width:75%; max-width:236px; aspect-ratio:1; filter:drop-shadow(2px 6px 0 #11234180) drop-shadow(0 12px 12px #13223966); }
.asset-from img { transform:rotate(calc(-12deg + var(--motion)*8deg)); }
.asset-to img { transform:rotate(calc(12deg - var(--motion)*8deg)); }
.swap-asset small { display:block; color:#c4cfe0; font:600 clamp(.9rem,1.1vw,1.1rem) var(--display); }
.swap-asset strong { display:block; font:750 clamp(1.45rem,3.5vw,3.6rem)/1.2 var(--display); letter-spacing:-.06em; color:white; }
.exchange-junction { border:0; padding:0; cursor:pointer; transition:background .2s,transform .2s var(--ease); color:white; width:75%; aspect-ratio:1; display:grid; place-items:center; justify-self:center; border-radius:50%; background:#526b97; box-shadow:inset 0 2px 0 #768db3,0 4px 0 #172b47; }
.exchange-junction:hover { background:#6a83b0; }
.exchange-junction:focus-visible { outline-color:#ffda77; }
.exchange-junction:active { transform:scale(.94); }
.exchange-junction svg { width:51%; height:51%; }
.swap-caption { left:6%; bottom:7%; position:absolute; color:#aebed3; }

.continue { display:flex; justify-content:center; padding:24px 20px clamp(48px,8vh,100px); }
.continue a { display:flex; align-items:center; gap:10px; color:var(--blue); font:700 .95rem var(--display); }
.continue svg { height:19px; width:19px; transition:transform .2s var(--ease); }
.continue a:hover svg { transform:translateX(4px); }

@media(prefers-reduced-motion:no-preference) {
  .intro-ready h1 > span { animation:line-up .64s var(--ease) both; }
  .intro-ready h1 > span + span { animation-delay:.085s; }
  .intro-ready .summary { animation:line-up .6s .13s var(--ease) both; }
  .intro-ready .actions { animation:line-up .6s .19s var(--ease) both; }
  .intro-ready .detail { animation:line-up .6s .25s var(--ease) both; }
  @keyframes line-up { from {opacity:0;translate:0 .32em;filter:blur(3px);} to {opacity:1;translate:none;filter:none;} }
}
@media (prefers-reduced-motion:no-preference) {
  .wallet-entrance {
    --rise-ease:cubic-bezier(.16,1,.3,1);
    --copy-ease:cubic-bezier(.22,1,.36,1);
    --entrance-state:paused;
  }
  .wallet-entrance.entrance-playing { --entrance-state:running; }
  .wallet-entrance .intro-copy { z-index:0; }
  .wallet-entrance .wallet-frame { z-index:1; }
  .wallet-entrance .wallet-stage {
    transform-origin:50% 20%;
    animation:wallet-arrives 1.45s var(--rise-ease) backwards var(--entrance-state);
  }
  .wallet-entrance h1 { animation:headline-rises 1.35s .34s var(--rise-ease) backwards var(--entrance-state); }
  .wallet-entrance .summary { animation:summary-arrives .78s .98s var(--copy-ease) backwards var(--entrance-state); }
  .wallet-entrance .actions { --lift:20px; animation:details-arrive .72s 1.15s var(--copy-ease) backwards var(--entrance-state); }
  .wallet-entrance .currencies { --lift:12px; animation:details-arrive .66s 1.31s var(--copy-ease) backwards var(--entrance-state); }
  @keyframes wallet-arrives {
    from { transform:translateY(clamp(40px,8vw,115px)) scale(.88); opacity:.78; filter:blur(4px); }
    to { transform:none; opacity:1; filter:none; }
  }
  @keyframes headline-rises {
    from { transform:translateY(clamp(320px,calc(285px + 13vw),450px)) scale(.94); filter:blur(5px); opacity:0; }
    20% { opacity:1; }
    to { transform:none; filter:none; opacity:1; }
  }
  @keyframes summary-arrives {
    from { transform:translateY(22px); opacity:0; filter:blur(5px); }
    to { transform:none; opacity:1; filter:none; }
  }
  @keyframes details-arrive {
    from { transform:translateY(var(--lift)); opacity:0; }
    to { transform:none; opacity:1; }
  }
}
@media (max-width:800px) {
  :root { --masthead-height:60px; }
  .masthead-inner { width:92%; }
  .masthead nav { gap:18px; }
  .brand img { width:96px; }
  .stage-frame { min-height:clamp(460px,68svh,720px); align-items:center; }
  .stage { --world:108vw; }
}
@media (max-width:600px) {
  .masthead-inner { display:flex; justify-content:space-between; width:calc(100% - 32px); }
  .masthead nav { gap:clamp(7px,2.5vw,15px); }
  .masthead nav a { font-size:clamp(.70rem,3vw,.79rem); }
  .brand img { width:clamp(64px,18.2vw,88px); }
  .nav-enter { min-height:36px; padding:8px 13px; font-size:.79rem; }
  .nav-demo { display:none; }
  .intro-copy { width:calc(100% - 24px); padding-top:clamp(27px,5.4vh,48px); }
  h1 { font-size:clamp(2.16rem,10.8vw,3.45rem); line-height:1.03; }
  .summary { width:min(92%,420px); font-size:1rem; line-height:1.48; margin-top:17px; }
  .actions { gap:8px; margin-top:19px; }
  .action { font-size:.86rem; min-height:45px; padding:0 clamp(13px,4vw,21px); }
  .detail { gap:10px; font-size:.75rem; }
  .stage-frame { margin-top:clamp(35px,5.1vh,46px); min-height:max(385px,58svh); align-items:flex-start; }
  .stage { min-height:49svh; }
  .swap-stage { --world:95vw; height:calc(var(--world)*.84); margin-top:2.5%; }
  .swap-board { inset:1%; }
  .swap-route { font-size:.87rem; }
  .swap-example { inset:20% 4% 21%; grid-template-columns:minmax(0,1fr) 13% minmax(0,1fr); }
  .swap-asset img { width:88%; }
  .swap-asset small { font-size:.74rem; }
  .swap-asset strong { font-size:clamp(1.23rem,5.8vw,2rem); }
  .exchange-junction { width:90%; }
  .swap-caption { font-size:.71rem; }
  .continue { padding:15px 20px 48px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
}

/* The body, contents and enamel fastening share one plane of perspective.
   The purchase chapter physically covers the lower half of the front pocket. */
.intro[data-hero="billetera"] {
  --wallet-width:min(100vw,1340px);
  --wallet-height:calc(var(--wallet-width) * 540 / 1100);
  --chapter-overlap:calc(var(--wallet-width) * .131);
}
.wallet-frame {
  position:sticky;
  top:clamp(30px,6svh,72px);
  width:100%;
  height:var(--wallet-height);
  min-height:0;
  margin-top:calc(24px + clamp(37px,5.5vh,61px) - var(--wallet-width) * .105);
  align-items:start;
  pointer-events:none;
}
.wallet-stage {
  width:var(--wallet-width);
  height:var(--wallet-height);
  min-height:0;
}
.wallet-assembly {
  position:absolute;
  inset:0;
  container-type:inline-size;
  transform:translateY(calc(var(--motion) * 2%)) rotate(calc(-3.1deg + var(--motion) * 1.7deg));
  transform-origin:50% 55%;
}
.wallet-interior,.wallet-front,.wallet-print { position:absolute; }
.wallet-interior,.wallet-front { inset:0; width:100%; height:100%; }
.wallet-interior { transform:scaleY(.912); transform-origin:50% 96%; }
.wallet-print {
  width:33.2%;
  height:auto;
  aspect-ratio:800 / 350;
  transform-origin:top left;
  transform:rotate(var(--angle));
  filter:drop-shadow(.07cqw .16cqw 0 var(--paper-edge));
}
/* Each top-left corner locates one rigid sheet. The front pocket hides the stack. */
.print-usdt { left:14.3%; top:26.5%; --angle:-1deg; --paper-edge:#BD9C6C; }
.print-ars  { left:29%; top:22%; --angle:5deg; --paper-edge:#63A990; }
.print-ton  { left:43.7%; top:20%; --angle:11deg; --paper-edge:#929EBB; }
.print-ltc  { left:58.4%; top:18.5%; --angle:17deg; --paper-edge:#C39076; }
.wallet-front img { width:100%; height:100%; }
.buy-chapter {
  position:relative;
  z-index:2;
  display:grid;
  align-content:start;
  width:100%;
  min-height:clamp(300px,62svh,650px);
  margin-top:calc(-1 * var(--chapter-overlap));
  padding:clamp(56px,9svh,120px) 18px;
  background:#f4f7fc;
  border-top:1px solid #dfe6f1;
  text-align:center;
  scroll-margin-top:74px;
}
.buy-chapter h2 {
  margin:0;
  font:800 clamp(2.1rem,3.6vw,3.8rem)/1.07 var(--display);
  letter-spacing:-.055em;
  word-spacing:.045em;
}
main:has(.intro[data-hero="billetera"]) .continue { display:none; }
@media (width > 800px) and (hover:hover), (width > 800px) and (height > 500px) {
  .intro[data-hero="billetera"] {
    --wallet-width:min(100vw,1340px,max(620px,calc(300svh - 1160px)));
    --wallet-trim:calc(var(--wallet-width) * .09);
    --wallet-window:min(calc(var(--wallet-width) * .36),54svh);
    --chapter-overlap:calc(var(--wallet-height) - var(--wallet-window));
  }
  .intro[data-hero="billetera"] .intro-copy {
    min-height:calc(100svh - var(--masthead-height) - var(--wallet-window) + var(--wallet-trim));
    align-content:center;
    padding-block:clamp(36px,calc(20svh - 100px),102px) clamp(14px,calc(10svh - 55px),38px);
  }
  .wallet-frame { margin-top:calc(-1 * var(--wallet-trim)); }
}
@media(max-width:800px) {
  .intro[data-hero="billetera"] { --wallet-width:97vw; }
  .intro[data-hero="billetera"] .intro-copy {
    min-height:calc(100svh - var(--masthead-height) - var(--wallet-height) + var(--chapter-overlap));
    align-content:center;
    padding-block:clamp(24px,6svh,56px) 16px;
  }
  .wallet-frame { margin-top:0; }
}
@media(max-width:600px) {
  .intro[data-hero="billetera"] { --chapter-overlap:calc(var(--wallet-width) * .07); }
  .wallet-print { width:37%; }
  .wallet-frame { top:63px; }
  .buy-chapter { scroll-margin-top:68px; }
}
