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

   Built entirely on the shared design tokens + @font-face rules
   in styles.css (same recipe as footer.css): one 64rem content
   column, Suisse Intl display type, hairline rules instead of
   cards, white as 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 deposit widget right)
     · the supported-chains marquee (sibling of the hero ticker)
     · the flow-rail visuals (chain grid · conversion rail · embed mock)
     · the compliance-engine pipeline (the rail's full-width finale)
     · 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 deposit 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/5-deposit, contain-fit 440×560) ---- */
.phero-media {
  position: relative;
  width: 100%;
  height: 34rem;
}
.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 */
}

/* ============================================================
   Supported-chains ticker — the homepage's token marquee, retuned
   to CHAINS (deposit's proof point: from anywhere). Same seamless
   two-pass / translateX(-50%) loop, same edge mask.
   ============================================================ */
.chain-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);
}
.chain-marquee_track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: chain-scroll 44s linear infinite;
}
.chain-bar:hover .chain-marquee_track { animation-play-state: paused; }
.chain-coin { flex: none; padding: 0 1.25rem; }   /* even gaps → seamless -50% loop */
.chain-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);
}
.chain-coin img:hover { filter: grayscale(0); opacity: 1; }
@keyframes chain-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .chain-marquee_track { animation: none; } }

/* ============================================================
   Flow-rail visuals — the three deposit 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 · the chain grid: every chain, one Flashi at the center ---- */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(3, 4rem);
  gap: 1rem;
}
.chain-cell {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.875rem;
  background-color: var(--tile);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chain-cell:hover { background-color: var(--card-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chain-cell img {
  width: 1.875rem; height: 1.875rem;
  border-radius: 50%;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}
.chain-cell:hover img { filter: grayscale(0); opacity: 1; }
.chain-cell.is-spark {            /* the center of gravity */
  background-color: var(--gray-2);
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    0 0 32px rgba(255, 255, 255, 0.08);
}
.chain-cell.is-spark svg { width: 1.75rem; height: 1.75rem; color: var(--white); }

/* ---- 2 · the conversion rail: many tokens in, one balance 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(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  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);
}

/* ---- 3 · the embed mock: your app's chrome, our widget inside ---- */
.mock {
  width: 100%;
  max-width: 26rem;
  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;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alpha-6); }
.mock-url {
  margin-left: 0.5rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--alpha-2);
  font-size: 0.6875rem;
  color: var(--gray-10);
}
.mock-body {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
}
.mock-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0.875rem;
  border-right: 1px solid var(--border);
}
.mock-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--alpha-3);
}
.mock-line.is-bright { background: var(--alpha-6); }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.mock-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}
.mock-widget {                       /* the Flashi widget, native in the page */
  margin-top: 0.25rem;
  padding: 0.875rem;
  border-radius: 0.625rem;
  background-color: #0f0f0f;
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    0 16px 36px -14px rgba(0, 0, 0, 0.7);
}
.mw-head {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-12);
  margin-bottom: 0.75rem;
}
.mw-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background-color: var(--gray-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.mw-row + .mw-row { margin-top: 0.5rem; }
.mw-row img { width: 18px; height: 18px; border-radius: 50%; }
.mw-row .mock-line { flex: 1; }
.mw-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5625rem 0;
  border: 0;
  border-radius: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-fg);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  cursor: default;
}

/* ============================================================
   Compliance engine — the rail's full-width finale (the slot the
   homepage gives Orchestration). One hairline pipeline: a deposit
   is detected, screened, risk-scored and cleared before it
   settles. Four stations, one travelling pulse — no cards.
   ============================================================ */
.comp {
  --comp-mid: 1.625rem;        /* half the station tile — the rail's y */
  padding: 1.5rem 0 0.5rem;
}
.comp-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}
.comp-stages::before {         /* the rail, threading the station centers */
  content: "";
  position: absolute;
  top: var(--comp-mid);
  left: 12.5%;                 /* first / last column centers */
  right: 12.5%;
  height: 1px;
  background-color: var(--border-strong);
}
.comp-dot {                    /* the deposit riding the pipeline */
  position: absolute;
  top: var(--comp-mid);
  left: 12.5%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-12);
  box-shadow: 0 0 0 3px var(--gray-1);   /* page-bg ring seats it on the rail — crisp, no bloom */
  transform: translate(-50%, -50%);
  animation: comp-ride 6.4s linear infinite;
}
@keyframes comp-ride {
  0%   { left: 12.5%; opacity: 0; }
  6%   { opacity: 1; }
  90%  { left: 87.5%; opacity: 1; }
  100% { left: 87.5%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .comp-dot { animation: none; opacity: 0; } }
.comp-stage {                  /* stations paint over the rail + dot */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.comp-node {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background-color: var(--tile);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--icon);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.comp-stage:hover .comp-node { background-color: var(--card-hover); color: var(--white); }
.comp-node svg { width: 1.5rem; height: 1.5rem; display: block; }
.comp-label {
  font-size: 0.8125rem;
  color: var(--gray-10);
}

/* ============================================================
   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: 30rem; }
  .chain-bar { margin-top: 4rem; }
  .finale { padding: 0 1.5rem 5rem; }
}
@media (max-width: 720px) {
  .pviz { min-height: 0; }
  /* keep the 3×3 composition (spark stays dead-center) — just smaller */
  .chain-grid { grid-template-columns: repeat(3, 3.25rem); gap: 0.75rem; }
  .chain-cell { width: 3.25rem; height: 3.25rem; border-radius: 0.75rem; }
  .chain-cell img { width: 1.5rem; height: 1.5rem; }
  .comp { --comp-mid: 1.375rem; }
  .comp-node { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; }
  .comp-node svg { width: 1.25rem; height: 1.25rem; }
  .comp-label { font-size: 0.75rem; }
}
@media (max-width: 600px) {
  .phero { padding: 2.75rem 1.25rem 0; }
  .phero-media { height: 26rem; }
}
