/* ============================================================
   CHECKOUT — product page styles.

   Built entirely on the shared design tokens + @font-face rules
   in styles.css (same recipe as footer.css, deposit.css and
   withdraw.css): one 64rem content column, Suisse Intl display
   type, hairline rules instead of cards, white the only accent.

   The page reuses site elements directly from styles.css —
   navbar, .stats (baseline system), .products/.flow (the flow
   rail), .cta-connect — and adds only what is new here:
     · the product hero (copy left, live checkout widget right)
     · the currency marquee (deposit shows chains IN, withdraw
       the wallets OUT — checkout shows the currencies you
       settle in)
     · the flow-rail visuals (one-tap selector · checkout sheet ·
       settlement rail)
     · the finale (closing couplet + email capture)
   ============================================================ */

/* ---------- Brand wordmark typeface (on the homepage this arrives
   via hero/_shared/widget.css; here we load just the two weights
   the wordmark needs, from the same bundled files) ---------- */
@font-face {
  font-family: "Open Sauce One";
  src: url("hero/_shared/assets/fonts/OpenSauceOne-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce One";
  src: url("hero/_shared/assets/fonts/OpenSauceOne-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Product hero — the homepage hero's language (pill, Suisse title,
   two-tone subhead, email capture) recomposed as two columns:
   the message left, the REAL checkout widget running on the right.
   ============================================================ */
.phero {
  position: relative;
  padding: 4rem 2.5rem 0;      /* no bottom pad — the next section's top owns the gap */
}
.phero-inner {
  max-width: 64rem;            /* the site grid */
  margin: 0 auto;
}
.phero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 4rem;
  align-items: center;
}
.phero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ---- announcement pill (same construction as the homepage hero:
   ring → fill, with a rotating shine) — here a quiet page badge ---- */
.hero-pill {
  position: relative;
  display: inline-flex;
  margin: 0 0 2.5rem;
  padding: 1px;                       /* the 1px ring */
  border-radius: 999px;
  background: #222;                   /* static ring base */
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.hero-pill::before {                  /* a single bright arc travelling around the ring */
  content: "";
  position: absolute;
  inset: -120%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(255, 255, 255, 0.5) 78%, transparent 90% 100%);
  animation: hero-pill-spin 5s linear infinite;
}
.hero-pill_inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #191919;
}
.hero-pill_label { font-size: 15px; line-height: 1.5; color: #fff; }
@keyframes hero-pill-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .hero-pill::before { animation: none; } }

.phero-title {
  margin: 0;
  font-family: "Suisse Intl", Georgia, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--gray-12);
  text-wrap: balance;
}
.phero-sub {
  margin: 1.5rem 0 0;
  max-width: 30rem;
  color: var(--gray-10);
  font-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  line-height: 1.55;
}
.phero-sub .lead { color: #eee; }    /* bright lead clause — the homepage two-tone */

/* ---- the live widget (scenes/3-checkout, contain-fit 400×380 —
   a squarer canvas than the other products, so a shorter slot) ---- */
.phero-media {
  position: relative;
  width: 100%;
  height: 30rem;
}
.phero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: dark;
  pointer-events: none;        /* purely decorative — don't trap clicks/scroll */
}

/* ============================================================
   Currency marquee — the homepage's token marquee, retuned to the
   CURRENCIES checkout settles in (the proof point: your money,
   your denomination, 100+ countries). Same seamless two-pass /
   translateX(-50%) loop, same edge mask.
   ============================================================ */
.currency-bar {
  margin-top: 5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.currency-marquee_track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: currency-scroll 44s linear infinite;
}
.currency-bar:hover .currency-marquee_track { animation-play-state: paused; }
.currency-coin { flex: none; padding: 0 1.25rem; }   /* even gaps → seamless -50% loop */
.currency-coin img {
  width: 26px; height: 26px;
  display: block;
  border-radius: 50%;
  filter: grayscale(1);              /* unified, muted set — not a rainbow of badges */
  opacity: 0.4;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}
.currency-coin img:hover { filter: grayscale(0); opacity: 1; }
@keyframes currency-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .currency-marquee_track { animation: none; } }

/* ============================================================
   Flow-rail visuals — the three checkout stories hang off the same
   .flow rail as the homepage products; each media slot here is a
   composed graphic (not an iframe), sized to the rail's rhythm.
   ============================================================ */
.pviz {
  position: relative;          /* paints above the .flow::before rail */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 21rem;           /* same visual rhythm as .flow-media */
}

/* ---- 1 · one tap: the asset selector cycles, the Pay button
   confirms — the whole story is the tap, so no rails here ---- */
.tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.tap-assets {
  display: flex;
  gap: 0.75rem;
}
.tap-chip {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--tile);
  box-shadow: inset 0 0 0 1px var(--border);
  animation: tap-sel 8s linear infinite;         /* each chip takes its turn… */
  animation-delay: calc(var(--i) * 2s);
}
.tap-chip img {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  filter: grayscale(1);
  opacity: 0.6;
  animation: tap-sel-img 8s linear infinite;     /* …and its icon lights up with it */
  animation-delay: calc(var(--i) * 2s);
}
@keyframes tap-sel {
  0%, 21%   { background-color: var(--card-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
  25%, 100% { background-color: var(--tile); box-shadow: inset 0 0 0 1px var(--border); }
}
@keyframes tap-sel-img {
  0%, 21%   { filter: grayscale(0); opacity: 1; }
  25%, 100% { filter: grayscale(1); opacity: 0.6; }
}
.tap-btn {
  position: relative;
  padding: 0.8125rem 3.25rem;
  border-radius: 0.625rem;
  background-color: var(--accent);
  color: var(--accent-fg);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  animation: tap-press 2s var(--ease) infinite;  /* one confirm per selection */
}
.tap-btn::after {                                /* the tap ripple */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.625rem;
  animation: tap-ring 2s linear infinite;
}
@keyframes tap-press {
  0%, 55%, 75%, 100% { transform: scale(1); }
  65%                { transform: scale(0.96); }
}
@keyframes tap-ring {
  0%, 60%  { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  95%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tap-chip, .tap-chip img, .tap-btn { animation: none; }
  .tap-btn::after { animation: none; box-shadow: none; }
}

/* ---- 2 · the checkout sheet: wallet, card, exchange — one
   surface, every way to pay ---- */
.sheet {
  width: 100%;
  max-width: 20rem;
  border-radius: 0.875rem;
  background-color: var(--gray-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px var(--border),
    0 28px 80px -26px rgba(0, 0, 0, 0.85),
    0 8px 22px -14px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sheet-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-12);
}
.sheet-amt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-12);
  font-variant-numeric: tabular-nums;
}
.sheet-rows { padding: 0.75rem; }
.sheet-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #0f0f0f;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--gray-12);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sheet-row + .sheet-row { margin-top: 0.5rem; }
.sheet-row:hover { background-color: var(--card-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
.sheet-row_icon {
  display: flex;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--icon);
}
.sheet-row_icon svg { width: 100%; height: 100%; display: block; }
.sheet-row_label {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
}
.sheet-row_chev {
  display: flex;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--gray-10);
}
.sheet-row_chev svg { width: 100%; height: 100%; display: block; }
.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem 0.875rem;
  font-size: 0.6875rem;
  color: var(--gray-10);
}
.sheet-foot b {
  font-family: "Open Sauce One", "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-12);
}
.sheet-foot svg { width: 0.75rem; height: 0.75rem; color: var(--gray-12); }

/* ---- 3 · the settlement rail: crypto in, your currency out ---- */
.conv {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  width: 100%;
  max-width: 26rem;
}
.conv-in { display: flex; align-items: center; }
.conv-in img {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gray-1);   /* page-bg ring separates the pile */
}
.conv-in img + img { margin-left: -0.5rem; }
.conv-rail {
  position: relative;
  flex: 1;
  height: 1px;
  background-color: var(--border-strong);
}
.conv-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-12);
  box-shadow: 0 0 0 3px var(--gray-1);   /* page-bg ring — crisp, no bloom */
  transform: translate(-50%, -50%);
  animation: conv-ride 2.8s linear infinite;
}
.conv-dot:nth-child(2) { animation-delay: -0.95s; }
.conv-dot:nth-child(3) { animation-delay: -1.9s; }
@keyframes conv-ride {
  0%   { left: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .conv-dot { animation: none; opacity: 0; } }
.conv-out {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.125rem;
  border-radius: 0.75rem;
  background-color: var(--tile);
  box-shadow: inset 0 0 0 1px var(--border);
}
.conv-out img { width: 1.5rem; height: 1.5rem; border-radius: 50%; }
.conv-out span {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-12);
}

/* ============================================================
   Finale — the quiet close: the couplet and an email capture,
   nothing else (fun.xyz's closing register, in our type).
   ============================================================ */
.finale {
  background-color: var(--gray-1);
  padding: 0 2.5rem 7rem;
}
.finale-inner {
  max-width: 64rem;
  margin: 0 auto;
}
.finale-statement {
  margin: 0;
  font-family: "Suisse Intl", Georgia, sans-serif;
  font-size: clamp(2.5rem, 4.8vw, 3.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--gray-12);
  text-wrap: balance;
}
.finale-statement_line { display: block; }
.finale .cta-connect { margin-top: 2.5rem; }

/* ============================================================
   Responsive — aligned to the site's existing breakpoints
   (1024 hero · 991 nav · 720 products · 600 small).
   ============================================================ */
@media (max-width: 1024px) {
  .phero { padding: 3.5rem 1.5rem 0; }
  .phero-grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }
  .phero-sub { max-width: 40rem; }
  .phero-media { height: 26rem; }
  .currency-bar { margin-top: 4rem; }
  .finale { padding: 0 1.5rem 5rem; }
}
@media (max-width: 720px) {
  .pviz { min-height: 0; }
  .tap-chip { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; }
  .tap-chip img { width: 1.375rem; height: 1.375rem; }
}
@media (max-width: 600px) {
  .phero { padding: 2.75rem 1.25rem 0; }
  .phero-media { height: 22rem; }
}
